/* Landing page only (index.html); shared tokens and the checkout styles live in style.css. */

:root {
  --ink: #0b1020;
  --ink-2: #121a33;
  --glow-1: #3d6bff;
  --glow-2: #8b5cf6;
  --glow-3: #f5c42c;
  --live: #ef4444;
  --ok: #22c55e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .08);
  --shadow-lg: 0 30px 80px rgba(5, 10, 30, .45);
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root { --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35); }
}

body.landing { background: var(--bg); overflow-x: hidden; }
.landing main { max-width: none; margin: 0; padding: 0; }
.landing header { flex-wrap: nowrap; }
.landing .site-footer { margin-top: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 16, 32, .72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.topbar .brand { color: #fff; }
.topbar nav { gap: 24px; }
.topbar nav a { color: rgba(255, 255, 255, .72); font-size: 15px; transition: color .15s ease-out; }
.topbar nav a:hover, .topbar nav a:focus-visible { color: #fff; }
.topbar .btn-sm { padding: 8px 16px; font-size: 14px; }
@media (max-width: 720px) { .topbar nav { display: none; } }

/* ---------- Buttons ---------- */
.landing .btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease-out, box-shadow .2s ease-out, background-color .2s ease-out;
}
.landing .btn:focus-visible { outline: 3px solid var(--glow-3); outline-offset: 3px; }
.landing .btn.primary {
  background: linear-gradient(135deg, #4f7dff, #6d5cf6); color: #fff;
  box-shadow: 0 8px 24px rgba(79, 125, 255, .45);
}
.landing .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(79, 125, 255, .55); }
.landing .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.landing .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.landing .btn.btn-sm { min-height: 40px; }

/* ---------- Hero ---------- */
.hero-band {
  position: relative; isolation: isolate; color: #fff; background: var(--ink);
  padding: 72px 0 96px; overflow: hidden;
}
.hero-band::before, .hero-band::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.hero-band::before { width: 620px; height: 620px; left: -160px; top: -220px; background: var(--glow-1); }
.hero-band::after { width: 560px; height: 560px; right: -160px; bottom: -260px; background: var(--glow-2); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px;
  border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: pulse 2s infinite; }
.hero-band h1 {
  margin: 0 0 20px; font-size: clamp(38px, 6.2vw, 66px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
}
.hero-band h1 .hl {
  background: linear-gradient(90deg, #9db8ff, #c4a8ff 55%, var(--glow-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-band .sub { margin: 0 0 32px; max-width: 560px; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.hero-band .actions { justify-content: flex-start; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .65); }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--ok); }

/* Product mock-up: a video with Ponaru running on it. */
.mock { position: relative; }
.player {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(120% 90% at 20% 15%, #ffb36b 0%, rgba(255, 179, 107, 0) 45%),
    radial-gradient(90% 80% at 85% 20%, #ff6f91 0%, rgba(255, 111, 145, 0) 50%),
    linear-gradient(180deg, #2a1f5c 0%, #4b2f7d 45%, #1a1440 100%);
}
.player .sun { position: absolute; width: 22%; aspect-ratio: 1; left: 58%; top: 26%; border-radius: 50%; background: radial-gradient(circle, #ffe3a3, #ffb36b 60%, rgba(255, 179, 107, 0) 72%); }
.player .hills { position: absolute; inset: auto 0 0 0; height: 46%; background:
  radial-gradient(70% 90% at 25% 100%, #1d1a4a 60%, transparent 61%),
  radial-gradient(80% 100% at 80% 100%, #251f58 60%, transparent 61%); }
.player .live {
  position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 6px;
  font: 700 12px/1.4 system-ui, sans-serif; letter-spacing: .06em; background: var(--live); color: #fff;
}
.player .bar {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgba(20, 20, 30, .55); backdrop-filter: blur(8px);
}
.player .bar span { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.player .bar span.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.player .caption {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); width: min(86%, 460px);
  text-align: center; font-family: system-ui, sans-serif;
}
.player .caption .tr { display: inline; padding: 4px 10px; border-radius: 8px; background: rgba(10, 10, 20, .72); font-size: clamp(14px, 2vw, 18px); font-weight: 600; line-height: 1.7; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.player .caption .orig { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.player .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .15); }
.player .progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--live); }

.chip-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); color: #16181d; box-shadow: 0 16px 40px rgba(5, 10, 30, .35);
  font-size: 14px; font-weight: 600; animation: float 6s ease-in-out infinite;
}
.chip-float small { display: block; font-weight: 500; color: #5b6270; font-size: 12px; }
.chip-voice { left: -18px; bottom: -26px; }
.chip-lang { right: -14px; top: 22%; animation-delay: -3s; }
.chip-lang .flag { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eef2ff; font-size: 15px; }
@media (max-width: 560px) { .chip-voice { left: 8px; } .chip-lang { right: 8px; top: auto; bottom: 64%; } }

.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave i { display: block; width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(#4f7dff, #8b5cf6); animation: wave 1.1s ease-in-out infinite; transform-origin: center; }
.wave i:nth-child(2) { animation-delay: -.9s; } .wave i:nth-child(3) { animation-delay: -.7s; }
.wave i:nth-child(4) { animation-delay: -.5s; } .wave i:nth-child(5) { animation-delay: -.3s; }
.wave i:nth-child(6) { animation-delay: -.6s; } .wave i:nth-child(7) { animation-delay: -.2s; }

/* ---------- Use cases strip ---------- */
.uses { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.uses ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
.uses li { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 550; }

/* ---------- Sections ---------- */
.block { padding: 96px 0; border: 0; scroll-margin-top: 64px; }
.block.soft { background: var(--bg-soft); }
.block-head { max-width: 680px; margin: 0 0 48px; }
.block-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.block h2 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
.block .lead { margin: 0; font-size: 18px; color: var(--muted); }
@media (max-width: 640px) { .block { padding: 64px 0; } }

/* How it works */
.howto { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 860px) { .howto { grid-template-columns: repeat(3, 1fr); } }
.howto li {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.howto li::before {
  counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 18px;
  font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--glow-1), var(--glow-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.howto b { display: block; margin-bottom: 6px; font-size: 19px; }
.howto span { color: var(--muted); }

/* Features: bento grid */
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .tile.wide { grid-column: span 2; }
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; overflow: hidden;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.tile:hover { transform: translateY(-2px); }
.tile h3 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); }
.tile .ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px;
  color: #fff; background: linear-gradient(135deg, var(--glow-1), var(--glow-2));
}
.tile .ico svg { width: 22px; height: 22px; }
.tile.dark { background: var(--ink); color: #fff; border-color: transparent; }
.tile.dark p { color: rgba(255, 255, 255, .72); }
.tile.dark::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--glow-2); filter: blur(70px); opacity: .45; }
.tile .art { margin-top: auto; padding-top: 14px; }
.voice-art { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.voice-art .wave { height: 30px; }
.voice-art .wave i { width: 4px; }
.voice-art .who { font-size: 14px; color: rgba(255, 255, 255, .85); }
.voice-art .who small { display: block; color: rgba(255, 255, 255, .55); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(239, 68, 68, .12); color: var(--live); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2s infinite; }
.sub-art { display: grid; gap: 6px; justify-items: center; padding: 18px; border-radius: 14px; background: linear-gradient(160deg, #2a1f5c, #4b2f7d); }
.sub-art span { padding: 3px 10px; border-radius: 6px; background: rgba(10, 10, 20, .7); color: #fff; font-weight: 600; font-size: 14px; }
.sub-art small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.win-art { position: relative; height: 92px; }
.win-art span { position: absolute; border-radius: 10px; border: 1px solid var(--line); }
.win-art .back { inset: 0 30% 18px 0; background: var(--bg-soft); }
.win-art .front { inset: 26px 0 0 42%; background: linear-gradient(160deg, #2a1f5c, #4b2f7d); box-shadow: var(--shadow); border-color: transparent; }

/* Where it works */
.browsers { display: grid; gap: 20px; }
@media (min-width: 860px) { .browsers { grid-template-columns: repeat(3, 1fr); } }
.browser { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.browser h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 20px; }
.browser p { margin: 0; color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: rgba(34, 197, 94, .14); color: #15803d; }
.badge.soon { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .badge.ok { color: #4ade80; } }

/* Languages */
.lang-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto; padding: 0; max-width: 900px; list-style: none; }
.lang-cloud li {
  padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 17px; font-weight: 600; box-shadow: var(--shadow);
}
.lang-names { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Pricing */
.landing .plans { gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .landing .plans { grid-template-columns: 1fr; } }
.landing .plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.landing .plan h3 { font-size: 20px; }
.landing .plan .price { font-size: 44px; letter-spacing: -0.03em; margin-top: 10px; }
.landing .plan ul { margin: 6px 0 0; padding: 0; list-style: none; }
.landing .plan li { position: relative; padding-left: 26px; margin: 10px 0; }
.landing .plan li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.landing .plan.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--glow-1), var(--glow-2), var(--glow-3)) border-box;
}
.plan .tag {
  position: absolute; top: -13px; left: 30px; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--glow-1), var(--glow-2)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.yearly { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.price-note { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.faq summary {
  position: relative; list-style: none; padding: 18px 56px 18px 22px; font-size: 17px; font-weight: 650; cursor: pointer; border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Final call to action */
.cta {
  position: relative; isolation: isolate; overflow: hidden; margin: 96px 0; padding: 64px 32px; text-align: center;
  border-radius: 28px; color: #fff; background: var(--ink);
}
.cta::before { content: ""; position: absolute; z-index: -1; inset: -40%; background: radial-gradient(closest-side, rgba(61, 107, 255, .55), transparent), radial-gradient(closest-side at 80% 70%, rgba(139, 92, 246, .5), transparent); }
.cta h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.025em; }
.cta p { margin: 0 auto 28px; max-width: 560px; color: rgba(255, 255, 255, .78); font-size: 18px; }
.cta .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Motion ---------- */
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) {
  .wave i, .chip-float, .eyebrow .dot, .live-pill .dot { animation: none; }
  .tile, .landing .btn { transition: none; }
}
