:root {
  --accent: #6366f1;
  --accent-deep: #4338ca;
  --accent-soft: #eef0ff;
  --gold: #f5b544;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 40px -12px rgba(30, 27, 75, .25);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .7);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: #cbd5e1; color: var(--ink); }
.lang-menu .chev { transition: transform .15s ease; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 150px;
  display: flex; flex-direction: column; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.lang-list a, .lang-list .current {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.nav .lang-list a { color: var(--ink-2); }
.lang-list a:hover { background: var(--bg-2); color: var(--ink); }
.lang-list .current { font-weight: 700; color: var(--ink); }
.lang-list .current::after { content: "✓"; margin-left: auto; color: var(--accent); }
.flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); }
@media (max-width: 760px) { .nav .nav-link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font);
  padding: 15px 24px; border-radius: 12px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .7); }
.btn-primary:hover { background: #5558ea; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-sm { padding: 10px 16px; font-size: .9rem; border-radius: 10px; }
.btn small { font-weight: 500; opacity: .8; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(99, 102, 241, .18), transparent 60%),
    radial-gradient(700px 380px at -10% 10%, rgba(245, 181, 68, .14), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.price-note { font-size: .92rem; color: var(--muted); }
.price-note s { color: #94a3b8; }
.price-note strong { color: var(--ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}

/* Mac mockup */
.mac {
  position: relative;
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(120% 90% at 20% 110%, #f59e0b 0%, transparent 45%),
    radial-gradient(90% 80% at 100% 100%, #ec4899 0%, transparent 50%),
    linear-gradient(160deg, #312e81 0%, #6366f1 45%, #a78bfa 100%);
  box-shadow: 0 30px 80px -24px rgba(30, 27, 75, .55), 0 0 0 1px rgba(15, 23, 42, .08);
}
.mac-menubar {
  display: flex; align-items: center; justify-content: space-between;
  height: 28px; padding: 0 14px;
  background: rgba(255, 255, 255, .28);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: #0f172a; font-size: 12.5px; font-weight: 500;
}
.mac-menubar .left { display: flex; gap: 16px; align-items: center; }
.mac-menubar .left b { font-weight: 700; }
.mac-menubar .right { display: flex; gap: 14px; align-items: center; }
.mb-icon { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 4px; }
.mb-icon.active { background: rgba(15, 23, 42, .14); }
.mb-icon svg { width: 15px; height: 15px; }

.card {
  position: absolute; top: 40px; right: 14px; z-index: 2;
  width: min(300px, 62%);
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 18px 50px -12px rgba(15, 23, 42, .45);
  animation: slide-in .7s cubic-bezier(.2, .9, .3, 1.2) both .4s;
}
@keyframes slide-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
.card-head { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.card-head .ico { color: var(--accent); }
.card-head .x { margin-left: auto; font-weight: 700; }
.card-word { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 4px; }
.card-word b { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.card-word span { color: var(--accent); font-size: 15px; }
.card-tr { color: var(--accent-deep); font-weight: 700; font-size: 17px; }
.card-ex { font-style: italic; font-size: 13.5px; color: var(--ink-2); margin: 4px 0 0; }
.card-ex-tr { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.card-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-btns span {
  text-align: center; font-size: 12.5px; font-weight: 600; padding: 7px 0; border-radius: 8px;
  background: rgba(15, 23, 42, .06); color: var(--ink);
}
.card-btns span.primary { background: var(--accent); color: #fff; }

.popover {
  position: absolute; left: 14px; bottom: 14px;
  width: min(230px, 44%);
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 18px 50px -12px rgba(15, 23, 42, .4);
  font-size: 12px;
}
.popover .title { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stat { background: rgba(255, 255, 255, .75); border-radius: 9px; padding: 7px 4px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 17px; }
.stat small { color: var(--muted); font-size: 10.5px; }
.bar { height: 6px; border-radius: 99px; background: rgba(15, 23, 42, .08); margin: 10px 0 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 60%; background: var(--accent); border-radius: 99px; }
@media (max-width: 520px) { .popover { display: none; } .card { width: 78%; } }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip ul { list-style: none; margin: 0 auto; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.strip li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.alt { background: var(--bg-2); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .num {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-family: var(--font-display); margin-bottom: 16px;
}
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.counter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.count { text-align: center; padding: 26px 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.count b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--accent-deep); line-height: 1.1; }
.count span { color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .counter { grid-template-columns: repeat(2, 1fr); } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.feature .fi {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 22px; margin-bottom: 14px;
}
.feature p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { background: var(--bg-2); font-size: .9rem; color: var(--muted); }
.compare td:first-child { font-weight: 600; }
.compare .yes { color: #059669; font-weight: 700; }
.compare .no { color: #94a3b8; }
.compare tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* Pricing */
.pricing-card {
  max-width: 480px; margin: 0 auto; padding: 36px;
  border-radius: 24px; background: #fff;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  text-align: center;
}
.badge { display: inline-block; background: var(--gold); color: #3b2604; font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 18px 0 4px; }
.price b { font-family: var(--font-display); font-size: 4rem; font-weight: 800; line-height: 1; }
.price s { font-size: 1.6rem; color: #94a3b8; }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; }
.checklist li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; font-size: .8rem;
}
.pricing-card .btn { width: 100%; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* Final CTA */
.final {
  text-align: center; color: #fff;
  background: linear-gradient(160deg, #312e81, #6366f1 60%, #7c3aed);
  border-radius: 28px; padding: 64px 24px;
}
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.final .btn-primary { background: #fff; color: var(--accent-deep); box-shadow: none; }
.final .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Content pages */
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.5rem; margin-top: 1.8em; }
.page p, .page li { color: var(--ink-2); }
.install-steps { counter-reset: s; list-style: none; padding: 0; }
.install-steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.install-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800;
}
.install-steps b { color: var(--ink); }
.note { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; color: var(--ink-2); }
.word-page { max-width: 960px; }
.word-page .lead { font-size: 1.15rem; color: var(--ink-2); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.words { width: 100%; border-collapse: collapse; margin: 8px 0 32px; font-size: .97rem; }
.words th, .words td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.words th { background: var(--bg-2); color: var(--muted); font-size: .85rem; }
.words .n { color: var(--muted); width: 44px; }
.words .en { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }
.words .ex { display: block; font-style: italic; color: var(--ink); }
.words .ex-tr { display: block; font-size: .88rem; color: var(--muted); }
.inline-cta {
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  padding: 24px 28px; margin: 8px 0 40px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid #dfe3ff;
}
.inline-cta h3 { margin: 0 0 4px; }
.inline-cta p { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .inline-cta { flex-direction: column; align-items: flex-start; } }
.guide { max-width: 760px; margin: 0 auto; }
.guide h3 { margin-top: 1.6em; }
.guide p { color: var(--ink-2); }
kbd {
  font: 600 .85em var(--font); background: #fff; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px;
}
