/* Radar3D (by Marcial3D) — deep ink-blue theme, taken from the logo */
:root {
  --bg: #070923;
  --bg-2: #0b0e2d;
  --bg-rgb: 7 9 35;
  --surface: #11153a;
  --surface-2: #181d48;
  --border: #222a5c;
  --border-2: #333c78;
  --text: #eef0ff;
  --muted: #a9aed3;
  --faint: #7177a8;
  /* Brand (from the logo): deep ink blue, a blue-to-cyan gradient and an orange spark.
     Each app page sets its own --app color. */
  --blue: #2a9bff;
  --blue-rgb: 42 155 255;
  --cyan: #19dfff;
  --cyan-rgb: 25 223 255;
  --spark: #ff8a1a;      /* the logo's orange dot: thin lines and small dots, never big areas */
  --spark-rgb: 255 138 26;
  --grad: linear-gradient(100deg, #1e6bff, #19dfff);
  --app: var(--blue);
  --app-rgb: var(--blue-rgb);
  --accent-2: var(--blue);
  --cyan-soft: rgb(var(--blue-rgb) / .12);
  --ok: #4fd18b;
  --radius: 20px;
  --radius-sm: 13px;
  --wrap: 1180px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Outfit", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --shadow: 0 30px 70px -30px rgb(0 0 10 / .8), 0 0 0 1px rgb(var(--blue-rgb) / .04);
  color-scheme: dark;
}
/* App colors: put the class on <body> (whole page) or on a slide or card. */
.app-pilotnav { --app: #ff7a1a; --app-rgb: 255 122 26; }
.app-kasagi { --app: #f5c400; --app-rgb: 245 196 0; }
/* Re-derived on each element that changes --app, so children pick up the right color. */
:root, .app-pilotnav, .app-kasagi {
  --accent: var(--app);
  --accent-soft: rgb(var(--app-rgb) / .12);
}
:root { --btn-bg: var(--grad); }
.app-pilotnav, .app-kasagi { --btn-bg: var(--app); }
/* Kasagi keeps to its yellow: its spark lines take the app color, softer */
.app-kasagi { --spark: var(--app); --spark-rgb: var(--app-rgb); --spark-a: .6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 100% -10%, rgb(var(--blue-rgb) / .13), transparent 60%),
    radial-gradient(900px 640px at -15% 35%, rgb(108 74 255 / .10), transparent 60%),
    radial-gradient(900px 700px at 110% 85%, rgb(var(--cyan-rgb) / .07), transparent 60%),
    radial-gradient(700px 500px at 0% 105%, rgb(var(--spark-rgb) / .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); border: 1px solid var(--border); padding: .08em .4em; border-radius: 6px; }
kbd { background: var(--surface-2); border: 1px solid var(--border-2); border-bottom-width: 2px; padding: .05em .45em; border-radius: 6px; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

svg:not(.brand-mark):not(.art) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--bg-rgb) / .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(var(--blue-rgb) / .14);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-size: 1.22rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--text); }
.brand-logo { height: 30px; width: auto; }
.site-footer .brand-logo { height: 34px; }
.brand-name b { color: var(--blue); font-weight: 700; }
.brand-by { align-self: flex-end; margin: 0 0 1px -2px; font: 500 .72rem/1 var(--font); letter-spacing: .02em; color: var(--faint); }
@media (max-width: 420px) { .brand-by { display: none; } }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: .95rem; }
.site-nav ul a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.site-nav ul a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.lang-switch { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: .9rem; padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 999px; }
.lang-switch svg { width: 16px; height: 16px; color: var(--accent-2); }
.lang-switch:hover { border-color: var(--accent-2); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-2); border-radius: 9px; width: 42px; height: 40px; color: var(--text); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s, opacity .25s; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 11px 12px; font-size: 1.02rem; }
  .lang-switch { align-self: flex-start; }
}

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
  font-family: inherit; line-height: 1.2; text-align: center;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg, var(--accent)); color: #17120d; box-shadow: 0 10px 30px -12px rgb(var(--app-rgb) / .65); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent-2); background: var(--cyan-soft); }
.btn-cyan { background: var(--grad); color: #06102a; }
.btn-cyan:hover { filter: brightness(1.1); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }
.chip svg { width: 14px; height: 14px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.for-app { color: var(--accent); font-weight: 600; }
.badge-live { color: var(--ok); background: rgba(79, 209, 139, .12); }
.badge-dev { color: var(--accent-2); background: var(--cyan-soft); }
.badge-soon { color: var(--muted); background: var(--surface-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font: 600 .82rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }

/* ---------- Sections ---------- */
[id] { scroll-margin-top: 130px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 600px) { .section { padding: 68px 0; } }

.page-hero { padding: 84px 0 40px; position: relative; overflow: hidden; }
.page-hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 15% 0%, rgb(var(--app-rgb) / .12), transparent 70%), radial-gradient(600px 300px at 90% 10%, rgb(var(--blue-rgb) / .09), transparent 70%); pointer-events: none; }
.page-hero > .wrap { position: relative; }
.page-hero + .section-tight { padding-top: 16px; }

/* ---------- Home hero carousel ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0) 55%, var(--bg) 100%), radial-gradient(900px 420px at 80% 40%, rgb(var(--blue-rgb) / .12), transparent 70%); }
.carousel { position: relative; z-index: 2; }
.slides { position: relative; display: grid; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px;
  padding: 88px 0 120px; min-height: 620px;
  opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease; }
.slide-copy h1, .slide-copy h2 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin-bottom: 18px; }
.slide-copy h1 em, .slide-copy h2 em { font-style: normal; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent), #fff 40%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide-copy p { color: var(--muted); font-size: 1.14rem; max-width: 540px; margin-bottom: 28px; }
.slide-art { position: relative; aspect-ratio: 640 / 520; border-radius: 28px; background: linear-gradient(160deg, rgb(24 30 74 / .85), rgb(11 14 45 / .85)); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.slide-art > svg, .slide-art > img { width: 100%; height: 100%; object-fit: cover; }
.slide-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); pointer-events: none; }
.carousel-ui { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; }
.carousel-ui .wrap { display: flex; align-items: center; gap: 14px; }
.dots { display: flex; gap: 8px; }
.dot { width: 34px; height: 5px; border-radius: 3px; border: 0; padding: 0; background: var(--border-2); cursor: pointer; position: relative; overflow: hidden; }
.dot::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.dot.is-active::after { transform: scaleX(1); }
.carousel.is-playing .dot.is-active::after { animation: dotfill var(--slide-ms, 7000ms) linear forwards; transform: scaleX(0); }
@keyframes dotfill { to { transform: scaleX(1); } }
.c-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: rgb(17 21 58 / .8); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.c-btn:hover { border-color: var(--accent-2); }
.c-btn svg { width: 18px; height: 18px; }
.c-btn .i-play { display: none; }
.carousel:not(.is-playing) .c-btn .i-play { display: block; }
.carousel:not(.is-playing) .c-btn .i-pause { display: none; }
.c-spacer { flex: 1; }
@media (max-width: 900px) {
  .slide { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 110px; min-height: 0; }
  .slide-art { order: -1; }
  .hero-canvas { opacity: .3; }
}

/* Slide-art animation hooks */
.art .spin { transform-origin: center; transform-box: fill-box; animation: spin 18s linear infinite; }
.art .spin-rev { transform-origin: center; transform-box: fill-box; animation: spin 26s linear infinite reverse; }
.art .float { animation: float 6s ease-in-out infinite; }
.art .pulse { animation: pulse 2.4s ease-in-out infinite; }
.art .dash { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
.art .tilt { transform-origin: 50% 85%; transform-box: fill-box; animation: tilt 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes tilt { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@media (prefers-reduced-motion: reduce) {
  .art *, .slide { animation: none !important; transition: none !important; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, rgb(255 255 255 / .025), transparent 40%), var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; transition: border-color .25s, transform .25s, background .25s; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: .97rem; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card-icon.cyan { background: var(--cyan-soft); color: var(--accent-2); }
.card-icon svg { width: 24px; height: 24px; }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; border-color: rgb(var(--app-rgb) / .45); transform: translateY(-4px); background: var(--surface-2); box-shadow: 0 24px 50px -28px rgb(var(--app-rgb) / .55); }

.app-card { display: grid !important; grid-template-rows: auto 1fr auto; padding: 0; overflow: hidden; }
.app-card .app-thumb { aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.app-card .app-thumb svg, .app-card .app-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.app-card:hover .app-thumb svg, .app-card:hover .app-thumb img { transform: scale(1.04); }
.app-card .app-body { padding: 24px 24px 8px; }
.app-card .app-body h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card .app-foot { padding: 12px 24px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .88rem; }
.app-card .go { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.app-card .go svg { width: 16px; height: 16px; transition: transform .2s; }
.app-card:hover .go svg { transform: translateX(4px); }
.app-card.placeholder { border-style: dashed; background: transparent; }

/* ---------- Product page ---------- */
.product-hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.product-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; }
.product-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 10% 0%, rgb(var(--app-rgb) / .13), transparent 70%), radial-gradient(700px 380px at 95% 30%, rgb(var(--blue-rgb) / .1), transparent 70%); }
.product-hero h1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.product-hero .meta { margin-top: 18px; color: var(--faint); font-size: .88rem; }
@media (max-width: 900px) { .product-hero .wrap { grid-template-columns: 1fr; } }
.dl-card { display: flex; flex-direction: column; }
.dl-card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-card .check-list { margin-bottom: 22px; }
.dl-card .dl-foot { margin-top: auto; display: grid; gap: 10px; }
.dl-card .dl-foot .btn { justify-content: center; }
.dl-card .meta { color: var(--faint); font-size: .86rem; margin: 0; }

.subnav { position: sticky; top: 70px; z-index: 40; background: rgb(var(--bg-rgb) / .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; color: var(--muted); padding: 6px 12px; border-radius: 8px; font-size: .9rem; }
.subnav a:hover, .subnav a.is-active { color: var(--text); background: var(--surface-2); text-decoration: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 .95rem var(--mono); }
.steps li p { margin: 0; }
.steps li p + p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { border: 0; background: none; color: var(--muted); font: 600 .95rem var(--font); padding: 9px 16px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab svg { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.js .tab-panel[hidden] { display: none; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); background: var(--bg-2); font-weight: 600; }
td:first-child { font-weight: 600; white-space: nowrap; color: var(--text); width: 34%; }
td { color: var(--muted); }
@media (max-width: 640px) { td:first-child { white-space: normal; } th, td { padding: 12px 14px; } }

.callout { display: flex; gap: 16px; align-items: flex-start; background: var(--cyan-soft); border: 1px solid rgb(var(--blue-rgb) / .28); border-radius: var(--radius); padding: 20px 22px; }
.callout svg { width: 24px; height: 24px; color: var(--accent-2); flex: none; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout code { overflow-wrap: anywhere; }
.callout.warm { background: var(--accent-soft); border-color: rgb(var(--app-rgb) / .3); }
.callout.warm svg { color: var(--accent); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.check-list li::after { content: ""; position: absolute; left: 3px; top: calc(.35em + 3px); width: 12px; height: 12px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / contain no-repeat; }
.check-list li strong { color: var(--text); font-weight: 600; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); display: grid; gap: 22px; }
.timeline li { position: relative; padding-left: 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-2); }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline h3 { margin-bottom: 4px; font-size: 1.05rem; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 44px; }
.faq-group > h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.faq-group > h2 svg { width: 22px; height: 22px; color: var(--accent); }
details.qa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; transition: border-color .2s; }
details.qa[open] { border-color: var(--border-2); }
details.qa summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 600; position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.qa .answer { padding: 0 20px 18px; color: var(--muted); }
details.qa .answer p:last-child { margin-bottom: 0; }
.faq-search { width: 100%; max-width: 520px; margin-bottom: 36px; position: relative; }
.faq-search input { padding-left: 44px; }
.faq-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); }
.faq-empty { color: var(--muted); display: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 7px; font-size: .92rem; font-weight: 600; }
label .opt { font-weight: 400; color: var(--faint); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: 10px; padding: 11px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--cyan-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--faint); margin: 0; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status.ok { display: block; background: rgba(79,209,139,.12); color: var(--ok); border: 1px solid rgba(79,209,139,.3); }
.form-status.err { display: block; background: rgba(255,92,92,.1); color: #ff8a8a; border: 1px solid rgba(255,92,92,.3); }

/* ---------- Support ---------- */
.donate-card { text-align: center; padding: 34px 26px; display: flex; flex-direction: column; align-items: center; }
.donate-card .card-icon { margin-left: auto; margin-right: auto; width: 58px; height: 58px; border-radius: 16px; }
.donate-card .card-icon svg { width: 30px; height: 30px; }
.donate-card .btn { margin-top: auto; }
.donate-card p { flex: 1; }

/* ---------- Contact ---------- */
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.email-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.email-line a { font: 600 1.02rem var(--mono); color: var(--text); word-break: break-all; }
.copy-btn { border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted); border-radius: 8px; padding: 5px 10px; font: 600 .8rem var(--font); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { color: var(--text); border-color: var(--accent-2); }
.copy-btn.copied { color: var(--ok); border-color: rgba(79,209,139,.4); }

/* ---------- About ---------- */
.world { border-top: 3px solid var(--muted); }
.world .go { display: inline-block; margin-top: 4px; color: var(--accent-2); font-weight: 600; }
a.world:hover .go { text-decoration: underline; }
.world.cyan { border-top-color: var(--accent-2); }
.world.green { border-top-color: var(--ok); }
.portrait { aspect-ratio: 1; border-radius: 24px; background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 56px; background: radial-gradient(600px 300px at 90% 0%, rgb(var(--app-rgb) / .18), transparent 70%), linear-gradient(120deg, #141a4a, #0c1033); border: 1px solid var(--border); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 250px at 0% 0%, rgb(var(--app-rgb) / .25), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgb(var(--blue-rgb) / .18), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band .split { gap: 32px; }
@media (max-width: 600px) { .cta-band { padding: 34px 22px; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 24px; }
.stat b { display: block; font: 700 1.7rem var(--font-display); color: var(--text); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.footer-grid .muted { margin-top: 12px; max-width: 320px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom .small { max-width: 640px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery: videos and screenshots ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.media { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.media.wide { grid-column: span 2; grid-row: span 2; }
.media .frame { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--bg-2); border: 0; padding: 0; margin: 0; overflow: hidden; }
.media.wide .frame { flex: 1; min-height: 0; aspect-ratio: auto; }
.media .frame img, .media video.frame { width: 100%; height: 100%; object-fit: cover; display: block; }
.media figcaption { padding: 12px 16px 14px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--border); }
.media .shot { cursor: zoom-in; }
.media .shot img { transition: transform .4s ease; }
.media .shot:hover img { transform: scale(1.03); }
.yt { cursor: pointer; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgb(var(--app-rgb) / .7); transition: transform .2s; }
.yt-play svg { width: 28px; height: 28px; color: #111; margin-left: 4px; }
.yt:hover .yt-play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-ph { display: grid !important; place-content: center; justify-items: center; gap: 10px; color: var(--faint); font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgb(var(--app-rgb) / .04) 14px 28px), var(--bg-2); outline: 1px dashed var(--border-2); outline-offset: -12px; }
.media-ph svg { width: 34px; height: 34px; color: var(--accent); opacity: .8; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .media.wide { grid-column: auto; grid-row: auto; } .media.wide .frame { aspect-ratio: 16 / 9; } }
/* Live player: a clip next to the Pilot Pro drawing that moves with it */
.live { margin-bottom: 28px; }
.live-stage { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.live-video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border: 1px solid var(--border); border-radius: var(--radius); }
.live-pilot { position: relative; background: #0a0d2a; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.live-pilot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.live-hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 26px 10px 10px; background: linear-gradient(transparent, #0a0d2a 45%); font: 600 .7rem/1 var(--mono); letter-spacing: .05em; }
.live-hud span { padding: 6px 9px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); background: #0a0d2a; }
.live-hud span:empty { display: none; }
.live-hud .hud-mode { color: #111; background: var(--accent); border-color: var(--accent); }
.live-hud .hud-act { color: var(--accent); border-color: rgb(var(--app-rgb) / .5); }
.live-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.live-tabs button { font: 600 .85rem/1 var(--font, inherit); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); cursor: pointer; }
.live-tabs button:hover { color: var(--text, #fff); border-color: var(--accent); }
.live-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.live-cap { margin: 12px 0 0; color: var(--muted); }
.live-note { margin: 4px 0 0; color: var(--faint); font-size: .82rem; }
@media (max-width: 860px) {
  .live-stage { grid-template-columns: 1fr; }
  .live-pilot { min-height: 320px; }
  .live-pilot svg { width: 55%; }
  .live-hud { left: 55%; top: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 12px; background: none; }
}
dialog.lightbox { padding: 0; border: 1px solid var(--border-2); border-radius: 14px; background: var(--bg); max-width: 94vw; max-height: 92vh; overflow: hidden; cursor: zoom-out; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
dialog.lightbox img { display: block; max-width: 94vw; max-height: 86vh; }
dialog.lightbox p { margin: 0; padding: 10px 16px; color: var(--muted); font-size: .9rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--font-display); background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Orange spark (the dot in the logo) ----------
   Hairlines and small dots only, to give the dark blue some warmth. */
::selection { background: rgb(var(--spark-rgb) / .38); color: #fff; }
a:hover { text-decoration-color: rgb(var(--spark-rgb) / .8); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgb(var(--blue-rgb) / .4) 35%, rgb(var(--spark-rgb) / calc(.85 * var(--spark-a, 1))) 68%, transparent 96%); }
.site-header { border-bottom-color: transparent; }
.site-nav ul a[aria-current="page"] { box-shadow: inset 0 0 0 1px rgb(var(--spark-rgb) / calc(.4 * var(--spark-a, 1))); }
.eyebrow::before { background: rgb(var(--spark-rgb)); box-shadow: 0 0 12px rgb(var(--spark-rgb) / .8); }
.section-alt::before, .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 8%, rgb(var(--spark-rgb) / calc(.7 * var(--spark-a, 1))) 30%, rgb(var(--blue-rgb) / .45) 70%, transparent 92%); }
.site-footer { position: relative; }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 70% 0%, rgb(var(--spark-rgb) / calc(.08 * var(--spark-a, 1))), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px 300px at 20% 100%, rgb(var(--spark-rgb) / .07), transparent 70%); }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgb(var(--spark-rgb) / calc(.35 * var(--spark-a, 1)));
  box-shadow: 0 0 0 28px rgb(var(--spark-rgb) / .03), 0 0 0 29px rgb(var(--spark-rgb) / calc(.18 * var(--spark-a, 1))), 0 0 0 64px rgb(var(--spark-rgb) / .02), 0 0 0 65px rgb(var(--spark-rgb) / calc(.1 * var(--spark-a, 1))); }
.stat b::after { content: ""; display: block; width: 18px; height: 2px; margin-top: 8px; border-radius: 2px; background: rgb(var(--spark-rgb) / calc(.75 * var(--spark-a, 1))); }
.timeline li.done::before { box-shadow: 0 0 10px rgb(var(--spark-rgb) / .5); }
.card-icon { box-shadow: inset 0 0 0 1px rgb(var(--spark-rgb) / calc(.3 * var(--spark-a, 1))); }
a.card:hover .card-icon { box-shadow: inset 0 0 0 1px rgb(var(--spark-rgb) / .5); }

/* "Works with Kitsu by CGWire" under the Kasagi title */
.works-with { display: inline-flex; align-items: center; gap: 10px; margin: -4px 0 20px; padding: 7px 14px 7px 16px; border-radius: 999px;
  border: 1px solid rgb(var(--app-rgb) / .35); background: rgb(var(--app-rgb) / .06); color: var(--text); font-size: .92rem; }
.works-with:hover { text-decoration: none; border-color: var(--accent); background: var(--accent-soft); }
.works-with .ww-label { color: var(--muted); }
.works-with .ww-name { font: 600 1.05rem/1 var(--font-display); letter-spacing: -.01em; }
.works-with .ww-by { color: var(--muted); }
.works-with svg { width: 16px; height: 16px; color: var(--accent); }
.works-with .ww-logo { width: 24px; height: 24px; margin-right: -4px; }
