/* ==========================================================================
   MazzBudetzz Digital — Premium Neon Purple System UI
   Glassmorphism · Cyber-security aesthetic · subtle glow · fast-loading
   ========================================================================== */

:root{
  /* ---- Primary / Accent ---- */
  --primary:        #8B5CF6;
  --primary-dark:   #7C3AED;
  --primary-light:  #A855F7;
  --accent:         #C084FC;
  --accent-2:       #E879F9;

  /* ---- Background ---- */
  --bg:             #050505;
  --bg-2:           #0d0710;
  --bg-3:           #120a1a;

  /* ---- Surfaces / glass ---- */
  --card:           rgba(255,255,255,.05);
  --card-hover:     rgba(255,255,255,.08);
  --border:         rgba(255,255,255,.08);
  --border-strong:  rgba(168,85,247,.45);

  /* ---- Text ---- */
  --text:           #FFFFFF;
  --text-2:         #A1A1AA;
  --text-3:         #71717A;

  /* ---- Glow (brighter / more vivid neon, per reference) ---- */
  --glow-color:     #8a2be2;
  --glow-color-2:   #b266ff;
  --glow-sm: 0 0 16px rgba(138,43,226,.35);
  --glow-md: 0 0 10px var(--glow-color), 0 0 30px var(--glow-color);
  --glow-lg: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 40px var(--glow-color), 0 0 80px var(--glow-color);
  --shadow-card: 0 10px 34px rgba(0,0,0,.45);

  /* ---- Radius ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* ---- Type ---- */
  --font-display: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease: .3s ease;
  color-scheme: dark;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body{
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

img, video, svg{ max-width: 100%; display: block; }
a{ color: inherit; }
button{ font: inherit; color: inherit; }
ul{ list-style: none; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link{
  position: absolute; top: -48px; left: 12px;
  background: var(--primary); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: var(--r-sm); z-index: 999;
  transition: top .2s ease;
}
.skip-link:focus{ top: 12px; }

/* ==========================================================================
   Animated background: gradient wash + soft blur circles + faint noise
   Rendered once, fixed, behind everything (z-index:0), pointer-events:none.
   ========================================================================== */
.bg-fx{ position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx::before{
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(26% 22% at 50% 32%, rgba(138,43,226,.22) 0%, transparent 70%),
    radial-gradient(38% 30% at 15% 8%,  rgba(139,92,246,.13) 0%, transparent 72%),
    radial-gradient(34% 28% at 88% 18%, rgba(232,121,249,.08) 0%, transparent 72%),
    radial-gradient(45% 40% at 50% 100%, rgba(124,58,237,.12) 0%, transparent 75%),
    linear-gradient(180deg,
      var(--bg) 0%,
      #0B0610 30%,
      var(--bg-2) 55%,
      #16091f 78%,
      var(--bg-3) 100%);
  animation: drift 26s ease-in-out infinite alternate;
}
.bg-fx::after{
  /* subtle film-grain noise, inline SVG, very low opacity */
  content: "";
  position: absolute; inset: 0;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift{
  from{ transform: translate3d(0,0,0) scale(1); }
  to{   transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce){ .bg-fx::before{ animation: none; } }

/* ==========================================================================
   Custom scrollbar — neon purple, rounded
   ========================================================================== */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: var(--r-pill);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover{ background: var(--accent); }
html{ scrollbar-color: var(--primary) var(--bg); scrollbar-width: thin; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container{ width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
main{ flex: 1 0 auto; padding-block: clamp(28px, 5vw, 56px); position: relative; z-index: 1; }

/* ==========================================================================
   Navbar — glass, sticky, purple shadow
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,9,11,.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px -12px rgba(139,92,246,.25);
}
.nav{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.nav-brand{ display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--text); }
.nav-brand .dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--primary-light); box-shadow: 0 0 10px var(--primary-light); }
.nav-back{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .92rem; color: var(--text-2); text-decoration: none;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.nav-back:hover, .nav-back:focus-visible{
  color: var(--text); border-color: var(--border-strong);
  background: rgba(139,92,246,.10);
}

/* ==========================================================================
   Card — glassmorphism
   ========================================================================== */
.card{
  position: relative;
  background: var(--card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card), var(--glow-sm);
  padding: clamp(20px, 4vw, 36px);
  animation: fadeUp .5s ease both;
}

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hero text block
   ========================================================================== */
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--glow-color-2); margin-bottom: 12px;
}
.eyebrow::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-light); box-shadow: 0 0 10px var(--primary-light); }

.page-title{
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  text-align: center;
  margin-bottom: 10px;
  color: var(--accent);
  text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 40px rgba(138,43,226,.6);
}
.page-title .accent{ color: var(--accent); }
.page-intro{ text-align: center; color: var(--text-2); max-width: 62ch; margin: 0 auto clamp(24px, 5vw, 40px); }

/* ==========================================================================
   Media frame
   ========================================================================== */
.media-frame{
  width: 100%; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: clamp(20px, 4vw, 32px);
  background: #000; aspect-ratio: 16 / 7;
}
.media-frame video, .media-frame img{ width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Option grid / cards
   ========================================================================== */
.grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px,3vw,24px); }

.option-card{
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  text-decoration: none; color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: clamp(20px, 3vw, 26px) 18px;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.option-card:hover, .option-card:focus-visible{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow: var(--glow-md);
}
.option-card img{
  width: 72px; height: 72px; object-fit: cover; border-radius: 50%;
  margin-bottom: 14px; border: 2px solid var(--border-strong); background: var(--bg);
}
.option-card h3{ font-size: 1.02rem; color: var(--accent); margin-bottom: 6px; font-family: var(--font-display); }
.option-card p{ font-size: .9rem; color: var(--text-2); line-height: 1.55; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
  min-height: 44px;
  position: relative;
  overflow: hidden;
}
.btn-primary{
  background: linear-gradient(45deg, #7e22ce, #a855f7);
  color: #fff;
  box-shadow: 0 0 10px var(--glow-color), 0 0 30px var(--glow-color);
}
.btn-primary:hover, .btn-primary:focus-visible{
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--glow-color-2), 0 0 50px var(--glow-color-2);
}
.btn-ghost{
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover, .btn-ghost:focus-visible{
  background: rgba(139,92,246,.12);
  border-color: var(--primary);
  box-shadow: 0 0 18px rgba(138,43,226,.4);
}
/* ripple */
.btn::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle, rgba(255,255,255,.35) 0%, transparent 60%);
  opacity: 0; transform: scale(0);
  transition: transform .5s ease, opacity .5s ease;
}
.btn:active::after{ opacity: 1; transform: scale(2); transition: 0s; }

.btn-block{ width: 100%; }
.btn-row{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.back-row{ text-align: center; margin-top: clamp(24px, 4vw, 36px); }

/* ==========================================================================
   Feature / price lists
   ========================================================================== */
.section-title{
  font-family: var(--font-display); color: var(--accent);
  font-size: 1.15rem; margin: 30px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.feature-list li{ position: relative; padding-left: 24px; margin-bottom: 12px; line-height: 1.6; color: var(--text-2); }
.feature-list li::before{ content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-light); box-shadow: 0 0 6px var(--primary-light); }
.feature-list b, .feature-list strong{ color: var(--text); }

.price-list li{ display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); color: var(--text-2); }
.price-list li:last-child{ border-bottom: none; }
.price-list .price{ color: var(--accent); font-weight: 700; }

/* ==========================================================================
   Plan / pricing cards
   ========================================================================== */
.plan-card{
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 22px; text-align: center;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.plan-card:hover{ transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--glow-md); }
.plan-card.featured{ border-color: var(--primary); background: rgba(139,92,246,.07); }
.plan-card h3{ color: var(--accent); font-size: 1.05rem; margin-bottom: 6px; font-family: var(--font-display); }
.plan-card .meta{ color: var(--text-3); font-size: .85rem; margin-bottom: 10px; }
.plan-card .amount{ color: var(--text); font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }

/* ==========================================================================
   Callout
   ========================================================================== */
.callout{ background: rgba(139,92,246,.06); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px clamp(18px, 3vw, 28px); color: var(--text-2); line-height: 1.85; }
.callout h2{ color: var(--accent); text-align: center; margin-bottom: 14px; font-size: 1.2rem; }
.callout p + p{ margin-top: 14px; }
.callout.warn{ border-color: rgba(232,121,249,.35); }

/* ==========================================================================
   Payment box
   ========================================================================== */
.payment-box{ max-width: 420px; margin: 0 auto; text-align: center; }
.payment-box .qr{ max-width: 260px; margin: 0 auto 20px; border-radius: var(--r-md); border: 1px solid var(--border-strong); }
.payment-info{ color: var(--text-2); line-height: 1.8; margin-bottom: 18px; }
.payment-info strong{ color: var(--text); }

/* ==========================================================================
   Search input
   ========================================================================== */
.search-input{
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text);
  font-size: .95rem; margin-bottom: 24px;
}
.search-input:focus-visible{ border-color: var(--primary); }
.search-input::placeholder{ color: var(--text-3); }

/* ==========================================================================
   Profile
   ========================================================================== */
.profile-card{ text-align: center; max-width: 620px; margin-inline: auto; }
.profile-img{ width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); margin: 0 auto 20px; }

/* ==========================================================================
   Toggle panel
   ========================================================================== */
.toggle-panel{ display: none; }
.toggle-panel[data-open]{ display: block; animation: panelIn .35s ease; }
@keyframes panelIn{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Feature-menu sections (script listing page)
   ========================================================================== */
.section{ background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 20px; }
.section h2{ color: var(--accent); font-size: 1.05rem; margin-bottom: 12px; font-family: var(--font-display); }
.section ul{ columns: 2; column-gap: 24px; }
.section li{ color: var(--text-2); font-size: .92rem; padding: 3px 0; break-inside: avoid; }
@media (max-width: 560px){ .section ul{ columns: 1; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  position: relative; z-index: 1;
  text-align: center; padding: 26px var(--pad, clamp(16px,4vw,32px)) 34px;
  border-top: 1px solid var(--border);
  background: rgba(9,9,11,.6);
  color: var(--text-3); font-size: .85rem; line-height: 1.7;
}
.site-footer strong{ color: var(--text-2); }
.site-footer .legal{ margin-top: 4px; font-size: .78rem; }
.site-footer .grad-line{
  height: 1px; max-width: 220px; margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent-2), transparent);
}

/* ==========================================================================
   Splash / loader
   ========================================================================== */
.splash{ min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; z-index: 1; }
.splash .mark{ width: 84px; height: 84px; margin: 0 auto 18px; filter: drop-shadow(0 0 14px rgba(139,92,246,.45)); }
.splash .mark path{ stroke: var(--accent); stroke-width: 4; fill: none; stroke-dasharray: 350; stroke-dashoffset: 350; animation: charge 1.8s ease-out forwards; }
.splash .status{ color: var(--accent); letter-spacing: .18em; font-size: .85rem; font-weight: 600; }
@keyframes charge{ to{ stroke-dashoffset: 0; } }

/* ==========================================================================
   Security / status screens (403, 404, 500, DevTools, Eruda, etc.)
   ========================================================================== */
.status-screen{ min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; position: relative; z-index: 1; }
.status-card{ width: 100%; max-width: 460px; }
.status-screen .code{
  font-family: var(--font-display); font-size: clamp(3.2rem, 13vw, 5.5rem); font-weight: 800;
  color: var(--accent); text-shadow: var(--glow-lg); line-height: 1;
}
.status-screen h1{ font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 14px 0 10px; }
.status-screen p{ color: var(--text-2); }
.status-icon-wrap{
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 15px var(--glow-color), 0 0 40px rgba(138,43,226,.45);
  animation: floaty 4s ease-in-out infinite;
}
.status-icon-wrap img{ width: 100%; height: 100%; object-fit: cover; }
@keyframes floaty{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }

/* ==========================================================================
   Scroll reveal — calm & slow (applied by main.js via IntersectionObserver)
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(.16,.84,.44,1),
              transform 1s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.center{ text-align: center; }
.stack{ display: flex; flex-direction: column; gap: 14px; }
.mt-lg{ margin-top: clamp(24px, 4vw, 36px); }
.text-danger{ color: var(--accent-2); }

@media (max-width: 640px){
  .nav-brand span{ font-size: .98rem; }
  .btn{ width: 100%; }
  .btn-row{ flex-direction: column; }
}
