:root {
  --green: #1e8a09;
  --green-deep: #015c10;
  --green-deep-2: #01480c;
  --green-bright: #3dcc45;
  --green-soft: #e8f8eb;
  --green-mint: #f3fbf4;
  --ink: #0c1420;
  --muted: #5c6774;
  --line: #e5ece7;
  --sidebar: #013122;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(12, 40, 22, 0.08);
  --header: 76px;
  --radius: 16px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green-deep);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(16, 40, 24, 0.05);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo img { height: 48px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav a, .nav-drop > button {
  background: none;
  border: 0;
  color: #1c2430;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav a:hover, .nav-drop > button:hover { color: var(--green); }
.nav a.is-active {
  color: var(--green);
  box-shadow: inset 0 -2px 0 var(--green);
  border-radius: 0;
}
.chev { width: 12px; height: 12px; opacity: 0.7; }

.nav-drop { position: relative; }
.menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 40, 24, 0.12);
  display: none;
}
.nav-drop:hover .menu,
.nav-drop:focus-within .menu,
.nav-drop.is-open .menu { display: grid; }
.menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: none;
}
.menu a small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  margin-top: 2px;
}
.menu a:hover { background: var(--green-mint); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-solid {
  color: #fff;
  background: linear-gradient(180deg, #067814 0%, #01560e 100%);
  box-shadow: 0 8px 18px rgba(1, 86, 14, 0.22);
}
.btn-solid:hover { background: linear-gradient(180deg, #078c18 0%, #01480c 100%); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: #d9e0dc;
}
.btn-ghost:hover { border-color: #b7c6bc; }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: #d5ddd8;
  padding-left: 10px;
}
.headset {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 42%, rgba(94, 214, 92, 0.22), transparent 60%),
    radial-gradient(700px 380px at 8% 88%, rgba(190, 236, 176, 0.4), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
  min-height: calc(100vh - var(--header));
  min-height: calc(100dvh - var(--header));
  display: flex;
  align-items: stretch;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero::before {
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(126, 214, 96, 0.45), transparent 68%);
}
.hero::after {
  width: 420px;
  height: 320px;
  right: -120px;
  bottom: -80px;
  background: radial-gradient(closest-side, rgba(190, 236, 176, 0.45), transparent 72%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 500px) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: calc(100vh - var(--header));
  min-height: calc(100dvh - var(--header));
  padding-left: max(36px, 4vw);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 36px 12px 36px 0;
  max-width: 520px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e9fbea;
  color: #146b12;
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  font-size: 13px;
  font-weight: 700;
}
.badge i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.badge i span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19a322;
}
h1 {
  margin: 16px 0 0;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h1 .accent { color: #1f8c08; }
.lede {
  max-width: 520px;
  margin: 18px 0 0;
  color: #4d5966;
  font-size: 16.5px;
  line-height: 1.6;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #2a3441;
  font-size: 14px;
  font-weight: 600;
}
.checks li { display: flex; align-items: center; gap: 8px; }
.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #18a322;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

/* Hero product shot */
.stage {
  position: relative;
  align-self: stretch;
  min-height: calc(100vh - var(--header));
  min-height: calc(100dvh - var(--header));
  overflow: hidden;
}
.hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  object-view-box: inset(6% 0% 0% 24%);
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 10%, #000 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 10%, #000 28%, #000 100%);
}
/* Trust */
.trust {
  background: #fff;
  border-top: 1px solid #f0f3f1;
  border-bottom: 1px solid #f0f3f1;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  color: #223028;
  font-weight: 700;
  font-size: 14px;
}
.trust-label { white-space: nowrap; }
.trust-label::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #d5ddd8;
  margin-left: 18px;
  vertical-align: middle;
}
.trust-items {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-items li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.trust-items svg { color: var(--green); }

/* Sections */
.section { padding: 72px 0; scroll-margin-top: 84px; }
.card, .sol, .price, .resource { scroll-margin-top: 96px; }
.section h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.engine-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: stretch;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  background: #fff;
  border: 1px solid #e7eee9;
  border-radius: 18px;
  padding: 16px 14px 18px;
  box-shadow: 0 8px 22px rgba(16, 40, 24, 0.04);
}
.card:hover { border-color: #cfe3d4; box-shadow: var(--shadow); }
.ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef8ef;
  color: #178a22;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.card h3 { margin: 0; font-size: 15px; letter-spacing: -0.02em; }
.card p { margin: 6px 0 0; color: #66727c; font-size: 13px; line-height: 1.45; }

.integrate {
  border-radius: 22px;
  padding: 26px 22px 18px;
  color: #fff;
  background:
    radial-gradient(120px 80px at 70% 20%, rgba(120, 255, 140, 0.35), transparent 70%),
    linear-gradient(165deg, #0c6a32 0%, #05381c 48%, #02180e 100%);
  box-shadow: 0 16px 30px rgba(3, 40, 18, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.integrate h3 { margin: 0; font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; }
.integrate p { margin: 10px 0 0; color: rgba(255,255,255,0.82); font-size: 14px; }
.stack {
  margin-top: auto;
  height: 210px;
  position: relative;
  perspective: 700px;
}
.plate {
  position: absolute;
  left: 36px;
  right: 18px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #083018;
  background: linear-gradient(180deg, #b6ff78 0%, #3adf55 45%, #149a32 100%);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.7);
  transform: rotateX(48deg) rotateZ(-28deg);
}
.plate:nth-child(1) { top: 8px; }
.plate:nth-child(2) { top: 46px; }
.plate:nth-child(3) { top: 84px; }
.plate:nth-child(4) { top: 122px; }
.plate:nth-child(5) { top: 160px; opacity: 0.95; }

.band { background: linear-gradient(180deg, #fff, #f6fbf7); }
.solutions {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sol {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
}
.sol h3 { margin: 12px 0 6px; }
.sol p { margin: 0; color: var(--muted); font-size: 14px; }

.price-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price.featured {
  border-color: #8dce96;
  background: linear-gradient(180deg, #f4fbf5, #fff 40%);
  box-shadow: var(--shadow);
}
.price .tag {
  align-self: flex-start;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
}
.price h3 { margin: 6px 0 0; }
.amount { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; margin: 4px 0; line-height: 1.15; }
.amount span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price ul { margin: 8px 0 18px; padding: 0; list-style: none; color: #3d4954; }
.price li { padding: 7px 0 7px 22px; position: relative; }
.price li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18a322;
  position: absolute;
  left: 0;
  top: 13px;
}
.price .btn { margin-top: auto; }

.dev-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.dev-points { margin: 18px 0 0; padding: 0; list-style: none; }
.dev-points li { padding: 8px 0 8px 26px; position: relative; }
.dev-points li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #18a322 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2 6.6 11 12 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  position: absolute;
  left: 0;
  top: 11px;
}
.code {
  background: #07150e;
  color: #d7f5df;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(3, 24, 12, 0.25);
  overflow: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
}
.code .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.code .bar i { width: 10px; height: 10px; border-radius: 50%; background: #1d5a32; display: block; }
.code .k { color: #8dffa8; }
.code .s { color: #fff4b0; }
.code .c { color: #7d9a88; }

.resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.resource {
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
.resource h3 { margin: 0 0 6px; }
.resource p { margin: 0; color: var(--muted); }
.resource span { display: inline-block; margin-top: 14px; color: var(--green); font-weight: 800; }

.cta-band {
  margin: 0;
  width: 100%;
}
.cta-inner {
  width: 100%;
  background:
    radial-gradient(400px 160px at 90% 0%, rgba(140, 255, 150, 0.28), transparent 70%),
    linear-gradient(100deg, #046114, #023812);
  color: #fff;
  border-radius: 0;
  padding: 48px max(28px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { margin: 8px 0 0; color: rgba(255,255,255,0.82); }
.cta-inner .btn-ghost { color: var(--green-deep); }

.footer {
  background: #f7faf8;
  border-top: 1px solid var(--line);
  padding: 42px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
}
.footer h4 { margin: 0 0 12px; font-size: 14px; }
.footer a, .footer p { color: #52606a; font-size: 14px; }
.footer li { list-style: none; margin: 8px 0; }
.footer ul { margin: 0; padding: 0; }
.footer-logo { height: 42px; width: auto; margin-bottom: 10px; }
.footer-address { margin: 0 0 10px; line-height: 1.5; }
.footer-phones { margin: 0 0 12px; padding: 0; }
.footer-phones li { margin: 4px 0; }
.footer-phones a { font-weight: 700; color: var(--green-deep); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 8px;
}
.footer-contact p { margin: 0; }
.footer-contact a { font-weight: 700; color: var(--green-deep); margin-right: 16px; }
.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  color: #70807a;
  font-size: 13px;
}
.legal p { margin: 0; }
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #52606a;
  font-size: 13px;
}
.powered-by img {
  height: 40px;
  width: auto;
  display: block;
}

/* Auth pages */
.auth-page {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 40px 16px 64px;
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(120, 220, 110, 0.25), transparent 70%),
    #f7fbf8;
}
.auth-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 30px; }
.auth-card .lede { margin-top: 8px; }
label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d7e0da;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(30, 138, 9, 0.25);
  border-color: #1e8a09;
}
.auth-card .btn { width: 100%; margin-top: 18px; }
.auth-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-or[hidden],
.google-slot[hidden],
.auth-card form[hidden],
.form-success[hidden],
.form-error[hidden] {
  display: none !important;
}
.auth-or::before,
.auth-or::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.google-slot {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.google-slot iframe { max-width: 100% !important; }
.btn-google {
  width: 100%;
  margin-top: 0;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #c8d0cb;
  box-shadow: none;
}
.btn-google:hover { background: #f7faf8; }
.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 14px;
}
.fine { margin: 14px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.fine a { color: var(--green-deep); font-weight: 700; }
.form-success {
  text-align: center;
  padding: 12px 0 6px;
}
.form-success h2 { font-size: 26px; }
.form-success p { color: var(--muted); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 14, 0.48);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card { width: min(480px, 100%); position: relative; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .engine-grid, .dev-grid, .footer-grid { grid-template-columns: 1fr; }
  .integrate { min-height: 360px; }
  .trust-row { flex-wrap: wrap; padding: 16px 0; }
  .trust-label::after { display: none; }
  .trust-items { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    margin: 0;
    box-shadow: 0 16px 30px rgba(0,0,0,0.06);
  }
  .nav.is-open { display: flex; }
  .menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .header-actions .btn-ghost { display: none; }
  .hero { min-height: 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 20px 8px;
  }
  .hero-copy { max-width: none; padding: 8px 0 12px; }
  .stage { min-height: 52vw; }
  .hero-shot {
    position: relative;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
  }
  .solutions, .price-grid, .resources { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 28px; }
  .legal { flex-direction: column; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .checks { flex-direction: column; gap: 10px; }
  .logo img { height: 40px; }
  .header-actions .btn-sm { padding: 8px 12px; font-size: 13px; }
  h1 { font-size: 34px; }
}
