:root {
  --obsidian: #09090b;
  --surface: #121216;
  --surface-elevated: #17171d;
  --line: #222228;
  --line-hover: #32323c;
  --emerald: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.32);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.1);
  --cyan-border: rgba(34, 211, 238, 0.28);
  --volt: #ff5500;
  --ink: #fafafa;
  --ink-soft: #e4e4e7;
  --mute: #a1a1aa;
  --mute-dim: #71717a;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--obsidian);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--obsidian);
  background-image:
    radial-gradient(640px 380px at 15% -5%, rgba(16, 185, 129, 0.09), transparent 70%),
    radial-gradient(560px 340px at 85% 4%, rgba(34, 211, 238, 0.06), transparent 72%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container-narrow {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 34, 40, 0.85);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

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

.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--mute);
  transition: color 0.18s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

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

.btn-primary:hover {
  background: #14cf91;
}

.btn-store {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  padding: 12px 20px;
  border-radius: 14px;
  gap: 12px;
  min-width: 178px;
}

.btn-store:hover {
  border-color: var(--emerald-border);
  background: var(--surface-elevated);
}

.btn-store-accent {
  background: var(--emerald);
  color: var(--obsidian);
  border-color: var(--emerald);
  padding: 12px 20px;
  border-radius: 14px;
  gap: 12px;
  min-width: 178px;
}

.btn-store-accent:hover {
  background: #14cf91;
}

.store-icon {
  flex-shrink: 0;
  display: block;
}

.store-icon-apple {
  width: 21px;
  height: 26px;
  transform: translateY(-1px);
}

.store-icon-play {
  width: 24px;
  height: 24px;
}

.btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-label small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.82;
}

.btn-label strong {
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--obsidian);
  padding: 16px 24px 20px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(34, 34, 40, 0.65);
}

.mobile-drawer a:last-child {
  border-bottom: none;
}

/* Hero */
.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--emerald-border);
  background: var(--emerald-dim);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero h1 .accent {
  color: var(--emerald);
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--mute);
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-subnote {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--mute-dim);
}

.metrics-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.metric-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.metric-value {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.metric-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--mute);
}

/* Mobile App Showcase */
.mockup-wrap {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 336px;
  background: #0c0c10;
  border: 1px solid #2b2b34;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 32px 76px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(16, 185, 129, 0.1),
    0 0 64px rgba(16, 185, 129, 0.09);
}

.phone-screen {
  background: var(--obsidian);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid #1d1d24;
}

.phone-top-bar {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  background: var(--obsidian);
}

.phone-notch {
  width: 84px;
  height: 20px;
  border-radius: 999px;
  background: #030305;
  border: 1px solid #1a1a22;
}

.phone-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.phone-bottom-bar {
  display: flex;
  justify-content: center;
  padding: 6px 0 9px;
  background: var(--obsidian);
}

.phone-home-indicator {
  width: 108px;
  height: 4px;
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.24);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mock-date {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.mock-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mock-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.mock-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.mock-pill-emerald {
  background: var(--emerald-dim);
  color: var(--emerald);
}

.mock-pill-cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.mock-ring-wrap {
  position: relative;
  width: 126px;
  height: 126px;
  margin: 2px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-ring-center {
  position: absolute;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.mock-ring-num {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}

.mock-ring-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--mute);
}

.mock-bars {
  display: grid;
  gap: 8px;
}

.mock-bar-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.mock-bar-row span:first-child {
  color: var(--mute);
  font-weight: 600;
}

.mock-bar-row span:last-child {
  color: var(--ink);
  font-weight: 800;
}

.mock-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.mock-fill {
  height: 100%;
  border-radius: 999px;
}

.mock-fill-emerald {
  background: var(--emerald);
}

.mock-fill-cyan {
  background: var(--cyan);
}

.mock-fill-amber {
  background: #f5c16c;
}

.mock-quick {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--emerald-border);
  border-radius: 16px;
  padding: 11px 12px;
}

.mock-quick-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}

.mock-quick-box {
  margin-top: 7px;
  background: var(--obsidian);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink-soft);
}

.mock-schedule-item {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--emerald-border);
  border-radius: 14px;
  padding: 10px 12px;
}

.mock-schedule-meta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--emerald);
}

.mock-schedule-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 1px;
}

.mock-schedule-kcal {
  font-size: 10.5px;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.mock-check {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--obsidian);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid rgba(34, 34, 40, 0.7);
}

.section-header {
  max-width: 620px;
  margin-bottom: 38px;
}

.section-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}

.section-title {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.section-desc {
  margin: 12px 0 0;
  font-size: 15.5px;
  color: var(--mute);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--line-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--obsidian);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  margin-bottom: 18px;
}

.feature-icon.cyan {
  color: var(--cyan);
}

.feature-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mute);
}

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Steps Strip */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.step-card h3 {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.step-card p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--mute);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--mute);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--emerald);
}

.faq-body {
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--mute);
}

/* Bottom CTA Banner */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.cta-banner p {
  margin: 8px 0 0;
  color: var(--mute);
  font-size: 15px;
  max-width: 500px;
}

/* Legal Pages */
.legal-hero {
  padding: 56px 0 28px;
}

.legal-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.legal-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--mute);
}

.meta-pill.emerald {
  border-color: var(--emerald-border);
  background: var(--emerald-dim);
  color: var(--emerald);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 16px;
}

.legal-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.legal-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--obsidian);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.legal-card p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--mute);
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.legal-card li {
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.legal-link {
  color: var(--emerald);
  font-weight: 700;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mute);
}

.footer-links a:hover {
  color: var(--emerald);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(34, 34, 40, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--mute-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 48px 0 52px;
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav,
  .topbar-actions .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 28px 22px;
  }
}
