:root {
  --bg: #04070a;
  --chalk: #e9fff7;
  --muted: #85a6a1;
  --dim: #5b7a76;
  --teal: #0f766e;
  --lime: #34d399;
  --lime-hot: #5ef2a8;
  --cyan: #22d3ee;
  --line: rgba(120, 200, 180, 0.14);
  --glass: rgba(10, 26, 26, 0.5);
  --font: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shell: min(1120px, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--chalk);
  font-family: var(--font);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(52, 211, 153, 0.3); }

/* ---------- background layers ---------- */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 16% 4%, rgba(13, 107, 106, 0.5), transparent 62%),
    radial-gradient(760px 480px at 88% 12%, rgba(34, 211, 238, 0.12), transparent 58%),
    radial-gradient(820px 560px at 50% 100%, rgba(8, 73, 72, 0.6), transparent 62%),
    linear-gradient(170deg, #05191c 0%, var(--bg) 42%, #020a0c 100%);
  animation: wash 16s ease-in-out infinite alternate;
}
.grid-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(120, 200, 180, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 200, 180, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
.noise {
  pointer-events: none; position: fixed; inset: 0; opacity: 0.035; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.25rem;
  width: 100%; padding: 0.7rem clamp(1rem, 4vw, 2rem);
  background: rgba(4, 9, 11, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(4, 9, 11, 0.82);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--chalk); text-decoration: none;
  font-weight: 800; letter-spacing: -0.02em; font-size: 1rem;
}
.nav-brand picture { display: inline-flex; }
.nav-brand img { border-radius: 50%; }
.nav-brand-dim { color: var(--dim); margin-left: 0.3rem; }
.nav-links {
  display: flex; gap: 1.4rem; margin-left: auto;
  font-size: 0.9rem; font-weight: 700;
}
.nav-links a {
  position: relative; color: var(--muted); text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -0.35rem; height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  border-radius: 2px; transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--chalk); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  padding: 0.55rem 1.1rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 800; text-decoration: none;
  color: #03201c;
  background: linear-gradient(135deg, var(--lime-hot), var(--lime) 60%, #1ea872);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(52, 211, 153, 0.34); }

/* ---------- layout ---------- */
main { position: relative; z-index: 1; }
.section {
  width: var(--shell); margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 0;
  scroll-margin-top: 5rem;
}
.kicker {
  margin: 0 0 0.6rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--lime);
}
.h2 {
  margin: 0 0 clamp(1.6rem, 4vw, 2.4rem);
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100svh - 4rem);
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
}
.hero-inner {
  width: var(--shell);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.badge-wrap { position: relative; margin-bottom: clamp(1.1rem, 3vh, 1.8rem); }
.badge-wrap picture { display: block; line-height: 0; }
.badge-wrap::before {
  content: ""; position: absolute; inset: -16%; border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.28), transparent 70%);
  filter: blur(10px); z-index: -1;
  animation: breathe 4.2s ease-in-out infinite;
}
.logo {
  width: clamp(150px, 30vw, 210px); height: auto; border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(26, 63, 61, 0.95),
    0 22px 48px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(15, 118, 110, 0.2);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.9rem; padding: 0.35rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass);
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em;
  color: var(--muted);
}
.copy {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; letter-spacing: inherit;
  transition: color 0.2s ease;
}
.copy:hover { color: var(--lime); }
.copy.is-done { color: var(--lime-hot); }

.title { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.name {
  font-weight: 800; font-size: clamp(2.4rem, 8.5vw, 4.6rem);
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(115deg, var(--teal) 0%, var(--lime) 50%, var(--lime-hot) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag {
  font-weight: 700; font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  letter-spacing: -0.02em; color: var(--chalk);
}
.slogan {
  margin: 1.15rem 0 0.55rem; font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.3rem); color: var(--lime);
}
.sub {
  margin: 0 0 1.9rem; max-width: 34rem; color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.06rem); line-height: 1.6;
}

.cta { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.cta-end { margin-top: clamp(2rem, 5vw, 3rem); }
.btn {
  display: inline-flex; flex-direction: column; gap: 0.15rem;
  min-width: 11.5rem; padding: 0.95rem 1.4rem;
  border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-meta { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; opacity: 0.8; }
.btn-primary {
  color: #03201c;
  background: linear-gradient(135deg, var(--lime-hot), var(--lime) 55%, #1ea872);
  box-shadow: 0 12px 32px rgba(52, 211, 153, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(52, 211, 153, 0.42); }
.btn-ghost {
  color: var(--chalk); background: var(--glass);
  border: 1px solid rgba(142, 184, 180, 0.32);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--lime); }

.stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.2rem, 5vw, 3rem);
  margin: clamp(2.2rem, 6vw, 3.2rem) 0 0; padding: 0; list-style: none;
}
.stats li { display: flex; flex-direction: column; gap: 0.15rem; }
.stats b {
  font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--lime-hot), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { font-size: 0.8rem; color: var(--dim); }

/* ---------- bento cards ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
  position: relative; overflow: hidden;
  padding: clamp(1.3rem, 3vw, 1.75rem);
  border: 1px solid var(--line); border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(12, 32, 32, 0.62), rgba(6, 14, 16, 0.55));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(52, 211, 153, 0.14), transparent 68%);
  transition: opacity 0.3s ease; pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
}
.card:hover::before { opacity: 1; }
.card-ico {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; margin-bottom: 0.9rem;
  border: 1px solid var(--line); border-radius: 0.85rem;
  background: rgba(52, 211, 153, 0.08); font-size: 1.15rem;
}
.card h3 {
  margin: 0 0 0.5rem; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.card code, .step code {
  font-family: var(--mono); font-size: 0.86em; color: var(--lime);
  background: rgba(52, 211, 153, 0.1); padding: 0.1em 0.4em; border-radius: 0.35rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.chips span {
  padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--dim);
}

/* ---------- keypad ---------- */
.keypad { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
.key {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1.1rem 1.2rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 1rem;
  background: linear-gradient(165deg, rgba(12, 32, 32, 0.55), rgba(5, 12, 14, 0.5));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.key b {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--lime);
}
.key span { font-size: 0.82rem; color: var(--muted); }
.key:hover {
  transform: translateY(-3px); border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(165deg, rgba(18, 48, 44, 0.7), rgba(6, 16, 18, 0.6));
}
.note { margin: 1.2rem 0 0; color: var(--dim); font-size: 0.88rem; }
.note b { color: var(--muted); }

/* ---------- steps ---------- */
.steps {
  display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none;
  grid-template-columns: 1fr;
}
.step {
  position: relative; padding: clamp(1.3rem, 3vw, 1.7rem);
  border: 1px solid var(--line); border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(12, 32, 32, 0.5), rgba(6, 14, 16, 0.45));
}
.step-n {
  display: block; margin-bottom: 0.7rem;
  font-family: var(--mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em;
  color: transparent;
  background: linear-gradient(120deg, var(--lime-hot), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
}
.step h3 { margin: 0 0 0.45rem; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.step a { color: var(--lime); text-decoration: none; border-bottom: 1px solid rgba(52, 211, 153, 0.4); }
.step a:hover { color: var(--lime-hot); }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 1;
  width: var(--shell); margin: clamp(3.5rem, 8vw, 5.5rem) auto 0;
  padding: 1.6rem 0 2.2rem; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-align: center;
}
.foot-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.78rem;
}
.foot-status { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); }
.foot-dot { color: var(--dim); }
.foot-row a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.foot-row a:hover { color: var(--lime); }
.foot-fine { margin: 0; font-size: 0.76rem; color: var(--dim); }

.pulse {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: ping 2.2s ease-out infinite;
}

/* ---------- motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wash {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(-10deg) saturate(1.18); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .keypad { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  :root { --shell: min(1120px, 100% - 1.75rem); }
  .cta { width: 100%; flex-direction: column; align-items: stretch; }
  .btn { min-width: 0; }
  .stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem; width: 100%; text-align: center;
  }
  .stats li { align-items: center; }
  .stats span { font-size: 0.72rem; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
