:root {
  --bg: #0b0a10;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f1f8;
  --muted: #a39cb3;
  --accent: #d946ef;
  --accent-2: #8b5cf6;
  --cyan: #22d3ee;
  --ok: #34d399;
  --bad: #f87171;
  --radius: 18px;
  --grad: linear-gradient(135deg, #e879f9 0%, #a855f7 55%, #7c3aed 100%);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
button { font: inherit; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.b1 { width: 520px; height: 520px; background: #a21caf; top: -180px; left: -120px; }
.b2 { width: 460px; height: 460px; background: #5b21b6; top: 120px; right: -160px; opacity: 0.3; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(11, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: 0.2px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 22px; margin-right: auto; }
.links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s; }
.links a:hover { color: var(--text); }
.ip-btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.ip-btn:hover { border-color: rgba(217, 70, 239, 0.6); background: rgba(217, 70, 239, 0.08); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6b6578; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }
.dot.off { background: var(--bad); }

/* ---------- hero ---------- */
.hero { max-width: 820px; margin: 0 auto; padding: clamp(70px, 12vw, 130px) 22px 60px; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; color: #e9d5ff; background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.3);
}
.hero h1 { margin: 0; font-size: clamp(48px, 9vw, 88px); line-height: 1; letter-spacing: -2px; font-weight: 800; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 600px; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.status { margin-top: 22px; color: var(--muted); font-size: 14px; min-height: 1.5em; }
.status b { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(217, 70, 239, 0.6); }
.btn.primary:hover { box-shadow: 0 10px 38px -6px rgba(217, 70, 239, 0.8); }
.btn.primary:disabled { opacity: 0.6; cursor: wait; }
.btn.ghost { background: var(--panel); border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.wide { width: 100%; }

/* ---------- sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 70px 22px; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.8px; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; max-width: 880px; margin: 0 auto; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217, 70, 239, 0.45); box-shadow: 0 24px 60px -24px rgba(168, 85, 247, 0.55); }
.card .art { aspect-ratio: 16 / 11; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(168, 85, 247, 0.18), transparent 65%); border-bottom: 1px solid var(--line); }
.card .art img { width: 62%; height: auto; border-radius: 20px; transition: transform .35s; }
.card:hover .art img { transform: scale(1.04) rotate(-1deg); }
.badge {
  position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(11, 10, 16, 0.7); border: 1px solid var(--line-2); backdrop-filter: blur(6px);
}
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { margin: 0; font-size: 21px; letter-spacing: -0.3px; }
.price { font-size: 21px; font-weight: 750; white-space: nowrap; }
.card .blurb { margin: 0; color: var(--muted); font-size: 15px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
  background: rgba(217, 70, 239, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23f0abfc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.card .btn { margin-top: auto; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); font-weight: 750; font-size: 15px; margin-bottom: 14px;
}
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 17px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  max-width: 1080px; margin: 40px auto 0; padding: 30px 22px 40px;
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
.footer b { color: var(--text); }
.foot-links { display: flex; gap: 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.legal { width: 100%; margin: 0; font-size: 12.5px; opacity: 0.7; }

/* ---------- checkout modal ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: 440px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(5, 4, 10, 0.7); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card {
  position: relative; display: grid; gap: 16px; padding: 26px;
  background: #14121c; border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.close:hover { color: var(--text); }
.modal-head { display: flex; gap: 14px; align-items: center; }
.modal-head img { border-radius: 12px; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-head p { margin: 2px 0 0; color: var(--muted); }
.field { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2);
  background: #0e0c14; color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.2); }
.qty { display: flex; gap: 8px; }
.qty input { text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty button {
  flex: none; width: 46px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font-size: 20px; cursor: pointer;
}
.qty button:hover { border-color: var(--accent); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--line); }
.total span { color: var(--muted); }
.total b { font-size: 22px; }
.error { margin: 0; color: var(--bad); font-size: 14px; min-height: 0; }
.error:empty { display: none; }
.fine { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  padding: 11px 18px; border-radius: 12px; background: #1c1928; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- simple pages (success / terms) ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 80px 22px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1px; margin: 0 0 14px; }
.page h2 { font-size: 20px; margin: 34px 0 8px; }
.page p, .page li { color: var(--muted); }
.center { text-align: center; }
.check {
  width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--ok);
}

@media (max-width: 720px) {
  .links { display: none; }
  .nav { justify-content: space-between; }
  .card .art img { width: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
