:root {
  --bg: #0b0906;
  --bg-2: #120e09;
  --panel: #18130c;
  --panel-2: #211a10;
  --line: rgba(226, 176, 74, .16);
  --line-strong: rgba(226, 176, 74, .38);
  --text: #f3eadb;
  --muted: #b3a58c;
  --gold: #e2b04a;
  --gold-hi: #ffe7a3;
  --gold-lo: #9a6a1c;
  --lapis: #3d6bd8;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cinzel", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .9em;
  background: rgba(226, 176, 74, .1);
  border: 1px solid var(--line);
  padding: .05em .4em;
  border-radius: 6px;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; margin-top: 28px; }
.gold {
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* background texture */
.sand {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(226, 176, 74, .14), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(61, 107, 216, .10), transparent 60%),
    var(--bg);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  color: #1a1206;
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 55%, #c48f2c);
  box-shadow: 0 8px 30px rgba(226, 176, 74, .3);
}
.btn--gold:hover { color: #1a1206; box-shadow: 0 10px 40px rgba(226, 176, 74, .45); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { color: var(--gold-hi); border-color: var(--gold); }
.btn--sm { padding: .55em 1.1em; font-size: .85rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 6, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand span { font-family: var(--display); font-weight: 800; letter-spacing: .18em; font-size: 1.1rem; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: .92rem; }
.nav__links a:hover { color: var(--gold-hi); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .45em 1em; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--line-strong); background: rgba(226, 176, 74, .06); color: var(--gold-hi);
  margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__meta { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta strong { font-size: 1.05rem; }
.hero__meta span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.hero__art { position: relative; display: flex; justify-content: center; }
.halo {
  position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 176, 74, .35), transparent 65%);
  filter: blur(30px); z-index: -1;
}
.phone {
  position: relative; margin: 0; width: min(330px, 100%);
  border-radius: 28px; padding: 10px;
  background: linear-gradient(160deg, #2a2114, #0f0b07);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 231, 163, .05) inset;
}
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #000; }
.phone__badge {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  white-space: nowrap; font-weight: 800; font-size: .78rem; letter-spacing: .08em;
  padding: .45em .9em; border-radius: 999px; color: #1a1206;
  background: linear-gradient(120deg, var(--gold-hi), var(--gold));
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.phone__sound {
  position: absolute; right: 22px; bottom: 56px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 1rem; cursor: pointer;
}
.phone figcaption { text-align: center; font-size: .82rem; color: var(--muted); padding: 10px 0 2px; }

/* sections */
.section { padding: 90px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(226, 176, 74, .035) 20%, rgba(226, 176, 74, .035) 80%, transparent); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .6em; }

/* tabs + grid */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.tab {
  font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
  padding: .55em 1.1em; border-radius: 999px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-selected="true"] { color: #1a1206; background: var(--gold); border-color: var(--gold); }
.tab small { opacity: .7; margin-left: .35em; }
.search { display: flex; justify-content: center; margin-bottom: 28px; }
.search input {
  width: min(460px, 100%); font: inherit; color: var(--text);
  padding: .8em 1.2em; border-radius: 999px; outline: none;
  background: var(--panel); border: 1px solid var(--line);
}
.search input:focus { border-color: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { font-size: 1rem; margin-bottom: .35em; display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.card p { font-size: .9rem; color: var(--muted); margin: 0; }
.card .cat { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); opacity: .8; }
.badge { font-size: .62rem; font-weight: 800; letter-spacing: .08em; padding: .2em .55em; border-radius: 6px; background: rgba(74, 222, 128, .15); color: #6ee7a0; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px; }

/* highlights */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hl {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}
.hl--wide { grid-column: span 2; }
.hl__icon { font-size: 1.8rem; margin-bottom: 10px; }
.hl p { color: var(--muted); margin: 0; }

/* clips */
.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.clip { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.clip figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: .85rem; }
.clip figcaption a { color: var(--muted); }

/* gallery */
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery figure {
  margin: 0 0 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); cursor: zoom-in;
}
.gallery img { width: 100%; height: auto; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 14px; font-size: .85rem; color: var(--muted); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .9); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox button {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font-size: 1.1rem; cursor: pointer;
}

/* developers */
.dev { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before { content: "𓋹"; position: absolute; left: 0; top: 0; color: var(--gold); }
.code { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0d0a06; box-shadow: var(--shadow); }
.code__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.code__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a2f20; }
.code__bar span { margin-left: 10px; font-size: .8rem; color: var(--muted); }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font-size: .86rem; line-height: 1.7; }
.code code { background: none; border: 0; padding: 0; }
.code .k { color: #e2b04a; } .code .t { color: #7fb0ff; } .code .f { color: #ffe7a3; }
.code .a { color: #c084fc; } .code .s { color: #86efac; } .code .i { color: #fca5a5; }
.code__note { font-size: .78rem; color: var(--muted); padding: 0 20px 16px; margin: 0; }
.license {
  margin-top: 40px; text-align: center; font-size: .9rem; color: var(--muted);
  padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
}

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.release { position: relative; padding-left: 44px; margin-bottom: 26px; }
.release::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--gold);
}
.release.is-hidden { display: none; }
.release__box { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.release__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.release__head h3 { margin: 0; }
.release__head time { font-size: .8rem; color: var(--muted); }
.release__tag { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.release ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.release li { margin-bottom: 4px; }
.release li strong { color: var(--text); }

/* download */
.download { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 30px; }
.download__card, .requires {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}
.download__card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.download__card h3 { margin: 0 0 .2em; font-size: 1.3rem; }
.download__card p { margin: 0; }
.download__card .btn { margin-left: auto; }
.requires h4 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.requires ul { list-style: none; padding: 0; margin: 0; }
.requires li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.requires li:last-child { border-bottom: 0; }
.requires li span { color: var(--muted); flex: 1; }
.tag { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2em .55em; border-radius: 6px; background: rgba(239, 68, 68, .15); color: #fca5a5; }

.steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.steps p { color: var(--muted); margin: 0; font-size: .92rem; }
.steps__n {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px;
  font-family: var(--display); font-weight: 800; color: #1a1206; background: linear-gradient(120deg, var(--gold-hi), var(--gold));
}
.notice {
  padding: 16px 20px; border-radius: var(--radius); font-size: .92rem;
  background: rgba(239, 68, 68, .07); border: 1px solid rgba(239, 68, 68, .3); color: #f5d0d0;
}

/* faq */
details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 20px 16px; color: var(--muted); margin: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer p { margin: 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1000px) {
  .clips { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .download { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero__inner, .dev { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(11, 9, 6, .97); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav.is-open .nav__links { max-height: 480px; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__cta { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .highlights, .steps { grid-template-columns: 1fr; }
  .hl--wide { grid-column: auto; }
  .clips { grid-template-columns: 1fr 1fr; gap: 10px; }
  .clip figcaption { flex-direction: column; gap: 2px; padding: 10px; font-size: .78rem; }
  .download__card .btn { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
