:root {
  --bg: #0b0610;
  --bg-2: #140a1c;
  --surface: #1b0f26;
  --surface-2: #241433;
  --border: #3a2150;
  --text: #f1e9f7;
  --muted: #b29fc2;
  --accent: #b44be0;
  --accent-2: #7d2aa8;
  --accent-soft: rgba(180, 75, 224, 0.15);
  --good: #5fd39a;
  --bad: #ff6b8b;
  --radius: 14px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 70% -10%, #3c0f4f 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 6px 24px -8px var(--accent);
}
.btn-primary:hover { box-shadow: 0 8px 30px -6px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .5em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(16px, 4vw, 48px);
  background: rgba(11, 6, 16, .8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid var(--border); }
.brand-name { font: 700 1.1rem var(--font-display); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Layout */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { padding: 5rem 0 2rem; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); margin: 0; }
.sub { margin-top: 3rem; font-size: 1.4rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  min-height: calc(100vh - 70px); padding: 3rem 0;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.02em; }
.accent {
  background: linear-gradient(90deg, #e08cff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-art { position: relative; }
.hero-art img {
  position: relative; border-radius: 28px; border: 1px solid var(--border);
  aspect-ratio: 4/5; object-fit: cover; object-position: top; width: 100%;
}
.glow {
  position: absolute; inset: 10%; background: var(--accent);
  filter: blur(80px); opacity: .35; border-radius: 50%;
}
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35em .9em; border-radius: 999px; margin-bottom: 1.5rem;
  background: rgba(95, 211, 154, .1); color: var(--good);
  border: 1px solid rgba(95, 211, 154, .3); font-weight: 600; font-size: .9rem;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.closed { background: rgba(255, 107, 139, .1); color: var(--bad); border-color: rgba(255, 107, 139, .3); }

/* X gallery link */
.x-card {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 2rem; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); transition: border-color .2s, transform .15s;
}
.x-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.x-card svg { width: 56px; height: 56px; flex-shrink: 0; }
.x-card div { flex: 1; min-width: 200px; }
.x-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .2em; }
.x-card p { margin: 0; color: var(--muted); }

.addons { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; }
.addons li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.1rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
}
.addons span:last-child { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 700 1rem var(--font-display); margin-bottom: 1rem;
}
.steps h4 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; }

.pay-box {
  margin-top: 1.2rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--accent);
}
.pay-box h3 { font-size: 1.2rem; }
.pay-box ol { margin: 0 0 .8rem; padding-left: 1.3rem; }
.pay-box li { margin-bottom: .35rem; }
.pay-box p { margin: 0; color: var(--muted); font-size: .92rem; }
.field-hint { font-weight: 400; font-size: .82rem; color: var(--muted); }

/* Terms */
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.term-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.term-col ul { padding-left: 1.1rem; margin: 0; color: var(--muted); }
.term-col li { margin-bottom: .4rem; }
.term-col.will h4 { color: var(--good); }
.term-col.wont h4 { color: var(--bad); }

/* Form */
.order { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem;
}
.full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .4rem; font-weight: 500; font-size: .95rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: .7em .9em;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; }
.invalid { border-color: var(--bad) !important; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 1rem; margin: 0; }
legend { padding: 0 .4rem; font-weight: 500; }
fieldset.invalid { border-color: var(--bad); }
label.check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; }
label.check input { width: auto; margin-top: .3em; accent-color: var(--accent); }

.items { display: flex; flex-direction: column; gap: .5rem; }
.item {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2);
  transition: border-color .2s, background .2s;
}
.item.on { border-color: var(--accent); background: var(--accent-soft); }
.item label.check { flex: 1; min-width: 180px; margin: 0; align-items: center; }
.item label.check input { margin-top: 0; width: 18px; height: 18px; }
.item-price { color: var(--muted); font-size: .9rem; }
.qty { display: flex; align-items: center; gap: .3rem; }
.qty button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer;
}
.qty button:hover:not(:disabled) { border-color: var(--accent); }
.qty button:disabled, .qty input:disabled { opacity: .35; cursor: default; }
.qty input { width: 52px; text-align: center; padding: .35em; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.item-sub { min-width: 56px; text-align: right; font-weight: 600; color: var(--accent); }

.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .6rem 0; }
.opt-block { display: flex; flex-direction: column; gap: .5rem; padding: .6rem 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; }
.seg label {
  position: relative; flex-direction: column; align-items: center; gap: .1rem; text-align: center; cursor: pointer;
  padding: .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2);
  transition: border-color .2s, background .2s;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }
.seg .item-price { font-weight: 400; }
.seg label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.item.na { opacity: .4; }

.free-box {
  display: flex; flex-direction: column; gap: .8rem; margin: .4rem 0 .6rem;
  padding: 1rem; border: 1px solid #d4a73a; border-radius: 10px; background: rgba(212, 167, 58, .08);
}
.free-box[hidden] { display: none; }
.disclaimer { font-size: .88rem; color: var(--muted); }
.disclaimer strong { color: #f0c75e; }
.disclaimer ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.disclaimer li { margin-bottom: .25rem; }
.disclaimer b { color: var(--text); }
.qty.locked { opacity: .45; }
label.check.invalid { color: var(--bad); }

.char-list { display: flex; flex-direction: column; gap: .6rem; }
.char-row {
  display: flex; flex-direction: column; gap: .6rem;
  padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2);
}
.char-row > span { font-weight: 600; }
.char-row .char-link[hidden] { display: none; }
.char-pick {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .5rem;
  border: 1px solid transparent; border-radius: 10px;
}
.char-pick.invalid { border-color: var(--bad); padding: .3rem; }
.char-card {
  position: relative; align-items: center; gap: .3rem; text-align: center; cursor: pointer;
  padding: .5rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  transition: border-color .2s, background .2s;
}
.char-card input { position: absolute; opacity: 0; pointer-events: none; }
.char-card:hover { border-color: var(--accent-2); }
.char-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.char-card:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }
.char-pic {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: var(--bg-2); color: var(--muted); font: 700 1.6rem var(--font-display);
}
.char-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.char-name { font-size: .88rem; font-weight: 600; line-height: 1.2; }
.char-card .item-price { font-size: .75rem; font-weight: 400; line-height: 1.2; }

.link-group { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.hint { margin: -.3rem 0 0; color: var(--muted); font-size: .88rem; }
.links { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
.link-row { display: flex; align-items: center; gap: .5rem; }
.link-row input { flex: 1; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.thumb[hidden] { display: none; }
.link-remove {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 1.2rem; cursor: pointer;
}
.link-remove:hover { border-color: var(--bad); color: var(--bad); }

.breakdown { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.breakdown li { display: flex; justify-content: space-between; gap: .8rem; padding: .25rem 0; border-bottom: 1px dashed var(--border); }
.breakdown li span:last-child { color: var(--text); white-space: nowrap; }


.estimate {
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--surface-2); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.5rem;
}
.estimate-label { color: var(--muted); font-size: .9rem; }
.estimate-total { font: 800 2.8rem var(--font-display); line-height: 1; }
.estimate-note { color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.form-msg { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--bad); }

/* Footer */
.footer {
  display: flex; align-items: center; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 5rem; padding: 2rem 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; text-align: center;
}
.footer p { margin: 0; }

/* Gate */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 2, 8, .92); backdrop-filter: blur(20px);
}
.gate[hidden] { display: none; }
.gate-card {
  max-width: 420px; text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 2.2rem;
}
.gate-logo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 1.2rem; }
.gate-card p { color: var(--muted); }
.gate-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2rem; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .order { grid-template-columns: 1fr; }
  .estimate { position: static; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .form-grid { grid-template-columns: 1fr; padding: 1.2rem; }
  .section { padding-top: 3.5rem; }
}
