:root {
  --bg: #e8f1ff;
  --bg-2: #dbeafe;
  --surface: rgba(255,255,255,.78);
  --surface-strong: rgba(255,255,255,.92);
  --text: #071a36;
  --muted: #50617d;
  --soft: #7b8ba6;
  --line: rgba(37,99,255,.18);
  --line-strong: rgba(37,99,255,.28);
  --blue: #1155ee;
  --blue-2: #38a8ff;
  --blue-3: #0b2f7a;
  --shadow: 0 30px 90px rgba(24,72,170,.18);
  --shadow-soft: 0 18px 55px rgba(24,72,170,.12);
  --radius-lg: 32px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(96, 165, 250, .44), transparent 36%),
    radial-gradient(circle at 8% 22%, rgba(142, 219, 255, .32), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7ff 52%, #eef5ff 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.page-glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 620px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(37, 99, 255, .18), transparent 52%);
  filter: blur(16px);
  z-index: -2;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  z-index: -1;
  background-image: linear-gradient(rgba(7,17,31,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(7,17,31,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell { width: min(100% - 40px, var(--max)); margin: 0 auto; }
.narrow { width: min(100% - 40px, 800px); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  backdrop-filter: blur(22px);
  background: rgba(247, 250, 255, .68);
  border-bottom: 1px solid rgba(37, 99, 255, .10);
}
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.035em; }
.brand img { width: 34px; height: 34px; border-radius: 12px; box-shadow: 0 10px 28px rgba(37,99,255,.22); }
.brand span { font-size: 15px; }
.nav-links { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--line); background: rgba(239,247,255,.78); border-radius: 999px; box-shadow: 0 10px 30px rgba(44,92,170,.08); }
.nav-links a { padding: 9px 13px; border-radius: 999px; color: #62718b; font-size: 13px; font-weight: 720; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }
.nav-links a.active { color: var(--text); background: var(--surface-strong); box-shadow: 0 8px 22px rgba(44,92,170,.10); }
.nav-cta { min-height: 38px; padding: 0 15px; display: inline-flex; align-items: center; border-radius: 999px; color: white; font-size: 13px; font-weight: 820; background: linear-gradient(135deg, #1d4ed8, #60a5fa); box-shadow: 0 18px 34px rgba(37,99,255,.24); }

.page-section { padding: 108px 0; }
.page-section.compact { padding: 62px 0; }
.page-section.single { min-height: calc(100vh - 150px); display: grid; align-items: center; }
.hero-section { padding-top: 120px; }
.hero-center, .center-stack, .premium-center { display: grid; justify-items: center; text-align: center; gap: 22px; }
.logo-orb { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 28px; background: rgba(255,255,255,.72); border: 1px solid var(--line); box-shadow: var(--shadow); }
.logo-orb img { width: 66px; height: 66px; border-radius: 21px; }
.eyebrow { margin: 0; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.danger { color: #e04747; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; max-width: 980px; font-size: clamp(56px, 10vw, 126px); line-height: .9; letter-spacing: -.08em; }
h2 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 62px); line-height: .95; letter-spacing: -.06em; }
h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -.035em; }
p { color: var(--muted); line-height: 1.7; }
.lead { max-width: 760px; margin: 0; color: #45546d; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; letter-spacing: -.025em; }
.center { text-align: center; margin-inline: auto; }
.fineprint { max-width: 680px; margin: 0; color: var(--soft); font-size: 13px; }
.fineprint code { color: var(--blue); font-weight: 800; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.actions.stacked { align-items: stretch; flex-direction: column; min-width: 230px; }
.btn { border: 0; min-height: 48px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 820; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: white; background: linear-gradient(135deg, #1747d2, #4fa2ff); box-shadow: 0 22px 48px rgba(37,99,255,.24); }
.btn.secondary { color: var(--text); background: rgba(255,255,255,.76); border: 1px solid var(--line); box-shadow: 0 16px 38px rgba(44,92,170,.10); }
.btn.ghost { color: #39506f; background: transparent; border: 1px solid transparent; }
.btn.small { min-height: 38px; padding-inline: 14px; font-size: 13px; }

.section-head { max-width: 820px; margin-bottom: 26px; }
.four-grid, .three-grid, .two-grid { display: grid; gap: 16px; }
.four-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.three-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.two-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.soft-card, .panel, .feature-band, .premium-card, .script-cover-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(232,244,255,.66));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.soft-card::before, .panel::before, .feature-band::before, .premium-card::before, .script-cover-card::before, .loadstring-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(37,99,255,.12), transparent 36%, rgba(142,219,255,.12));
}
.soft-card { padding: 26px; min-height: 220px; }
.soft-card > * { position: relative; z-index: 1; }
.soft-card span { display: inline-flex; width: 35px; height: 35px; align-items: center; justify-content: center; border-radius: 13px; margin-bottom: 34px; color: var(--blue); background: rgba(37,99,255,.08); font-size: 12px; font-weight: 950; }
.soft-card p { margin-bottom: 0; font-size: 14px; }
.soft-card.large { min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; }
.soft-card.large h2 { font-size: clamp(34px, 4vw, 54px); }
.feature-band, .premium-card { padding: 36px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.feature-band p, .premium-card p { max-width: 690px; margin-bottom: 0; }

.key-hero { padding-top: 126px; }
.loadstring-card {
  position: relative;
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 14px 18px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(246,251,255,.88);
  box-shadow: 0 24px 70px rgba(37,99,255,.15);
  overflow: hidden;
}
.loadstring-card > * { position: relative; z-index: 1; }
.loadstring-card span { color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.loadstring-card code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #10213a; font-size: 13px; }
.loadstring-card button, .key-box button, .code-strip button { border: 0; border-radius: 999px; min-height: 36px; padding: 0 14px; color: white; background: #0d4ee6; font-size: 12px; font-weight: 880; cursor: pointer; }
.session-card { width: min(100%, 720px); display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left; padding: 16px; border: 1px solid rgba(37,99,255,.18); background: rgba(246,251,255,.84); border-radius: 24px; box-shadow: 0 20px 52px rgba(44,92,170,.10); }
.session-card b { display: block; margin-bottom: 3px; }
.session-card p { margin: 0; font-size: 13px; color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 8px rgba(34,197,94,.12); }

.panel { padding: 34px; }
.success-panel, .error-panel { display: grid; gap: 18px; }
.success-panel h1, .error-panel h1 { font-size: clamp(42px, 7vw, 76px); }
.key-box, .code-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); background: rgba(246,251,255,.88); border-radius: 20px; overflow: hidden; }
.key-box code, .code-strip code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #10213a; }
.key-box code { font-size: 16px; font-weight: 800; }

.script-hero { padding-top: 112px; }
.script-showcase { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: stretch; }
.script-copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 12px 0; }
.script-copy h1 { font-size: clamp(54px, 8vw, 104px); }
.script-cover-card { padding: 16px; display: grid; gap: 16px; }
.script-cover-card > * { position: relative; z-index: 1; }
.script-cover-card img { width: 100%; border-radius: 24px; display: block; box-shadow: 0 18px 48px rgba(44,92,170,.18); }
.script-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.script-tags span { padding: 8px 11px; border-radius: 999px; color: #16438f; background: rgba(37,99,255,.08); border: 1px solid rgba(37,99,255,.13); font-size: 12px; font-weight: 820; }

.premium-center h1 { max-width: 900px; }
.premium-card { align-items: center; }
.premium-list { min-width: 300px; margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.premium-list li { padding: 14px 16px; border-radius: 18px; background: rgba(37,99,255,.07); color: #183763; font-weight: 760; border: 1px solid rgba(37,99,255,.12); }

.centered-card { text-align: center; align-items: center; justify-content: center; }
.centered-card p { max-width: 620px; margin-left: auto; margin-right: auto; }
.centered-card .actions { justify-content: center; }
.not-found-panel { text-align: center; }
.not-found-panel h1 { font-size: clamp(54px, 9vw, 112px); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; z-index: 50; padding: 12px 16px; border-radius: 999px; color: white; background: #0d4ee6; font-size: 13px; font-weight: 850; box-shadow: 0 22px 50px rgba(37,99,255,.26); transition: opacity .22s ease, transform .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.footer { padding: 28px 0; color: var(--soft); border-top: 1px solid rgba(37,99,255,.10); }
.footer-shell { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; }
.footer a { margin-left: 16px; color: var(--muted); }

[data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1), filter .75s cubic-bezier(.2,.8,.2,1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .four-grid, .three-grid, .two-grid, .script-showcase { grid-template-columns: 1fr; }
  .feature-band, .premium-card { display: grid; }
}
@media (max-width: 640px) {
  .shell, .narrow { width: min(100% - 26px, var(--max)); }
  .topbar { padding: 10px 0; }
  .nav-cta { display: none; }
  .page-section { padding: 76px 0; }
  .page-section.compact { padding: 44px 0; }
  h1 { font-size: clamp(48px, 17vw, 70px); }
  h2 { font-size: 35px; }
  .lead { font-size: 17px; }
  .loadstring-card { grid-template-columns: 1fr; text-align: left; }
  .session-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-shell { display: grid; justify-items: center; }
  .footer a { margin: 0 8px; }
}

/* v8 blue polish + maintenance overrides */
:root {
  --bg: #d8eaff;
  --bg-deep: #c7dcff;
  --surface: rgba(245, 250, 255, .82);
  --surface-strong: rgba(223, 238, 255, .94);
  --text: #081a34;
  --muted: #36516f;
  --soft: #637a98;
  --line: rgba(37, 99, 235, .18);
  --line-strong: rgba(37, 99, 235, .30);
  --blue: #0b5cff;
  --blue-2: #38bdf8;
  --shadow: 0 28px 82px rgba(24, 71, 150, .18);
}

body {
  background:
    radial-gradient(circle at 50% -8%, rgba(25, 104, 255, .32), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, .30), transparent 28%),
    linear-gradient(180deg, #cfe4ff 0%, #edf7ff 48%, #dbeafe 100%);
}

.page-glow {
  background:
    radial-gradient(circle at 50% 4%, rgba(37, 99, 235, .42), transparent 34%),
    radial-gradient(circle at 72% 28%, rgba(14, 165, 233, .24), transparent 30%),
    linear-gradient(180deg, rgba(203, 224, 255, .90), transparent 60%);
}

.topbar {
  background: rgba(219, 234, 254, .70);
  border-bottom: 1px solid rgba(37, 99, 235, .14);
}

.brand img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .22);
}

.logo-orb {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(218,235,255,.74));
  box-shadow: 0 34px 90px rgba(37, 99, 235, .24);
}

h1 { line-height: .94; }
.not-found-panel h1 {
  line-height: 1.03;
  letter-spacing: -.065em;
  margin-bottom: 12px;
  overflow: visible;
}
.not-found-panel p { max-width: 620px; margin-left: auto; margin-right: auto; }

.soft-card, .panel, .feature-band, .premium-card, .script-cover-card {
  background: linear-gradient(180deg, rgba(250, 253, 255, .88), rgba(218, 235, 255, .72));
  border-color: rgba(37, 99, 235, .20);
  box-shadow: 0 24px 70px rgba(29, 78, 216, .16);
}

.soft-card.centered-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.soft-card.large.centered-card { min-height: 310px; }
.soft-card.centered-card h2 { margin-bottom: 0; }
.soft-card.centered-card p { margin-bottom: 0; text-align: center; }

.loadstring-card,
.session-card,
.key-box,
.code-strip {
  background: rgba(236, 247, 255, .90);
  border-color: rgba(37, 99, 235, .22);
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: .58;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn.loading { pointer-events: none; opacity: .78; }

.maintenance-client { min-height: 100vh; }
.maintenance-section { min-height: calc(100vh - 120px); }
.maintenance-panel { text-align: center; }
.maintenance-panel h1 { font-size: clamp(48px, 9vw, 96px); line-height: .98; margin-bottom: 10px; }
.maintenance-panel p { max-width: 620px; margin: 0 auto 20px; }
.maintenance-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.maintenance-form input {
  min-height: 48px;
  min-width: min(100%, 280px);
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .24);
  background: rgba(255,255,255,.76);
  color: var(--text);
  outline: none;
  font: inherit;
  font-weight: 720;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.maintenance-form input:focus {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.13);
}

@media (max-width: 640px) {
  h1 { line-height: .98; }
  .not-found-panel h1 { font-size: clamp(44px, 15vw, 68px); }
  .soft-card.large.centered-card { min-height: 240px; }
}

/* v9 deeper blue polish + hard layout fixes */
:root {
  --bg: #c7ddff;
  --bg-2: #b8d2ff;
  --surface: rgba(230, 242, 255, .84);
  --surface-strong: rgba(213, 232, 255, .94);
  --text: #07172f;
  --muted: #314a69;
  --soft: #5d7291;
  --line: rgba(30, 86, 210, .24);
  --line-strong: rgba(30, 86, 210, .38);
  --blue: #075cf8;
  --blue-2: #2f9bff;
  --shadow: 0 30px 90px rgba(14, 65, 155, .22);
}

body {
  background:
    radial-gradient(circle at 48% -10%, rgba(7, 92, 248, .42), transparent 35%),
    radial-gradient(circle at 10% 18%, rgba(47, 155, 255, .34), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, .20), transparent 28%),
    linear-gradient(180deg, #bcd7ff 0%, #dcecff 44%, #c8ddff 100%);
}

.page-glow {
  opacity: .85;
  background:
    radial-gradient(circle at 50% 4%, rgba(7, 92, 248, .52), transparent 34%),
    radial-gradient(circle at 72% 30%, rgba(47, 155, 255, .32), transparent 30%);
}

.topbar { background: rgba(199, 221, 255, .76); }
.nav-links { background: rgba(219, 235, 255, .78); }
.soft-card, .panel, .feature-band, .premium-card, .script-cover-card {
  background: linear-gradient(180deg, rgba(239, 247, 255, .90), rgba(199, 221, 255, .76));
  border-color: rgba(30, 86, 210, .25);
}
.loadstring-card, .session-card, .key-box, .code-strip {
  background: rgba(225, 239, 255, .92);
  border-color: rgba(30, 86, 210, .27);
}
.not-found-panel { padding-top: 42px; padding-bottom: 42px; }
.not-found-panel h1 {
  display: block;
  max-width: 100%;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.08;
  letter-spacing: -.055em;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.script-info-card {
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  justify-content: center !important;
  align-content: center !important;
}
.script-info-card h2,
.script-info-card p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.script-info-card p { max-width: 620px; }
.script-info-card .actions { justify-content: center !important; }

@media (max-width: 640px) {
  .not-found-panel h1 { font-size: clamp(36px, 13vw, 58px); line-height: 1.12; }
}
