:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --ink: #0b1020;
  --muted: #55607a;
  --line: #e3e7f0;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d18;
    --bg-soft: #121729;
    --ink: #eef1f8;
    --muted: #9aa3bb;
    --line: #232a40;
    --accent: #818cf8;
    --accent-ink: #0a0d18;
    --accent-soft: #1b2040;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .01em; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  display: grid; place-items: center; color: #fff; font-size: .95rem; font-weight: 800;
}
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink); font-size: 1rem; cursor: pointer; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }

/* Hero */
.hero { padding: 96px 0 80px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .85rem; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.08; margin: 0 auto 18px; max-width: 14ch; letter-spacing: -.02em; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 10px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
section:not(.alt) .card { background: var(--bg-soft); }
.card h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

.product { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.product h3 { margin: 4px 0 0; font-size: 1.5rem; }
.product .product-line { color: var(--ink); font-weight: 600; }
.product .btn { margin-top: auto; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* Contact */
.contact { display: grid; gap: 40px; grid-template-columns: 1fr 1.2fr; align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.hidden { display: none; }

/* Legal / doc pages */
.doc { max-width: 720px; padding: 64px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 6px; letter-spacing: -.01em; }
.doc .meta { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: var(--bg-soft); }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.form-status { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-weight: 600; }
