/* ============================================================
   AionX Longevity — V2 design system
   Navy is the room. Gold is the light.
   ============================================================ */

:root {
  /* Deep navy */
  --navy-990: #070B14;
  --navy-950: #10162A;
  --navy-900: #1F2A44;
  --navy-800: #2B3A5C;
  --navy-700: #3D4F78;
  --navy-600: #576797;

  /* Signature gold */
  --gold-700: #8A6C15;
  --gold-600: #A9841C;
  --gold-500: #C9A227;
  --gold-400: #D9B953;
  --gold-300: #E6CD82;
  --gold-100: #F6ECC9;

  /* Neutral grey — navy-tinted */
  --black: #05070D;
  --grey-700: #4E5464;
  --grey-500: #878D9C;
  --grey-300: #C8CCD6;
  --grey-100: #EEF0F3;
  --white: #FFFFFF;

  /* Dark surfaces — a shade lighter, toward navy */
  --surface-page: #0C1322;
  --surface-card: #121B32;
  --surface-featured: #17223F;
  --surface-overlay: #131C34;

  /* White-opacity structure */
  --w03: rgba(255,255,255,0.03);
  --w06: rgba(255,255,255,0.06);
  --w07: rgba(255,255,255,0.07);
  --w08: rgba(255,255,255,0.08);
  --w10: rgba(255,255,255,0.10);
  --w14: rgba(255,255,255,0.14);
  --w22: rgba(255,255,255,0.22);
  --w28: rgba(255,255,255,0.28);
  --w60: rgba(255,255,255,0.60);
  --w78: rgba(255,255,255,0.78);

  /* Semantic — calm */
  --tone-success: #6D9A78;
  --tone-warning: #B8862B;
  --tone-error:   #C46E61;

  /* Type */
  --font-display: 'Jost', 'Futura', sans-serif;
  --font-body: 'Instrument Sans', 'Inter', system-ui, sans-serif;
  --font-editorial: 'Cormorant Garamond', 'Garamond', serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  /* Motion */
  --ease-micro: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-structural: cubic-bezier(0.16, 1, 0.3, 1);
  --t-micro: 240ms;
  --t-structural: 420ms;
  --t-ambient: 900ms;

  /* Layout */
  --max-w: 1280px;
  --gutter: 24px;

  /* Radii */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-xl: 20px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--surface-page);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(201,162,39,0.28); color: var(--white); }

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Type scale ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1.06;
  letter-spacing: 0.005em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}
.heading-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
}
.heading-md {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.heading-sm {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.body-lg { font-size: 17px; line-height: 1.6; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-500);
}

.mono-label {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey-500);
}

.muted { color: var(--w60); }
.muted-strong { color: var(--w78); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 112px 0; }
.section-sm { padding: 80px 0; }

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 48px 0; }
}

/* ---------- Dividers ---------- */
.hairline { border: 0; border-top: 1px solid var(--w10); }

.divider-ceremonial {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.5), transparent);
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,19,34,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--w08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand img { width: 46px; height: 46px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1.2;
}
.wordmark .x { color: var(--gold-500); }
.wordmark small {
  display: block;
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.56em;
  color: var(--w78);
}
.footer .nav-brand img { width: 34px; height: 34px; }
.footer .wordmark { font-size: 15px; }
.footer .wordmark small { font-size: 8.5px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--w78);
  transition: color var(--t-micro) var(--ease-micro);
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
}

.lang-switch a {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--grey-500);
  border: 1px solid var(--w14);
  border-radius: 999px;
  padding: 7px 14px;
  transition: color var(--t-micro) var(--ease-micro), border-color var(--t-micro) var(--ease-micro);
}
.lang-switch a:hover { color: var(--white); border-color: var(--w28); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--t-micro) var(--ease-micro), opacity var(--t-micro) var(--ease-micro);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface-overlay);
    border-bottom: 1px solid var(--w08);
    padding: 8px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-structural) var(--ease-structural),
                opacity var(--t-structural) var(--ease-structural);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--w06); }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta { margin-top: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--t-micro) var(--ease-micro),
              border-color var(--t-micro) var(--ease-micro),
              color var(--t-micro) var(--ease-micro),
              box-shadow var(--t-micro) var(--ease-micro);
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-gold:hover { background: var(--gold-400); }
.btn-secondary {
  background: transparent;
  border-color: var(--w22);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--w06);
  border-color: rgba(201,162,39,0.5);
  box-shadow: 0 0 24px rgba(201,162,39,0.06);
}
.btn-ghost {
  background: none;
  color: var(--w78);
  padding: 14px 8px;
}
.btn-ghost:hover { color: var(--white); }
.btn .arrow { transition: transform var(--t-micro) var(--ease-micro); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--w08);
  border-radius: var(--r-lg);
  padding: 36px;
  transition: transform var(--t-micro) var(--ease-micro),
              border-color var(--t-micro) var(--ease-micro),
              box-shadow var(--t-micro) var(--ease-micro);
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,162,39,0.45);
  box-shadow: 0 0 40px rgba(201,162,39,0.08);
}
.card-featured {
  background: var(--surface-featured);
  border-color: rgba(201,162,39,0.45);
  box-shadow: 0 0 40px rgba(201,162,39,0.08);
}

/* ---------- Tags & badges ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--w14);
  color: var(--w78);
}
.tag-gold {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
  font-weight: 400;
}

/* ---------- Lists ---------- */
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: var(--w78);
  font-size: 15px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 15px;
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--w60);
  border-bottom: 1.5px solid var(--w60);
  transform: rotate(-45deg) translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--w08);
  padding: 64px 0 40px;
  background: var(--surface-page);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--grey-500);
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer ul a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--w60);
  transition: color var(--t-micro) var(--ease-micro);
}
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--w06);
}
.footer-bottom p { font-size: 13px; color: var(--grey-500); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-ambient) var(--ease-structural),
              transform var(--t-ambient) var(--ease-structural);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }
.reveal-d4 { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: opacity 200ms linear; transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}

/* ---------- Editorial quote ---------- */
.pull-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.45;
  color: var(--white);
}

/* ---------- Forms ---------- */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--w78);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--w03);
  border: 1px solid var(--w14);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color var(--t-micro) var(--ease-micro),
              box-shadow var(--t-micro) var(--ease-micro);
}
.field input::placeholder, .field textarea::placeholder { color: var(--grey-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.14);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey-500) 50%), linear-gradient(135deg, var(--grey-500) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--surface-overlay); color: var(--white); }

/* ---------- Write-to-us section (shared) ---------- */
.write-section {
  border-top: 1px solid var(--w08);
  background: var(--surface-card);
}
.write-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.write-grid h2 { margin: 22px 0 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 12.5px; color: var(--grey-500); margin-top: 16px; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--w60); }
@media (max-width: 900px) {
  .write-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Stat ---------- */
.stat-value {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--white);
  line-height: 1.15;
}
.stat-label {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--grey-500);
  margin-top: 8px;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 208px 0 96px; position: relative; overflow: hidden; }
.page-hero h1.display-xl,
.showroom-hero h1.display-xl {
  font-size: clamp(52px, 8.6vw, 112px);
}
@media (max-width: 768px) { .page-hero { padding: 152px 0 56px; } }

/* Soft ambient glow — navy only, no gold wash */
.glow {
  position: absolute;
  pointer-events: none;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,58,92,0.35) 0%, transparent 65%);
  filter: blur(20px);
}
