/* ══════════════════════════════════════════════════════════════
   HOKKO AI: Vitrine futuriste (hors intro)
   ══════════════════════════════════════════════════════════════ */

:root {
  --hai-mono: 'JetBrains Mono', monospace;
  --hai-void: #050810;
  --hai-glass: rgba(8, 14, 28, 0.72);
}

/* ── App shell ── */
.hai-app { opacity: 0; }

body.is-revealed .hai-app {
  animation: hai-app-in 0.55s ease forwards;
}

@keyframes hai-app-in { to { opacity: 1; } }

@keyframes hai-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hai-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes hai-spin {
  to { transform: rotate(360deg); }
}

@keyframes hai-spin-rev {
  to { transform: rotate(-360deg); }
}

@keyframes hai-pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes hai-border-spin {
  to { transform: rotate(360deg); }
}

@keyframes hai-aurora {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33% { transform: translate(3%, -2%) scale(1.05); opacity: 0.7; }
  66% { transform: translate(-2%, 2%) scale(0.98); opacity: 0.55; }
}

@keyframes hai-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes hai-dot-orbit {
  to { transform: rotate(360deg); }
}

/* ── Background ── */
.hai-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--hai-void);
}

#haiNeuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hai-bg__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(45, 142, 255, 0.015) 2px,
    rgba(45, 142, 255, 0.015) 4px
  );
  opacity: 0.6;
}

.hai-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 30%, rgba(5, 8, 16, 0.85) 100%);
}

.hai-bg__floor {
  position: absolute;
  bottom: -20%;
  left: -20%;
  right: -20%;
  height: 55%;
  background:
    linear-gradient(rgba(45, 142, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 142, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(68deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, #000 20%, transparent 85%);
  opacity: 0.35;
}

.hai-bg__aurora {
  position: absolute;
  top: -20%;
  left: 20%;
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(45, 142, 255, 0.12), transparent 65%);
  filter: blur(40px);
  animation: hai-aurora 14s ease-in-out infinite;
}

.hai-scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--hai-blue), var(--hai-gr));
  box-shadow: 0 0 12px rgba(45, 142, 255, 0.6);
}

/* ── Nav ── */
.hai-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(45, 142, 255, 0.12);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, background 0.25s;
}

body.is-revealed .hai-nav {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

.hai-nav.is-scrolled {
  background: rgba(3, 6, 12, 0.95);
  border-bottom-color: rgba(45, 142, 255, 0.2);
}

.hai-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--hai-wh);
  flex-shrink: 0;
}

.hai-nav__brand img { height: 30px; width: auto; }

.hai-nav__brand-text {
  font-family: var(--hai-fft);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hai-nav__brand-text span { color: var(--hai-blue); }

.hai-nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  justify-self: center;
}

.hai-nav__links a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--hai-mu);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}

.hai-nav__idx {
  font-family: var(--hai-mono);
  font-size: 0.62rem;
  color: var(--hai-blue);
  opacity: 0.7;
}

.hai-nav__links a:hover {
  color: var(--hai-wh);
  background: rgba(45, 142, 255, 0.1);
}

.hai-nav__end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: end;
}

.hai-nav__studio {
  color: var(--hai-mu);
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--hai-bdr);
  transition: border-color 0.2s, color 0.2s;
}

.hai-nav__studio:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--hai-wh);
}

.hai-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--hai-blue), #1a6fd4);
  color: var(--hai-wh);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(45, 142, 255, 0.25);
  transition: transform 0.15s, box-shadow 0.2s;
}

.hai-nav__cta:hover {
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(45, 142, 255, 0.4);
}

/* ── Layout ── */
.hai-main { position: relative; z-index: 1; }

.hai-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.hai-sec {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.hai-sec--wide .hai-wrap { max-width: 1280px; }

.hai-sec-head { margin-bottom: 2.75rem; }

.hai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--hai-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--hai-bl);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hai-eyebrow__line {
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--hai-blue), transparent);
}

.hai-eyebrow--center {
  justify-content: center;
  width: 100%;
}

.hai-h2 {
  font-family: var(--hai-fft);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hai-lead {
  color: var(--hai-mu);
  font-weight: 300;
  line-height: 1.8;
  max-width: 580px;
  font-size: 1.02rem;
}

.hai-lead--wide { max-width: 640px; }

/* ── Hero split ── */
.hai-hero {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
  position: relative;
}

.hai-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hai-hero__copy { text-align: left; }

.hai-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(45, 142, 255, 0.3);
  background: rgba(45, 142, 255, 0.06);
  font-family: var(--hai-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hai-bl);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

body.is-revealed .hai-hero__badge {
  animation: hai-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.hai-hero__badge-dot {
  display: none;
}

.hai-hero h1 {
  font-family: var(--hai-fft);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
}

body.is-revealed .hai-hero h1 {
  animation: hai-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.hai-hero h1 .grad {
  background: linear-gradient(120deg, var(--hai-blue) 0%, var(--hai-bl) 40%, var(--hai-gr) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hai-hero__sub {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--hai-mu);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

body.is-revealed .hai-hero__sub {
  animation: hai-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hai-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
}

body.is-revealed .hai-hero__acts {
  animation: hai-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

/* Neural core visual */
.hai-hero__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92);
}

body.is-revealed .hai-hero__core {
  animation: hai-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.hai-core {
  position: relative;
  width: min(380px, 42vw);
  height: min(380px, 42vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hai-core__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45, 142, 255, 0.2);
}

.hai-core__ring--1 {
  inset: 8%;
  border-style: dashed;
  animation: hai-spin 24s linear infinite;
}

.hai-core__ring--2 {
  inset: 18%;
  border-color: rgba(45, 200, 154, 0.25);
  animation: hai-spin-rev 18s linear infinite;
}

.hai-core__ring--3 {
  inset: 28%;
  border-color: rgba(45, 142, 255, 0.35);
  animation: hai-spin 12s linear infinite;
}

.hai-core__hex {
  position: absolute;
  inset: 22%;
  background: rgba(45, 142, 255, 0.04);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(45, 142, 255, 0.15);
}

.hai-core__orb {
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--hai-bl), var(--hai-blue) 50%, #0a3d7a);
  box-shadow:
    0 0 40px rgba(45, 142, 255, 0.5),
    0 0 80px rgba(45, 142, 255, 0.2),
    inset 0 -4px 12px rgba(0, 0, 0, 0.3);
  animation: hai-pulse-glow 3s ease-in-out infinite;
}

.hai-core__node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hai-bl);
  box-shadow: 0 0 12px var(--hai-blue);
}

.hai-core__node--1 { top: 12%; left: 50%; margin-left: -4px; }
.hai-core__node--2 { top: 30%; right: 14%; }
.hai-core__node--3 { bottom: 30%; right: 14%; }
.hai-core__node--4 { bottom: 12%; left: 50%; margin-left: -4px; }
.hai-core__node--5 { bottom: 30%; left: 14%; }
.hai-core__node--6 { top: 30%; left: 14%; }

.hai-core__label {
  margin-top: 1.25rem;
  font-family: var(--hai-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hai-mu);
  text-align: center;
}

.hai-core__label span { color: var(--hai-bl); display: block; margin-bottom: 0.2rem; }

.hai-core__label em {
  font-style: normal;
  color: var(--hai-gr);
  font-size: 0.58rem;
}

.hai-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hai-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hai-mu);
  opacity: 0;
}

.hai-hero__scroll span {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--hai-blue), transparent);
}

body.is-revealed .hai-hero__scroll {
  animation: hai-rise 0.6s ease 0.55s forwards, hai-bob 2.5s ease-in-out 1.2s infinite;
}

/* ── Buttons ── */
.hai-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.65rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.hai-btn--lg { padding: 1rem 2rem; font-size: 0.92rem; }

.hai-btn--solid {
  background: linear-gradient(135deg, var(--hai-blue), #1a6fd4);
  color: var(--hai-wh);
  box-shadow: 0 4px 24px rgba(45, 142, 255, 0.3);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.hai-btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45, 142, 255, 0.45);
}

.hai-btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: hai-btn-shine 4s ease infinite;
}

@keyframes hai-btn-shine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.hai-btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--hai-wh);
  border: 1px solid rgba(45, 142, 255, 0.25);
  backdrop-filter: blur(8px);
}

.hai-btn--ghost:hover {
  border-color: rgba(45, 142, 255, 0.5);
  background: rgba(45, 142, 255, 0.08);
}

/* ── Stats ── */
.hai-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(45, 142, 255, 0.12);
  border-top: 1px solid rgba(45, 142, 255, 0.15);
  border-bottom: 1px solid rgba(45, 142, 255, 0.15);
  max-width: 1200px;
  margin: 0 auto;
}

.hai-stat {
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(12px);
}

.hai-stat__frame {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(45, 142, 255, 0.2);
  margin-bottom: 0.5rem;
}

.hai-stat__n {
  font-family: var(--hai-fft);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--hai-wh), var(--hai-bl));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.hai-stat__l {
  font-family: var(--hai-mono);
  font-size: 0.62rem;
  color: var(--hai-mu);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ── Agent panels (Milo / Nova) ── */
.hai-panels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hai-panel {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hai-panel__border {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, var(--hai-blue), transparent 30%);
  animation: hai-border-spin 6s linear infinite;
  opacity: 0.5;
}

.hai-panel--nova .hai-panel__border {
  background: conic-gradient(from 0deg, transparent, var(--hai-gr), transparent 30%);
}

.hai-panel:hover { transform: translateY(-4px); }
.hai-panel:hover .hai-panel__border { opacity: 0.85; }

.hai-panel__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 2.25rem;
  background: rgba(6, 10, 20, 0.92);
  border-radius: 19px;
  backdrop-filter: blur(16px);
}

.hai-panel__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.hai-panel__halo {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 142, 255, 0.2), transparent 70%);
  animation: hai-pulse-glow 3s ease infinite;
}

.hai-panel--nova .hai-panel__halo {
  background: radial-gradient(circle, rgba(45, 200, 154, 0.18), transparent 70%);
}

.hai-panel__avatar {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(45, 142, 255, 0.35));
}

.hai-panel__avatar--nova {
  filter: drop-shadow(0 8px 24px rgba(45, 200, 154, 0.35)) hue-rotate(140deg) saturate(1.1);
}

.hai-panel__orbit-dots {
  position: absolute;
  inset: 0;
  animation: hai-dot-orbit 16s linear infinite;
}

.hai-panel__orbit-dots i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hai-bl);
  box-shadow: 0 0 6px var(--hai-blue);
}

.hai-panel__orbit-dots i:nth-child(1) { top: 15%; left: 50%; }
.hai-panel__orbit-dots i:nth-child(2) { bottom: 20%; right: 18%; }
.hai-panel__orbit-dots i:nth-child(3) { bottom: 25%; left: 15%; }

.hai-panel__id {
  font-family: var(--hai-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--hai-blue);
  opacity: 0.8;
  display: block;
  margin-bottom: 0.35rem;
}

.hai-panel--nova .hai-panel__id { color: var(--hai-gr); }

.hai-panel__name {
  font-family: var(--hai-fft);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.hai-panel__ver {
  font-family: var(--hai-mono);
  font-size: 0.68rem;
  color: var(--hai-bl);
  display: block;
  margin-bottom: 1rem;
}

.hai-panel--nova .hai-panel__ver { color: var(--hai-gr); }

.hai-panel__body p {
  color: var(--hai-mu);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.hai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hai-tag {
  font-family: var(--hai-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(45, 142, 255, 0.08);
  border: 1px solid rgba(45, 142, 255, 0.22);
  color: var(--hai-bl);
}

.hai-panel--nova .hai-tag {
  background: rgba(45, 200, 154, 0.08);
  border-color: rgba(45, 200, 154, 0.22);
  color: var(--hai-gr);
}

/* ── Bento services ── */
.hai-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hai-bento__cell {
  position: relative;
  padding: 1.75rem;
  background: rgba(8, 12, 24, 0.75);
  border: 1px solid rgba(45, 142, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
}

.hai-bento__cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 142, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.hai-bento__cell:hover {
  border-color: rgba(45, 142, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(45, 142, 255, 0.1);
}

.hai-bento__cell:hover::before { opacity: 1; }

.hai-bento__cell--a { grid-column: span 6; }
.hai-bento__cell--b { grid-column: span 6; }
.hai-bento__cell--c { grid-column: span 5; }
.hai-bento__cell--d { grid-column: span 7; }

.hai-bento__glyph {
  width: 36px;
  height: 36px;
  color: var(--hai-blue);
  margin-bottom: 1.1rem;
  opacity: 0.85;
}

.hai-bento__glyph svg { width: 100%; height: 100%; }

.hai-bento__cell h3 {
  font-family: var(--hai-fft);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hai-bento__cell p {
  font-size: 0.86rem;
  color: var(--hai-mu);
  line-height: 1.65;
  max-width: 420px;
}

.hai-bento__idx {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--hai-mono);
  font-size: 0.58rem;
  color: rgba(45, 142, 255, 0.35);
  letter-spacing: 0.1em;
}

/* ── Neural path (approche) ── */
.hai-sec--path {
  background: linear-gradient(180deg, transparent, rgba(45, 142, 255, 0.03), transparent);
}

.hai-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hai-path__track {
  position: relative;
  padding-left: 1.5rem;
}

.hai-path__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hai-path__beam {
  position: absolute;
  left: 5px;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--hai-blue), var(--hai-gr));
  box-shadow: 0 0 8px rgba(45, 142, 255, 0.5);
  transition: height 0.15s ease-out;
}

.hai-path__step {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hai-path__step:last-child { border-bottom: none; }

.hai-path__dot {
  position: absolute;
  left: -1.5rem;
  top: 1.65rem;
  width: 12px;
  height: 12px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--hai-navy);
  border: 2px solid rgba(45, 142, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(45, 142, 255, 0.08);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.hai-path__step.is-active .hai-path__dot {
  border-color: var(--hai-blue);
  background: var(--hai-blue);
  box-shadow: 0 0 16px rgba(45, 142, 255, 0.6), 0 0 0 4px rgba(45, 142, 255, 0.15);
}

.hai-path__text {
  font-size: 0.92rem;
  color: var(--hai-mu);
  line-height: 1.6;
  transition: color 0.3s;
}

.hai-path__step.is-active .hai-path__text {
  color: var(--hai-wh);
}

/* ── CTA portal ── */
.hai-cta {
  text-align: center;
  padding: clamp(5rem, 10vw, 7rem) clamp(1.25rem, 4vw, 2rem);
  position: relative;
  overflow: hidden;
}

.hai-cta__portal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.hai-cta__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(45, 142, 255, 0.2);
  animation: hai-spin 20s linear infinite;
}

.hai-cta__ring--2 {
  inset: 15%;
  border-color: rgba(45, 200, 154, 0.15);
  animation: hai-spin-rev 14s linear infinite;
}

.hai-cta h2 {
  font-family: var(--hai-fft);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 0.85rem;
  position: relative;
}

.hai-cta p {
  color: var(--hai-mu);
  margin-bottom: 2rem;
  position: relative;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hai-cta__acts {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── Footer ── */
.hai-footer {
  border-top: 1px solid rgba(45, 142, 255, 0.1);
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  background: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(12px);
}

.hai-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hai-footer p {
  font-family: var(--hai-mono);
  font-size: 0.68rem;
  color: var(--hai-mu);
  letter-spacing: 0.04em;
}

.hai-footer a {
  color: var(--hai-bl);
  text-decoration: none;
}

.hai-footer a:hover { text-decoration: underline; }

/* ── Reveal scroll ── */
.hai-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hai-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hai-nav {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
  }

  .hai-nav__links { display: none; }
  .hai-nav__studio { display: none; }

  .hai-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hai-hero__copy { text-align: center; }
  .hai-hero__sub { margin-left: auto; margin-right: auto; }
  .hai-hero__acts { justify-content: center; }
  .hai-hero__core { order: -1; }
  .hai-core { width: min(280px, 70vw); height: min(280px, 70vw); }

  .hai-panel__inner { grid-template-columns: 1fr; text-align: center; }
  .hai-panel__visual { min-height: 160px; }

  .hai-bento__cell--a,
  .hai-bento__cell--b,
  .hai-bento__cell--c,
  .hai-bento__cell--d { grid-column: span 12; }

  .hai-path { grid-template-columns: 1fr; }
  .hai-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hai-app { opacity: 1 !important; animation: none !important; }
  .hai-nav, .hai-hero__badge, .hai-hero h1, .hai-hero__sub, .hai-hero__acts, .hai-hero__core, .hai-hero__scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hai-reveal { opacity: 1; transform: none; transition: none; }
  .hai-core__ring, .hai-panel__border, .hai-cta__ring, .hai-btn__shine, .hai-bg__aurora { animation: none !important; }
  #haiNeuralCanvas { display: none; }
}
