:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-strong: #ebebf0;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #3a6df0;
  --accent-strong: #2b55c9;
  --accent-text: #ffffff;
  --accent-soft: rgba(58, 109, 240, 0.1);
  --border: #d2d2d7;
  --hero-glow: radial-gradient(60% 60% at 75% 30%, rgba(123, 79, 184, 0.16), transparent 70%),
               radial-gradient(50% 50% at 20% 10%, rgba(58, 109, 240, 0.14), transparent 70%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.25);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --surface: #1a1a1f;
    --surface-strong: #24242b;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #5b8cff;
    --accent-strong: #7aa2ff;
    --accent-text: #0b1020;
    --accent-soft: rgba(91, 140, 255, 0.14);
    --border: #2c2c33;
    --hero-glow: radial-gradient(60% 60% at 75% 30%, rgba(123, 79, 184, 0.28), transparent 70%),
                 radial-gradient(50% 50% at 20% 10%, rgba(58, 109, 240, 0.22), transparent 70%);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links .lang { border: 1px solid var(--border); border-radius: 8px; padding: 2px 8px; font-size: 13px; font-weight: 600; }
.nav-links .nav-buy { color: var(--accent-text); background: var(--accent); padding: 6px 14px; border-radius: 980px; font-weight: 600; }
.nav-links .nav-buy:hover { color: var(--accent-text); background: var(--accent-strong); }
@media (max-width: 640px) { .nav-links .optional { display: none; } .nav-links { gap: 14px; } }

/* Buttons */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 980px; font-weight: 600; font-size: 17px;
  text-decoration: none; border: 1px solid var(--accent); transition: background 0.15s, transform 0.15s;
}
.button:hover { transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }
.primary { background: var(--accent); color: var(--accent-text); }
.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.secondary { color: var(--accent); background: transparent; }
.secondary:hover { background: var(--accent-soft); }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* Hero */
.hero { background: var(--hero-glow); }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 980px; margin-bottom: 18px;
}
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; }
.tagline { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.hero .wrap > * { min-width: 0; }
.demo { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.25)); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; gap: 32px; }
  .hero .buttons { justify-content: center; }
  .tagline { margin-left: auto; margin-right: auto; }
}

/* Compatibility strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip .wrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px;
  padding-top: 18px; padding-bottom: 18px; color: var(--muted); font-size: 15px;
}
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { width: 18px; height: 18px; color: var(--accent); }

/* Sections */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 19px; }
@media (max-width: 640px) { section { padding: 60px 0; } }

/* Features */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 20px; padding: 26px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }

/* Screenshots */
.shots { display: grid; grid-template-columns: 1fr 1.19fr; gap: 28px; align-items: start; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; box-shadow: var(--shadow); }
.shots figcaption { color: var(--muted); font-size: 15px; margin-top: 16px; text-align: center; }
.shots figcaption strong { color: var(--text); display: block; font-size: 17px; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* Layout table */
.layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; max-width: 880px; margin: 0 auto; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.row b { white-space: nowrap; }
.row span { color: var(--muted); text-align: right; }
.layout + .note { text-align: center; margin-top: 24px; }

/* Pricing */
.price-card {
  max-width: 440px; margin: 0 auto; text-align: center; background: var(--surface);
  border-radius: 28px; padding: 40px 32px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.price-card .amount { font-size: 72px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price-card .once { color: var(--muted); margin: 6px 0 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 30px; text-align: left; }
.price-card li { display: flex; gap: 10px; padding: 7px 0; }
.price-card li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.price-card .buttons { justify-content: center; }
.price-card .button { width: 100%; justify-content: center; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { background: var(--surface); border-radius: 16px; padding: 18px 22px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { color: var(--muted); font-size: 13px; text-align: center; padding: 36px 0 48px; border-top: 1px solid var(--border); }
footer a { color: inherit; }
footer p { margin: 6px 0; }
