:root {
  --bg: #030814; --bg2: #071230; --card: rgba(9, 22, 56, .72); --line: rgba(64, 160, 255, .22); --line-hi: rgba(0, 229, 255, .6);
  --blue: #1e6bff; --cyborg: #0a3d91; --cyan: #00e5ff; --text: #eaf3ff; --dim: #8ea3c2; --red: #ff2e4d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Exo 2", sans-serif; font-size: 16px; line-height: 1.6;
  background-image: radial-gradient(ellipse 80% 50% at 70% -10%, rgba(30, 107, 255, .25), transparent 60%),
    linear-gradient(rgba(0, 229, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, .035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px; }
::selection { background: var(--cyan); color: #000; }
a { color: inherit; text-decoration: none; }
.grain { pointer-events: none; position: fixed; inset: 0; z-index: 50; opacity: .5; background: repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0 1px, transparent 1px 3px); }
.dim { color: var(--dim); } .small { font-size: 13px; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--cyan); }
h1, h2, h3 { font-family: "Orbitron", sans-serif; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 10px 0 36px; }
h3 { font-size: 18px; letter-spacing: .03em; }

.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; padding: 14px 6vw; background: rgba(3, 8, 20, .75); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: Orbitron; font-weight: 900; letter-spacing: .12em; font-size: 15px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 16px rgba(0, 229, 255, .5); }
.brand b { color: var(--cyan); margin-left: 6px; }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a { padding: 8px 12px; color: var(--dim); font-size: 15px; transition: color .2s, background-color .2s; }
.links a:hover { color: var(--text); background: rgba(0, 229, 255, .07); }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: none; border: 0; color: var(--dim); padding: 6px 10px; cursor: pointer; font-family: "JetBrains Mono"; font-size: 12px; }
.lang button.on { background: rgba(0, 229, 255, .16); color: var(--cyan); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; font-family: "Exo 2"; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid var(--line-hi); color: var(--text); background: transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background-color .2s, box-shadow .2s, transform .12s; }
.btn:hover:not(:disabled) { background: rgba(0, 229, 255, .12); box-shadow: 0 0 24px rgba(0, 229, 255, .35); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.primary { background: linear-gradient(90deg, var(--blue), var(--cyan)); color: #021026; border: 0; }
.btn.primary:hover:not(:disabled) { box-shadow: 0 0 30px rgba(0, 229, 255, .6); }
.btn.sm { padding: 9px 16px; font-size: 14px; } .btn.full { width: 100%; }

.hero { position: relative; overflow: hidden; min-height: 82vh; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url("../img/hero-bg.jpg") center/cover; opacity: .35; filter: saturate(.6) hue-rotate(-10deg); animation: zoom 18s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, rgba(3, 8, 20, .4) 70%, var(--bg)); }
@keyframes zoom { from { transform: scale(1.12); } to { transform: none; } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; width: 100%; padding: 80px 6vw; }
.hero-copy > * { animation: rise .7s both; } .hero-copy > *:nth-child(2) { animation-delay: .1s; } .hero-copy > *:nth-child(3) { animation-delay: .2s; } .hero-copy > *:nth-child(4) { animation-delay: .3s; } .hero-copy > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.chrome { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; letter-spacing: .04em; margin: 14px 0 10px;
  background: linear-gradient(180deg, #fff 0%, #cfe0f5 38%, #3b5a86 52%, #eef5ff 64%, #7f98bb 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, .35)); }
.slogan { font-family: Orbitron; font-size: clamp(18px, 2vw, 24px); color: var(--cyan); margin: 0 0 18px; }
.sub { color: var(--dim); max-width: 580px; font-size: 17px; margin: 0 0 32px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inner.with-trailer { grid-template-columns: 1fr 1.1fr; }
.hero-trailer { position: relative; aspect-ratio: 16/9; border: 1px solid rgba(0, 229, 255, .45); background: #000; box-shadow: 0 0 70px rgba(0, 229, 255, .18), inset 0 0 0 1px rgba(0, 229, 255, .1); animation: rise .8s .3s both; }
.hero-trailer video { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-trailer .hud { position: absolute; width: 18px; height: 18px; border: 2px solid var(--cyan); z-index: 2; pointer-events: none; }
.hero-trailer .tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; } .hero-trailer .tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.hero-trailer .bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; } .hero-trailer .br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.hero-trailer .watch { position: absolute; right: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 0 24px rgba(0, 229, 255, .45); }
.hero-badge { position: relative; width: min(360px, 70vw); aspect-ratio: 1; justify-self: center; }
.hero-badge img { position: absolute; inset: 14%; width: 72%; border-radius: 50%; box-shadow: 0 0 60px rgba(0, 229, 255, .5), 0 0 0 4px #8fa3bb, 0 0 0 8px #0d1626; }
.ring { position: absolute; border-radius: 50%; }
.r1 { inset: 8%; border: 3px dashed rgba(170, 195, 220, .7); animation: spin 14s linear infinite; }
.r2 { inset: 3%; border: 4px solid transparent; border-top-color: var(--cyan); border-bottom-color: var(--blue); filter: drop-shadow(0 0 10px var(--cyan)); animation: spin 5s linear infinite reverse; }
.r3 { inset: -4%; border: 2px solid rgba(64, 160, 255, .25); border-left-color: var(--red); animation: spin 9s linear infinite; }
.teeth { position: absolute; inset: -10%; border-radius: 50%; background: repeating-conic-gradient(rgba(150, 180, 210, .45) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 64%, #000 65%, #000 70%, transparent 71%); animation: spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 6vw 34px 3vw; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.stat:last-child { border-right: 0; }
.stat b { font-family: Orbitron; font-size: 40px; color: var(--cyan); }
.stat span { color: var(--dim); font-size: 14px; }

.section { padding: 110px 6vw; }
.section.narrow { max-width: 900px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); padding: 28px; position: relative; backdrop-filter: blur(12px); transition: border-color .25s, transform .25s; }
.card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 18px; height: 18px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.compare-wrap { padding: 0; overflow-x: auto; margin: 26px 0 14px; }
.compare { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.compare tbody th { color: var(--dim); font-weight: 500; white-space: nowrap; }
.compare .sds { background: rgba(0, 229, 255, .08); color: var(--text, #e6f1ff); font-weight: 600; }
.compare thead .sds { color: var(--cyan); border-top: 2px solid var(--cyan); }
.compare tbody tr { transition: background-color .2s; }
.compare tbody tr:hover { background: rgba(0, 229, 255, .04); }
#compare .btn { margin-top: 18px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { animation: rise .6s both; }
.why .num { font-family: "JetBrains Mono"; color: var(--blue); font-size: 13px; }
.why h3 { margin: 10px 0 8px; } .why p { color: var(--dim); margin: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); width: fit-content; margin-bottom: 28px; }
.tabs button { background: none; border: 0; border-right: 1px solid var(--line); color: var(--dim); padding: 9px 16px; cursor: pointer; font-family: "Exo 2"; font-size: 14px; transition: color .2s, background-color .2s; }
.tabs button:last-child { border-right: 0; }
.tabs button.on, .tabs button:hover { color: var(--cyan); background: rgba(0, 229, 255, .1); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.show-bar { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.show-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 0 14px; background: rgba(3, 8, 20, .6); color: var(--dim); min-width: 320px; transition: border-color .2s; }
.show-search:focus-within { border-color: var(--cyan); color: var(--cyan); }
.show-search input { background: none; border: 0; outline: 0; color: var(--text, #e6f1ff); font: inherit; padding: 11px 0; width: 100%; }
.tabs .count { font-family: "JetBrains Mono", monospace; font-size: 11px; opacity: .7; margin-left: 4px; }
.thumb { padding: 0; margin: 0; overflow: hidden; text-align: left; cursor: pointer; color: inherit; font: inherit; display: block; width: 100%; transition: transform .25s, border-color .25s; }
.thumb:hover { transform: translateY(-3px); border-color: var(--cyan); }
.thumb .poster { position: relative; display: block; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s, opacity .3s; opacity: .9; }
.thumb:hover img { transform: scale(1.04); opacity: 1; }
.thumb .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 229, 255, .18); border: 1px solid var(--cyan); color: var(--cyan); backdrop-filter: blur(6px); transition: transform .25s, background-color .25s; }
.thumb:hover .play { transform: scale(1.12); background: rgba(0, 229, 255, .32); }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; font-family: "JetBrains Mono", monospace; font-size: 11px; background: rgba(2, 6, 16, .8); padding: 3px 7px; }
.thumb .cap { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(1, 4, 12, .86); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 24px; outline: 0; animation: fadeUp .2s ease; }
.lightbox-inner { width: min(1180px, 100%); border: 1px solid var(--line); background: #040b1a; box-shadow: 0 0 60px rgba(0, 229, 255, .12); }
.lightbox-head, .lightbox-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lightbox video { width: 100%; aspect-ratio: 16/9; max-height: calc(100vh - 150px); display: block; background: #000; }
.lightbox-inner { max-height: calc(100vh - 48px); }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--dim); width: 34px; height: 34px; cursor: pointer; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }

.consent { display: grid; gap: 12px; padding: 18px 22px; margin-bottom: 22px; max-width: 860px; }
.consent label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.consent input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan, #00e5ff); flex-shrink: 0; cursor: pointer; }
.consent p { margin: 0; }
.warn { color: #ffb547; }
.billing-toggle { display: inline-flex; border: 1px solid var(--line); margin-bottom: 18px; background: rgba(3, 8, 20, .6); }
.billing-toggle button { background: none; border: 0; color: var(--dim); padding: 10px 20px; font: inherit; cursor: pointer; transition: background-color .2s, color .2s; display: inline-flex; gap: 8px; align-items: center; }
.billing-toggle button.on { background: rgba(0, 229, 255, .16); color: var(--cyan); }
.billing-toggle .save { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #021026; background: #3dffb0; padding: 3px 7px; }
.plan .save-line { color: #3dffb0; margin: -6px 0 14px; }
.trial-badge { display: inline-block; align-self: flex-start; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #3dffb0; border: 1px solid rgba(61, 255, 176, .4); padding: 4px 10px; margin-bottom: 8px; }
.consent .field { display: grid; gap: 6px; max-width: 420px; }
.change-plan { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(0, 229, 255, .12); display: grid; gap: 10px; }
.change-options { display: flex; flex-wrap: wrap; gap: 10px; }
.change-confirm { padding: 16px 18px; display: grid; gap: 8px; animation: fadeUp .25s ease; }
.change-confirm p { margin: 0; line-height: 1.5; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin-bottom: 18px; }
.plan { display: flex; flex-direction: column; padding: 34px; }
.plan.hot { border-color: var(--cyan); box-shadow: 0 0 50px rgba(0, 229, 255, .18); background: linear-gradient(180deg, rgba(30, 107, 255, .22), var(--card)); }
.plan .tag { position: absolute; top: -13px; right: 24px; background: var(--cyan); color: #021026; font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; padding: 4px 10px; }
.plan h3 { font-size: 22px; } .plan p { margin: 8px 0 18px; }
.amount b { font-family: Orbitron; font-size: 46px; } .amount span { color: var(--dim); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 30px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid rgba(64, 160, 255, .1); font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 2px; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; transition: color .2s; }
.faq summary::after { content: "+"; font-family: Orbitron; color: var(--cyan); }
.faq[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--cyan); }
.faq p { color: var(--dim); margin: 0 0 18px; }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); }
.form input, .form textarea, .consent .input { background: rgba(3, 8, 20, .7); border: 1px solid var(--line); color: var(--text); padding: 12px 14px; font-family: inherit; font-size: 15px; outline: none; transition: border-color .2s; }
.form input:focus, .form textarea:focus, .consent .input:focus { border-color: var(--cyan); }
.ok { color: #3dffb0; margin: 0; } .error { color: var(--red); margin: 0 0 12px; }

.pay { text-align: center; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.spinner { width: 46px; height: 46px; border: 3px solid var(--line); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 34px 6vw; border-top: 1px solid var(--line); font-size: 14px; }

.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-family: monospace; letter-spacing: .3em; color: var(--cyan); }
.boot img { width: 110px; border-radius: 50%; box-shadow: 0 0 40px rgba(0, 229, 255, .5); animation: spin 3s linear infinite; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 20px; background: var(--red); color: #fff; z-index: 100; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; } #blazor-error-ui .reload { color: #fff; text-decoration: underline; }

@media (max-width: 1000px) {
  .links { display: none; } .lang { margin-left: auto; }
  .hero-inner, .hero-inner.with-trailer, .contact { grid-template-columns: 1fr; } .hero-badge { width: 240px; }
  .why-grid, .price-grid, .video-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 6vw; }
}
@media (max-width: 560px) {
  .topbar { gap: 12px; padding: 12px 4vw; }
  .brand span, .brand { font-size: 12px; } .brand img { width: 32px; height: 32px; }
  [data-testid=nav-cta] { display: none; }
  .show-search { min-width: 0; width: 100%; }
  body { overflow-x: hidden; }
}

.link { color: var(--dim); font-size: 14px; transition: color .2s; } .link:hover { color: var(--cyan); }
.auth { min-height: 70vh; }
.auth .form { max-width: 460px; }
.sub { margin-bottom: 20px; } .sub-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.status { font-family: "JetBrains Mono"; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; padding: 4px 10px; border: 1px solid var(--red); color: var(--red); }
.status.on { border-color: #3dffb0; color: #3dffb0; }
.license { display: flex; gap: 12px; align-items: center; margin: 8px 0 12px; flex-wrap: wrap; }
.license code { font-family: "JetBrains Mono"; font-size: 18px; color: var(--cyan); background: rgba(3, 8, 20, .7); border: 1px solid var(--line); padding: 10px 14px; letter-spacing: .08em; }

.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal h3 { margin: 34px 0 10px; font-size: 17px; }
.legal .placeholder { color: var(--dim); border-left: 2px solid var(--line-hi); padding: 10px 16px; background: rgba(0, 229, 255, .04); margin: 0; font-family: "JetBrains Mono"; font-size: 13px; }

/* ---- Playground: the editor and the live result run on the server, shown here in a frame ---- */
.play-sub { max-width: 760px; }
.play-frame { display: block; width: 100%; height: 820px; border: 0; background: transparent; }
.play-note { margin: 16px 0 0; }

/* The page inside the frame (/play, rendered by the server) */
body.play-body { background: transparent; background-image: none; padding: 2px; }
.play-examples { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.play-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; }
.play-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.play-code { flex: 1; min-height: 520px; width: 100%; resize: vertical; padding: 16px; border: 1px solid var(--line); background: rgba(2, 6, 16, .85); color: var(--text);
  font-family: "JetBrains Mono", monospace; font-size: 13.5px; line-height: 1.6; white-space: pre; overflow: auto; tab-size: 4; }
.play-code:focus { outline: none; border-color: var(--line-hi); box-shadow: 0 0 24px rgba(0, 229, 255, .18); }
.play-errors { margin: 0; padding: 12px 14px 12px 30px; border: 1px solid rgba(255, 46, 77, .5); background: rgba(255, 46, 77, .08); color: #ffb3bf; font-size: 14px; max-height: 180px; overflow: auto; }
.play-result { flex: 1; min-height: 520px; padding: 20px; border: 1px solid var(--line); overflow: auto;
  background: var(--sds-color-bg, #0b1020); color: var(--sds-color-text, var(--text)); font-family: var(--sds-font-family, inherit); }
.play-result > * { max-width: 100%; margin: 0 12px 14px 0; vertical-align: middle; }
.play-crash { margin: 0; color: #ffb3bf; }
@media (max-width: 900px) { .play-grid { grid-template-columns: 1fr; } .play-frame { height: 1500px; } }

/* The one-time licence, shown above the subscription plans */
.license-offer { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.license-offer-buy { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 800px) { .license-offer { grid-template-columns: 1fr; } }
