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

:root {
  --bg: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: #ffffff;
  --surface: #eef1f5;
  --ink: #1a2420;
  --ink-muted: #64748b;
  --ink-dark: #1a2420;
  --teal: #0d9488;
  --teal-dim: #0f766e;
  --teal-glow: rgba(13, 148, 136, 0.2);
  --border: #e2e8f0;
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --grad-punk: linear-gradient(135deg, #2563eb, #06b6d4);
  --grad-health: linear-gradient(135deg, #059669, #34d399);
  --grad-work: linear-gradient(135deg, #ea580c, #fbbf24);
  --grad-roadmap: linear-gradient(135deg, #0284c7, #7dd3fc);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 85% 5%, rgba(13, 148, 136, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  isolation: isolate;
}

main {
  position: relative;
  z-index: 1;
}

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

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav__mark { color: var(--teal); }
.nav__tld { color: var(--ink-muted); font-weight: 600; }

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s;
}

.nav__links a:hover { color: var(--ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.nav__login {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
  z-index: 2;
}

.nav__login:hover { color: var(--ink); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0.65rem 1.25rem;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 0.9rem 1.6rem; font-size: 0.95rem; }

.btn--primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--teal-glow);
}

.btn--primary:hover {
  background: var(--teal-dim);
  box-shadow: 0 8px 28px var(--teal-glow);
}

.btn--ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn--ghost:hover { background: var(--bg-elevated); }

/* ── Typography helpers ── */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.eyebrow--dark { color: var(--teal-dim); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 2.5rem 4rem;
}

.hero__copy {
  position: relative;
  z-index: 3;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 4;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal-dim) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
}

.hero__stats dt {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.hero__stats dd {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Dashboard preview mock (decorative — no click capture) ── */
.hero__preview,
.hero__preview * {
  pointer-events: none !important;
  user-select: none;
}

.hero__preview {
  perspective: 1200px;
}

.preview {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 48px -12px rgba(0, 0, 0, 0.12),
    0 0 40px rgba(13, 148, 136, 0.08);
  overflow: hidden;
}

.preview__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.preview__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}

.preview__chrome span:nth-child(1) { background: #fca5a5; }
.preview__chrome span:nth-child(2) { background: #fde047; }
.preview__chrome span:nth-child(3) { background: #86efac; }

.preview__chrome p {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}

.preview__body {
  padding: 1rem;
  background: #eef1f5;
}

.preview__welcome {
  background: #fff;
  border-radius: 10px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  position: relative;
}

.preview__welcome p {
  font-size: 0.72rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.preview__bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.preview__bar-fill {
  width: 43%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-dim), #34d399);
  border-radius: 99px;
}

.preview__count {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal-dim);
}

.preview__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.preview__col {
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.55rem;
}

.preview__col > span {
  display: block;
  font-weight: 700;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-dim);
  margin-bottom: 0.35rem;
}

.preview__col ul { list-style: none; }

.preview__col li {
  color: #94a3b8;
  padding: 0.1rem 0;
  padding-left: 0.65rem;
  position: relative;
}

.preview__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
}

.preview__col li.done { color: #334155; }
.preview__col li.done::before {
  background: var(--teal-dim);
  border-color: var(--teal-dim);
}

.preview__col li.ticket::before {
  background: #f59e0b;
  border-color: #f59e0b;
}

.preview__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.preview__tile {
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
}

.preview__tile--punk { background: var(--grad-punk); }
.preview__tile--health { background: var(--grad-health); }
.preview__tile--work { background: var(--grad-work); }
.preview__tile--map { background: var(--grad-roadmap); }

.preview__profile {
  margin-top: 0.4rem;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.52rem;
  color: #64748b;
}

.preview__profile span {
  font-weight: 700;
  color: var(--teal-dim);
  margin-right: 0.35rem;
}

.preview__col li.ticket.done {
  text-decoration: line-through;
  opacity: 0.55;
}

.section__head--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section__lead--center {
  margin-left: auto;
  margin-right: auto;
}

.bento__card--wide {
  grid-column: span 2;
}

.bento__card--dashboard::before {
  background: linear-gradient(135deg, var(--teal-dim), #34d399);
}

.bento__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.bento__tags li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 99px;
  background: var(--bg-elevated);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.bento__card--punk .bento__tags li { background: rgba(37, 99, 235, 0.08); }
.bento__card--health .bento__tags li { background: rgba(5, 150, 105, 0.08); }
.bento__card--work .bento__tags li { background: rgba(234, 88, 12, 0.08); }
.bento__card--roadmap .bento__tags li { background: rgba(2, 132, 199, 0.08); }

/* ── Feature grid ── */
.section--features {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  max-width: none;
}

.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.feature-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.feature-card__emoji { font-size: 1.5rem; line-height: 1; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-card > p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  max-width: 40ch;
}

.feature-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.feature-card__list li {
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding-left: 1rem;
  position: relative;
}

.feature-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.75rem;
}

.feature-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dim);
}

.feature-card__link:hover { text-decoration: underline; }

.feature-card--punk { border-top: 3px solid #2563eb; }
.feature-card--health { border-top: 3px solid #059669; }
.feature-card--work { border-top: 3px solid #ea580c; }
.feature-card--roadmap { border-top: 3px solid #0284c7; }

/* ── Sync section ── */
.section--sync {
  max-width: none;
  background: linear-gradient(145deg, #1a2420 0%, #243029 100%);
  color: #fff;
  padding: 6rem 2.5rem;
}

.section--sync .eyebrow { color: #6ee7b7; }
.section--sync .section__title--light { color: #fff; }
.section--sync .section__lead--light { color: rgba(255, 255, 255, 0.72); }

.sync-split {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.sync-table {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sync-table__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.sync-table__row:last-child { border-bottom: none; }

.sync-table__head {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.15);
}

.sync-table__yes { color: #fde047; font-weight: 600; }
.sync-table__once { color: #6ee7b7; font-weight: 600; }
.sync-table__no { color: rgba(255, 255, 255, 0.5); }

/* ── Profile section ── */
.profile-split {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.habit-features--light .habit-features li { color: var(--ink-muted); }

.profile-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.profile-mock__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-mock__sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.profile-mock__items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-mock__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-elevated);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-mock__item small {
  grid-column: 1;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.profile-mock__item mark {
  grid-row: span 2;
  align-self: center;
  background: none;
  color: #059669;
  font-size: 1rem;
}

/* ── CTA band extended ── */
.cta-band__lead {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.habit-demo__fill { width: 67%; }

.preview__bar-fill { width: 67%; }

/* ── Sections ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
}

.section--dark {
  max-width: none;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2.5rem;
}

.section__head { margin-bottom: 3rem; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink-dark);
}

.section--dark .section__title--light,
.section__title--light { color: var(--ink-dark); }

.section__lead {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 44ch;
  margin-top: 1rem;
}

.section__lead--light { color: var(--ink-muted); }

/* ── Bento grid ── */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.bento__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.bento__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.bento__card--punk::before { background: var(--grad-punk); }
.bento__card--health::before { background: var(--grad-health); }
.bento__card--work::before { background: var(--grad-work); }
.bento__card--roadmap::before { background: var(--grad-roadmap); }

.bento__card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.bento__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.bento__card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink-dark);
}

.bento__card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 32ch;
}

/* ── Habit split ── */
.habit-split {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.habit-features {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.habit-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.habit-features__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.habit-demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.habit-demo__row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.habit-demo__check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  cursor: default;
}

.habit-demo__check span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.habit-demo__check--on { color: var(--ink-dark); }
.habit-demo__check--on span {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.habit-demo__check--on span::after { content: "✓"; }

.habit-demo__check--ticket span {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.habit-demo__progress {
  margin-bottom: 1.25rem;
}

.habit-demo__track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.habit-demo__fill {
  width: 43%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-dim), #34d399);
  border-radius: 99px;
}

.habit-demo__progress > span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.habit-demo__week {
  display: flex;
  gap: 0.4rem;
}

.habit-demo__week span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--ink-muted);
}

.habit-demo__week span.on {
  background: var(--teal);
  color: #fff;
}

.habit-demo__week span.today {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}

/* ── CTA band ── */
.cta-band {
  text-align: center;
  padding: 6rem 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--ink-dark);
}

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__brand { color: var(--teal); font-weight: 600; }
.footer__sep { opacity: 0.4; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }

  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__preview { max-width: 520px; margin: 0 auto; }

  .preview { transform: none; animation: none; }
  .preview:hover { transform: translateY(-4px); }

  .habit-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .sync-split { grid-template-columns: 1fr; }
  .profile-split { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav__links { display: none; }

  .section, .section--dark, .section--features, .section--sync { padding: 4rem 1.25rem; }
  .bento { grid-template-columns: 1fr; }

  .preview__cols { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 1.5rem; }

  .sync-table__row {
    grid-template-columns: 1fr 1fr;
    font-size: 0.75rem;
  }
  .sync-table__row span:last-child { display: none; }
  .sync-table__head span:last-child { display: none; }
}

@media (max-width: 480px) {
  .nav__login { display: none; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
}
