:root {
  --bg: #0a0915;
  --bg-2: #141027;
  --bg-3: #1f1322;
  --panel: rgba(20, 24, 42, 0.72);
  --panel-strong: rgba(13, 18, 35, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1ff;
  --muted: #b9bfd9;
  --cyan: #21e0e6;
  --lime: #9cff3a;
  --pink: #ff5ecb;
  --orange: #ff6d3a;
  --glow-cyan: rgba(33, 224, 230, 0.25);
  --glow-lime: rgba(156, 255, 58, 0.2);
  --glow-pink: rgba(255, 94, 203, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

body[data-theme="light"] {
  --bg: #eef5fb;
  --bg-2: #e6f4ff;
  --bg-3: #f7efff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(16, 24, 40, 0.08);
  --line-strong: rgba(16, 24, 40, 0.16);
  --text: #172338;
  --muted: #5f6f89;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 109, 58, 0.18), transparent 45%),
    radial-gradient(circle at 85% 12%, rgba(33, 224, 230, 0.12), transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(255, 94, 203, 0.12), transparent 45%),
    linear-gradient(120deg, var(--bg), var(--bg-2) 42%, var(--bg-3));
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.topbar.simple {
  position: relative;
  background: transparent;
  border-bottom: none;
}
.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2), transparent 55%),
    linear-gradient(135deg, rgba(33,224,230,0.55), rgba(255,94,203,0.45) 60%, rgba(255,109,58,0.55));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.2);
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}
.brand-text { font-size: 1.1rem; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav a,
.theme-toggle {
  color: var(--muted);
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.theme-toggle {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}
.nav-toggle span + span { margin-top: 6px; }

.section {
  padding: 72px 0;
}
.hero { padding-top: 38px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
.hero-copy h1,
.section-head h2,
.panel h2,
.legal-content h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  max-width: 16ch;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 16px 0 0;
  max-width: 62ch;
}
.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}
.btn-primary {
  color: #fff;
  border-color: rgba(255,255,255,0.1);
  background: linear-gradient(135deg, var(--orange), color-mix(in srgb, var(--pink) 60%, var(--orange)));
  box-shadow: 0 10px 30px rgba(255,109,58,0.28);
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.hero-bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.hero-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px var(--glow-cyan);
}

.hero-visual {
  position: relative;
}
.device-stack {
  position: relative;
  min-height: 540px;
}
.device-card {
  position: absolute;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(22, 20, 38, 0.92), rgba(8, 13, 32, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}
body[data-theme="light"] .device-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,248,255,0.92));
}
.device-card figcaption {
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.device-card-main {
  inset: 0 30px 70px 0;
}
.device-card-secondary {
  width: 58%;
  right: 0;
  bottom: 0;
}
.device-placeholder {
  padding: 14px;
  min-height: 340px;
}
.device-placeholder.compact {
  min-height: 210px;
}
.device-shot-wrap {
  padding: 14px;
  min-height: 340px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 14%, rgba(33,224,230,0.08), transparent 42%),
    radial-gradient(circle at 80% 85%, rgba(255,94,203,0.08), transparent 46%),
    rgba(255,255,255,0.01);
}
.device-shot-wrap.compact {
  min-height: 210px;
}
.device-shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(10, 9, 21, 0.55);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.device-shot-wrap.compact .device-shot {
  max-height: 194px;
  border-radius: 14px;
}
.mock-header { display: flex; gap: 8px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.dot.cyan { background: var(--cyan); box-shadow: 0 0 12px var(--glow-cyan); }
.dot.lime { background: var(--lime); box-shadow: 0 0 12px var(--glow-lime); }
.dot.pink { background: var(--pink); box-shadow: 0 0 12px var(--glow-pink); }
.mock-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.mock-title.small { font-size: 1rem; }
.ring-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.mock-ring {
  aspect-ratio: 1;
  border-radius: 20px;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.02);
  position: relative;
}
.mock-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.07);
}
.mock-ring span {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: var(--text);
}
.mock-ring.cyan { border-color: var(--cyan); box-shadow: 0 0 22px var(--glow-cyan); }
.mock-ring.lime { border-color: var(--lime); box-shadow: 0 0 22px var(--glow-lime); }
.mock-ring.pink { border-color: var(--pink); box-shadow: 0 0 22px var(--glow-pink); }
.mock-ring.orange { border-color: var(--orange); box-shadow: 0 0 22px rgba(255,109,58,0.18); }
.mock-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.mock-item {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.macro-bars {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 70%;
  border-radius: inherit;
}
.bar.cyan::after { background: var(--cyan); }
.bar.lime::after { width: 55%; background: var(--lime); }
.bar.pink::after { width: 85%; background: var(--pink); }
.bar.orange::after { width: 62%; background: var(--orange); }
.insight-card-mini {
  margin-top: 14px;
  height: 74px;
  border-radius: 14px;
  border: 1px solid rgba(255, 94, 203, 0.25);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,94,203,0.18), transparent 55%),
    rgba(255,255,255,0.02);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 12%, rgba(33,224,230,0.09), transparent 45%),
    radial-gradient(circle at 14% 80%, rgba(255,94,203,0.08), transparent 46%),
    linear-gradient(145deg, var(--panel-strong), color-mix(in srgb, var(--panel) 70%, transparent));
  box-shadow: var(--shadow);
  padding: 22px;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}
.check-grid,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.check-grid li,
.check-list li {
  color: var(--muted);
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  position: relative;
}
.check-grid li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--glow-cyan);
}
.check-grid li span {
  display: inline-block;
  color: var(--text);
  font-weight: 700;
  margin-right: 6px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
}
.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  padding: 16px;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -38px -20%;
  height: 80px;
  opacity: 0.18;
  filter: blur(18px);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}
.feature-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
}
.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.cyan-border { border-color: rgba(33,224,230,0.22); }
.cyan-border::after { background: var(--cyan); }
.lime-border { border-color: rgba(156,255,58,0.2); }
.lime-border::after { background: var(--lime); }
.pink-border { border-color: rgba(255,94,203,0.2); }
.pink-border::after { background: var(--pink); }
.orange-border { border-color: rgba(255,109,58,0.22); }
.orange-border::after { background: var(--orange); }
.tag {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,109,58,0.85), rgba(255,94,203,0.75));
  vertical-align: middle;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  counter-reset: fitforge-step;
}
.steps li {
  counter-increment: fitforge-step;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: rgba(255,255,255,0.02);
  position: relative;
}
.steps li::before {
  content: counter(fitforge-step);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), color-mix(in srgb, var(--pink) 60%, var(--orange)));
  box-shadow: 0 0 16px rgba(33,224,230,0.25);
  margin-bottom: 10px;
}
.steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.premium-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}
.premium-copy h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
}
.premium-copy p { color: var(--muted); margin: 12px 0 0; }
.premium-copy .btn { margin-top: 14px; }
.premium-side {
  display: grid;
  align-content: start;
  gap: 12px;
}
.wallet-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(33,224,230,0.25);
  background: rgba(33,224,230,0.06);
  color: var(--text);
  font-weight: 600;
}
.premium-stack-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  padding: 14px;
  min-height: 220px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid transparent;
}
.pill-cyan { color: var(--cyan); border-color: rgba(33,224,230,0.24); background: rgba(33,224,230,0.08); }
.pill-lime { color: color-mix(in srgb, var(--lime) 80%, #fff); border-color: rgba(156,255,58,0.22); background: rgba(156,255,58,0.07); }
.pill-pink { color: var(--pink); border-color: rgba(255,94,203,0.22); background: rgba(255,94,203,0.07); }
.placeholder-lines {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.placeholder-lines span {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}
.placeholder-lines span:nth-child(2) { width: 86%; }
.placeholder-lines span:nth-child(3) { width: 72%; }

.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  padding: 0 14px;
  overflow: clip;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 28px 14px 0;
  position: relative;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 1.25rem;
  color: var(--muted);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0 0 14px;
  color: var(--muted);
}

.site-footer {
  padding: 24px 0 26px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
}
.site-footer.compact {
  background: transparent;
  border-top: none;
  padding-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}
.footer-copy,
.footer-note {
  color: var(--muted);
  margin: 10px 0 0;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.footer-links a {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--text); }
.footer-bottom {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}
.legal-content h2 {
  font-family: var(--font-display);
  margin: 28px 0 10px;
  font-size: 1.25rem;
}
.legal-content h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}
.legal-content p,
.legal-content li {
  color: var(--muted);
}
.legal-content ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.legal-intro {
  margin-top: 12px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .premium-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-stack { min-height: 480px; }
  .device-card-main { inset: 0 90px 60px 0; }
}

@media (max-width: 760px) {
  .topbar-inner { min-height: 66px; }
  .brand-logo,
  .brand-mark { width: 32px; height: 32px; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    margin-left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a, .theme-toggle { width: 100%; text-align: left; }
  .site-nav.static {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    width: auto;
    left: auto;
    right: auto;
  }
  .site-nav.static a { padding: 8px 10px; }

  .section { padding: 56px 0; }
  .hero { padding-top: 24px; }
  .hero-copy h1 { max-width: none; }
  .device-stack { min-height: auto; display: grid; gap: 12px; }
  .device-card,
  .device-card-main,
  .device-card-secondary {
    position: static;
    width: 100%;
    inset: auto;
  }
  .feature-grid,
  .feature-grid.compact,
  .steps {
    grid-template-columns: 1fr;
  }
  .panel { padding: 16px; }
  .ring-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
