:root {
  --bg: #f2eee4;
  --surface: #fffdf8;
  --ink: #1b2a2f;
  --muted: #51636a;
  --line: #d6d0c4;
  --accent: #bb3e03;
  --accent-strong: #9a2f00;
  --accent-soft: #f6c3a3;
  --secondary: #005f73;
  --shadow: 0 14px 40px rgba(40, 31, 18, 0.12);
  --bg-glow-a: #ffe7d3;
  --bg-glow-b: #d7f0f5;
  --header-bg: rgba(242, 238, 228, 0.85);
  --header-border: rgba(39, 31, 18, 0.08);
  --grid-pattern-a: rgba(255, 255, 255, 0.35);
  --grid-pattern-b: rgba(0, 0, 0, 0.02);
  --proof-bg: #17313a;
  --proof-text: #f4fbfd;
  --stat-color: #ffd7be;
  --plan-a: linear-gradient(145deg, #fff8f1, #ffffff);
  --plan-b: linear-gradient(145deg, #ebf8fb, #ffffff);
  --plan-c: linear-gradient(145deg, #ffe6d9, #ffffff);
}

[data-theme="dark"] {
  --bg: #11181b;
  --surface: #1b2428;
  --ink: #ecf2f4;
  --muted: #9cb0b7;
  --line: #2c3a40;
  --accent: #ff8a4c;
  --accent-strong: #df6f35;
  --accent-soft: #46281c;
  --secondary: #4bc2d6;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --bg-glow-a: rgba(255, 138, 76, 0.18);
  --bg-glow-b: rgba(75, 194, 214, 0.2);
  --header-bg: rgba(13, 20, 23, 0.82);
  --header-border: rgba(255, 255, 255, 0.08);
  --grid-pattern-a: rgba(255, 255, 255, 0.08);
  --grid-pattern-b: rgba(255, 255, 255, 0.03);
  --proof-bg: #0f3842;
  --proof-text: #eaf9fc;
  --stat-color: #ffbb92;
  --plan-a: linear-gradient(145deg, #222d31, #1b2428);
  --plan-b: linear-gradient(145deg, #172c31, #1b2428);
  --plan-c: linear-gradient(145deg, #32231e, #1b2428);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 12%, var(--bg-glow-a) 0%, transparent 34%),
    radial-gradient(circle at 88% 24%, var(--bg-glow-b) 0%, transparent 30%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(110deg, var(--grid-pattern-a) 1px, transparent 1px),
    linear-gradient(20deg, var(--grid-pattern-b) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 58%, transparent 100%);
  z-index: -1;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: conic-gradient(from 45deg, var(--secondary), var(--accent), var(--secondary));
  box-shadow: 0 0 0 7px rgba(0, 95, 115, 0.08);
}

.brand-text {
  font-size: 1.05rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  padding: 74px 0 40px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: center;
}

.hero-copy-block {
  max-width: 560px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--secondary);
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  margin-top: 12px;
  max-width: 14ch;
}

.hero-copy {
  max-width: 58ch;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-visual {
  position: relative;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 138, 76, 0.16), rgba(75, 194, 214, 0.16));
  box-shadow: 0 22px 48px rgba(5, 12, 15, 0.34);
  overflow: visible;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 138, 76, 0.34);
  pointer-events: none;
}

.hero-preview {
  position: relative;
  z-index: 2;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 90%, #000 10%);
  border: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
}

.hero-preview img {
  width: 100%;
  display: block;
  height: auto;
  filter: saturate(1.08) contrast(1.06) brightness(1.02);
}

.hero-visual .theme-dark {
  display: none;
}

[data-theme="dark"] .hero-visual .theme-light {
  display: none;
}

[data-theme="dark"] .hero-visual .theme-dark {
  display: block;
}

.hero-visual-secondary {
  position: absolute;
  right: -7%;
  bottom: -12%;
  width: 46%;
  z-index: 3;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0.92;
  transform: rotate(-5deg);
  filter: saturate(1.05) contrast(1.03);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 14px 30px rgba(4, 10, 14, 0.35);
}

.hero-visual-secondary img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-copy-block .hero-actions {
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 11px 20px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.theme-toggle {
  appearance: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  padding: 0;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: var(--secondary);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  line-height: 1;
}

.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;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(0, 95, 115, 0.08);
  border-color: var(--secondary);
  color: var(--secondary);
}

.hero-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.metric-card h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
}

.proof {
  margin: 24px auto 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof article {
  background: var(--proof-bg);
  border-radius: 18px;
  color: var(--proof-text);
  padding: 16px;
}

.stat {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0 0 4px;
  color: var(--stat-color);
}

.proof p {
  margin: 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-top: 8px;
}

.features,
.timeline,
.plans,
.cta {
  margin-block: 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  counter-increment: step;
  position: relative;
  overflow: hidden;
}

.timeline ol {
  counter-reset: step;
}

.timeline li::before {
  content: "0" counter(step);
  position: absolute;
  right: 14px;
  top: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  color: rgba(0, 95, 115, 0.17);
}

.timeline li h3 {
  margin-bottom: 6px;
}

.timeline li p {
  margin: 0;
  color: var(--muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-grid article {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--plan-a);
  box-shadow: var(--shadow);
}

.plan-grid article:nth-child(2) {
  background: var(--plan-b);
}

.plan-grid article:nth-child(3) {
  background: var(--plan-c);
}

.plan-grid h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.plan-grid p {
  margin: 0;
  color: var(--muted);
}

.preset-note {
  margin: 16px 4px 0;
  color: var(--muted);
  font-weight: 500;
}

.cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px 20px;
  box-shadow: var(--shadow);
}

.cta p {
  max-width: 60ch;
  margin: 10px auto 22px;
  color: var(--muted);
}

.btn-main-cta {
  font-size: 1.06rem;
  font-weight: 800;
  padding: 14px 30px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px rgba(187, 62, 3, 0.32);
}

.btn-main-cta:hover {
  box-shadow: 0 14px 30px rgba(154, 47, 0, 0.36);
}

[data-theme="dark"] .btn-main-cta {
  box-shadow: 0 12px 26px rgba(255, 138, 76, 0.25);
}

.feedback {
  margin-block: 42px 56px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 18px;
  box-shadow: var(--shadow);
}

.feedback p {
  color: var(--muted);
  margin: 10px auto 18px;
}

.btn-feedback {
  min-width: 190px;
}

.cta small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--header-border);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy-block {
    max-width: 100%;
  }

  .hero-grid,
  .proof,
  .feature-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 68px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-visual {
    padding: 10px;
    border-radius: 18px;
  }

  .hero-visual-secondary {
    width: 54%;
    right: -5%;
    bottom: -10%;
    opacity: 0.9;
  }

  .hero-grid,
  .proof,
  .feature-grid,
  .plan-grid,
  .timeline ol {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
  }
}
