:root {
  --bg: #0B0B0D;
  --panel: #141418;
  --line: #26262B;
  --text: #FFFFFF;
  --muted: #9A9AA3;
  --accent: #FF5A52;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.langs { display: flex; gap: 4px; font-size: 14px; }
.langs a { padding: 4px 9px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.langs a[aria-current="page"] { color: var(--text); background: var(--panel); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 16px var(--font); text-decoration: none; border: 1px solid var(--line);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary[aria-disabled="true"] { opacity: 0.75; cursor: default; }
.note { color: var(--muted); font-size: 14px; }

/* demo (RSVP animation) */
.demo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.demo-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.demo-stage { position: relative; height: 150px; display: flex; align-items: center; }
.demo-stage::before, .demo-stage::after {
  content: ""; position: absolute; left: 50%; width: 2px; height: 10px; margin-left: -1px; background: var(--line);
}
.demo-stage::before { top: 22px; }
.demo-stage::after { bottom: 22px; }
.demo-word {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  white-space: nowrap;
}
.demo-word .p { text-align: right; }
.demo-word .o { color: var(--accent); }
.demo-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.demo-bar div { height: 100%; width: 0; background: var(--accent); }

/* sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 28px; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { font-size: 22px; margin-bottom: 10px; display: block; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.steps { padding: 0; margin: 0; }
kbd { background: #26262B; border-radius: 6px; padding: 1px 7px; font: 600 14px var(--font); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .price { color: var(--muted); margin-bottom: 14px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan li { margin: 6px 0; }
.plan.pro { border-color: var(--accent); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }

.privacy-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.privacy-box p { margin: 0; color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* legal page */
.legal { max-width: 760px; padding: 40px 0 60px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p, .legal li { color: #D0D0D6; }
.legal .meta { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* language menu (details dropdown) */
.lang-menu { position: relative; font-size: 14px; }
.lang-menu summary {
  list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--text); user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; color: var(--muted); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; margin: 0; padding: 6px;
  list-style: none; min-width: 200px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.lang-menu li a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.lang-menu li a:hover { background: #1C1C21; color: var(--text); }
.lang-menu li a[aria-current="page"] { color: var(--text); }

.video-sec { padding-top: 8px; }
.promo { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--line); background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.video-box { position: relative; }
.play-cta { position: absolute; inset: 0; width: 100%; border: 0; border-radius: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; font: inherit;
  background: radial-gradient(circle at center, rgba(0,0,0,.25), rgba(0,0,0,.55)); }
.play-ring { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(255,90,82,.55); transition: transform .2s ease; }
.play-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); animation: play-pulse 1.8s ease-out infinite; }
.play-ring svg { width: 42px; height: 42px; fill: #fff; margin-left: 5px; }
.play-cta:hover .play-ring, .play-cta:focus-visible .play-ring { transform: scale(1.08); }
.play-len { font-size: 15px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.55); }
@keyframes play-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .play-ring::before { animation: none; } }
@media (max-width: 600px) { .play-ring { width: 72px; height: 72px; } .play-ring svg { width: 32px; height: 32px; } }
