:root {
  --teal: #27c7a8;
  --blue: #2548c9;
  --accent: #1f6fd0;
  --bg: #ffffff;
  --band: #f3f7fb;
  --card: #ffffff;
  --text: #10202f;
  --muted: #55677a;
  --line: #dde5ee;
  --shadow: 0 18px 50px rgba(20, 50, 100, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6fb2ff;
    --bg: #0c1420;
    --band: #111c2b;
    --card: #162334;
    --text: #eaf1f8;
    --muted: #9fb0c3;
    --line: #25364b;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); text-align: center; margin-bottom: 40px; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; padding: 13px 22px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(37, 72, 201, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 72, 201, 0.34); }
.button.small { padding: 8px 16px; border-radius: 10px; font-size: 15px; }
.button.ghost { background: none; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.button.disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: default; transform: none; }
.text-link.disabled { display: none; }

/* ---------- Layout ---------- */
section { padding: 88px max(16px, calc((100vw - 1120px) / 2)); }
.band { background: var(--band); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 20px; color: var(--muted); margin-top: 20px; max-width: 34em; }
kbd {
  display: inline-block; min-width: 1.7em; padding: 1px 6px; margin: 0 1px; text-align: center;
  font: 600 0.85em -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Demo ---------- */
.demo { position: relative; padding-bottom: 34px; }
.window { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.titlebar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.titlebar span { margin-left: 8px; }
.slide { position: relative; padding: 34px 34px 40px; background: linear-gradient(160deg, #17324f, #0e1d30); color: #fff; user-select: none; }
.slide-kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.slide-title { font-size: clamp(20px, 2.4vw, 27px); font-weight: 700; margin-top: 8px; letter-spacing: -0.01em; }
.slide-list { margin: 22px 0 0; padding: 0; list-style: none; font-size: clamp(15px, 1.6vw, 18px); }
.slide-list li { padding: 5px 0; opacity: 0.92; }
.slide-list li[dir="rtl"] { text-align: left; }
.selection {
  position: absolute; left: 22px; top: 108px; width: 0; height: 0;
  border: 2px solid #5fe3c8; background: rgba(95, 227, 200, 0.16); border-radius: 4px;
  animation: drag 7s cubic-bezier(0.3, 0, 0.2, 1) infinite;
}
.toast {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 8px);
  padding: 11px 20px; border-radius: 14px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; animation: toast 7s ease infinite;
}
.check { color: var(--teal); margin-right: 6px; }
@keyframes drag {
  0%, 8%    { width: 0; height: 0; opacity: 0; }
  10%       { width: 0; height: 0; opacity: 1; }
  38%, 52%  { width: calc(100% - 44px); height: calc(100% - 130px); opacity: 1; }
  58%, 100% { width: calc(100% - 44px); height: calc(100% - 130px); opacity: 0; }
}
@keyframes toast {
  0%, 54%   { opacity: 0; transform: translate(-50%, 8px); }
  60%, 88%  { opacity: 1; transform: translate(-50%, 0); }
  96%, 100% { opacity: 0; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .selection { animation: none; width: calc(100% - 44px); height: calc(100% - 130px); }
  .toast { animation: none; opacity: 1; transform: translate(-50%, 0); }
  html { scroll-behavior: auto; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.steps p, .grid p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.num {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; font-weight: 700;
}

/* ---------- Features ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.grid article { border-top: 2px solid var(--line); padding-top: 18px; }

/* ---------- Full feature list ---------- */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.columns > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.checks { list-style: none; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: 16px; }
.checks li { position: relative; padding: 5px 0 5px 26px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 420px; margin: 0 auto; padding: 36px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.price-card h3 { margin-top: 12px; font-size: 22px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; color: var(--muted); font-size: 16px; }
.price-card li { padding: 4px 0; }
.price-card li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 8px; }
.text-link { display: block; margin-top: 14px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding: 0 0 20px; }

/* ---------- Footer & simple pages ---------- */
footer {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  padding: 28px max(16px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
footer span:first-child { margin-right: auto; }
footer a { color: var(--muted); }
.page { max-width: 720px; margin: 0 auto; padding: 64px 16px 88px; }
.page h1 { font-size: 36px; margin-bottom: 8px; }
.page h2 { font-size: 21px; text-align: left; margin: 32px 0 8px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  section { padding-top: 64px; padding-bottom: 64px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; }
  .steps, .grid, .columns { grid-template-columns: 1fr; }
  .grid { gap: 26px; }
  .nav nav { display: none; }
  .nav .button { margin-left: auto; }
}
