:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --surface: #1a1a26;
  --surface-hover: #222230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f8;
  --text-muted: #9ca3b8;
  --text-dim: #6b7288;
  --primary: #2196f3;
  --primary-hover: #42a5f5;
  --primary-glow: rgba(33, 150, 243, 0.35);
  --accent: #03dac6;
  --accent-soft: rgba(3, 218, 198, 0.12);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --container: min(1120px, calc(100% - 3rem));
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 32px var(--primary-glow);
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Nav */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a:not(.btn) {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% 0 auto;
  height: 70%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(33, 150, 243, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(3, 218, 198, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--primary);
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 560px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.store-badge {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--surface);
}

.store-badge--soon {
  opacity: 0.85;
}

.hero-device {
  position: relative;
  padding-bottom: 5rem;
}

.device-frame {
  max-width: 380px;
  margin-inline: auto;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2a2a38, #14141c);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.device-screen {
  padding: 1.25rem;
  border-radius: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.mock-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.mock-calendar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mock-day {
  flex: 1;
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.mock-day--active {
  color: #fff;
  background: var(--primary);
  font-weight: 600;
}

.mock-entries {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.625rem;
}

.mock-entries li {
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.mock-cat {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-cat--health {
  background: rgba(3, 218, 198, 0.15);
  color: var(--accent);
}

.mock-cat--work {
  background: rgba(33, 150, 243, 0.15);
  color: var(--primary);
}

.mock-cat--social {
  background: rgba(186, 104, 255, 0.15);
  color: #c9a0ff;
}

.mock-habit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(3, 218, 198, 0.2);
  font-size: 0.875rem;
}

.mock-streak {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

/* Highlights */
.highlights {
  padding: 2rem 0 5rem;
}

.highlights .container {
  display: grid;
  gap: 1.25rem;
}

.highlight-card {
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.highlight-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
}

.highlight-card p {
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

/* Features */
.features {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent, rgba(18, 18, 26, 0.6) 20%, transparent);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: rgba(33, 150, 243, 0.12);
  color: var(--primary);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Pricing */
.pricing {
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  padding: 2.25rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--border);
}

.price-card--featured {
  border-color: rgba(33, 150, 243, 0.45);
  background: linear-gradient(180deg, rgba(33, 150, 243, 0.08), var(--surface));
  box-shadow: 0 16px 48px rgba(33, 150, 243, 0.12);
}

.price-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(33, 150, 243, 0.15);
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.price-amount {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 1;
}

.price-amount span {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-dim);
}

.price-alt {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.price-features {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}

.price-features li {
  position: relative;
  padding-left: 1.375rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Reviews */
.reviews {
  padding: 5rem 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  margin: 0;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.review-card p {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
}

.review-card footer {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* CTA */
.cta {
  padding: 6rem 0;
}

.cta-inner {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(33, 150, 243, 0.15), transparent),
    var(--surface);
  border: 1px solid var(--border);
}

.cta-inner h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
}

.cta-inner p {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-tagline {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  :root {
    --container: min(1120px, calc(100% - 2rem));
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--nav-height) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a.btn {
    margin-top: 0.5rem;
    border: 0;
  }

  body.nav-open .nav-toggle-bar:first-of-type {
    transform: translateY(3.5px) rotate(45deg);
  }

  body.nav-open .nav-toggle-bar:last-of-type {
    transform: translateY(-3.5px) rotate(-45deg);
  }

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

  .hero {
    padding-top: 2.5rem;
  }

  .highlight-card {
    padding: 1.5rem;
  }
}
