:root {
  --bg: #101318;
  --bg-0: #0c0e12;
  --surface: #1c2129;
  --surface-2: #242b34;
  --surface-3: #2c3540;
  --border: #343e4a;
  --border-2: #44505e;
  --text: #e8ecf1;
  --muted: #8e9aa8;
  --accent: #2db49e;
  --accent-2: #249986;
  --accent-dim: rgba(45, 180, 158, 0.14);
  --da: #58a4d6;
  --soil: #6eb070;
  --cover: #d6a458;
  --warn: #d68c58;
  --mustard: #c49a24;
  --red: #ec343e;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --header-h: 64px;
  --max: 1120px;
  --font: "Segoe UI", "Segoe UI Variable Text", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ee0d0; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #04110e;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.wrap-wide {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header — matches the app title bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(16, 19, 24, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 28px;
  height: 28px;
}
.wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
}
.nav a:hover,
.nav a.is-on {
  color: var(--text);
  background: var(--surface-2);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.menu-btn {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-2); }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #04110e;
  font-weight: 600;
}
.btn-accent:hover { background: #3ec8b1; color: #04110e; border-color: #3ec8b1; }
.btn-ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost:hover { background: var(--accent-dim); color: var(--accent); }
.btn-lg { min-height: 44px; padding: 0 18px; font-size: 15px; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { border-color: var(--border-2); }
.chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.chip-soon {
  border-style: dashed;
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: ken 28s ease-in-out alternate infinite;
}
@keyframes ken {
  from { transform: scale(1.06) translateY(0); }
  to { transform: scale(1.14) translateY(-2%); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,19,24,0.25) 0%, rgba(16,19,24,0.55) 45%, rgba(16,19,24,0.96) 100%),
    linear-gradient(90deg, rgba(16,19,24,0.55) 0%, rgba(16,19,24,0.1) 55%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
}
.kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin: 0 0 18px;
  max-width: 16ch;
}
.lede {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats div {
  background: rgba(28, 33, 41, 0.85);
  padding: 16px 18px;
}
.hero-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text);
}
.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section .sub {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 32px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card-body { padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
.card-link:hover .card,
.card:hover { border-color: var(--border-2); }
.card-link:hover .card { transform: translateY(-3px); }

.media-card img { height: 220px; object-fit: cover; object-position: center 12%; }

/* Sticky product stage */
.stage {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: start;
}
.stage-copy article {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  opacity: 0.38;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stage-copy article.is-in {
  opacity: 1;
  transform: none;
}
.stage-pin {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.shot {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #0c0e12;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: #0c0e12;
}
.shot img.is-on { opacity: 1; }

.da-overlay-art {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #101318;
}
.da-overlay-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.da-overlay-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.da-legend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.da-legend span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  color: #04110e;
}
.da-legend .lg-forest { background: #28783c; color: #e8ecf1; }
.da-legend .lg-grass { background: #5aaa5a; }
.da-legend .lg-imp { background: #5a5a64; color: #e8ecf1; }
.split-media .da-overlay-art { height: 360px; }

.layer-mock {
  height: 220px;
  background: var(--bg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.layer-mock .lm-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
}
.layer-mock select {
  flex: 1;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-height: 32px;
  padding: 0 8px;
}
.split-media .layer-mock { height: 360px; }

.app-frame {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-titlebar {
  height: 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.app-dots { display: flex; gap: 5px; }
.app-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-2);
  display: block;
}
.app-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.app-tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.app-tabs button.is-on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.app-body {
  display: grid;
  grid-template-columns: 140px 1fr 150px;
  min-height: 340px;
  background: var(--bg);
}
.app-palette, .app-cards {
  background: var(--surface);
  border-color: var(--border);
  padding: 10px;
  font-size: 11px;
  color: var(--muted);
}
.app-palette { border-right: 1px solid var(--border); }
.app-cards { border-left: 1px solid var(--border); }
.app-plan {
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, rgba(45,180,158,0.08), transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(52,62,74,0.35) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(52,62,74,0.35) 20px),
    #14181e;
  min-height: 340px;
}
.app-plan svg { width: 100%; height: 100%; display: block; }
.app-status {
  height: 26px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.da-card-mini {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
}
.da-card-mini b { color: var(--da); display: block; }
.row-mini {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
}

/* Feature split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: -1; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.split-media img { width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #0c0e12; }
.split ul { margin: 12px 0 0; padding: 0; list-style: none; }
.split li {
  padding: 8px 0 8px 18px;
  position: relative;
  color: var(--muted);
}
.split li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0; top: 15px;
}

/* Coming soon rail */
.soon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.soon-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px dashed var(--border-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.soon-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
.soon-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,19,24,0.15), rgba(16,19,24,0.92));
}
.soon-card .soon-body {
  position: relative;
  z-index: 1;
  padding: 16px;
}
.soon-card { color: var(--text); }
.soon-card:hover { color: var(--text); border-style: solid; border-color: var(--accent); }
.soon-card h3 { margin: 0 0 6px; font-size: 16px; }
.soon-card p { margin: 0; color: var(--muted); font-size: 13px; }
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(45,180,158,0.35);
  margin-bottom: 8px;
}
.badge-warn {
  background: rgba(214, 140, 88, 0.12);
  color: var(--warn);
  border-color: rgba(214, 140, 88, 0.35);
}

/* Pricing */
.bill-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 28px;
}
.bill-toggle button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.bill-toggle button.is-on {
  background: var(--surface-2);
  color: var(--text);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
  background: linear-gradient(180deg, rgba(45,180,158,0.08), var(--surface) 40%);
}
.price-card h3 { margin: 0 0 6px; }
.price {
  font-size: 40px;
  letter-spacing: -0.04em;
  margin: 12px 0 4px;
  font-weight: 650;
}
.price small { font-size: 16px; color: var(--muted); font-weight: 400; }
.price-note { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.price-card li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.fine { color: var(--muted); font-size: 13px; margin-top: 24px; }

/* Compare table */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th {
  background: var(--surface);
  font-weight: 600;
  position: sticky;
  top: 0;
}
.compare tbody tr:hover td { background: var(--surface); }
.compare .ours { color: var(--accent); font-weight: 600; }
.yes { color: var(--accent); }
.no { color: var(--muted); }
.mid { color: var(--cover); }

/* Product tabs page */
.prod-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  position: sticky;
  top: var(--header-h);
  background: var(--bg);
  z-index: 20;
}
.panel { display: none; }
.panel.is-on { display: block; }

.form {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.form input, .form select, .form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 15px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-note { color: var(--muted); font-size: 13px; margin: 0; }

.page-hero {
  padding: 56px 0 24px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  color: var(--muted);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-grid h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
}
.footer-grid a { display: block; color: var(--muted); padding: 4px 0; }
.footer-grid a:hover { color: var(--text); }
.legal { border-top: 1px solid var(--border); padding-top: 16px; }

.faq details {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.notice {
  background: var(--accent-dim);
  border: 1px solid rgba(45,180,158,0.35);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
}

@media (max-width: 1024px) {
  .soon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { grid-template-columns: 1fr; }
  .stage-pin { position: relative; top: 0; height: auto; display: block; }
  .shot { max-height: none; }
  .stage-copy article { min-height: 0; padding: 12px 0 28px; opacity: 1; transform: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-palette, .app-cards { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .nav, .header-actions .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { width: calc(100% - 20px); }
  .wrap, .wrap-wide { width: calc(100% - 28px); }
  .hero { min-height: 92vh; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .soon-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .split-media img { height: 220px; }
  .nav-drawer.is-open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    z-index: 49;
  }
  .nav-drawer a {
    color: var(--text);
    padding: 12px;
    border-radius: 6px;
  }
  .nav-drawer a:hover, .nav-drawer a.is-on { background: var(--surface-2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .stage-copy article { transition: none; }
}
