/* ═══════════════════════════════════════════════════════════════
   AIZENOR — corporate landing (v1, 2026-11-18)
   Single source of truth for site styling. Zero JS on this page.
   Base states = final states; keyframes only define FROM — so
   reduced-motion / no-support / no-JS all render the finished page.
   ═══════════════════════════════════════════════════════════════ */

/* Brand display face — self-hosted variable font, latin subset, 22KB.
   font-display: block on a preloaded same-origin file: no FOUT flash on dark. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: block;
}
/* Hero display face — Switzer, Fontshare ITF Free Font License
   (see ITF-FFL-Switzer.txt). Variable wght 100-900, latin subset,
   18KB. Swiss-neutral per founder pick (contact sheet #3, 2026-11-19). */
@font-face {
  font-family: "Switzer Display";
  src: url("/assets/fonts/SwitzerDisplay.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #0A0C10;
  --bg-raise: #10131A;
  --bg-raise-2: #141824;
  --text: #EDEEF2;
  --text-dim: #9BA0AC;
  --hairline: rgba(235, 238, 255, 0.14);
  --teal: #5FD4B0;
  --violet: #8E8AE8;
  --rose: #E8A0B0;
  --gold: #E9C46A;
  --radius: 14px;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Switzer Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Static grain — one fixed layer, tiny tile, no animation */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("/assets/grain.svg");
  background-size: 240px 240px;
}

::selection { background: rgba(95, 212, 176, 0.28); color: var(--text); }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 1060px; }
.faq details { max-width: 780px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.section-sub, .lede { color: var(--text-dim); max-width: 62ch; }
.lede { font-size: 1.15rem; }

/* ═══ Header ═══ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.3em;
  translate: 0 1px;
}

.site-head nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-head nav a { color: #C9CDD8; font-size: 0.95rem; }
.site-head nav a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  color: var(--text) !important;
  border: 1px solid rgba(235, 238, 255, 0.40);
  border-radius: 999px;
  padding: 8px 18px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover {
  border-color: rgba(235, 238, 255, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ═══ Hero ═══ */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  border-bottom: 1px solid var(--hairline);
}

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Ocean dusk: indigo night sky easing down into deep water, so the
     particles sit on living color instead of flat black */
  background: linear-gradient(180deg,
    #0A0C10 0%,
    #0B1120 34%,
    #0D1A2E 60%,
    #11253B 82%,
    #143049 100%);
}

.glow {
  position: absolute;
  inset: 0;
  background:
    /* warm horizon: gold melting into rose, right where the surf rolls */
    radial-gradient(90% 55% at 50% 108%,
      rgba(233, 196, 106, 0.20) 0%,
      rgba(232, 160, 176, 0.12) 38%,
      transparent 68%),
    /* violet and teal in the upper sky, faint as starlight */
    radial-gradient(70% 50% at 82% -8%, rgba(142, 138, 232, 0.14), transparent 60%),
    radial-gradient(60% 45% at 12% 6%, rgba(95, 212, 176, 0.10), transparent 55%);
  animation: breathe 14s ease-in-out infinite alternate;
}

/* The Tide — canvas particle wave, always moving (see /assets/hero.js) */
.wave {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

/* (ribbons removed in v2 — the Tide canvas carries the motion) */

/* (ensō + sparks retired in v2 — see the Tide canvas) */

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 96px 28px 140px;
  max-width: 900px;
}
/* Words first: a soft dark scrim so the animation never competes with type */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -6% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(10, 12, 16, 0.72) 45%, rgba(10, 12, 16, 0) 98%);
  pointer-events: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
  border: 1px solid rgba(235, 238, 255, 0.24);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(16, 19, 26, 0.72);
  margin-bottom: 30px;
}
.status-text { text-wrap: balance; text-align: center; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(233, 196, 106, 0.14);
}

.tagline {
  font-family: "Switzer Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.8rem, 8.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.tagline .w { display: inline-block; animation: word-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.tagline .w:nth-child(2) { animation-delay: 0.12s; }
.tagline .w:nth-child(3) { animation-delay: 0.24s; }
.tagline .accent {
  background: linear-gradient(92deg, var(--teal), var(--violet) 60%, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  color: #C9CDD8;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-weight: 300;
  max-width: 58ch;
  margin: 24px auto 0;
  animation: word-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
  animation: word-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both;
}
.cta-note {
  margin-top: 22px;
  font-size: 0.94rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  animation: word-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.65s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: var(--text); color: #0B0D12; }
.btn.primary:hover { background: #FFFFFF; }
.btn .arr { transition: translate 0.25s ease; }
.btn.primary:hover .arr { translate: 3px 0; }
.btn.ghost {
  color: var(--text);
  border: 1px solid rgba(235, 238, 255, 0.36);
}
.btn.ghost:hover { border-color: rgba(235, 238, 255, 0.5); }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 1px solid rgba(235, 238, 255, 0.42);
  border-radius: 999px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--text);
  translate: -50% 0;
  animation: hint 2.2s ease-in-out infinite;
}

/* ═══ Sections ═══ */
.dna { padding: 130px 0 110px; border-bottom: 1px solid var(--hairline); }

.products { padding: 120px 0; border-bottom: 1px solid var(--hairline); }
.products h2, .approach h2, .faq h2 { margin-bottom: 10px; }
.section-sub { margin-bottom: 54px; }

.card {
  background: linear-gradient(180deg, var(--bg-raise), rgba(16, 19, 26, 0.6));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: rgba(235, 238, 255, 0.2); transform: translateY(-2px); }

.card.feature {
  position: relative;
  margin-bottom: 26px;
  overflow: hidden;
}
.card.feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.card.feature:hover { transform: none; }

.card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.45rem; letter-spacing: -0.01em; }

.chip {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  border: 1px solid rgba(235, 238, 255, 0.22);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.chip.live { color: var(--gold); border-color: rgba(233, 196, 106, 0.35); background: rgba(233, 196, 106, 0.08); }

.card-body { color: var(--text-dim); max-width: 66ch; }
.card.feature .card-body { color: var(--text); font-size: 1.12rem; }

.card-tech {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-cta { margin-top: 22px; }

.card-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

/* ═══ Approach ═══ */
.approach { padding: 120px 0; border-bottom: 1px solid var(--hairline); }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 54px;
}
.pillar {
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
}
.pillar-word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 12px;
}
/* mapping matches the hero: Intelligence teal, Intuition violet, Impact rose
   (in the hero, Impact. carries the gradient blend of all three) */
.pillar:nth-child(1) .pillar-word { color: var(--teal); }
.pillar:nth-child(2) .pillar-word { color: var(--violet); }
.pillar:nth-child(3) .pillar-word { color: var(--rose); }
.pillar p { color: var(--text-dim); font-size: 0.98rem; }

/* ═══ FAQ ═══ */
.faq { padding: 120px 0 140px; }

.faq details {
  border-top: 1px solid var(--hairline);
  padding: 22px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.3s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--teal); }
.faq summary:hover { color: var(--teal); }
.faq details p { color: var(--text-dim); margin-top: 14px; max-width: 62ch; }

/* ═══ Footer ═══ */
.site-foot { border-top: 1px solid var(--hairline); background: rgba(10, 12, 16, 0.6); }

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.foot-tag { color: var(--text-dim); font-size: 0.95rem; margin-top: 14px; }

.foot-h {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-col a { color: var(--text-dim); font-size: 0.95rem; }
.foot-col a:hover { color: var(--text); text-decoration: none; }

.foot-base {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  padding-bottom: 26px;
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
}
.foot-home {
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* ═══ Keyframes — FROM-states only; base = finished state ═══ */
@keyframes word-rise {
  from { opacity: 0.35; transform: translateY(16px); filter: blur(8px); }
}
@keyframes breathe {
  from { opacity: 0.75; }
}
@keyframes hint {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(9px); opacity: 0.15; }
}

/* Scroll-in reveals: progressive enhancement only */
@supports (animation-timeline: view()) {
  .rise {
    animation: word-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
}

/* ═══ Reduced motion: still, complete, elegant ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Scroll-timeline animations ignore duration — kill them outright */
  .rise { animation: none !important; }
}

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .enso { opacity: 0.35; }
}

@media (max-width: 720px) {
  .site-head { flex-wrap: nowrap; row-gap: 0; padding: 10px 18px; gap: 12px; }
  .site-head nav { width: auto; order: 0; margin-left: auto; gap: 0; }
  .site-head nav a:not(.nav-cta) { display: none; }
  .site-head .nav-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; }
  .br-wide { display: none; }
  .faq { padding: 80px 0 100px; }
  .wrap { padding: 0 20px; }
  .card { padding: 26px 24px 24px; }
  .card-pair { grid-template-columns: 1fr; }
  .hero { min-height: calc(100svh - 58px); }
  .hero-inner { padding: 56px 20px 64px; }
  .dna, .products, .approach { padding-top: 72px; padding-bottom: 64px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .scroll-hint { display: none; }
}
