/* ============ Celestial Flags — Landing Page (monochrome) ============ */

:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --text-strong: #ffffff;
  --muted: #9a9a9a;
  --muted-2: #6f6f6f;
  --radius: 10px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 255, 255, 0.9); color: #000; }

a { color: inherit; text-decoration: none; }

.container { width: min(var(--maxw), 92%); margin: 0 auto; }

section { padding: 96px 0; }

/* ---------- Icon ---------- */

.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
  transition: box-shadow 0.2s;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; letter-spacing: 0.2px; color: var(--text-strong); }

.brand-badge {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  display: grid; place-items: center;
}

.brand-badge .icon { width: 16px; height: 16px; }

.brand-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

.nav-links { display: flex; gap: 6px; align-items: center; }

.nav-links a { padding: 8px 13px; color: var(--muted); font-weight: 500; font-size: 0.92rem; border-radius: 8px; transition: color 0.2s, background 0.2s; }

.nav-links a:hover { color: var(--text-strong); background: var(--panel); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn .icon { width: 17px; height: 17px; }

.btn-accent { background: var(--text-strong); color: #000; }

.btn-accent:hover { background: #d4d4d4; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--panel-border); }

.btn-ghost:hover { background: var(--panel); transform: translateY(-1px); }

.btn-sm { padding: 8px 15px; font-size: 0.85rem; }

/* ---------- Hero ---------- */

.hero { padding: 124px 0 104px; text-align: center; border-bottom: 1px solid var(--panel-border); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--panel-border); background: var(--panel);
  color: var(--muted); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase;
  margin-bottom: 34px;
}

.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-strong); animation: pulse 2.2s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.06;
  color: var(--text-strong);
  margin-bottom: 26px;
}

.hero h1 .grad { font-style: italic; font-weight: 400; color: var(--muted); letter-spacing: -0.5px; }

.hero p.lead { max-width: 620px; margin: 0 auto 40px; color: var(--muted); font-size: 1.12rem; }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-meta { margin-top: 24px; color: var(--muted-2); font-size: 0.84rem; letter-spacing: 0.3px; }

.hero-meta span { margin: 0 8px; }

.hero-meta .sep { opacity: 0.4; }

/* ---------- Sections common ---------- */

.sec-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }

.kicker { color: var(--muted-2); font-weight: 600; font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase; }

.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.8px; margin: 12px 0 14px; color: var(--text-strong); }

.sec-head h2 em { font-style: italic; font-weight: 400; color: var(--muted); }

.sec-head p { color: var(--muted); }

/* ---------- Features grid ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--panel-border); border: 1px solid var(--panel-border); border-radius: 14px; overflow: hidden; }

.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--bg); padding: 28px; transition: background 0.2s; }

.card:hover { background: var(--bg-soft); }

.card-icon {
  width: 42px; height: 42px; border-radius: 9px;
  border: 1px solid var(--panel-border); background: var(--panel);
  display: grid; place-items: center; margin-bottom: 20px;
  color: var(--text);
}

.card-icon .icon { width: 20px; height: 20px; }

.card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; color: var(--text-strong); }

.card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Showcase ---------- */

.showcase { background: var(--bg-soft); border-block: 1px solid var(--panel-border); }

.show-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.show-item {
  background: var(--bg); border: 1px solid var(--panel-border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.show-item:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.24); }

.mock {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #151515, #050505 70%);
  border-bottom: 1px solid var(--panel-border);
  padding: 18px;
}

/* crosshair mock */
.mock-cross { width: 14px; height: 14px; position: relative; }
.mock-cross::before, .mock-cross::after { content: ""; position: absolute; background: #fff; }
.mock-cross::before { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }
.mock-cross::after { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }

/* keystroke mock */
.wasd { display: flex; gap: 8px; font-family: "Segoe UI", sans-serif; }
.key {
  width: 46px; height: 46px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--panel-border);
  display: grid; place-items: center; font-weight: 600; color: var(--muted-2); font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.key.caps { width: 92px; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.key.lit { background: #fff; color: #000; border-color: #fff; }

/* spotify mock */
.spot {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--panel-border); background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px; border-radius: 10px; min-width: 230px;
}
.spot-art { width: 46px; height: 46px; border-radius: 8px; background: #1a1a1a; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--panel-border); }
.spot-art .icon { width: 22px; height: 22px; stroke: var(--text-strong); }
.spot-meta { min-width: 0; }
.spot-now { color: var(--muted-2); font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 3px; }
.spot-title { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-strong); }
.spot-artist { color: var(--muted); font-size: 0.8rem; font-weight: 400; }

.show-caption { padding: 20px 22px 24px; }
.show-caption h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--text-strong); }
.show-caption p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Download ---------- */

.download-panel {
  background: var(--bg-soft);
  border: 1px solid var(--panel-border); border-radius: 14px;
  padding: 52px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}

.dl-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 14px; color: var(--text-strong); }

.dl-sub { color: var(--muted); margin-bottom: 26px; }

.dl-facts { display: grid; gap: 10px; margin-bottom: 30px; color: var(--muted); font-size: 0.9rem; }

.dl-facts li { display: flex; align-items: center; gap: 10px; list-style: none; }

.dl-facts .icon { width: 16px; height: 16px; stroke: var(--text-strong); }

.dl-facts strong { color: var(--text-strong); font-weight: 600; }

.dl-card {
  background: var(--bg); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 28px; text-align: center;
}

.dl-card .icon { width: 34px; height: 34px; margin: 0 auto 14px; display: block; }

.dl-card h3 { margin-bottom: 6px; color: var(--text-strong); }

.dl-card .ver { color: var(--muted); font-weight: 500; font-size: 0.9rem; margin-bottom: 18px; }

.dl-card .btn { width: 100%; }

.dl-card .size { color: var(--muted-2); font-size: 0.78rem; margin-top: 12px; letter-spacing: 0.3px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 1px; background: var(--panel-border); border: 1px solid var(--panel-border); border-radius: 12px; overflow: hidden; }

details { background: var(--bg); }

summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 0.98rem; color: var(--text-strong);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after { content: "+"; color: var(--muted); font-size: 1.25rem; font-weight: 400; transition: transform 0.2s; }

details[open] summary::after { transform: rotate(45deg); }

details .body { padding: 0 22px 20px; color: var(--muted); font-size: 0.93rem; }

details .body code { background: var(--panel); border: 1px solid var(--panel-border); padding: 2px 6px; border-radius: 5px; color: var(--text); font-size: 0.84rem; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; padding: 80px 0; border-top: 1px solid var(--panel-border); }

.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.7px; margin-bottom: 12px; color: var(--text-strong); }

.cta-band p { color: var(--muted); margin-bottom: 32px; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--panel-border); padding: 40px 0 60px; }

.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.85rem; }

.footer-inner .brand { font-size: 0.95rem; }

.disclaimer { margin-top: 14px; color: var(--muted-2); font-size: 0.78rem; max-width: 720px; }

/* ---------- Toast & reveal ---------- */

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: #fff; color: #000;
  padding: 14px 22px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 200;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }

.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .download-panel { grid-template-columns: 1fr; padding: 36px; gap: 28px; }
}

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding: 92px 0 76px; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}