:root {
  --bg: #0b0b12;
  --bg-soft: #14131f;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f2f7;
  --muted: #a4a3b4;
  --accent: #6c5ce7;
  --accent-soft: #a29bfe;
  --pumpkin: #ff7a18;
  --radius: 20px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(108, 92, 231, 0.28), transparent 60%),
    radial-gradient(900px 520px at 92% 4%, rgba(162, 155, 254, 0.14), transparent 62%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); }

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(18px);
  background: rgba(11, 11, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.bar img { width: 34px; height: 34px; border-radius: 9px; }
.bar strong { font-size: 17px; letter-spacing: -0.2px; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.bar nav a:hover { color: var(--text); }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 5px 11px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
  padding: 74px 0 60px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 30em;
}

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.35);
}

.store:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(108, 92, 231, 0.45); }

.note { color: var(--muted); font-size: 14px; }

.shot-frame {
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
  line-height: 0;
}

.shot-frame img { width: 100%; height: auto; }

/* Sections */
section { padding: 58px 0; }

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.9px;
  margin: 0 0 10px;
}

.sub { color: var(--muted); margin: 0 0 30px; max-width: 46em; }

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

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.tile .ico { font-size: 26px; line-height: 1; margin-bottom: 12px; display: block; }
.tile h3 { margin: 0 0 6px; font-size: 17px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  display: block;
}

.gallery figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.event {
  border: 1px solid rgba(255, 122, 24, 0.4);
  background: linear-gradient(150deg, rgba(255, 122, 24, 0.14), rgba(255, 122, 24, 0.02));
  border-radius: var(--radius);
  padding: 30px;
}

.event h2 { margin-bottom: 8px; }
.event .pill {
  display: inline-block;
  background: rgba(255, 122, 24, 0.18);
  color: var(--pumpkin);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 2px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Article pages */
.doc { padding: 46px 0 20px; max-width: 760px; }
.doc h1 { font-size: 36px; letter-spacing: -1px; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 34px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; letter-spacing: -0.3px; }
.doc p, .doc li { color: #d6d5e0; }
.doc ul { padding-left: 20px; }

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 14px;
}

footer .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .row .spacer { margin-left: auto; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 46px 0 34px; }
  .hero .shot-frame { max-width: 320px; }
  .bar nav a.hide-sm { display: none; }
}
