/* =====================================================================
   AI Collaboration Academy — Brand Layer
   Design tokens, circuit-line motif, glow effects, motion.
   Layout utilities come from Tailwind (Play CDN); this file owns the brand.
   ===================================================================== */

:root {
  /* Brand palette */
  --gold: #E7B84A;
  --glow: #FFC94D;
  --silver: #F6F6F7;
  --bg: #080808;
  --line: #3A3A3A;

  /* Derived surfaces */
  --surface-1: #0e0e0f;
  --surface-2: #141416;
  --surface-3: #1b1b1e;
  --border: rgba(246, 246, 247, 0.10);
  --border-gold: rgba(231, 184, 74, 0.35);

  /* Text */
  --text: #F6F6F7;
  --text-muted: #a7a7ac;
  --text-dim: #6f6f76;

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #FFC94D 0%, #E7B84A 45%, #c99a2e 100%);
  --grad-wordmark: linear-gradient(90deg, #FFC94D 0%, #E7B84A 40%, #F6F6F7 60%, #ffffff 100%);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

::selection { background: rgba(231, 184, 74, 0.28); color: #fff; }

/* ---------------------------------------------------------------------
   Circuit-line / glow background
   --------------------------------------------------------------------- */
.circuit-bg { position: relative; isolation: isolate; }
.circuit-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.glow-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}
.glow-gold { background: radial-gradient(circle, rgba(255, 201, 77, 0.22), transparent 70%); }
.glow-silver { background: radial-gradient(circle, rgba(246, 246, 247, 0.10), transparent 70%); }

/* ---------------------------------------------------------------------
   Typography helpers
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow.no-line::before { display: none; }

.text-gradient-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-wordmark {
  background: var(--grad-wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.btn svg { transition: transform 0.25s var(--ease-out); }

.btn-primary {
  background: var(--grad-gold);
  color: #1a1205;
  box-shadow: 0 8px 30px -8px rgba(231, 184, 74, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(255, 201, 77, 0.65); }
.btn-primary:hover svg { transform: translate(3px, -3px); }

.btn-ghost {
  background: rgba(246, 246, 247, 0.04);
  color: var(--silver);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-gold); background: rgba(231, 184, 74, 0.06); transform: translateY(-2px); }

.btn-dark {
  background: #000;
  color: var(--silver);
  border: 1px solid var(--border);
}
.btn-dark:hover { border-color: var(--border-gold); transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   Cards & surfaces
   --------------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(231, 184, 74, 0.12);
}
.glass {
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}
.hairline { border-color: var(--border); }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: radial-gradient(circle at 30% 25%, rgba(255, 201, 77, 0.18), rgba(231, 184, 74, 0.06));
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(246, 246, 247, 0.03);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Divider line with gold node (echoes logo's spark) */
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  position: relative;
}

/* ---------------------------------------------------------------------
   Navbar
   --------------------------------------------------------------------- */
.nav-shell { transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), backdrop-filter 0.3s; }
.nav-scrolled {
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-link {
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.35rem 0;
}
.nav-link:hover { color: var(--silver); }
.nav-link.active { color: var(--silver); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
}

/* Desktop: perfectly center the nav links between the logo and the action buttons.
   Equal side columns (minmax 0 1fr) keep the middle group in the true center
   regardless of logo vs. button widths. */
@media (min-width: 1024px) {
  #nav > nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  #nav > nav > a { justify-self: start; }
  #nav > nav > div:first-of-type { justify-self: center; }
  #nav > nav > div:last-of-type { justify-self: end; }
}

/* Mobile menu */
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.mobile-menu.open { max-height: 560px; }

/* ---------------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card-hover:hover { transform: none !important; }
}

/* ---------------------------------------------------------------------
   Media frame (headshot / video style)
   --------------------------------------------------------------------- */
.media-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9);
}
.play-btn {
  width: 4.5rem; height: 4.5rem;
  display: grid; place-items: center;
  border-radius: 9999px;
  background: var(--grad-gold);
  color: #1a1205;
  box-shadow: 0 0 0 8px rgba(231,184,74,0.15), 0 12px 30px -8px rgba(255,201,77,0.6);
  transition: transform 0.25s var(--ease-out);
}
.play-btn:hover { transform: scale(1.06); }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.field {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field::placeholder { color: var(--text-dim); }
.field:focus {
  outline: none;
  border-color: var(--border-gold);
  box-shadow: 0 0 0 3px rgba(231, 184, 74, 0.15);
}
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* Accordion */
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out); }
.acc-item.open .acc-body { max-height: 320px; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-icon { transition: transform 0.3s var(--ease-out); }

/* Marquee for trust strip */
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Utility */
.container-x { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.link-gold { color: var(--gold); text-decoration: none; transition: color 0.2s; }
.link-gold:hover { color: var(--glow); }
.divider-dot { width: 3px; height: 3px; border-radius: 9999px; background: var(--gold); display: inline-block; }
