/* ixixi.ru — portal. Palette and shapes follow the Bombix art (art/gfx.py). */
:root {
  --bg: #171326;
  --bg-2: #211a38;
  --panel: #251e40;
  --panel-2: #2e2650;
  --line: #3a3160;
  --text: #f3f0ff;
  --dim: #b7aed6;
  --accent: #ff8f29;
  --accent-2: #ffb35c;
  --good: #5fd36b;
  --blue: #4a9eff;
  --radius: 18px;
  --gutter: 16px;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #3a2a66 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }
a:hover { color: #fff; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(23, 19, 38, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--dim); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel); }

/* Hero */
.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 { font: 800 clamp(34px, 6vw, 64px)/1.08 var(--display); margin: 0 0 16px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); max-width: 680px; margin: 0 auto 28px; }
.hero .art { margin: 24px auto 0; max-width: 980px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 14px; font: 700 17px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #2a1400; box-shadow: 0 6px 0 #b85a10, 0 12px 30px rgba(255, 143, 41, .3); }
.btn-primary:hover { color: #2a1400; filter: brightness(1.06); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn small { display: block; font-weight: 600; font-size: 13px; opacity: .8; }

/* Sections */
section { padding: 48px 0; }
.section-title { font: 800 clamp(26px, 4vw, 40px)/1.15 var(--display); margin: 0 0 12px; }
.section-lead { color: var(--dim); margin: 0 0 28px; max-width: 720px; }
.tag { display: inline-block; font: 700 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font: 700 19px/1.3 var(--display); margin: 0 0 8px; }
.card p { margin: 0; color: var(--dim); }
.card .ico { font-size: 30px; line-height: 1; margin-bottom: 12px; }

.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 8px; }
.shots figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.shots figcaption { padding: 10px 14px; color: var(--dim); font-size: 14px; }

.download { display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; align-items: center; background: linear-gradient(135deg, #2c2152, #1d1735); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.download .meta { color: var(--dim); font-size: 15px; margin-top: 12px; }
.download .meta b { color: var(--text); }
.store-soon { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--dim); font-size: 14px; }
.store-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(95, 211, 107, .18); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #2a1400; font: 800 16px/32px var(--display); text-align: center; }

/* Minecraft block */
.mc { background: linear-gradient(135deg, #16301f, #14231c); border: 1px solid #2c5a3a; border-radius: 24px; padding: 32px; }
.mc .tag { color: #7ee08a; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 24px; }
.addr code { font: 700 clamp(20px, 3.4vw, 30px)/1.2 var(--display); background: rgba(0, 0, 0, .3); padding: 12px 18px; border-radius: 12px; border: 1px solid #2c5a3a; color: #c9ffd0; }
.mc .card { background: rgba(0, 0, 0, .22); border-color: #2c5a3a; }

/* Text pages */
.doc { max-width: 820px; padding: 40px 0 56px; }
.doc h1 { font: 800 clamp(28px, 5vw, 44px)/1.15 var(--display); margin: 0 0 8px; }
.doc h2 { font: 700 22px/1.3 var(--display); margin: 32px 0 10px; }
.doc p, .doc li { color: #ddd6f5; }
.doc .muted { color: var(--dim); }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--dim); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot a { color: var(--dim); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--good); color: #082a0e; padding: 10px 18px; border-radius: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.toast.show { opacity: 1; }

@media (max-width: 760px) {
  .download { grid-template-columns: 1fr; padding: 22px; }
  .mc { padding: 22px; }
  section { padding: 36px 0; }
  .hero { padding-top: 36px; }
  .btn { width: 100%; }
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; }
}
