:root {
  --green-950: #142306;
  --green-900: #1a2e05;
  --green-700: #3f6212;
  --green-600: #4d7c0f;
  --green-500: #65a30d;
  --green-100: #ecfccb;
  --green-50: #f7fee7;
  --pit: #92400e;
  --ink: #18181b;
  --muted: #52525b;
  --line: #e4e4e7;
  --bg: #fafaf9;
  --radius: 1rem;
  --surface: #fff;
  --bar: #f4f4f5;
  --dot: #d4d4d8;
  --accent: var(--green-700);
  --tint: var(--green-100);
  --visual: linear-gradient(135deg, var(--green-50), #fef3c7);
  color-scheme: light;
}

/* Set by the inline script in <head>: saved choice, else the system setting */
:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --line: #2a3320;
    --bg: #0d1208;
    --surface: #151c0f;
    --bar: #1e2618;
    --dot: #3f4a35;
    --accent: #bef264;
    --tint: rgb(101 163 13 / .2);
    --visual: linear-gradient(135deg, #1a2e05, #2a1c0b);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-500); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-ghost { color: #fff; border: 1px solid rgb(255 255 255 / .3); }
.btn-ghost:hover { background: rgb(255 255 255 / .08); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(20 35 6 / .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { color: #d4d4d8; text-decoration: none; font-size: 0.925rem; }
.nav a:not(.btn):hover { color: #fff; }
.theme-toggle {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  border: 1px solid rgb(255 255 255 / .2); border-radius: 999px;
  background: transparent; color: #d4d4d8; cursor: pointer;
}
.theme-toggle:hover { color: #fff; background: rgb(255 255 255 / .08); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(60rem 30rem at 85% -10%, rgb(101 163 13 / .35), transparent 60%),
              radial-gradient(40rem 25rem at -10% 110%, rgb(146 64 14 / .25), transparent 60%),
              var(--green-950);
  color: #fff; padding: 5rem 0 6rem;
}
.hero .wrap { display: grid; gap: 3rem; grid-template-columns: 1.05fr 1fr; align-items: center; }
.eyebrow {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px;
  background: rgb(101 163 13 / .18); color: #bef264; font-size: 0.8rem; font-weight: 600; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; margin: 1rem 0; }
.hero h1 span { color: #bef264; }
.hero p.lead { font-size: 1.15rem; color: #d4d4d8; max-width: 34rem; margin: 0 0 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Screenshot frames */
.shot {
  margin: 0; background: var(--surface); border-radius: 0.9rem; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .06);
}
.shot img { width: 100%; height: auto; }
/* Light and dark captures of the same screen, split diagonally */
.split { position: relative; }
.split .dark { position: absolute; inset: 0; clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%); }
.mock-bar { display: flex; gap: 0.35rem; align-items: center; padding: 0.6rem 0.8rem; background: var(--bar); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--dot); }
.mock-bar b { margin-left: 0.6rem; font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.hero-shots { position: relative; padding-bottom: 18%; }
.hero-shots .back { width: 88%; transform: rotate(-1.5deg); }
.hero-shots .front { position: absolute; width: 78%; right: 0; bottom: 0; }

/* Sections */
section { padding: 5.5rem 0; scroll-margin-top: 4rem; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0.5rem 0 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.feature h3 { margin: 1rem 0 0.4rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); }
.icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
}

/* Products */
.products { background: var(--surface); border-block: 1px solid var(--line); }
.product { display: grid; gap: 3rem; grid-template-columns: 1fr 1.3fr; align-items: center; }
.product.reverse { grid-template-columns: 1.3fr 1fr; }
.product + .product { margin-top: 5rem; }
.product.reverse .product-copy { order: 2; }
.product-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--accent); }
.product h3 { font-size: 1.9rem; line-height: 1.2; margin: 0.5rem 0 1rem; letter-spacing: -0.01em; }
.product p { color: var(--muted); margin: 0 0 1.25rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 8.2-8.2-1.1-1.1z'/%3E%3C/svg%3E") center/0.9rem no-repeat;
}
.mini-grid { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mini { background: var(--bg); border: 1px solid var(--line); border-radius: 0.875rem; padding: 1.25rem; }
.mini h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.mini p { margin: 0; color: var(--muted); font-size: 0.925rem; }
.product-visual { background: var(--visual); border-radius: 1.25rem; padding: 1.25rem; }
.soon {
  margin-top: 5rem; padding: 2rem; border: 2px dashed var(--line); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.soon h3 { margin: 0 0 0.25rem; }
.soon p { margin: 0; color: var(--muted); }

/* Process */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-weight: 800; font-size: 1.5rem; color: var(--green-500);
}
.step h3 { margin: 0.5rem 0 0.35rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Policies */
.policies { background: var(--surface); border-block: 1px solid var(--line); }
.policy-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.policy h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.policy p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* CTA */
.cta {
  background: radial-gradient(40rem 20rem at 100% 0, rgb(101 163 13 / .35), transparent 60%), var(--green-950);
  color: #fff; border-radius: 1.5rem; padding: 3.5rem 2rem; text-align: center;
}
.cta h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin: 0 0 0.75rem; }
.cta p { color: #d4d4d8; margin: 0 auto 2rem; max-width: 32rem; }
.cta .mail { display: block; margin-top: 1rem; color: #bef264; }

/* Footer */
.site-footer { padding: 3rem 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-footer .brand { color: var(--ink); }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); text-decoration: none; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero .wrap, .product, .product.reverse { grid-template-columns: 1fr; }
  .product.reverse .product-copy { order: 0; }
  section { padding: 4rem 0; }
}
@media (max-width: 640px) {
  .nav a:not(.btn):not(.lang) { display: none; }
  .nav { gap: 1rem; }
  .product-visual { padding: 1rem; }
  .cta { padding: 2.5rem 1.25rem; }
}
