/* ============================================================
   HumanLink Labs — Design Tokens
   ============================================================ */
:root{
  --ink:        #0b1220;
  --ink-soft:   #16213e;
  --panel:      #101a33;
  --brand-blue: #3f5aa9;
  --brand-blue-deep: #223368;
  --cyan:       #1fc8d8;
  --cyan-light: #8fe0e8;
  --violet:     #7b6ef6;
  --white:      #f5f7fa;
  --white-dim:  rgba(245,247,250,0.7);
  --white-faint:rgba(245,247,250,0.45);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1180px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--ink);
  color:var(--white);
  font-family:var(--font-body);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
section{ position:relative; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:3px;
  text-transform:uppercase;
  color:var(--cyan);
}

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.08;
  letter-spacing:-0.01em;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 28px;
  border-radius:999px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:15px;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.btn-primary{
  background:linear-gradient(120deg,var(--cyan),var(--violet));
  color:#04121a;
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 30px -12px rgba(31,200,216,0.55); }
.btn-ghost{
  background:transparent;
  border-color:rgba(245,247,250,0.25);
  color:var(--white);
}
.btn-ghost:hover{ border-color:var(--cyan-light); background:rgba(143,224,232,0.08); }

/* ============================================================
   Perspective stage — every parallax section lives in a 3D scene
   ============================================================ */
.stage{
  perspective:1400px;
  perspective-origin:50% 40%;
  overflow:hidden;
}

/* ============================================================
   Nav
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 40px;
  background:rgba(11,18,32,0);
  backdrop-filter:blur(0px);
  transition:background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:rgba(11,18,32,0.82);
  backdrop-filter:blur(14px);
  padding:12px 40px;
  border-bottom:1px solid rgba(143,224,232,0.08);
}
.nav-brand{ display:flex; align-items:center; gap:12px; }
.nav-brand img{ height:38px; width:38px; }
.nav-brand span{ font-family:var(--font-display); font-weight:700; font-size:18px; }
.nav-brand span em{ font-style:normal; color:var(--cyan); }
.nav-links{ display:flex; gap:34px; font-size:14px; font-weight:500; }
.nav-links a{ color:var(--white-dim); position:relative; padding-bottom:4px; transition:color .25s; }
.nav-links a:hover{ color:var(--white); }
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--cyan); transition:width .3s var(--ease);
}
.nav-links a:hover::after{ width:100%; }
.nav-cta{ display:flex; }
.nav-toggle{ display:none; }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  background:
    radial-gradient(60% 50% at 80% 15%, rgba(123,110,246,0.28), transparent 60%),
    radial-gradient(50% 45% at 15% 85%, rgba(31,200,216,0.22), transparent 60%),
    linear-gradient(180deg,#0b1220 0%, #0e1730 60%, #0b1220 100%);
}
.hero-inner{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  align-items:center;
  gap:40px;
  padding-top:110px;
}
.hero-copy .eyebrow{ margin-bottom:18px; display:block; }
.hero-copy h1{
  font-size:clamp(38px,5.4vw,68px);
  margin-bottom:22px;
}
.hero-copy h1 .accent{
  background:linear-gradient(100deg,var(--cyan-light),var(--cyan) 45%,var(--violet));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-copy p{
  font-size:17px; line-height:1.7; color:var(--white-dim);
  max-width:480px; margin-bottom:34px;
}
.hero-actions{ display:flex; gap:16px; margin-bottom:46px; }
.hero-stats{ display:flex; gap:36px; }
.hero-stats div{ display:flex; flex-direction:column; gap:4px; }
.hero-stats strong{ font-family:var(--font-display); font-size:26px; }
.hero-stats span{ font-size:12px; color:var(--white-faint); letter-spacing:.5px; }

/* hero 3D scene */
.hero-scene{
  position:relative;
  height:520px;
  transform-style:preserve-3d;
}
.hero-scene .layer{
  position:absolute; inset:0;
  transform-style:preserve-3d;
  will-change:transform;
}
.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  opacity:.85;
}
.orb-1{ width:260px; height:260px; top:6%; right:8%; background:radial-gradient(circle at 35% 30%, rgba(143,224,232,.9), rgba(31,200,216,.15) 70%); filter:blur(0); }
.orb-2{ width:120px; height:120px; bottom:12%; left:4%; background:radial-gradient(circle at 35% 30%, rgba(123,110,246,.85), transparent 70%); }
.orb-3{ width:70px; height:70px; top:44%; left:18%; background:radial-gradient(circle at 35% 30%, rgba(31,200,216,.9), transparent 70%); }

.hero-product{
  position:absolute; left:50%; top:50%;
  width:230px;
  transform:translate(-50%,-50%) rotateY(-18deg) rotateX(8deg);
  filter:drop-shadow(0 30px 40px rgba(0,0,0,.45));
  transition:transform .2s ease-out;
}
.hero-vr{
  position:absolute; right:-4%; bottom:2%;
  width:230px;
  transform:rotateY(14deg) rotateX(-4deg);
  filter:drop-shadow(0 24px 30px rgba(0,0,0,.45));
  transition:transform .2s ease-out;
}
.hero-ring{
  position:absolute; left:50%; top:50%; width:400px; height:400px;
  transform:translate(-50%,-50%) rotateX(70deg);
  border:1px solid rgba(143,224,232,.35); border-radius:50%;
}
.hero-ring.ring-2{ width:480px; height:480px; border-color:rgba(123,110,246,.28); }

.scroll-cue{
  position:absolute; bottom:34px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--white-faint); font-family:var(--font-mono); font-size:11px; letter-spacing:2px;
}
.scroll-cue .stick{ width:1px; height:36px; background:linear-gradient(var(--cyan),transparent); animation:cueMove 1.8s infinite ease-in-out; }
@keyframes cueMove{ 0%{opacity:.2; transform:scaleY(.4);} 50%{opacity:1; transform:scaleY(1);} 100%{opacity:.2; transform:scaleY(.4);} }

/* ============================================================
   Helix spine — signature connective element
   ============================================================ */
.helix-spine{
  position:absolute;
  top:0; left:50%;
  width:300px;
  height:100%;
  transform:translateX(-50%);
  opacity:.5;
  pointer-events:none;
  z-index:0;
  mix-blend-mode:screen;
}
.helix-spine img{ width:100%; height:100%; object-fit:cover; }

/* ============================================================
   Section shell
   ============================================================ */
.section{ padding:150px 0; position:relative; z-index:1; }
.section-head{ max-width:640px; margin-bottom:64px; }
.section-head .eyebrow{ margin-bottom:16px; }
.section-head h2{ font-size:clamp(30px,4vw,46px); margin-bottom:18px; }
.section-head p{ color:var(--white-dim); font-size:16px; line-height:1.7; }

.divider-node{
  display:flex; align-items:center; gap:14px; margin-bottom:20px;
}
.divider-node .dot{ width:8px; height:8px; border-radius:50%; background:var(--cyan); box-shadow:0 0 12px var(--cyan); }
.divider-node span{ font-family:var(--font-mono); font-size:12px; letter-spacing:2px; color:var(--white-faint); text-transform:uppercase; }

/* ============================================================
   Product showcase (shared pattern, mirrored)
   ============================================================ */
.showcase{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.showcase.reverse .showcase-art{ order:2; }
.showcase.reverse .showcase-copy{ order:1; }

.showcase-art{
  position:relative;
  height:460px;
  display:flex; align-items:center; justify-content:center;
  transform-style:preserve-3d;
}
.tilt-card{
  width:78%;
  transform-style:preserve-3d;
  transition:transform .25s ease-out;
  filter:drop-shadow(0 40px 50px rgba(0,0,0,.5));
}
.tilt-card img{ width:100%; transform:translateZ(40px); }
.showcase-art .halo{
  position:absolute; inset:0; margin:auto; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, var(--halo-color,rgba(31,200,216,.25)), transparent 70%);
  filter:blur(10px);
}
.showcase-art .ring{
  position:absolute; inset:0; margin:auto; width:400px; height:400px; border-radius:50%;
  border:1px dashed rgba(245,247,250,.15);
  animation:spinSlow 24s linear infinite;
}
@keyframes spinSlow{ to{ transform:rotate(360deg); } }

.showcase-copy .eyebrow{ margin-bottom:14px; }
.showcase-copy h2{ font-size:clamp(28px,3.6vw,42px); margin-bottom:18px; }
.showcase-copy p{ color:var(--white-dim); line-height:1.75; font-size:15.5px; margin-bottom:28px; max-width:460px; }

.spec-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px 26px; margin-bottom:30px; }
.spec{
  border-top:1px solid rgba(245,247,250,.12);
  padding-top:12px;
}
.spec strong{ display:block; font-family:var(--font-display); font-size:20px; margin-bottom:2px; }
.spec span{ font-size:12px; color:var(--white-faint); font-family:var(--font-mono); letter-spacing:.5px; }

/* ============================================================
   Feature strip
   ============================================================ */
.strip{
  background:linear-gradient(180deg, var(--ink-soft), var(--ink));
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:rgba(245,247,250,.08);
  border:1px solid rgba(245,247,250,.08);
  border-radius:20px;
  overflow:hidden;
}
.feature-card{
  background:var(--panel);
  padding:38px 32px;
  transition:transform .4s var(--ease), background .4s var(--ease);
}
.feature-card:hover{ transform:translateY(-6px); background:#132043; }
.feature-card .num{ font-family:var(--font-mono); color:var(--cyan); font-size:13px; letter-spacing:2px; margin-bottom:22px; display:block; }
.feature-card h3{ font-size:19px; margin-bottom:10px; }
.feature-card p{ font-size:14.5px; color:var(--white-dim); line-height:1.7; }

/* ============================================================
   Immersive VR band (deep 3D feel)
   ============================================================ */
.immersive{
  min-height:100vh;
  display:flex; align-items:center;
  background:
    radial-gradient(60% 60% at 50% 30%, rgba(123,110,246,.28), transparent 65%),
    linear-gradient(180deg,#0b1220, #101a33 50%, #0b1220);
}
.immersive-inner{ text-align:center; max-width:760px; margin:0 auto; }
.immersive .eyebrow{ justify-content:center; }
.immersive h2{ font-size:clamp(32px,5vw,58px); margin:20px 0 22px; }
.immersive p{ color:var(--white-dim); font-size:17px; line-height:1.8; margin-bottom:40px; }

.layer-scene{
  position:relative; height:420px; margin-top:20px;
  transform-style:preserve-3d;
}
.layer-scene .depth{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  transform-style:preserve-3d;
}
.plane{
  position:absolute; border-radius:18px;
  border:1px solid rgba(143,224,232,.25);
  background:rgba(31,200,216,.06);
  backdrop-filter:blur(6px);
}
.plane-1{ width:320px; height:200px; transform:translateZ(-120px) translate(-160px,-100px); }
.plane-2{ width:280px; height:180px; transform:translateZ(-40px) translate(60px,-40px); border-color:rgba(123,110,246,.3); background:rgba(123,110,246,.07); }
.plane-3{ width:240px; height:150px; transform:translateZ(60px) translate(-40px,60px); }

/* ============================================================
   Trust / testimonial strip
   ============================================================ */
.trust{ padding:100px 0; }
.trust-row{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:40px;
  border-top:1px solid rgba(245,247,250,.1);
  border-bottom:1px solid rgba(245,247,250,.1);
  padding:36px 0;
}
.trust-row span{ font-family:var(--font-mono); font-size:13px; letter-spacing:2px; color:var(--white-faint); }

/* ============================================================
   CTA
   ============================================================ */
.cta{
  padding:150px 0;
  text-align:center;
  background:linear-gradient(180deg, var(--ink), #0e1730);
}
.cta h2{ font-size:clamp(32px,5vw,54px); margin-bottom:20px; }
.cta p{ color:var(--white-dim); max-width:520px; margin:0 auto 36px; font-size:16px; line-height:1.7; }
.cta-actions{ display:flex; gap:16px; justify-content:center; }

/* ============================================================
   Footer
   ============================================================ */
.footer{
  background:#070c17;
  padding:70px 0 30px;
  border-top:1px solid rgba(245,247,250,.08);
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
  margin-bottom:60px;
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand img{ height:34px; width:34px; }
.footer-brand span{ font-family:var(--font-display); font-weight:700; font-size:17px; }
.footer p.tag{ color:var(--white-faint); font-size:14px; max-width:280px; line-height:1.6; }
.footer h4{ font-family:var(--font-mono); font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--white-faint); margin-bottom:18px; }
.footer li{ margin-bottom:11px; }
.footer li a{ font-size:14.5px; color:var(--white-dim); transition:color .25s; }
.footer li a:hover{ color:var(--cyan-light); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size:13px; color:var(--white-faint);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal{ opacity:0; transform:translateY(40px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-scene{ height:380px; order:-1; }
  .showcase, .showcase.reverse{ grid-template-columns:1fr; }
  .showcase.reverse .showcase-art{ order:1; }
  .showcase.reverse .showcase-copy{ order:2; }
  .feature-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .nav-links{ display:none; }
}
@media (max-width: 560px){
  .container{ padding:0 22px; }
  .section{ padding:100px 0; }
  .hero-stats{ flex-wrap:wrap; row-gap:18px; }
  .spec-grid{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .cta-actions{ flex-direction:column; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
