:root {
  --bg: #15100c;
  --bg-2: #1d1610;
  --panel: #241b13;
  --panel-2: #2d2218;
  --line: #3b2e21;
  --text: #f4ead8;
  --muted: #b8a68a;
  --gold: #f2c14e;
  --gold-2: #d99a2b;
  --sand: #e9cf98;
  --ok: #5ccf7a;
  --bad: #e85d5d;
  --radius: 14px;
  --wrap: 1120px;
  --head: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 16, 12, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.1rem/1 var(--head); letter-spacing: .06em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--body); cursor: pointer; transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #2a1a05; }
.btn-gold:hover { background: linear-gradient(180deg, #f7cf6a, var(--gold)); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn[aria-disabled="true"] { background: var(--panel-2); color: var(--muted); border-color: var(--line); cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-sky {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 18%, rgba(242, 193, 78, .22), transparent 70%),
    linear-gradient(180deg, #0e0a14 0%, #2a1a1d 55%, #4a2c18 100%);
}
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; z-index: 1; }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(150px, 22vw, 260px); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); margin-bottom: .2em; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero h1 span { color: var(--gold); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--sand); max-width: 560px; margin-bottom: 28px; }

.ip-card {
  display: inline-flex; align-items: stretch; flex-wrap: wrap;
  background: rgba(21, 16, 12, .75); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(6px); overflow: hidden; max-width: 100%;
}
.ip-card .ip-main { padding: 14px 18px; min-width: 0; }
.ip-card .ip-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ip-card .ip { font: 700 clamp(1.2rem, 3.4vw, 1.6rem)/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text); word-break: break-all; }
.ip-card .btn { border-radius: 0; padding: 0 22px; min-height: 64px; flex: 1 0 auto; }
.status { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .95rem; min-height: 24px; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status.on .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(92, 207, 122, .18); }
.status.off .dot { background: var(--bad); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(242, 193, 78, .12); color: var(--gold); margin-bottom: 16px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px; font: 700 1.6rem/1 var(--head); color: var(--gold);
}
.step p { color: var(--muted); margin: 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; color: var(--text); background: var(--bg); padding: 2px 6px; border-radius: 6px; }

.cta { text-align: center; }
.cta .btn { margin-top: 8px; }

/* ---------- shop ---------- */
.page-head { padding: clamp(48px, 8vw, 88px) 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-head p { color: var(--muted); max-width: 620px; }
.shop-section { padding: 40px 0; }
.shop-section h2 { display: flex; align-items: center; gap: 12px; }

.ranks { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.rank { position: relative; display: flex; flex-direction: column; border-top: 4px solid var(--c); }
.rank.featured { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 20px 50px -20px var(--c); }
.rank .badge {
  position: absolute; top: -13px; right: 20px; background: var(--c); color: #1a1008;
  font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
}
.rank-top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.rank-top .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); flex: none; }
.rank-top .ico svg { width: 26px; height: 26px; }
.rank h3 { font-size: 1.6rem; margin: 0; color: var(--c); }
.rank .tagline { color: var(--muted); font-size: .92rem; }
.price { font: 700 2.4rem/1 var(--head); margin: 18px 0 4px; }
.price small { font: 500 1rem/1 var(--body); color: var(--muted); margin-left: 4px; }
.price-note { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.prefix-preview { font: 600 .95rem/1.4 ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 18px; overflow-wrap: anywhere; }
.prefix-preview b { color: var(--c); }
.prefix-preview span { color: #aaa; }
.perks { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.perks li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.perks li:last-child { border-bottom: 0; }
.perks svg { width: 18px; height: 18px; color: var(--c); flex: none; margin-top: 3px; }
.rank .btn, .item .btn { width: 100%; }
.upgrade { margin-top: 14px; padding: 14px; border: 1px dashed var(--c); border-radius: 10px; background: color-mix(in srgb, var(--c) 8%, transparent); font-size: .93rem; }
.upgrade b { color: var(--c); }
.upgrade .btn { margin-top: 10px; padding: 10px 16px; }

.items { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.item { display: flex; flex-direction: column; }
.item .rank-top h3 { font-size: 1.25rem; color: var(--text); }
.item p { color: var(--muted); flex: 1; }
.item .price { font-size: 1.9rem; margin-top: 4px; }

.notice { display: flex; gap: 14px; align-items: flex-start; }
.notice svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.notice p { margin: 0; color: var(--muted); }

.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; 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; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- front page extras ---------- */
.teasers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.teaser { display: flex; flex-direction: column; color: var(--text); border-top: 4px solid var(--c); transition: transform .15s, box-shadow .15s; }
.teaser:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 40px -22px var(--c); }
.teaser.featured { box-shadow: 0 0 0 1px var(--c); }
.teaser .rank-top { margin-bottom: 14px; }
.teaser h3 { color: var(--c); margin: 0; font-size: 1.35rem; }
.teaser .tagline { color: var(--muted); font-size: .88rem; }
.teaser-price { margin-left: auto; font: 700 1.6rem/1 var(--head); white-space: nowrap; }
.teaser-price small { font: 500 .85rem/1 var(--body); color: var(--muted); margin-left: 3px; }
.teaser .perks { margin-bottom: 16px; }
.teaser-more { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-weight: 600; }
.teaser-more svg { width: 16px; height: 16px; }

.teaser-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 24px; }
.upgrade-line { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.upgrade-line svg { width: 18px; height: 18px; color: #b77ce8; flex: none; }
.upgrade-line b { color: #c99af0; }
.extras { display: flex; flex-wrap: wrap; gap: 10px; }
.extras a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .92rem; }
.extras a:hover { border-color: var(--gold); text-decoration: none; }
.extras a b { color: var(--gold); }
.extras svg { width: 16px; height: 16px; color: var(--gold); }

.discord-band { padding-top: 0; }
.discord-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, #2b2350, #3a2a5e 50%, #2a1d3d);
  border: 1px solid #4c3d78;
}
.discord-ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; flex: none; }
.discord-ico svg { width: 30px; height: 30px; }
.discord-text { flex: 1 1 280px; }
.discord-text h2 { margin-bottom: .25em; }
.discord-text p { margin: 0; color: #d6cfee; }

.faq .wrap > details { max-width: 820px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.cta-actions .btn { margin-top: 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--gold); color: #2a1a05; font-weight: 600; padding: 12px 18px; border-radius: 10px;
  transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .site-head .wrap { gap: 10px; }
  .brand span { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 9px; white-space: nowrap; font-size: .95rem; }
}
@media (max-width: 440px) {
  .nav a[href="index.html#om"] { display: none; }
  .ip-card { display: flex; }
  .ip-card .btn { min-height: 52px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .toast { transition: none; }
}
