  :root {
    --bg: #0b1020;
    --bg-2: #111832;
    --card: #141c38;
    --line: #243056;
    --text: #e8ecf8;
    --muted: #9aa5c4;
    --gold: #f2c14e;
    --gold-ink: #241a00;
    --ice: #7fd3ff;
    --accent: #8b7bff;
    --ok: #4fd18b;
    --shadow: 0 20px 60px rgba(0,0,0,.45);
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      --bg: #f5f7fc;
      --bg-2: #eaf0fb;
      --card: #ffffff;
      --line: #d7deef;
      --text: #121a33;
      --muted: #56627f;
      --gold: #d9a21c;
      --gold-ink: #1f1600;
      --ice: #1b84c4;
      --accent: #5b4be0;
      --ok: #1f9d5c;
      --shadow: 0 20px 50px rgba(30,45,90,.12);
    }
  }
  :root[data-theme="dark"] { color-scheme: dark; }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

  /* nav */
  header.nav {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
  .brand img { width: 38px; height: auto; }
  .nav nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
  .nav nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
  .nav nav a:hover { color: var(--text); }
  .nav nav a.btn-gold, .nav nav a.btn-gold:hover { color: var(--gold-ink); }
  @media (max-width: 720px) { .nav nav a.hide-sm { display: none; } }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
    font-family: inherit;
  }
  .btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
  .btn-gold { background: var(--gold); color: var(--gold-ink); }
  .btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
  .btn-discord { background: #5865f2; color: #fff; }
  .btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
  .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

  /* hero */
  .hero { position: relative; overflow: hidden; padding: 80px 0 64px; }
  .hero::before {
    content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%;
    background:
      radial-gradient(600px 300px at 20% 30%, color-mix(in srgb, var(--ice) 22%, transparent), transparent 70%),
      radial-gradient(500px 280px at 85% 20%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%);
    pointer-events: none;
  }
  .hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
  @media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 12px; } .hero-art { order: -1; } }
  .eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ice); letter-spacing: .08em; text-transform: uppercase; }
  h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 12px 0 18px; letter-spacing: -.025em; }
  h1 .gold { color: var(--gold); }
  .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
  .cta { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-art { display: grid; place-items: center; }
  .hero-art img { width: min(320px, 70vw); filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }

  /* sections */
  section { padding: 72px 0; }
  section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.15; }
  .sub { color: var(--muted); margin: 0 0 36px; max-width: 640px; }
  /* phones: less empty space, smaller crest, no big shadow (it showed as a box on iPhone) */
  @media (max-width: 860px) {
    .hero { padding: 24px 0 40px; }
    .hero-art img { width: 120px; filter: none; }
    .hero .wrap > div:first-child { text-align: center; }
    .lead { margin-left: auto; margin-right: auto; }
    .cta { justify-content: center; }
    h1 { margin: 8px 0 14px; }
    .lead { font-size: 17px; margin-bottom: 22px; }
    section { padding: 48px 0; }
    .sub { margin-bottom: 24px; }
  }

  .grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
  @media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
  .card h3 { margin: 10px 0 6px; font-size: 18px; }
  .card p { margin: 0; color: var(--muted); font-size: 15px; }
  .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
          background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
  .icon svg { width: 22px; height: 22px; }

  /* task list mock */
  .tasks { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
  @media (max-width: 700px) { .tasks { grid-template-columns: 1fr; } }
  .cats { border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
  @media (max-width: 700px) { .cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } }
  .cats button {
    all: unset; cursor: pointer; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap;
  }
  .cats button[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); }
  .cats button:focus-visible { outline: 2px solid var(--accent); }
  .tlist { list-style: none; margin: 0; padding: 8px 0; columns: 2; column-gap: 0; }
  @media (max-width: 520px) { .tlist { columns: 1; } }
  .tlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; break-inside: avoid; font-weight: 500; }
  .toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
  .toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

  /* steps */
  .steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
  @media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
  .step { position: relative; padding-top: 52px; }
  .step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 50%;
                  background: var(--gold); color: var(--gold-ink); font-weight: 800; display: grid; place-items: center; font-size: 14px; }

  /* pricing */
  .price-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
  @media (max-width: 760px) { .price-box { grid-template-columns: 1fr; } }
  .price-l { padding: 32px; border-right: 1px solid var(--line); }
  @media (max-width: 760px) { .price-l { border-right: 0; border-bottom: 1px solid var(--line); } }
  .price-r { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
  .price { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
  .price small { font-size: 16px; color: var(--muted); font-weight: 500; }
  .checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
  .checks li { display: flex; gap: 10px; align-items: flex-start; }
  .checks svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
  .fine { color: var(--muted); font-size: 14px; margin: 0; }

  /* download */
  form.dl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  form.dl input {
    flex: 1 1 240px; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--bg); color: var(--text); font: 600 15px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em;
  }
  form.dl input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--muted); }

  /* faq */
  details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
  details + details { margin-top: 10px; }
  summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--muted); font-weight: 700; }
  details[open] summary::after { content: "–"; }
  details p { color: var(--muted); margin: 10px 0 0; }

  /* discord band */
  .band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
          padding: 28px 32px; border-radius: 20px; background: linear-gradient(135deg, #5865f2, #3b44b8); color: #fff; }
  .band h2 { margin: 0 0 4px; font-size: 26px; }
  .band p { margin: 0; opacity: .9; }
  .band .btn { background: #fff; color: #3b44b8; }

  footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
  .dl-title { margin: 18px 0 4px; }
  .sr { position: absolute; left: -9999px; }


  /* download */
  .dl-info { word-break: break-all; }
  .dl-info code { font-size: 12px; }
