:root {
  /* Exact tokens from the app's dark theme (global.css .dark:root) */
  --background: #0d0d0d;
  --foreground: #fafafa;
  --card: #18181b;
  --popover: #262626;
  --primary: #15ba80;
  --primary-foreground: #002c22;
  --muted-foreground: #8b8b93;
  --accent: #404040;
  --border: #1e1e1e;
  --input: #313131;
  --ring: #147858;

  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 13, 13, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(155deg, var(--primary), var(--ring));
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 13.5px;
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--foreground);
}

.nav-links .btn {
  padding: 7px 14px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: #1ccf8d;
}

/* ---------- Hero ---------- */

.hero-section {
  position: relative;
  padding: 128px 0 96px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(ellipse at center, rgba(21, 186, 128, 0.22), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 186, 128, 0.18);
}

.hero-content h1 {
  font-size: clamp(36px, 5.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 0 0 18px;
}

.hero-content p.lede {
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cta-row .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- Product mockup card ---------- */

.mock-wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 64px auto 0;
}

.mock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 40px 80px -32px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.mock-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.mock-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.mock-stat .label {
  font-size: 11.5px;
  color: var(--muted-foreground);
  margin-bottom: 6px;
}

.mock-stat .value {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.mock-stat .value em {
  font-style: normal;
  color: var(--primary);
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.mock-bars .bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(21, 186, 128, 0.28);
}

.mock-bars .bar.solid {
  background: var(--primary);
}

/* ---------- Features ---------- */

.features-section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 620;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--muted-foreground);
  font-size: 15px;
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feature {
  background: var(--background);
  padding: 26px 24px;
  transition: background 0.15s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.015);
}

.feature .icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(21, 186, 128, 0.12);
  border: 1px solid rgba(21, 186, 128, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Closing CTA ---------- */

.closing-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-section h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.025em;
  font-weight: 640;
  margin: 0 0 14px;
}

.closing-section p {
  color: var(--muted-foreground);
  font-size: 15.5px;
  margin: 0 0 28px;
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  color: var(--muted-foreground);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
}

footer.site a {
  color: var(--muted-foreground);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--foreground);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* ---------- Legal page ---------- */

.legal main {
  padding-top: 56px;
  padding-bottom: 96px;
}

.legal .wrap.narrow {
  max-width: 680px;
}

.legal h1 {
  font-size: 34px;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--muted-foreground);
  font-size: 13.5px;
  margin: 0 0 44px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: #cfd0d4;
  font-size: 14.5px;
  line-height: 1.7;
}

.legal ul {
  padding-left: 20px;
  margin: 0;
}

.legal a {
  color: var(--primary);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
}

.back-link:hover {
  color: var(--foreground);
}

@media (max-width: 780px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }
  .hero-section {
    padding: 96px 0 64px;
  }
  .mock-stats {
    grid-template-columns: 1fr;
  }
}
