@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins_medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins_bold.ttf") format("truetype"); }

:root {
  --bg: #050507;
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --dim: #5d5d68;
  --line: rgba(255,255,255,.09);
  --line2: rgba(255,255,255,.16);
  --glass: rgba(255,255,255,.045);
  --glass2: rgba(255,255,255,.08);
  --accent: #b9a6ff;
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); color: var(--text); font: 500 16px/1.6 "Poppins", system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: #fff; color: #000; }

.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 75% -10%, rgba(185,166,255,.13), transparent 60%),
    radial-gradient(50vw 40vw at 0% 30%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(40vw 30vw at 100% 80%, rgba(120,170,255,.06), transparent 60%); }
.bg-glow::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }

.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.glass-sm { background: rgba(10,10,14,.55); border: 1px solid var(--line2); border-radius: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; gap: 24px; padding: 10px 12px 10px 18px;
  background: rgba(8,8,12,.6); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { padding: 7px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: .2s; }
.nav nav a:hover { color: var(--text); background: var(--glass2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 1px solid transparent; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.primary { background: #fff; color: #000; box-shadow: 0 0 0 0 rgba(255,255,255,.3); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(255,255,255,.45); }
.btn.ghost { background: var(--glass); border-color: var(--line2); }
.btn.ghost:hover { background: var(--glass2); transform: translateY(-2px); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.big { padding: 15px 26px; font-size: 16px; }

/* ---------------------------------------------------------------- hero */
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 90px 0 70px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line2); color: var(--muted); font-size: 13px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 10px #7dffb0; }
.pill.small { padding: 3px 10px; font-size: 11px; color: var(--text); }
h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.035em; margin: 22px 0 22px; font-weight: 700; }
.grad { background: linear-gradient(100deg, #fff 10%, #c9bcff 50%, #8f8f9c 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 16px; }
.fine { color: var(--dim); font-size: 13px; }
.fine a { text-decoration: underline; text-underline-offset: 3px; }
.fine a:hover { color: var(--text); }

/* generic window frame */
.window { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #0a0a0f;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02), 0 0 80px -20px rgba(185,166,255,.18); }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); margin-bottom: 40px; }
.stats div { padding: 26px; text-align: center; border-left: 1px solid var(--line); }
.stats div:first-child { border: 0; }
.stats b { display: block; font-size: 34px; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- sections */
.section { padding: 90px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 14px; }
.sec-head p, .split-text p { color: var(--muted); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 26px; transition: transform .3s, border-color .3s, background .3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line2); background: var(--glass2); }
.f-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid var(--line2); margin-bottom: 18px; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- showcase */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.tab { font: inherit; font-size: 14px; color: var(--muted); background: var(--glass); border: 1px solid var(--line); padding: 9px 18px; border-radius: 12px; cursor: pointer; transition: .2s; }
.tab:hover { color: var(--text); }
.tab.on { background: #fff; color: #000; border-color: #fff; }

/* ---------------------------------------------------------------- cosmetics */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: #fff; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude; }
/* ---------------------------------------------------------------- launcher */
.launcher-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.launcher-list div { background: var(--bg); padding: 20px 22px; display: flex; flex-direction: column; }
.launcher-list b { font-size: 15px; }
.launcher-list span { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { margin-bottom: 10px; padding: 0 22px; transition: background .2s; }
.faq details[open] { background: var(--glass2); }
.faq summary { cursor: pointer; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* ---------------------------------------------------------------- download */
.download { margin: 40px auto 90px; padding: 70px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; inset: -40% 20% auto; height: 120%; background: radial-gradient(rgba(185,166,255,.2), transparent 60%); z-index: -1; }
.download img { width: 64px; margin-bottom: 8px; filter: drop-shadow(0 0 24px rgba(255,255,255,.4)); }
.download p { color: var(--muted); margin-bottom: 20px; }
.download .fine { margin: 16px 0 0; }

/* ---------------------------------------------------------------- footer */
.footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 50px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; }
.footer nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer p { width: 100%; color: var(--dim); font-size: 12px; }

/* ---------------------------------------------------------------- changelog */
.page-head { padding: 80px 0 40px; text-align: center; }
.page-head p { color: var(--muted); }
.releases { max-width: 820px; margin: 0 auto 100px; display: grid; gap: 18px; }
.release { padding: 28px 30px; }
.release header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.release h3 { font-size: 22px; }
.release time { color: var(--dim); font-size: 14px; }
.release .tag { font-size: 11px; padding: 2px 9px; border-radius: 99px; background: #fff; color: #000; font-weight: 700; }
.release .kind { font-size: 12px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin: 14px 0 6px; }
.release ul { list-style: none; display: grid; gap: 6px; }
.release li { color: #cfcfd8; padding-left: 18px; position: relative; font-size: 15px; }
.release li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.release .body { color: #cfcfd8; font-size: 15px; white-space: pre-line; }
.loading { text-align: center; color: var(--dim); }

.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.notfound b { font-size: 120px; line-height: 1; letter-spacing: -.05em; }
.notfound p { color: var(--muted); margin-bottom: 18px; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .launcher-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; gap: 40px; text-align: center; }
  .lead { margin: 0 auto; }
  .cta { justify-content: center; }
  .menu-mock { transform: none; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .shots { aspect-ratio: 4/3; }
}
@media (max-width: 560px) {
  .features, .launcher-list { grid-template-columns: 1fr; }
  .btn.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.release li b { color: #fff; }

/* ---------------------------------------------------------------- real screenshots */
.shot-frame { margin: 0; }
.shot-frame img { width: 100%; height: auto; display: block; }
.shot-frame figcaption { position: absolute; left: 14px; bottom: 12px; padding: 4px 12px; border-radius: 99px; font-size: 13px; background: rgba(0,0,0,.6); border: 1px solid var(--line2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-shot { perspective: 1400px; }
.tilt { transform: rotateY(-9deg) rotateX(3deg); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hero-shot:hover .tilt { transform: none; }
.shots { position: relative; aspect-ratio: 1600/881; background: #050507; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transform: scale(1.01); transition: opacity .45s, transform .6s; }
.shot.on { opacity: 1; transform: none; }
.cos-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cos-shots .big { grid-column: 1 / -1; }
.launcher-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.launcher-shots .main { grid-column: 1 / -1; }
@media (max-width: 860px) { .tilt { transform: none; } .shots { aspect-ratio: 16/10; } }
