:root {
  --bg: #0b1630;
  --bg-2: #111f42;
  --card: #15264f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef2fb;
  --muted: #a9b4cf;
  --gold: #f2c14e;
  --gold-2: #e0a630;
  --red: #e0475a;
  --radius: 18px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1d3478 0%, transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 48, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px 11px; font-size: 1.1rem; cursor: pointer; }

/* Official banner */
.official-bar {
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.16), rgba(242, 193, 78, 0.05));
  border-bottom: 1px solid rgba(242, 193, 78, 0.25);
  font-size: 0.9rem; color: #ffe7a8;
}
.official-bar .wrap { display: flex; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; }
.official-bar .badge-dot { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { padding: 70px 0 50px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 16px 0 14px; letter-spacing: -0.5px; }
.hero h1 span { background: linear-gradient(180deg, #ffe08a, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--text); background: var(--card); transition: transform .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); background: #1b2f60; }
.btn.primary { background: linear-gradient(180deg, #ffd56b, var(--gold-2)); color: #1a1302; border: none; }
.btn.primary:hover { background: linear-gradient(180deg, #ffe08a, #e9b23d); }

.hero-art { display: flex; justify-content: center; }
.hero-art .icon-frame { width: min(300px, 80%); aspect-ratio: 1; border-radius: 28%; padding: 10px; background: linear-gradient(145deg, rgba(242,193,78,0.5), rgba(255,255,255,0.05)); box-shadow: 0 30px 80px rgba(0,0,0,0.5); animation: float 6s ease-in-out infinite; }
.hero-art img { width: 100%; height: 100%; display: block; border-radius: 26%; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

/* Sections */
section { padding: 50px 0; }
.section-title { font-size: 1.8rem; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 28px; max-width: 640px; }

.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(242,193,78,0.12); margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* App info table */
.info-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 38%; color: var(--muted); font-weight: 600; background: rgba(255,255,255,0.02); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1a1302; font-weight: 800; display: grid; place-items: center; font-size: 0.85rem; }

/* Official notice */
.notice { display: flex; gap: 18px; align-items: flex-start; border: 1px solid rgba(242,193,78,0.35); background: linear-gradient(180deg, rgba(242,193,78,0.10), rgba(242,193,78,0.03)); border-radius: var(--radius); padding: 24px; }
.notice svg { width: 42px; height: 42px; flex: none; }
.notice h3 { color: #ffe7a8; margin-bottom: 6px; }
.notice p { color: var(--muted); }
.notice p + p { margin-top: 8px; }

.disclaimer { border-left: 4px solid var(--red); background: rgba(224,71,90,0.08); padding: 18px 20px; border-radius: 0 12px 12px 0; color: #f4c9cf; font-size: 0.95rem; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Policy page */
.policy-hero { padding: 54px 0 20px; }
.policy-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.policy-hero .meta { color: var(--muted); margin-top: 6px; }
.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding-bottom: 60px; }
.toc { position: sticky; top: 90px; align-self: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.toc h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; }
.toc a:hover, .toc a.active { color: var(--gold); text-decoration: none; }
.policy-body h2 { font-size: 1.35rem; margin: 34px 0 10px; scroll-margin-top: 90px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li { color: #cfd7ea; }
.policy-body ul { padding-left: 22px; margin: 8px 0; }
.policy-body li { margin: 6px 0; }
.policy-body p + p { margin-top: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.92rem; background: rgba(0,0,0,0.15); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--gold); font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

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

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-tags, .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art .icon-frame { width: 200px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .info-table th { width: 44%; }
  .info-table th, .info-table td { padding: 12px 14px; }
  .notice { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Screenshots gallery */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 8px; }
.shot { flex: 0 0 auto; width: 220px; scroll-snap-align: start; padding: 8px; border-radius: 26px; background: linear-gradient(160deg, #23376e, #0d1a3a); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,0.45); cursor: zoom-in; transition: transform .2s ease; }
.shot:hover { transform: translateY(-4px); }
.shot img { display: block; width: 100%; height: auto; border-radius: 19px; background: #0b1630; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,10,24,0.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 480px); max-height: 88vh; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox button { position: absolute; background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--text); width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .shot { width: 70vw; max-width: 260px; } }
.nav a[hidden] { display: none; }
.shot:first-child { margin-left: auto; } .shot:last-child { margin-right: auto; }
