/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --aqua:      #00F5FF;
  --black:     #000000;
  --bg:        #020406;
  --bg-2:      #060A12;
  --bg-3:      #09101C;
  --white:     #FFFFFF;
  --w85:       rgba(255,255,255,0.85);
  --w60:       rgba(255,255,255,0.60);
  --w35:       rgba(255,255,255,0.35);
  --w15:       rgba(255,255,255,0.15);
  --a35:       rgba(0,245,255,0.35);
  --a18:       rgba(0,245,255,0.18);
  --a10:       rgba(0,245,255,0.10);
  --a05:       rgba(0,245,255,0.05);
  --a02:       rgba(0,245,255,0.02);
  --border:    rgba(0,245,255,0.10);
  --border-hi: rgba(0,245,255,0.26);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── CANVAS / BG ── */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.grid-bg {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,245,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.016) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 65% at 50% 50%, black 10%, transparent 70%);
}

/* Vignette that frames the 3D scene */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(2,4,6,0.65) 100%);
}

.site-wrap { position: relative; z-index: 2; }

/* ── NAV ── */
.nav-shell {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1180px; z-index: 300;
}

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px;
  background: rgba(2, 4, 6, 0.55);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
nav.scrolled {
  background: rgba(2, 4, 6, 0.80);
  border-color: var(--border-hi);
  box-shadow: 0 12px 60px rgba(0,0,0,0.55), 0 0 40px rgba(0,245,255,0.04);
}

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--a35);
  display: flex; align-items: center; justify-content: center;
  background: var(--a10);
}
.logo-icon svg { width: 17px; height: 17px; }
.logo-text {
  font-size: 16px; font-weight: 800;
  letter-spacing: 3px; color: var(--white);
}
.logo-text em { font-style: normal; color: var(--aqua); }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--w60); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: .2px;
  padding-bottom: 3px; position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--aqua);
  transition: width .22s;
}
.nav-links a:hover, .nav-links a.active { color: var(--aqua); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 9px 22px; border-radius: 9px;
  background: var(--aqua); color: #000; border: none;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  cursor: pointer; transition: all .2s;
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav-cta:hover {
  background: #fff; transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(0,245,255,.55);
}

/* ── CONTAINER ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 34px; border-radius: 11px;
  font-size: 14px; font-weight: 600; letter-spacing: .2px;
  cursor: pointer; transition: all .25s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none; border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--aqua); color: #000;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.25), transparent);
  opacity: 0; transition: opacity .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,245,255,.55), 0 8px 24px rgba(0,0,0,.3);
}
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--white); border: 1px solid var(--border-hi);
}
.btn-ghost:hover {
  border-color: var(--aqua); color: var(--aqua);
  background: var(--a05);
  box-shadow: 0 0 20px rgba(0,245,255,.1);
}

/* ── TYPOGRAPHY ── */
.section-pad { padding: 108px 0; }

.section-head { text-align: center; margin-bottom: 64px; }

.tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 14px;
}

.h2 {
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 800; line-height: 1.1; letter-spacing: -.6px;
}

.lead {
  font-size: 16px; color: var(--w60);
  max-width: 460px; margin: 16px auto 0; line-height: 1.78;
  font-weight: 400;
}

/* ── GLASS CARDS ── */
.glass {
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.glass:hover {
  border-color: var(--border-hi);
  box-shadow: 0 24px 80px rgba(0,245,255,.05), 0 0 0 1px rgba(0,245,255,.04);
  transform: translateY(-4px);
}

/* Aqua-tinted premium card */
.glass-hi {
  background: rgba(0,245,255,0.035);
  backdrop-filter: blur(80px) saturate(200%);
  -webkit-backdrop-filter: blur(80px) saturate(200%);
  border: 1px solid var(--border-hi);
  border-radius: 24px;
}

/* top shimmer line */
.shine { position: relative; }
.shine::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,.5), transparent);
  border-radius: 24px 24px 0 0;
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 200px 28px 96px;
  text-align: center; position: relative;
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid var(--border-hi);
  background: rgba(0,245,255,0.04);
  backdrop-filter: blur(20px);
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 26px;
}
.page-hero-eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--aqua);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.page-hero h1 {
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 800; line-height: 1.0; letter-spacing: -3px;
}
.grad-text {
  background: linear-gradient(100deg, var(--aqua) 0%, #fff 55%, var(--aqua) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.page-hero p {
  font-size: 18px; color: var(--w60);
  max-width: 500px; margin: 24px auto 0; line-height: 1.78;
  font-weight: 400;
}

/* ── FOOTER ── */
footer {
  position: relative; z-index: 4;
  background: rgba(2, 4, 6, 0.72);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.foot-top {
  max-width: 1180px; margin: 0 auto;
  padding: 64px 28px 48px;
  display: grid; grid-template-columns: 1.6fr 2fr;
  gap: 60px; align-items: start;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.foot-brand {}
.foot-logo-mark {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 16px;
}
.foot-logo-icon {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--a35); background: var(--a10);
  display: flex; align-items: center; justify-content: center;
}
.foot-logo-icon svg { width: 18px; height: 18px; }
.foot-logo-name {
  font-size: 18px; font-weight: 800; letter-spacing: 3px;
}
.foot-logo-name em { font-style: normal; color: var(--aqua); }
.foot-tagline {
  font-size: 14px; color: var(--w35); line-height: 1.65; max-width: 280px;
  font-weight: 400; margin-bottom: 28px;
}
.foot-social {
  display: flex; gap: 10px;
}
.foot-social-btn {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.foot-social-btn svg { width: 15px; height: 15px; color: var(--w35); transition: color .2s; }
.foot-social-btn:hover { border-color: var(--border-hi); background: var(--a05); }
.foot-social-btn:hover svg { color: var(--aqua); }

.foot-nav {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col-head {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--white); margin-bottom: 4px;
}
.foot-col a {
  font-size: 13px; color: var(--w35); text-decoration: none;
  transition: color .2s; font-weight: 400;
}
.foot-col a:hover { color: var(--aqua); }

.foot-bottom {
  max-width: 1180px; margin: 0 auto;
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.foot-copy {
  font-size: 12px; color: var(--w35); font-weight: 400;
  letter-spacing: .2px;
}
.foot-legal { display: flex; gap: 20px; }
.foot-legal a {
  font-size: 12px; color: var(--w35); text-decoration: none; transition: color .2s;
}
.foot-legal a:hover { color: var(--aqua); }
.foot-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--a02);
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--w35);
}
.foot-badge .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--aqua); animation: blink 2.5s ease-in-out infinite;
}

/* ── MONO ── */
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .foot-top  { grid-template-columns: 1fr; gap: 40px; }
  .foot-nav  { grid-template-columns: repeat(2,1fr); }
  .foot-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .foot-nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
