:root {
  --bg: #050711;
  --bg-soft: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #a6afc3;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #5b7cfa;
  --primary-2: #8b5cf6;
  --success: #39d98a;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(91, 124, 250, 0.2), transparent 32rem), var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.background-orbs { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.background-orbs span { position: absolute; width: 28rem; height: 28rem; border-radius: 999px; filter: blur(70px); opacity: 0.32; animation: float 14s infinite ease-in-out; }
.background-orbs span:nth-child(1) { background: #4f46e5; left: -10rem; top: 8rem; }
.background-orbs span:nth-child(2) { background: #06b6d4; right: -12rem; top: 20rem; animation-delay: -4s; }
.background-orbs span:nth-child(3) { background: #f59e0b; left: 35%; bottom: -16rem; animation-delay: -8s; }
@keyframes float { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-30px) scale(1.07)} }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 18px 22px;
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.03em; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 14px; }
.nav { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); background: rgba(8, 10, 22, 0.7); border-radius: 999px; }
.nav a { padding: 10px 14px; color: var(--muted); border-radius: 999px; transition: 0.2s ease; }
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav-toggle { display: none; color: var(--text); border: 1px solid var(--line); background: var(--card); border-radius: 12px; width: 42px; height: 42px; }

.section-shell { max-width: 1180px; margin: 0 auto; padding: 72px 22px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 44px; align-items: center; min-height: 74vh; }
.eyebrow { color: #9bb0ff; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 800; margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 5.8rem); line-height: 0.92; letter-spacing: -0.075em; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.055em; margin-bottom: 16px; }
h3 { letter-spacing: -0.03em; }
.hero-text, .section-heading p, .service-grid p, details p { color: var(--muted); line-height: 1.7; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; transition: transform .2s ease, background .2s ease, border .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; color: white; font-weight: 800; box-shadow: 0 16px 40px rgba(91, 124, 250, 0.28); }
.btn.ghost { background: rgba(255,255,255,0.06); color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.stats div, .hero-card, .service-grid article, .script-card, details, .modal-panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.05)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.stats div { border-radius: 20px; padding: 16px; }
.stats strong { display:block; font-size: 1.35rem; }
.stats span { color: var(--muted); font-size: .9rem; }
.hero-card { position: relative; overflow: hidden; border-radius: 34px; padding: 18px; transform: rotate(1deg); }
.hero-card img { width: 100%; display: block; border-radius: 24px; object-fit: cover; background: rgba(0,0,0,.25); }
.hero-card-content { display:flex; align-items:center; gap:10px; color: var(--muted); margin: 16px 4px 0; }
.status-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--success); box-shadow: 0 0 24px var(--success); }

.section-heading { max-width: 760px; margin-bottom: 28px; }
.toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 22px; }
.toolbar input, .toolbar select, .buyer-form input { width: 100%; border: 1px solid var(--line); background: rgba(0,0,0,.24); color: var(--text); border-radius: 16px; padding: 14px 16px; outline: none; }
.toolbar select option { color: #111827; }
.scripts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.script-card { border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.script-media { height: 160px; background: radial-gradient(circle at 20% 20%, rgba(91,124,250,.65), transparent 45%), linear-gradient(135deg, rgba(139,92,246,.5), rgba(6,182,212,.18)); display: grid; place-items: center; font-size: 3rem; font-weight: 900; color: rgba(255,255,255,.72); }
.script-media img { width: 100%; height: 100%; object-fit: cover; }
.script-content { padding: 20px; display:flex; flex-direction:column; gap:14px; flex:1; }
.badges { display:flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: .78rem; color: var(--text); border: 1px solid var(--line); background: var(--bg-soft); border-radius: 999px; padding: 6px 9px; }
.badge.vip { color: #fde68a; }
.badge.or { color: #fbbf24; }
.badge.bronze { color: #fdba74; }
.script-title { display:flex; justify-content: space-between; align-items:flex-start; gap: 12px; }
.script-title h3 { margin-bottom: 0; }
.price { font-weight: 900; white-space: nowrap; }
.script-description { color: var(--muted); line-height: 1.6; flex:1; }
.script-actions { display:flex; gap:10px; margin-top:auto; }
.script-actions .btn { flex:1; }
.empty-state { color: var(--muted); text-align:center; padding: 30px; border: 1px dashed var(--line); border-radius: 20px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.service-grid article, details { border-radius: 24px; padding: 22px; }
details { margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; }
.footer { max-width: 1180px; margin: 0 auto; padding: 34px 22px 44px; display:flex; justify-content:space-between; color: var(--muted); border-top: 1px solid var(--line); }

.modal { position: fixed; inset: 0; display: none; place-items: center; padding: 18px; background: rgba(0,0,0,.68); z-index: 50; }
.modal.is-open { display: grid; }
.modal-panel { width: min(620px, 100%); border-radius: 28px; padding: 24px; position: relative; max-height: 92vh; overflow: auto; }
.modal-close { position:absolute; right:18px; top:14px; width:38px; height:38px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color:var(--text); cursor:pointer; font-size: 1.4rem; }
.buyer-form { display:grid; gap: 12px; margin: 18px 0; }
.buyer-form label { display:grid; gap: 7px; color: var(--muted); }
.notice { color: var(--muted); line-height: 1.55; font-size: .92rem; }
.paypal-box { min-height: 80px; margin-top: 14px; }
.alert { border: 1px solid var(--line); background: rgba(255,255,255,.07); border-radius: 16px; padding: 12px 14px; color: var(--muted); }
.alert.success { color: #bbf7d0; border-color: rgba(57,217,138,.35); background: rgba(57,217,138,.08); }
.alert.error { color: #fecdd3; border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.08); }

@media (max-width: 860px) {
  .nav { display: none; position:absolute; top:70px; right:22px; flex-direction:column; align-items:stretch; border-radius:22px; width: min(260px, calc(100vw - 44px)); }
  .nav.is-open { display:flex; }
  .nav-toggle { display:block; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .scripts-grid, .service-grid { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer { flex-direction:column; gap: 8px; }
}
