@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Syne:wght@800&family=DM+Sans:wght@600&display=swap');

:root {
  --black: #070708;
  --ink1: #0d0d10;
  --ink2: #141418;
  --ink3: #1b1b21;
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --w: #ffffff;
  --w80: rgba(255, 255, 255, 0.82);
  --w60: rgba(255, 255, 255, 0.62);
  --w45: rgba(255, 255, 255, 0.45);
  --red: #ef233c;
  --red-hi: #ff5a6e;
  --grad: linear-gradient(135deg, #ff5a6e 0%, #ef233c 48%, #a3001b 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 90, 110, 0.16), rgba(163, 0, 27, 0.1));
  --green: #4ade80;
  --radius: 18px;
  /* Native scripts (Urdu, Hindi, Tamil...) fall back to Noto, loaded in the page head */
  --native: 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans Gurmukhi', 'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Gujarati', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Nirmala UI', 'Segoe UI', 'Geeza Pro', 'Kohinoor Devanagari';
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, var(--native), 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--w);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--w60); }
.mono { font-family: var(--mono); }

/* ------------------------------------------------------------ backdrop */
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(239, 35, 60, 0.20), transparent 65%),
    radial-gradient(700px 500px at 100% 40%, rgba(239, 35, 60, 0.06), transparent 70%);
}
main, header, footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 8, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { text-decoration: none; color: var(--w60); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; transition: color 0.15s, background 0.15s; }
.nav__links a:hover, .nav__links a.on { color: var(--w); background: rgba(255, 255, 255, 0.06); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__links .only-mobile { display: none; }
.nav__menu { display: none; background: none; border: 1px solid var(--line2); color: var(--w); border-radius: 10px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }
@media (max-width: 860px) {
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; background: rgba(7, 7, 8, 0.97); border-bottom: 1px solid var(--line); }
  .nav__links.open { display: flex; }
  .nav__menu { display: block; }
  .nav__right > .btn--primary { display: none; }
  .nav__links .only-mobile { display: block; }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--ink2); color: var(--w);
  font: 700 15px var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.32); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); border-color: transparent; box-shadow: 0 10px 30px rgba(239, 35, 60, 0.32); }
.btn--primary:hover { box-shadow: 0 14px 38px rgba(239, 35, 60, 0.45); }
.btn--white { background: #fff; color: #0a0a0c; border-color: #fff; }
.btn--ghost { background: transparent; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16.5px; border-radius: 14px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }

/* ------------------------------------------------------------ type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--grad-soft); border: 1px solid rgba(239, 35, 60, 0.35); color: #ffb3bd; font: 700 12.5px var(--font); letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 10px var(--red); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
.h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; }
.h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--w60); max-width: 640px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 110px 0; }
.section--tight { padding: 70px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; display: grid; gap: 14px; justify-items: center; }

/* ------------------------------------------------------------ scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal--scale { transform: translateY(18px) scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------ hero */
.hero { padding: 90px 0 60px; text-align: center; }
.hero .wrap { display: grid; justify-items: center; gap: 22px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero__meta { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; color: var(--w45); font-size: 14px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--green); }

/* caption demo */
.demo { margin: 56px auto 0; width: min(920px, 100%); aspect-ratio: 16 / 8.2; border-radius: 24px; border: 1px solid var(--line2); position: relative; overflow: hidden; background: #111; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(239, 35, 60, 0.12); }
.demo svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo__ui { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; font: 600 12px var(--mono); color: rgba(255, 255, 255, 0.55); }
.demo__ui b { color: #fff; display: inline-flex; gap: 6px; align-items: center; }
.demo__ui b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.demo__cap { position: absolute; left: 0; right: 0; bottom: 13%; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 12px; padding: 0 20px; }
.demo__cap span { font: 900 clamp(22px, 4.4vw, 46px) var(--font); text-transform: uppercase; letter-spacing: -0.01em; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 0, 0, 0.6); padding: 0 8px; border-radius: 10px; transition: background 0.18s, transform 0.18s; }
.demo__cap span.on { background: var(--grad); transform: scale(1.07) rotate(-1.5deg); text-shadow: none; }
.demo__switch { position: absolute; bottom: 14px; right: 16px; display: flex; gap: 6px; }
.demo__switch button { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.5); color: rgba(255, 255, 255, 0.75); font: 700 11.5px var(--font); padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.demo__switch button.on { background: #fff; color: #0a0a0c; }
@media (max-width: 640px) {
  .demo { aspect-ratio: 4 / 3.4; border-radius: 18px; margin-top: 36px; }
  .demo__ui span { display: none; }
  .demo__cap { bottom: 64px; gap: 4px 8px; }
  .demo__cap span { font-size: 26px; }
  .demo__switch { left: 0; right: 0; justify-content: center; }
}

/* ------------------------------------------------------------ cards and grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--ink1); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color 0.2s, transform 0.25s; }
.card:hover { border-color: rgba(239, 35, 60, 0.35); }
.card h3 { font-size: 19px; margin: 16px 0 8px; }
.card p { margin: 0; color: var(--w60); font-size: 15px; }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(239, 35, 60, 0.3); color: var(--red-hi); }
.icon svg { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.chip { padding: 10px 16px; border-radius: 12px; background: var(--ink2); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.chip small { color: var(--w45); font-weight: 600; margin-left: 6px; }

.styles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.style { padding: 14px 18px; border-radius: 14px; font-weight: 900; font-size: 17px; letter-spacing: 0.01em; text-transform: uppercase; border: 1px solid var(--line); background: var(--ink1); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--ink1); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--w60); font-size: 15px; }

/* ------------------------------------------------------------ pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; border-radius: 20px; background: var(--ink1); border: 1px solid var(--line); }
.plan--hot { background: linear-gradient(180deg, rgba(239, 35, 60, 0.16), rgba(239, 35, 60, 0.02) 55%), var(--ink1); border-color: rgba(239, 35, 60, 0.6); box-shadow: 0 30px 80px rgba(239, 35, 60, 0.14); }
.plan__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: var(--grad); font: 800 11.5px var(--font); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.plan__name { font-weight: 800; font-size: 17px; }
.plan__price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { font-size: 15px; color: var(--w45); font-weight: 600; letter-spacing: 0; }
.plan__note { color: var(--w60); font-size: 14px; min-height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--w80); flex: 1; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--red-hi); }
.plan li.off { color: var(--w45); }
.plan li.off svg { color: var(--w45); }

.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: auto; background: var(--ink1); }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-top: 1px solid var(--line); }
.compare th { border-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--w60); }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare .pro { background: rgba(239, 35, 60, 0.07); }
.yes { color: var(--red-hi); font-weight: 800; }
.no { color: var(--w45); }

/* ------------------------------------------------------------ faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--ink1); padding: 0 20px; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(239, 35, 60, 0.4); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red-hi); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--w60); }

/* ------------------------------------------------------------ cta + footer */
.cta { text-align: center; padding: 64px 28px; border-radius: 28px; background: radial-gradient(600px 260px at 50% 0%, rgba(239, 35, 60, 0.28), transparent 70%), var(--ink1); border: 1px solid rgba(239, 35, 60, 0.3); display: grid; gap: 18px; justify-items: center; }
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 60px; color: var(--w45); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--w60); text-decoration: none; }
.footer a:hover { color: var(--w); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ------------------------------------------------------------ download page */
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .os-grid { grid-template-columns: 1fr; } }
.os { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 20px; background: var(--ink1); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.os.mine { border-color: rgba(239, 35, 60, 0.65); background: linear-gradient(180deg, rgba(239, 35, 60, 0.12), transparent 60%), var(--ink1); }
.os__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.os__name { font-size: 20px; font-weight: 800; }
.os__sub { color: var(--w60); font-size: 14px; margin-top: -8px; }
.os .badge { font: 700 11px var(--font); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 99px; background: var(--grad); }
.os__logo { width: 42px; height: 42px; color: #fff; opacity: 0.9; }
.os__meta { font-size: 13px; color: var(--w45); }
.howto { display: grid; gap: 12px; }
.howto ol { margin: 0; padding-left: 20px; color: var(--w80); display: grid; gap: 8px; }
.kbd { font-family: var(--mono); font-size: 13px; padding: 2px 7px; border-radius: 6px; background: var(--ink3); border: 1px solid var(--line2); }
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .req { grid-template-columns: 1fr; } }
.req div { padding: 18px; border-radius: 14px; background: var(--ink1); border: 1px solid var(--line); font-size: 14.5px; color: var(--w60); }
.req b { display: block; color: var(--w); margin-bottom: 4px; }

/* ------------------------------------------------------------ account page */
.acct { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.acct__head { display: flex; align-items: center; gap: 16px; }
.acct__head .avatar { width: 56px; height: 56px; font-size: 22px; }
.planbox { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--ink1); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.planbox--pro { border-color: rgba(239, 35, 60, 0.6); background: linear-gradient(135deg, rgba(239, 35, 60, 0.16), transparent 60%), var(--ink1); }
.planbox__name { font-size: 26px; font-weight: 800; }
.signin { max-width: 440px; margin: 0 auto; text-align: center; display: grid; gap: 16px; justify-items: center; padding: 40px 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--ink1); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: var(--ink3); border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transition: opacity 0.25s, transform 0.25s; z-index: 100; font-size: 14.5px; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { border-color: rgba(239, 35, 60, 0.6); }

/* ------------------------------------------------------------ caption playground (1.0 design) */
.pg { margin: 44px auto 0; width: min(920px, 100%); border-radius: 24px; border: 1px solid rgba(239, 35, 60, 0.45); background: #111115; overflow: hidden; text-align: left; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 50px rgba(239, 35, 60, 0.2); }
.pg__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #16161c; }
.pg__dots { display: flex; gap: 7px; }
.pg__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.pg__title { font: 500 12.5px var(--mono); color: var(--w60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg__engine { font: 600 12.5px var(--mono); color: #00e59b; white-space: nowrap; }
.pg__body { display: grid; grid-template-columns: 1fr 300px; min-height: 380px; }
.pg__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: #000; overflow: hidden; border-right: 1px solid var(--line); }
.pg__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 60%, rgba(239, 35, 60, 0.18) 0%, transparent 60%); }
.pg__rec { position: absolute; top: 18px; left: 20px; font: 500 12px var(--mono); color: var(--w45); display: flex; gap: 8px; align-items: center; }
.pg__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
.pg__hint { position: absolute; bottom: 18px; right: 20px; font: 500 12px var(--mono); color: var(--w45); }
.pg__cap { position: relative; z-index: 2; max-width: 520px; text-align: center; transition: background 0.25s, padding 0.25s; user-select: none; }
.pg__line { line-height: 1.22; letter-spacing: 0.01em; }
.pg__word { display: inline-block; margin: 0 4px; transition: transform 0.18s ease, color 0.18s ease; }
.pg__word.on { transform: scale(1.12); }
.pg__ctrl { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #131317; }
.pg__label { font: 700 12px var(--mono); color: var(--w45); text-transform: uppercase; letter-spacing: 0.1em; text-align: center; margin-bottom: 8px; }
.pg__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 10px; background: #09090c; border: 1px solid var(--line); }
.pg__seg button { height: 34px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--w60); font: 700 14px var(--font); cursor: pointer; transition: all 0.18s; }
.pg__seg button.on { background: rgba(239, 35, 60, 0.25); border-color: rgba(239, 35, 60, 0.55); color: #fff; }
.pg__seg button:disabled { opacity: 0.35; cursor: default; }
.pg__select { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #09090c; color: #fff; padding: 0 12px; font: 600 15px var(--font); outline: none; }
.pg__styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg__style { display: flex; flex-direction: column; gap: 1px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #18181f; color: var(--w60); cursor: pointer; transition: all 0.18s; }
.pg__style b { font-size: 14px; font-weight: 700; }
.pg__style span { font-size: 12px; color: var(--w45); line-height: 1.25; }
.pg__style:hover { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.pg__style.on { background: rgba(239, 35, 60, 0.15); border-color: var(--red); color: #fff; }
.pg__style.on span { color: var(--red-hi); }
.pg__engineCard { margin-top: auto; padding: 10px 14px; border-radius: 12px; background: #09090c; border: 1px solid var(--line); font-size: 12.5px; color: var(--w60); text-align: center; }
.pg__engineCard div { display: flex; justify-content: space-between; font: 500 13px var(--mono); color: var(--w45); margin-bottom: 6px; }
.pg__engineCard b { color: #00e59b; font-weight: 700; }
@media (max-width: 900px) {
  .pg__body { grid-template-columns: 1fr; }
  .pg__stage { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pg__engine { display: none; }
}
@media (max-width: 560px) { .pg__title, .pg__hint { display: none; } }

/* ------------------------------------------------------------ sign-in before buying */
.gbtn svg { width: 17px; height: 17px; }
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.2s; }
.modal.show { opacity: 1; }
.modal__card { position: relative; width: min(440px, 100%); padding: 30px 26px 24px; border-radius: 22px; background: var(--ink1); border: 1px solid rgba(239, 35, 60, 0.45); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); text-align: center; display: grid; gap: 14px; justify-items: center; transform: translateY(12px); transition: transform 0.25s; }
.modal.show .modal__card { transform: none; }
.modal__card h3 { font-size: 24px; }
.modal__card p { margin: 0; color: var(--w60); font-size: 15px; }
.modal__x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--w60); font-size: 18px; cursor: pointer; }
.modal__steps { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; text-align: left; width: 100%; }
.modal__steps li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--w80); }
.modal__steps b { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 12.5px; flex: none; }
.modal--checkout { padding: 24px; }
.checkout { position: relative; width: min(760px, 100%); height: min(860px, calc(100vh - 48px)); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: var(--ink1); border: 1px solid rgba(239, 35, 60, 0.45); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); transform: translateY(12px); transition: transform 0.25s; }
.modal.show .checkout { transform: none; }
.checkout__head { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.checkout__plan { display: grid; gap: 2px; margin-right: auto; text-align: left; font-size: 15px; min-width: 0; }
.checkout__plan .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout__x { top: 16px; right: 16px; }
.checkout__frame { position: relative; flex: 1; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.checkout__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.checkout__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--w60); font-size: 14px; }
.checkout__loading[hidden] { display: none; }
.checkout__loading .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--w60); animation: coSpin 0.8s linear infinite; }
@keyframes coSpin { to { transform: rotate(360deg); } }
.checkout__note { margin: 0; font-size: 13px; text-align: center; }
.checkout__note--ok { color: #86efac; font-weight: 600; }
@media (max-width: 640px) {
  .modal--checkout { padding: 0; }
  .checkout { width: 100%; height: 100%; border-radius: 0; border: 0; padding: 12px; }
  .checkout__head .btn { display: none; }
}
.signbar { margin: 26px auto 0; max-width: 760px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(239, 35, 60, 0.4); background: var(--grad-soft); font-size: 14.5px; }
.signbar b { color: var(--w); }

/* ---------------------------------------------------------------- v2 landing additions */
.pg__select, .pg__select option, .chip small { font-family: 'Plus Jakarta Sans', var(--native), sans-serif; }
.hero__sys { margin: 12px 0 0; font-size: 13px; color: var(--w45); }

.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.demo-card { margin: 0; border-radius: 18px; overflow: hidden; background: var(--ink2); border: 1px solid var(--line); }
.demo-card__video { position: relative; aspect-ratio: 9 / 16; background: radial-gradient(ellipse at 50% 40%, rgba(239, 35, 60, 0.18), transparent 60%), #0a0a0d; }
.demo-card__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.demo-card__video.has-video video { opacity: 1; }
.demo-card__soon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--w45); font: 700 13px var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.demo-card__video.has-video .demo-card__soon { display: none; }
.demo-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.demo-card figcaption b { font-size: 15px; }
.demo-card figcaption span { color: var(--w60); font-size: 13.5px; }
@media (max-width: 860px) { .demos { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

.compare--vs td small { display: block; margin-top: 2px; color: var(--w45); font-size: 12.5px; font-weight: 500; }
.compare--vs td b { font-weight: 700; }
.compare--vs th.pro { color: #fff; }

.plan--launch { border-color: rgba(239, 35, 60, 0.35); }
.plan__tag--launch { background: #fff; color: #0a0a0c; }
.plan__usd { margin-top: -2px; font-size: 12.5px; color: var(--w45); }
.paylocal { text-align: center; margin: 10px auto 0; max-width: 620px; padding: 10px 16px; border-radius: 12px; border: 1px dashed rgba(239, 35, 60, 0.45); background: var(--grad-soft); font-size: 14px; color: var(--w80, rgba(255, 255, 255, 0.85)); }
.paylocal a { color: #fff; font-weight: 700; }

.founder { margin: 0 auto; max-width: 760px; padding: 28px 32px; border-radius: 20px; background: var(--ink2); border: 1px solid var(--line); text-align: center; }
.founder blockquote { margin: 0 0 14px; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; font-weight: 600; }
.founder figcaption { display: flex; justify-content: center; gap: 8px; color: var(--w60); font-size: 14px; }
.founder figcaption b { color: #fff; }
.founder figcaption span::before { content: "·"; margin-right: 8px; }
.has-local .plan__price { font-size: clamp(26px, 2.6vw, 34px); white-space: nowrap; }
.has-local .plan__price small { font-size: 13px; }

/* simulator canvas (drawn by the app's renderer) */
.pg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.pg__rec, .pg__hint { z-index: 3; }
/* language pills are buttons now */
button.chip { color: inherit; font-family: inherit; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
button.chip:hover { border-color: rgba(239, 35, 60, 0.6); transform: translateY(-1px); }
/* style tiles */
.stiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 900px; margin: 0 auto; }
.stile { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 4px 7px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.stile:hover { border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.stile canvas { display: block; width: 100%; aspect-ratio: 420 / 150; }
.stile__font { display: inline-flex; max-width: 100%; padding: 2px 9px; border-radius: 99px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); color: var(--w80); font: 600 9.5px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .stiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .stile { padding: 0 3px 6px; border-radius: 10px; } .stile__font { padding: 1px 6px; font-size: 8.5px; } }
