:root {
  --navy: #0b1f3a;
  --navy-2: #132a4a;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --amber: #f59e0b;
  --amber-2: #d97706;
  --sky: #0284c7;
  --ok: #059669;
  --err: #dc2626;
  --warn: #d97706;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(11, 31, 58, 0.12);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .75rem;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); color: var(--navy); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); color: var(--navy); }
h3 { font-size: 1.15rem; color: var(--navy); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: block; object-fit: cover;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28);
}
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--navy); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: white;
  border-radius: 10px; padding: .45rem .6rem; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: none; border-radius: 999px; padding: .85rem 1.35rem;
  font-weight: 700; cursor: pointer; transition: .18s ease;
}
.btn-primary { background: var(--amber); color: #111827; }
.btn-primary:hover { background: var(--amber-2); color: white; transform: translateY(-1px); }
.btn-secondary {
  background: white; color: var(--navy);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.btn-secondary:hover { border-color: #cbd5e1; }
.btn-dark { background: var(--navy); color: white; }
.btn-dark:hover { background: var(--navy-2); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Hero */
.hero { padding: 3.5rem 0 4rem; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: white; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .75rem; font-size: .85rem; color: var(--muted); font-weight: 600;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.hero-note { font-size: .92rem; color: var(--muted); }
.hero-card {
  background: linear-gradient(160deg, var(--navy) 0%, #16365f 55%, #0c4a6e 100%);
  border-radius: 28px; padding: 1.5rem; color: white; box-shadow: var(--shadow);
  position: relative; min-height: 360px;
}
.hero-card::after {
  content: ""; position: absolute; inset: auto -20% -30% 40%;
  height: 220px; background: radial-gradient(circle, rgba(245,158,11,.35), transparent 65%);
  pointer-events: none;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem;
}
.stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: .9rem;
}
.stat strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.stat span { font-size: .8rem; opacity: .78; }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #eff6ff; color: var(--sky); margin-bottom: .9rem;
}
.problem .card { background: #fff7ed; border-color: #fed7aa; }
.solution .card { background: #ecfdf5; border-color: #a7f3d0; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: .25rem; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: white; display: grid; place-items: center;
  font-weight: 800; margin-bottom: .8rem;
}

/* Demo phone */
.demo-layout {
  display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start;
}
.phone {
  width: 100%; max-width: 340px; margin-inline: auto;
  background: #0f172a; border-radius: 36px; padding: 14px;
  box-shadow: var(--shadow); border: 1px solid #1e293b;
}
.phone-notch {
  width: 120px; height: 22px; background: #020617; border-radius: 0 0 14px 14px;
  margin: 0 auto 10px;
}
.phone-screen {
  background: #f1f5f9; border-radius: 24px; overflow: hidden; min-height: 560px;
  display: flex; flex-direction: column;
}
.app-bar {
  background: var(--navy); color: white; padding: 1rem 1rem .85rem;
}
.app-bar small { opacity: .75; display: block; margin-bottom: .15rem; }
.app-body { padding: 1rem; display: flex; flex-direction: column; gap: .85rem; flex: 1; }
.field label {
  display: block; font-size: .78rem; font-weight: 700; color: var(--muted);
  margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .04em;
}
.field input, .field select, .seg {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .8rem; background: white; color: var(--ink);
}
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; gap: .25rem; }
.seg button {
  border: none; border-radius: 10px; padding: .55rem; background: transparent;
  font-weight: 700; color: var(--muted); cursor: pointer;
}
.seg button.active { background: var(--navy); color: white; }
.dropzone {
  border: 2px dashed #94a3b8; border-radius: 16px; padding: 1.1rem;
  text-align: center; background: white; cursor: pointer; transition: .15s ease;
  min-height: 140px; display: grid; place-items: center;
}
.dropzone.dragover { border-color: var(--sky); background: #e0f2fe; }
.dropzone img { max-height: 120px; margin: 0 auto .5rem; border-radius: 8px; }
.dropzone .hint { font-size: .85rem; color: var(--muted); }
.status-track { display: flex; gap: .35rem; flex-wrap: wrap; }
.status-pill {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: .35rem .55rem; border-radius: 999px; background: #e2e8f0; color: #475569;
}
.status-pill.on-nou { background: #dbeafe; color: #1d4ed8; }
.status-pill.on-run { background: #fef3c7; color: #b45309; }
.status-pill.on-ok { background: #d1fae5; color: #047857; }
.status-pill.on-err { background: #fee2e2; color: #b91c1c; }
.demo-panel .card { min-height: 180px; }
.result-box {
  background: #0b1220; color: #e2e8f0; border-radius: 14px; padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem;
  white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto;
}
.disclaimer {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .92rem;
}

/* FAQ */
.faq details {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.15rem; margin-bottom: .75rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { color: var(--muted); margin: .75rem 0 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #0c4a6e);
  color: white; border-radius: 28px; padding: 2.5rem; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2, .cta-band p { color: white; }
.cta-band p { opacity: .85; max-width: 36rem; margin: 0 auto 1.25rem; }
.cta-band .btn-primary { box-shadow: 0 8px 24px rgba(245,158,11,.35); }

/* Pricing */
.pricing { background: #f1f5f9; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 1.25rem; }
.pricing-card { padding: 2rem; text-align: center; }
.pricing-card .eyebrow { justify-content: center; }
.pricing-card .price { margin: .25rem 0 1rem; color: var(--navy); }
.pricing-card .price strong { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.04em; }
.pricing-card .price span { color: var(--muted); }
.pricing-card .btn { margin-top: .75rem; }
.pricing-featured { border: 2px solid var(--amber); box-shadow: var(--shadow); }
.pricing-note { max-width: 760px; margin: 1.25rem auto 0; text-align: center; color: var(--muted); font-size: .88rem; }
.pricing-note a { color: var(--sky); text-decoration: underline; }

footer {
  padding: 2.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 920px) {
  .hero-grid, .demo-layout, .grid-2, .grid-3, .grid-4, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 68px;
    background: white; border: 1px solid var(--line); border-radius: 14px;
    flex-direction: column; padding: 1rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* Legal / static pages */
.legal-wrap { padding: 2.5rem 0 4rem; }
.legal-wrap .legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.06);
}
.legal-wrap .meta {
  color: var(--muted); font-size: .95rem; margin: 0 0 1.5rem;
}
.legal-wrap h1 { margin-bottom: .35rem; }
.legal-wrap h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-wrap h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.legal-wrap p, .legal-wrap li { color: var(--muted); }
.legal-wrap ul, .legal-wrap ol { padding-left: 1.2rem; }
.legal-wrap li { margin: .35rem 0; }
.legal-wrap a { color: var(--sky); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap .toc {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.15rem; margin: 1.25rem 0 1.75rem;
}
.legal-wrap .toc a { text-decoration: none; }
.legal-wrap .toc ol { margin: .5rem 0 0; }
.legal-wrap .note {
  margin-top: 1.5rem; padding: .9rem 1rem; border-radius: 12px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: .95rem;
}
.legal-form {
  display: grid; gap: .85rem; margin-top: 1.25rem;
  max-width: 36rem;
}
.legal-form label { display: grid; gap: .35rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
.legal-form input, .legal-form select, .legal-form textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem;
  background: white; color: var(--ink);
}
.legal-form textarea { min-height: 120px; resize: vertical; }
.lang-switch { display: flex; gap: .75rem; flex-wrap: wrap; margin: .75rem 0 0; font-size: .9rem; }
