:root {
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --text: #14162b;
  --muted: #5b6078;
  --line: #e3e5ef;
  --brand: #4f46e5;
  --brand-2: #0d9488;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(20, 22, 43, 0.08);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1020;
    --bg-soft: #151830;
    --text: #eef0fb;
    --muted: #a3a8c3;
    --line: #262a48;
    --brand: #818cf8;
    --brand-2: #2dd4bf;
    --card: #151830;
    --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(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.top {
  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);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.logo img { width: 32px; height: 32px; }
nav.links { display: flex; gap: 20px; margin-inline-start: auto; }
nav.links a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav.links a:hover { color: var(--text); }
.lang-pick select {
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 10px; font: inherit; font-size: 14px;
}
@media (max-width: 720px) { nav.links { display: none; } .lang-pick { margin-inline-start: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
}
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn.disabled { opacity: .65; pointer-events: none; }
.btn.full { width: 100%; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 400px at 50% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; margin: 16px 0; letter-spacing: -0.02em; }
.hero p.sub { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Demo subtitle box */
.demo {
  border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
  background: linear-gradient(160deg, #1f2340, #0b0d1a);
  position: relative; overflow: hidden;
}
.demo .screen { aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(135deg, #334155, #1e293b 60%, #0f766e); position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 14px; }
.demo .box { width: 100%; background: rgba(15, 17, 32, .82); border-radius: 14px; padding: 10px 14px; text-align: center; backdrop-filter: blur(4px); }
.demo .ln { padding: 4px 0; font-weight: 600; font-size: clamp(12px, 1.6vw, 16px); }
.demo .ln + .ln { border-top: 1px solid rgba(255,255,255,.08); }
.demo .ln.o { color: #fff; }
.demo .ln.a { color: #fbbf24; direction: rtl; }
.demo .ln.b { color: #6ee7b7; }
.demo .ln.c { color: #93c5fd; }
.demo .word { text-decoration: underline dotted; text-underline-offset: 4px; }

/* Sections */
section.block { padding: 72px 0; }
section.block.soft { background: var(--bg-soft); }
h2.title { font-size: clamp(26px, 3.4vw, 36px); text-align: center; margin: 0 0 32px; letter-spacing: -0.01em; }
p.lead { text-align: center; color: var(--muted); margin: -24px 0 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--bg-soft); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: 12px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--brand); position: relative; }
.badge { position: absolute; top: -14px; inset-inline-start: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.price { font-size: 44px; font-weight: 800; margin: 8px 0 0; letter-spacing: -0.02em; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.price-alt { color: var(--muted); margin: 2px 0 18px; min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0; padding-inline-start: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand-2); font-weight: 800; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .copy { margin-inline-start: auto; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 16px 72px; }
.legal h1 { font-size: 34px; margin-bottom: 4px; }
.legal .date { color: var(--muted); margin-top: 0; }
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal li { margin: 6px 0; }
.howto { margin: 14px 0 0; font-size: 15px; }
.howto a { font-weight: 600; }
