:root {
  --bg: #060b14;
  --surface: #0b1423;
  --surface-2: #101c2f;
  --line: rgba(148, 163, 184, .16);
  --text: #f8fafc;
  --muted: #9aa8bc;
  --blue: #38bdf8;
  --blue-strong: #2563eb;
  --green: #34d399;
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin-top: 0; }
button, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(6, 11, 20, .86); backdrop-filter: blur(20px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.025em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand strong { color: var(--blue); }
.desktop-nav { display: flex; gap: 30px; color: var(--muted); font-size: .92rem; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switcher { position: relative; }
.language-trigger { width: 88px; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(255, 255, 255, .035); font: inherit; font-weight: 750; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.language-trigger:hover, .language-trigger:focus-visible, .language-trigger[aria-expanded="true"] { border-color: rgba(56, 189, 248, .48); background: rgba(56, 189, 248, .09); box-shadow: 0 0 0 3px rgba(56, 189, 248, .08); outline: none; }
.language-globe { font-size: 1rem; line-height: 1; }
.language-code { min-width: 22px; text-align: center; letter-spacing: .04em; }
.language-chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.language-trigger[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.language-menu { position: absolute; z-index: 100; top: calc(100% + 10px); right: 0; width: 390px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 9px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 16px; background: rgba(10, 18, 32, .98); box-shadow: 0 24px 70px rgba(0, 0, 0, .48); backdrop-filter: blur(22px); }
.language-menu[hidden] { display: none; }
.language-option { min-height: 48px; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); transition: color .15s ease, border-color .15s ease, background .15s ease; }
.language-option span { display: grid; place-items: center; min-height: 28px; border-radius: 7px; color: #bae6fd; background: rgba(56, 189, 248, .1); font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.language-option strong { overflow: hidden; color: inherit; font-size: .87rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.language-option:hover, .language-option:focus-visible { color: var(--text); border-color: rgba(56, 189, 248, .24); background: rgba(56, 189, 248, .07); outline: none; }
.language-option[aria-current="true"] { color: #e0f2fe; border-color: rgba(56, 189, 248, .38); background: linear-gradient(135deg, rgba(14, 165, 233, .16), rgba(37, 99, 235, .1)); }
.button, .coming-soon-button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 20px; border-radius: 15px; color: white; background: linear-gradient(135deg, #0ea5e9, var(--blue-strong)); font-weight: 700; box-shadow: 0 16px 45px rgba(37, 99, 235, .28); transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 20px 55px rgba(37, 99, 235, .4); }
.button svg, .coming-soon-button svg { width: 28px; height: 28px; fill: currentColor; }
.button span, .coming-soon-button span { display: grid; line-height: 1.05; }
.button small, .coming-soon-button small { font-size: .65rem; font-weight: 650; text-transform: uppercase; letter-spacing: .09em; opacity: .82; }
.button strong, .coming-soon-button strong { font-size: 1.02rem; margin-top: 4px; }
.button-small { min-height: 40px; padding: 8px 15px; border-radius: 11px; font-size: .88rem; }

.hero { position: relative; min-height: 760px; display: grid; align-items: center; padding: 70px 0 40px; overflow: hidden; background: radial-gradient(circle at 76% 32%, rgba(37, 99, 235, .24), transparent 31%), radial-gradient(circle at 16% 18%, rgba(56, 189, 248, .1), transparent 28%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; background-image: linear-gradient(rgba(148,163,184,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.2) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 70px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 16px; }
.eyebrow, .section-kicker { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(52, 211, 153, .1); }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(3.4rem, 7.2vw, 6.4rem); line-height: .94; letter-spacing: -.065em; }
h1 em { display: block; color: transparent; font-style: normal; background: linear-gradient(100deg, #38bdf8, #2563eb 60%, #818cf8); -webkit-background-clip: text; background-clip: text; }
.hero-lead { max-width: 650px; margin-bottom: 30px; color: #b3bfd1; font-size: clamp(1.05rem, 1.9vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.text-link { color: #cbd5e1; font-weight: 700; }
.text-link:hover { color: var(--blue); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 42px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div { padding-right: 18px; }
.hero-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts dt { color: white; font-size: .91rem; font-weight: 750; }
.hero-facts dd { margin: 3px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.hero-art { position: relative; z-index: 1; height: 650px; display: grid; place-items: center; }
.hero-art img { position: relative; z-index: 2; height: 650px; width: auto; border-radius: 22px; filter: drop-shadow(0 38px 70px rgba(0, 0, 0, .52)); transform: rotate(2.4deg); }
.hero-glow { position: absolute; width: 450px; height: 450px; border-radius: 50%; background: rgba(37, 99, 235, .24); filter: blur(80px); }

.section { padding: 110px 0; }
.section-heading { max-width: 740px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .download-copy h2 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.06; letter-spacing: -.045em; }
.section-heading p, .download-copy p { color: var(--muted); font-size: 1.05rem; }
.section-heading-left { margin: 0; text-align: left; }

.showcase-section { position: relative; border-block: 1px solid var(--line); background: linear-gradient(180deg, #09111f, #070c16); overflow: hidden; }
.showcase-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 34px; flex-wrap: wrap; }
.showcase-tab { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255, 255, 255, .035); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.showcase-tab:hover, .showcase-tab:focus-visible { border-color: rgba(56, 189, 248, .48); color: var(--text); background: rgba(56, 189, 248, .09); outline: none; }
.showcase-tab.active, .showcase-tab[aria-selected="true"] { border-color: rgba(56, 189, 248, .55); color: #bae6fd; background: linear-gradient(135deg, rgba(14, 165, 233, .2), rgba(37, 99, 235, .15)); box-shadow: 0 0 0 3px rgba(56, 189, 248, .1); }
.screenshot-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 282px); gap: 20px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: #334155 transparent; padding: 8px max(0px, calc((100vw - var(--container)) / 2)) 28px; margin-inline: max(-20px, calc((var(--container) - 100vw) / 2)); }
.screenshot-rail-tablet { grid-auto-columns: minmax(260px, 320px); }
.screenshot-rail[hidden] { display: none !important; }
.screenshot-card { scroll-snap-align: center; display: block; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: #0a1220; transition: border-color .2s ease, transform .2s ease; }
.screenshot-card:hover { border-color: rgba(56, 189, 248, .55); transform: translateY(-5px); }
.screenshot-card img { width: 100%; height: auto; }
.rail-hint { margin: 16px 0 0; color: #64748b; font-size: .78rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 330px; padding: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(16, 28, 47, .96), rgba(8, 15, 27, .96)); }
.feature-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 190px; height: 190px; border-radius: 50%; background: rgba(37, 99, 235, .12); filter: blur(15px); }
.feature-number { position: absolute; top: 28px; right: 28px; color: #475569; font: 700 .75rem/1 monospace; }
.feature-icon { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 54px; border: 1px solid rgba(56, 189, 248, .28); border-radius: 17px; color: var(--blue); background: rgba(56, 189, 248, .08); font-size: 1.7rem; }
.feature-card h3 { margin-bottom: 12px; font-size: 1.35rem; line-height: 1.2; }
.feature-card p { color: var(--muted); font-size: .93rem; }

.rules-section { border-block: 1px solid var(--line); background: var(--surface); }
.rules-layout { display: grid; grid-template-columns: .83fr 1.17fr; gap: 90px; align-items: start; }
.rules-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.rules-list li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255, 255, 255, .025); }
.rules-list > li > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: rgba(56, 189, 248, .1); font-weight: 850; }
.rules-list h3 { margin-bottom: 5px; font-size: 1.06rem; }
.rules-list p { margin: 0; color: var(--muted); font-size: .91rem; }

.download-section { padding-bottom: 120px; }
.download-card { position: relative; min-height: 310px; display: flex; align-items: center; justify-content: space-between; gap: 48px; overflow: hidden; padding: 60px; border: 1px solid rgba(56, 189, 248, .25); border-radius: 32px; background: radial-gradient(circle at 87% 50%, rgba(37, 99, 235, .27), transparent 30%), linear-gradient(120deg, #0d1a2d, #08101d); }
.download-card::before { content: ""; position: absolute; width: 360px; height: 360px; right: -110px; border: 1px solid rgba(56, 189, 248, .13); transform: rotate(45deg); }
.download-copy { position: relative; z-index: 1; max-width: 680px; }
.download-copy p { margin-bottom: 0; }
.coming-soon-button { position: relative; z-index: 1; min-width: 205px; background: #18253a; box-shadow: none; cursor: default; }

.site-footer { border-top: 1px solid var(--line); background: #040912; color: var(--muted); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 42px; padding-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { object-fit: contain; }
.screenshot-card[hidden] { display: none; }
.hero-art img.media-placeholder { object-fit: contain; padding: 48px; }
.footer-brand strong { color: var(--text); }
.footer-brand p { margin: 2px 0 0; font-size: .84rem; }
.footer-links { display: flex; gap: 24px; font-size: .86rem; }
.footer-languages { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 20px; border-block: 1px solid var(--line); font-size: .75rem; }
.footer-languages > span { margin-right: 6px; }
.footer-lang-link { min-width: 31px; padding: 4px 6px; border: 1px solid transparent; border-radius: 7px; text-align: center; }
.footer-lang-link:hover, .footer-lang-link[aria-current="page"] { border-color: rgba(56, 189, 248, .32); color: var(--blue); background: rgba(56, 189, 248, .06); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; font-size: .75rem; }
.footer-bottom p { margin: 0; }
.footer-bottom code { color: #64748b; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { min-height: auto; padding-top: 90px; }
  .hero-grid { grid-template-columns: 1fr 380px; gap: 30px; }
  .hero-art, .hero-art img { height: 560px; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts div, .hero-facts div + div { padding: 0; border: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-icon { margin-bottom: 30px; }
  .rules-layout { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { position: relative; }
  .header-inner { min-height: 64px; }
  .brand span { font-size: .9rem; }
  .brand img { width: 36px; height: 36px; }
  .header-actions .button { display: none; }
  .language-trigger { width: 84px; }
  .language-menu { width: min(340px, calc(100vw - 28px)); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .language-option { grid-template-columns: 32px 1fr; gap: 7px; padding-inline: 8px; }
  .hero { padding: 58px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .hero-art { height: 590px; overflow: hidden; }
  .hero-art img { height: 650px; transform: none; }
  .hero-glow { width: 330px; height: 330px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 34px; }
  .showcase-tabs { margin-bottom: 24px; gap: 8px; }
  .showcase-tab { min-height: 40px; padding: 6px 16px; font-size: .86rem; border-radius: 11px; }
  .screenshot-rail { grid-auto-columns: minmax(245px, 78vw); margin-inline: -14px; padding-inline: 14px; }
  .screenshot-rail-tablet { grid-auto-columns: minmax(260px, 82vw); }
  .download-section { padding-bottom: 78px; }
  .download-card { min-height: 0; flex-direction: column; align-items: stretch; padding: 35px 27px; }
  .coming-soon-button { align-self: flex-start; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
