/* ==========================================================================
   01. Tokens
   ========================================================================== */
:root {
  --bg: #071220;
  --text: #e6eefc;
  --muted: #a9c1f6;
  --card: #0b1a33;
  --border: #122648;
  --brand: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-300: #93c5fd;
}

/* ==========================================================================
   02. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a {
  color: var(--brand-300);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   03. Header / Desktop Nav
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 18, 32, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand-title {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text);
}

.menu.desktop {
  display: flex;
  gap: 18px;
}

.menu.desktop a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
}

.menu.desktop a:hover {
  background: rgba(255, 255, 255, .06);
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

/* ==========================================================================
   04. Hamburger + Off-canvas Menu
   ========================================================================== */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger svg {
  display: block;
}

.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  visibility: hidden;
}

.offcanvas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .3s ease;
}

.offcanvas-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(80vw, 300px);
  height: 100%;
  background: var(--card);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

.offcanvas-close {
  align-self: flex-end;
  font-size: 28px;
  line-height: 1;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.offcanvas-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.offcanvas-list a {
  padding: 12px;
  border-radius: 8px;
  color: var(--text);
}

.offcanvas-list a:hover {
  background: rgba(255, 255, 255, .06);
}

/* Open state */
body.nav-open {
  overflow: hidden;
}

body.nav-open .offcanvas {
  pointer-events: auto;
  visibility: visible;
}

body.nav-open .offcanvas-backdrop {
  opacity: 1;
}

body.nav-open .offcanvas-panel {
  transform: translateX(0);
}

/* Always show hamburger; hide desktop menu */
.menu.desktop {
  display: none;
}

.hamburger {
  display: inline-flex;
}

/* ==========================================================================
   05. Components (buttons, cards)
   ========================================================================== */
.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(90deg, var(--brand-600), var(--brand));
  color: #fff;
  box-shadow: 0 6px 22px rgba(37, 99, 235, .25);
}

.button.primary:hover {
  filter: brightness(1.08);
}

.card {
  padding: 22px;
}

.card.alt {
  padding: 22px;    
}

h2 {
  margin: 0 0 8px;
}

h3 {
  margin: 0 0 8px;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

.bullets {
  margin: 8px 0 0 18px;
  color: var(--muted);
}

.stack {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   06. Hero (video on desktop, image fallback on mobile)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Background video (desktop only) */
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(110%) contrast(105%) brightness(85%);
  z-index: 0;
}

/* Overlay gradient (always visible) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 70% 20%, rgba(59,130,246,.20), transparent 60%),
    linear-gradient(to bottom, rgba(7,18,32,.10) 0%, rgba(7,18,32,.55) 60%, var(--bg) 100%);
  z-index: 1;
}

/* Mobile fallback background image (hidden by default) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero-fallback.jpg") center/cover no-repeat;
  display: none;
  z-index: 0;
}

/* Hero content (centered text + CTA) */
.hero .center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 16px;
  max-width: 980px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.08;
}

.hero p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}

.hero .cta-wrap {
  margin-top: 6px;
}

/* ================= Mobile Behavior ================= */
@media (max-width: 768px) {
  .hero video {
    display: none;     /* Hide video */
  }
  .hero::after {
    display: block;    /* Show fallback image */
  }
}

/* ==========================================================================
   07.  Split Section (Text + Single Image)
   ========================================================================== */
.split {
  padding: 60px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 800;
}

.split-text p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.split-text .stack {
  margin-top: 20px;
}

.split-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split-image {
    order: -1; /* put image above text on mobile */
  }
}


/* ==========================================================================
   08. Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
}

/* ==========================================================================
   09.  Logo Seamless Conveyor Belt)
   ========================================================================== */
.logos {
  background: var(--bg);
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-scroller {
  width: 100%;
  height: 100px;         /* overall conveyor height */
  overflow: hidden;
  position: relative;
}

#logoTrack {
  position: relative;
  height: 100%;
}

#logoTrack img.logo-img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 180px;   /* logo display size */
  width: auto;
}

/* ==========================================================================
   10. Split Audio Section (AudioGo style)
   ========================================================================== */
.split-audio .split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;   /* ✅ keep right image vertically centered */
}

.split-audio .split-image {
  display: flex;
  justify-content: center;
}

.split-audio .split-image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .split-audio .split-grid {
    grid-template-columns: 1fr;
    align-items: start;   /* don’t center when stacked */
  }

  .split-audio .split-image {
    margin-top: 2rem;
  }
}

.audio-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audio-item {
  display: flex;
  align-items: center;
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.audio-cover img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.audio-meta {
  flex: 1;
  margin-left: 14px;
}

.audio-meta h4 {
  font-size: 16px;
  margin: 0 0 4px;
}

.audio-meta p {
  margin: 0;
  font-size: 13px;
  color: #555;
}

.audio-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.audio-play:hover {
  background: var(--brand-600);
}

.audio-play.playing {
  background: var(--brand-700);
}

.split-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

@media (max-width: 980px) {
  .split-audio .split-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Split wrapper for timeline */
.timeline-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 60px 0;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  margin-left: 60px; /* space for line */
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

/* Timeline item */
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* Circle */
.timeline-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: var(--brand);
  z-index: 1;
  margin-left: 30px;
}

/* Step content */
.timeline-content {
  background: var(--card);
  padding: 16px 20px;
  border-radius: 10px;
  color: var(--text);
}

.timeline-content h4 {
  margin: 0 0 6px;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Mobile collapse */
@media (max-width: 980px) {
  .timeline-split {
    grid-template-columns: 1fr;
  }
  .timeline {
    margin-left: 0;
  }
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Question row */
.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* No hover highlight */
.faq-question:hover {
  background: none;
}

/* Toggle symbol */
.faq-toggle {
  font-size: 22px;
  color: var(--brand);
  flex-shrink: 0; /* keep it on the far right */
  transition: transform 0.2s ease;
}

/* Rotate + into × when open */
.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
}

/* Answer content */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--muted);
}

.faq-answer.open {
  padding: 16px 24px;
  max-height: 300px;
}
