/* SPUDZWARE — neon purple / black */
:root {
  color-scheme: dark;
  --bg: #05030a;
  --bg2: #0a0614;
  --panel: rgba(18, 10, 32, 0.72);
  --panel2: rgba(28, 14, 48, 0.85);
  --border: rgba(180, 100, 255, 0.18);
  --border2: rgba(200, 120, 255, 0.32);
  --text: #f4eefc;
  --muted: #b5a3cc;
  --dim: #7a6a90;
  --neon: #b026ff;
  --neon2: #7b2ff7;
  --neon3: #e040fb;
  --cyan: #00f0ff;
  --green: #39ff14;
  --gold: #ffd60a;
  --red: #ff2d55;
  --glow: 0 0 40px rgba(176, 38, 255, 0.35);
  --glow-soft: 0 0 80px rgba(123, 47, 247, 0.2);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Menlo, monospace;
  --nav-h: 72px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Dynamic neon background */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(176, 38, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 240, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(123, 47, 247, 0.22), transparent 55%),
    linear-gradient(180deg, #05030a 0%, #0a0614 40%, #05030a 100%);
}

.bg-fx::before,
.bg-fx::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.bg-fx::before {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  background: #b026ff;
  top: 10%;
  left: -5%;
}

.bg-fx::after {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: #5b1fd1;
  bottom: 5%;
  right: -8%;
  animation-delay: -7s;
  animation-duration: 22s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(176, 38, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 38, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(40px, 30px) scale(1.15);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

a {
  color: var(--neon3);
  text-decoration: none;
}
a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(224, 64, 251, 0.7);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Nav tabs */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(5, 3, 10, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 0 18px rgba(176, 38, 255, 0.8);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7b2ff7, #b026ff 50%, #e040fb);
  box-shadow: var(--glow);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-left: auto;
  align-items: center;
}

.tab {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.tab:hover,
.tab.is-active {
  color: #fff;
  border-color: var(--border2);
  background: rgba(176, 38, 255, 0.12);
  box-shadow: inset 0 0 20px rgba(176, 38, 255, 0.08);
}

.tab-cta {
  margin-left: 0.35rem;
  background: linear-gradient(135deg, #7b2ff7, #b026ff 60%, #e040fb);
  color: #fff !important;
  border: none !important;
  box-shadow: var(--glow);
}

.tab-cta:hover {
  filter: brightness(1.08);
  text-shadow: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .tabs {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(8, 4, 16, 0.96);
    border-bottom: 1px solid var(--border);
  }
  .tabs.open {
    display: flex;
  }
  .tab-cta {
    margin-left: 0;
    text-align: center;
  }
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: rgba(176, 38, 255, 0.1);
  color: var(--neon3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(115deg, #fff 10%, #e040fb 45%, #7b2ff7 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(176, 38, 255, 0.35));
}

.hero p.lead {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #7b2ff7, #b026ff 55%, #e040fb);
  color: #fff;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
  text-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--neon);
  color: #fff;
}

/* Sections */
section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-4,
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .plans-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--glow-soft);
  backdrop-filter: blur(10px);
  transition: 0.18s ease;
}

.card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(176, 38, 255, 0.22);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: rgba(176, 38, 255, 0.15);
  border: 1px solid var(--border);
  font-size: 1.15rem;
}

/* Pricing */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0.75rem 0 1rem;
}

.price-row .amt {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(115deg, #fff, #e040fb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-row .per {
  color: var(--dim);
  font-weight: 600;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan.featured {
  border-color: rgba(224, 64, 251, 0.55);
  box-shadow: 0 0 50px rgba(176, 38, 255, 0.35);
  background: linear-gradient(
    165deg,
    rgba(123, 47, 247, 0.25),
    rgba(18, 10, 32, 0.9) 50%
  );
}

.plan .tag {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e040fb, #7b2ff7);
  color: #fff;
}

.plan ul {
  list-style: none;
  margin: 0 0 1.25rem;
  flex: 1;
}

.plan li {
  padding: 0.35rem 0;
  padding-left: 1.35rem;
  position: relative;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--neon3);
  font-weight: 800;
  text-shadow: 0 0 8px rgba(224, 64, 251, 0.8);
}

.plan .btn {
  width: 100%;
}

/* Support */
.support-box {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.support-box .invite-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border2);
  color: var(--muted);
  font-size: 0.95rem;
}

.support-box .invite-status.ready {
  border-style: solid;
  border-color: rgba(57, 255, 20, 0.35);
  color: var(--text);
  background: rgba(57, 255, 20, 0.06);
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

/* Page header */
.page-head {
  padding: 3rem 0 1.5rem;
}

.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.page-head p {
  color: var(--muted);
  max-width: 36rem;
}

/* FAQ */
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--neon3);
  margin-bottom: 0.5rem;
}

.faq details p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Legal (Terms / Privacy) */
.legal {
  max-width: 44rem;
  padding-bottom: 3rem;
}

.legal .meta {
  color: var(--dim);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.legal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.5rem;
  margin-bottom: 1rem;
}

.legal-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--neon3);
  margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-card p + p {
  margin-top: 0.65rem;
}

.legal-card ul {
  margin: 0.5rem 0 0 1.15rem;
}

.legal-card li {
  margin-bottom: 0.35rem;
}

.legal-card strong {
  color: var(--text);
  font-weight: 700;
}

.legal-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.legal-nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-nav-links a:hover,
.legal-nav-links a.active {
  border-color: var(--border2);
  color: var(--text);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.15);
}

.legal-nav-links a.active {
  color: var(--neon3);
}

/* Neon divider */
.neon-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 38, 255, 0.6),
    rgba(224, 64, 251, 0.8),
    rgba(176, 38, 255, 0.6),
    transparent
  );
  margin: 0.5rem 0 1.5rem;
  box-shadow: 0 0 12px rgba(176, 38, 255, 0.5);
}

.muted {
  color: var(--muted);
}

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