/* ─────────────────────────────────────────────
   AEOIdentity — Global Stylesheet
   ───────────────────────────────────────────── */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  --white:        #F8F8F6;
  --ink:          #0E0E0E;
  --ink-soft:     #1A1A1A;
  --blue:         #2563EB;
  --blue-light:   #EFF4FF;
  --green:        #10B981;
  --green-light:  #ECFDF5;
  --amber:        #D97706;
  --red:          #DC2626;
  --gray:         #6B7280;
  --gray-light:   #F3F4F6;
  --border:       #E5E7EB;
  --nav-height:   72px;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:    0 20px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ───────────────────────────────────────────
   HEADER / NAV
   ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logo */
.site-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0;
  user-select: none;
}

.site-logo .logo-aeo  { color: #fff; }
.site-logo .logo-identity { color: var(--blue); }

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* CTA button in nav */
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5625rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  margin-left: 0.75rem;
}

.nav-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Page offset for fixed header */
.page-body {
  padding-top: var(--nav-height);
}

/* ───────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
}

.footer-logo .logo-aeo { color: #fff; }
.footer-logo .logo-identity { color: var(--blue); }

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.8125rem;
}

/* ───────────────────────────────────────────
   TYPOGRAPHY UTILITIES
   ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.eyebrow.green {
  background: rgba(16,185,129,0.15);
  color: var(--green);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%    { opacity:.5; transform:scale(1.4); }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 560px;
}

/* ───────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 0.875rem 2rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--gray-light);
}

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--blue-light);
}

/* ───────────────────────────────────────────
   SECTION WRAPPERS
   ─────────────────────────────────────────── */
.section {
  padding: 6rem 4rem;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-bg-white   { background: #fff; }
.section-bg-light   { background: var(--gray-light); }
.section-bg-dark    { background: var(--ink); color: #fff; }
.section-bg-blue    { background: var(--blue); color: #fff; }

/* ───────────────────────────────────────────
   PAGE HERO (shared)
   ─────────────────────────────────────────── */
.page-hero {
  padding: 7rem 4rem 5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.page-hero p {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ───────────────────────────────────────────
   CARDS
   ─────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ───────────────────────────────────────────
   BADGES
   ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
}

.badge-blue   { background: var(--blue-light); color: var(--blue); }
.badge-green  { background: var(--green-light); color: #059669; }
.badge-amber  { background: #FFF7ED; color: var(--amber); }
.badge-red    { background: #FEF2F2; color: var(--red); }
.badge-gray   { background: var(--gray-light); color: var(--gray); }

/* ───────────────────────────────────────────
   SCROLL REVEAL
   ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ───────────────────────────────────────────
   CTA BAND (shared closing band)
   ─────────────────────────────────────────── */
.cta-band {
  padding: 5rem 4rem;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-band p {
  font-size: 1.0625rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ───────────────────────────────────────────
   WAITLIST MODAL — included globally
   ─────────────────────────────────────────── */
.wl-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(14,14,14,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.wl-overlay.open { opacity: 1; visibility: visible; }

.wl-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  width: 100%; max-width: 480px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.wl-overlay.open .wl-card { transform: translateY(0) scale(1); }

.wl-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-light); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 1.125rem; line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.wl-close:hover { background: var(--border); color: var(--ink); }

.wl-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--blue-light); color: var(--blue);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  margin-bottom: 1.25rem;
}
.wl-eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--blue); border-radius: 50%;
  animation: pulse 2s infinite;
}

.wl-heading {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.1;
  color: var(--ink); margin-bottom: 0.625rem;
}
.wl-sub { font-size: 0.9375rem; color: var(--gray); line-height: 1.65; margin-bottom: 2rem; }
.wl-form { display: flex; flex-direction: column; gap: 1rem; }
.wl-field { display: flex; flex-direction: column; gap: 0.375rem; }
.wl-label { font-size: 0.8125rem; font-weight: 600; color: #374151; }
.wl-input {
  padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-family: var(--font-body); color: var(--ink);
  background: var(--gray-light); outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.wl-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.wl-input::placeholder { color: #9CA3AF; }
.wl-input.error { border-color: var(--red); }
.wl-select {
  padding: 0.75rem 2.5rem 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-family: var(--font-body); color: var(--ink);
  background: var(--gray-light); outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center;
  transition: border-color 0.2s;
}
.wl-select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.wl-submit {
  padding: 0.875rem 1.5rem; background: var(--blue); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700;
  font-family: var(--font-body); cursor: pointer; margin-top: 0.25rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.wl-submit:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.36); }
.wl-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.wl-spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%;
  animation: wlSpin 0.6s linear infinite; display: none;
}
.wl-submit.loading .wl-spinner { display: block; }
.wl-submit.loading .wl-btn-text { display: none; }
@keyframes wlSpin { to { transform: rotate(360deg); } }
.wl-error-msg {
  font-size: 0.8125rem; color: var(--red); padding: 0.625rem 1rem;
  background: #FEF2F2; border-radius: 6px; border: 1px solid #FECACA; display: none;
}
.wl-error-msg.show { display: block; }
.wl-fine { font-size: 0.75rem; color: #9CA3AF; text-align: center; margin-top: 0.75rem; line-height: 1.5; }
.wl-success { text-align: center; padding: 1rem 0; display: none; flex-direction: column; align-items: center; }
.wl-success.show { display: flex; }
.wl-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-light); margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; animation: wlPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes wlPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wl-success h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 0.625rem; }
.wl-success p { font-size: 0.9375rem; color: var(--gray); line-height: 1.65; max-width: 340px; margin-bottom: 1.75rem; }
.wl-success-close {
  padding: 0.75rem 2rem; background: var(--ink); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 0.9375rem; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; transition: background 0.2s;
}
.wl-success-close:hover { background: var(--blue); }
.wl-proof { display: flex; align-items: center; gap: 0.625rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-light); }
.wl-avatars { display: flex; }
.wl-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.wl-avatar:first-child { margin-left: 0; }
.wl-proof-text { font-size: 0.8125rem; color: var(--gray); line-height: 1.4; }
.wl-proof-text strong { color: var(--ink); }

/* ───────────────────────────────────────────
   CODE BLOCKS (docs / inline)
   ─────────────────────────────────────────── */
.code-wrap { background: #0E0E0E; border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.code-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-lang { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; }
.code-copy { font-size: 0.75rem; color: rgba(255,255,255,0.4); background: none; border: none; cursor: pointer; font-family: var(--font-body); transition: color 0.2s; }
.code-copy:hover { color: #fff; }
pre { padding: 1.5rem 1.25rem; overflow-x: auto; margin: 0; }
code { font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.75; color: #e2e8f0; }
.ck { color: #93c5fd; }
.cs { color: #86efac; }
.cn { color: #fcd34d; }
.cc { color: #64748b; }
.cm { color: #f0abfc; }
.cp { color: #fb923c; }

/* inline code */
p code, li code { background: var(--gray-light); color: #dc2626; font-family: var(--font-mono); font-size: 0.8125rem; padding: 0.2em 0.4em; border-radius: 4px; }

/* ───────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section { padding: 5rem 3rem; }
  .site-header { padding: 0 2rem; }
  .site-footer { padding: 2.5rem 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .site-header { padding: 0 1.5rem; }

  .site-nav-wrap {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--ink-soft);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  .site-nav-wrap.open { display: flex; }

  .site-nav { flex-direction: column; align-items: flex-start; gap: 0.125rem; }
  .site-nav a { padding: 0.75rem 0.75rem; width: 100%; font-size: 1rem; }

  .nav-cta { display: block; margin-left: 0; margin-top: 0.75rem; text-align: center; }

  .nav-toggle { display: flex; }

  .section { padding: 4rem 1.5rem; }

  .page-hero { padding: 5rem 1.5rem 3rem; }

  .cta-band { padding: 4rem 1.5rem; }

  .site-footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-nav { gap: 1.25rem; }
}
