/* ── RESET & BASE ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{background:var(--surface-0);color:var(--surface-700);font-family:'Inter',system-ui,sans-serif;line-height:1.6;overflow-x:hidden}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:none;background:none}
code{font-family:'JetBrains Mono',monospace}

/* ── TYPOGRAPHY ── */
.gradient-text{
  background:linear-gradient(135deg,var(--cyan-light) 0%,var(--cyan) 30%,var(--brand-500) 60%,var(--brand-600) 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.gradient-text-glow{
  background:linear-gradient(90deg,var(--cyan-light),var(--brand-400),var(--cyan),var(--brand-500),var(--cyan-light));
  background-size:300% 100%;
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  animation:gradient-shift 4s ease infinite;
  filter:drop-shadow(0 0 20px rgba(20,184,166,0.3)) drop-shadow(0 0 40px rgba(20,184,166,0.15));
}
@keyframes gradient-shift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
.text-balance{text-wrap:balance}

/* ── LAYOUT ── */
.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}
section{padding:6rem 0}
.section-divider{height:1px;background:linear-gradient(90deg,transparent,var(--border-default),transparent)}

/* ── SECTION HEADERS ── */
.section-eyebrow{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-400);margin-bottom:.75rem}
.section-title{font-size:clamp(2rem,4vw,3rem);font-weight:800;color:var(--surface-950);line-height:1.15;letter-spacing:-.015em;margin-bottom:1rem}
.section-subtitle{font-size:clamp(1.5rem,3vw,2rem);font-weight:800;color:var(--surface-950);line-height:1.2;letter-spacing:-.015em;margin-bottom:1rem}
.section-desc{font-size:1.0625rem;color:var(--surface-500);max-width:640px;line-height:1.7}

/* ── HERO (shared across all pages) ── */
.hero{position:relative;display:flex;align-items:center;overflow:hidden;padding:8rem 0 4rem}
.hero-bg{position:absolute;inset:0;z-index:0;overflow:hidden}
.hero-bg::before{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,rgba(25,43,96,0.5) 0%,transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%,rgba(20,184,166,0.08) 0%,transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%,rgba(115,213,215,0.05) 0%,transparent 50%),
    var(--surface-0);
}
.hero-bg .grid-overlay{
  position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.04) 1px,transparent 1px);
  background-size:80px 80px;
  mask-image:radial-gradient(ellipse 80% 70% at 50% 30%,black 30%,transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 30%,black 30%,transparent 75%);
  z-index:3;
}
.hero-bg .orb{position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none;will-change:transform;z-index:1}
.hero-bg .orb-1{width:650px;height:650px;background:rgba(20,184,166,0.18);top:-15%;right:-8%;animation:orbit1 20s ease-in-out infinite}
.hero-bg .orb-2{width:580px;height:580px;background:rgba(25,43,96,0.35);bottom:-12%;left:-8%;animation:orbit2 25s ease-in-out infinite}
.hero-bg .orb-3{width:420px;height:420px;background:rgba(115,213,215,0.12);top:25%;left:48%;animation:orbit3 18s ease-in-out infinite}
.hero-bg .noise{
  position:absolute;inset:0;opacity:.03;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:256px 256px;pointer-events:none;z-index:4;
}
.hero-bg::after{content:'';position:absolute;bottom:0;left:0;right:0;height:120px;background:linear-gradient(to bottom,transparent,var(--surface-0));z-index:5}
.hero-canvas-wrap{position:absolute;inset:0;z-index:2}
.hero-canvas-wrap canvas{width:100%;height:100%;pointer-events:none}
.hero-content{position:relative;z-index:10;max-width:800px}
.hero-eyebrow{display:inline-flex;align-items:center;gap:.5rem;padding:.375rem 1rem;border-radius:9999px;background:rgba(20,184,166,0.08);border:1px solid var(--border-brand);color:var(--brand-400);font-size:.8125rem;font-weight:600;margin-bottom:1.5rem;letter-spacing:.02em}
.hero-title{font-size:clamp(2.5rem,5.5vw,4.25rem);font-weight:800;line-height:1.1;color:var(--surface-950);margin-bottom:1.5rem;letter-spacing:-.02em}
.hero-subtitle{font-size:1.25rem;color:var(--surface-600);max-width:640px;line-height:1.7;margin-bottom:2.5rem}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}

/* ── SCROLL HINT ── */
.scroll-hint{position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.5rem;text-decoration:none;z-index:10;transition:opacity .3s}
.scroll-hint span{font-size:.75rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--surface-500);transition:color .3s}
.scroll-hint:hover span{color:var(--brand-400)}
.scroll-hint-arrow{width:2.25rem;height:2.25rem;border-radius:50%;border:1px solid var(--surface-300);display:flex;align-items:center;justify-content:center;color:var(--surface-400);transition:border-color .3s,color .3s,box-shadow .3s}
.scroll-hint:hover .scroll-hint-arrow{border-color:var(--brand-400);color:var(--brand-400);box-shadow:0 0 12px rgba(20,184,166,0.2)}
.scroll-hint-arrow svg{animation:scroll-bounce 2s ease-in-out infinite}
@keyframes scroll-bounce{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(3px)}
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:var(--surface-0)}
::-webkit-scrollbar-thumb{background:var(--surface-300);border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:var(--surface-400)}
