:root {
  --bg: #faf8f5;
  --bg-alt: #f2eee8;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #5e6470;
  --border: #e7e2da;
  --accent: #2f5bea;
  --accent-ink: #ffffff;
  --accent-soft: #e8edfd;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(22, 24, 29, 0.07);
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #151820;
    --card: #1a1e27;
    --ink: #f3f4f6;
    --muted: #a3a9b6;
    --border: #2a303c;
    --accent: #7d9bff;
    --accent-ink: #0f1115;
    --accent-soft: #1d2540;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }

.wrap { max-width: var(--max); 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(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.4px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: -0.5px;
}
.brand em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* hero */
.hero { padding: 96px 0 72px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 22px; font-weight: 800; max-width: 14ch; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--ink); }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.8px; line-height: 1.15; margin: 0 0 12px; }
.section-lead { color: var(--muted); max-width: 56ch; margin: 0 0 36px; }
h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.2px; }

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); }

.app-card { display: flex; gap: 22px; align-items: flex-start; color: inherit; }
.app-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .2s ease; }
.app-icon { width: 84px; height: 84px; border-radius: 20px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.app-card h3 { font-size: 24px; margin-bottom: 2px; }
.app-tag { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.app-more { font-weight: 700; color: var(--accent); margin-top: 10px; display: inline-block; }
.card.soon { border-style: dashed; box-shadow: none; background: transparent; display: grid; place-items: center; text-align: center; min-height: 168px; }
.card.soon strong { display: block; margin-bottom: 4px; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }

/* product page */
.product-hero { padding: 72px 20px 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.product-hero h1 { max-width: 16ch; font-size: clamp(34px, 5vw, 54px); }
.video-frame { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 6px solid var(--ink); box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.badge-soon { padding: 10px 18px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; background: var(--card); }

.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); }

.lang-list { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-list span { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

.price-box { max-width: 520px; }
.price-box .big { font-size: 34px; font-weight: 800; letter-spacing: -1px; }

/* document pages */
.doc { padding: 56px 20px 96px; max-width: 800px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); max-width: none; margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.4px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.notice { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; margin: 24px 0; color: var(--ink); }

details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details p { margin: 0 0 16px; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 800px) {
  .grid.cols-3, .grid.cols-2, .steps { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .hero { padding: 56px 0 40px; }
  section { padding: 52px 0; }
  .nav-links { gap: 14px; font-size: 14px; }
  .app-card { flex-direction: column; }
}

@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav-links a:nth-child(1), .nav-links a:nth-child(2) { display: none; }
}
