@import url('https://fonts.googleapis.com/css2?family=Syne:wght@300;400;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&display=swap');

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

:root {
  --ink:     #06070d;
  --ink2:    #0c0e1c;
  --cyan:    #00d4ff;
  --violet:  #9b6dff;
  --green:   #00e5a0;
  --amber:   #ff6b35;
  --white:   #ffffff;
  --muted:   rgba(255,255,255,0.65);
  --faint:   rgba(255,255,255,0.06);
  --rule:    rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── CANVAS ── */
#field {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.wrap { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 60px;
  background: rgba(6,7,13,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s ease;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  color: var(--white);
  text-decoration: none;
  flex: 1 1 0;
}
.logo-dot { color: var(--cyan); }

.nav-links {
  display: flex; list-style: none; gap: 2.5rem;
  flex: 0 1 auto;
  justify-content: center;
}
nav::after {
  content: '';
  flex: 1 1 0;
}
.nav-links a {
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0; width: 0; height: 1px;
  background: var(--cyan); transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

.nav-badge {
  font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,212,255,0.45);
  border: 1px solid rgba(0,212,255,0.14);
  padding: 5px 12px; border-radius: 2px;
}

/* ── RULES ── */
.h-rule {
  height: 1px; margin: 0 60px;
  background: linear-gradient(90deg, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
}
.h-rule-full {
  height: 1px;
  background: var(--rule);
}

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.68rem; font-weight: 300;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow.violet { color: var(--violet); }
.eyebrow.green  { color: var(--green); }
.eyebrow.amber  { color: var(--amber); }

h2.section-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 20px; color: var(--white);
}

.section-body {
  font-size: 1rem; line-height: 1.9;
  color: rgba(255,255,255,0.65); font-weight: 300;
  max-width: 520px;
}

/* ── BUTTONS ── */
.btn {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 14px 36px; border-radius: 2px;
  text-decoration: none; display: inline-block;
  transition: all 0.25s ease; cursor: pointer;
  border: 1px solid;
}
.btn-fill {
  background: var(--cyan); color: var(--ink);
  border-color: var(--cyan);
}
.btn-fill:hover { background: transparent; color: var(--cyan); }
.btn-fill.violet { background: var(--violet); border-color: var(--violet); color: var(--ink); }
.btn-fill.violet:hover { background: transparent; color: var(--violet); }
.btn-fill.green  { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn-fill.green:hover  { background: transparent; color: var(--green); }
.btn-fill.amber  { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-fill.amber:hover  { background: transparent; color: var(--amber); }
.btn-outline {
  background: transparent; color: var(--muted);
  border-color: rgba(255,255,255,0.14);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.38); color: var(--white); }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── HERO (shared) ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 40px 100px;
  position: relative;
}
.hero-kicker {
  font-size: 0.68rem; font-weight: 300;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 40px;
  opacity: 0; animation: rise 1s 0.2s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-kicker.violet { color: var(--violet); }
.hero-kicker.green  { color: var(--green); }
.hero-kicker.amber  { color: var(--amber); }

.hero-h {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(4.5rem, 13vw, 10rem);
  line-height: 0.9; letter-spacing: -0.02em;
  margin-bottom: 36px;
  opacity: 0; animation: rise 1s 0.38s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-h .solid  { color: var(--white); }
.hero-h .stroke { -webkit-text-stroke: 1.5px rgba(255,255,255,0.2); color: transparent; }
.hero-h .accent-cyan   { color: var(--cyan); }
.hero-h .accent-violet { color: var(--violet); }
.hero-h .accent-green  { color: var(--green); }
.hero-h .accent-amber  { color: var(--amber); }

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem); font-weight: 300;
  font-style: italic; line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 52px;
  opacity: 0; animation: rise 1s 0.52s cubic-bezier(.16,1,.3,1) forwards;
}

.hero-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: rise 1s 0.66s cubic-bezier(.16,1,.3,1) forwards;
}

.scroll-indicator {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: rise 1s 1.1s cubic-bezier(.16,1,.3,1) forwards;
}
.scroll-indicator span {
  font-size: 0.58rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-tick {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, rgba(0,212,255,0.6), transparent);
  animation: tick 2.2s ease-in-out infinite;
}

/* ── FOOTER ── */
footer {
  padding: 36px 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule);
  position: relative; z-index: 1;
}
.foot-left .logo { font-size: 0.95rem; }
.foot-copy {
  font-size: 0.7rem; font-weight: 300;
  color: rgba(255,255,255,0.18); margin-top: 7px; letter-spacing: 0.04em;
}
.foot-right {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.2);
}
.foot-nav {
  display: flex; gap: 1.8rem; list-style: none; margin-bottom: 8px;
}
.foot-nav a {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); text-decoration: none;
  transition: color 0.2s;
}
.foot-nav a:hover { color: var(--muted); }

.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s; margin-bottom: 32px;
}
.back-link::before { content: '←'; font-size: 0.8rem; }
.back-link:hover { color: var(--white); }

/* ── PAGE TRANSITION ── */
.page-enter {
  animation: page-in 0.6s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── KEYFRAMES ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes tick {
  0%   { transform: scaleY(0); transform-origin: top; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.35); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 22px 28px; }
  .nav-links { display: none; }
  .h-rule, .h-rule { margin: 0 28px; }
  footer { padding: 32px 28px; flex-direction: column; gap: 20px; text-align: center; }
  .foot-nav { justify-content: center; }
}
