/* ===================== DESIGN TOKENS ===================== */
:root {
  --bg-dark: #1a1a2e;
  --bg-darker: #14141f;
  --bg-panel: #20203a;
  --bg-panel-light: #262648;
  --orange-1: #ff8c00;
  --orange-2: #ffa500;
  --orange-grad: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
  --text: #f5f6fa;
  --text-muted: #b3b6c9;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --max-width: 1140px;
}

/* ===================== RESET ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.2;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary {
  background: var(--orange-grad);
  color: #1a1a2e;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(255, 140, 0, 0.55);
}

/* ===================== SECTION HEADINGS ===================== */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
}
.section-title.center { text-align: center; }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.section-subtitle.center { text-align: center; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(20, 20, 31, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-download)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange-grad);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-download):hover::after { width: 100%; }
.nav-links a:hover { color: var(--orange-2); }

.nav-download {
  background: var(--orange-grad);
  color: #1a1a2e !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 140, 0, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: 0.3s;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("GRUB.png") center / cover no-repeat;
  padding: 100px 24px 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 31, 0.72) 0%, rgba(26, 26, 46, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: heroFade 1s ease both;
}

.hero-logo {
  height: 96px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.hero-tagline {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-btn { font-size: 1.1rem; }

@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== ABOUT ===================== */
.about {
  background: var(--bg-darker);
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-media {
  display: flex;
  justify-content: center;
}
.about-media img {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 20px 50px rgba(255, 140, 0, 0.25));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-text strong { color: var(--text); }

.about-subhead {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.9rem;
  color: var(--orange-2);
}

.about-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-list li {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.about-list li:hover {
  transform: translateY(-3px);
  border-color: var(--orange-1);
}

.about-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-features li {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}
.about-features strong { color: var(--text); }
.feature-dot {
  flex-shrink: 0;
  width: 12px; height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--orange-grad);
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
}

/* ===================== SCREENSHOT CAROUSEL ===================== */
.screenshots {
  background: var(--bg-dark);
  padding: 100px 0;
}

/* Kredensial login default */
.login-info {
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 26px 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.login-info-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--orange-grad);
  color: #1a1a2e;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.login-info-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.login-creds {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 160px;
}

.cred-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cred-value {
  font-family: "Space Grotesk", "Inter", monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--orange-2);
  letter-spacing: 0.02em;
}

.carousel {
  max-width: 820px;
  margin: 0 auto;
}

/* Viewport: clips the sliding track. Fixed height keeps the section compact
   so the content below stays easy to reach. */
.carousel-viewport {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  min-width: 100%;
  text-align: center;
}
.carousel-slide img {
  width: 100%;
  height: 60vh;
  max-height: 460px;
  min-height: 260px;
  object-fit: contain;
  background: #0d0d17;
}

.carousel-caption {
  padding: 14px 16px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-panel-light);
  font-family: "Space Grotesk", sans-serif;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 31, 0.6);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 3;
}
.carousel-arrow:hover {
  background: var(--orange-grad);
  color: #1a1a2e;
}
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* Dots sit below the viewport (not over the image), so nothing is covered. */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.carousel-dots button {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.carousel-dots button.active {
  background: var(--orange-grad);
  transform: scale(1.25);
}

/* ===================== VIDEO ===================== */
.video {
  background: var(--bg-darker);
  padding: 100px 0;
}

.video-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #0d0d17;
}

.video-caption {
  margin-top: 22px;
  color: var(--text-muted);
}

/* ===================== TEAM ===================== */
.team {
  background: var(--bg-dark);
  padding: 100px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.team-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange-1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.avatar {
  width: 110px; height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #3a3a55;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  border: 3px solid transparent;
  background-image: linear-gradient(#3a3a55, #3a3a55), var(--orange-grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.team-name {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.team-role {
  color: var(--orange-2);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo img { height: 34px; }
.footer-copy {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
  flex: 1 1 320px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--orange-2); }

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-media img { max-width: 240px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 240px;
    padding: 26px;
    background: rgba(20, 20, 31, 0.97);
    backdrop-filter: blur(12px);
    transform: translateX(110%);
    transition: transform 0.32s ease;
    height: calc(100vh - 72px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open { transform: translateX(0); }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .about-list li { font-size: 0.82rem; padding: 6px 13px; }
  .carousel-arrow { width: 38px; height: 38px; }
}
