:root {
  --bg: #0c0818;
  --bg-alt: #120c22;
  --card: #17112b;
  --border: #2a2043;
  --text: #e8e4f5;
  --text-dim: #a79fc4;
  --accent: #8b7cf6;
  --accent-dark: #6d5ce7;
  --accent-glow: rgba(139, 124, 246, 0.35);
  --radius: 14px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .brand, .btn, .step-num, .price, .badge {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ===== Accessibility: focus + skip link ===== */
/* Consistent, visible focus ring for keyboard navigation — the browser default
   outline gets stripped by some of the border-radius/box-shadow styling above,
   so it's redefined explicitly rather than left to chance. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Invisible until tabbed to — lets keyboard/screen-reader users jump straight to
   the main content instead of tabbing through the launch banner and full nav
   on every single page load. */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ===== Scroll reveal ===== */
/* Sections/cards fade into place as they enter the viewport (see script.js) — no
   movement, just opacity, so text doesn't shift/slide while someone is reading.
   Skipped entirely for users who asked to reduce motion. */
.reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.reveal.revealed { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Moon logo ===== */
.moon {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 8px -2px 0 0 var(--bg);
  flex-shrink: 0;
}
.moon-lg {
  width: 96px;
  height: 96px;
  box-shadow: inset 34px -8px 0 0 var(--bg);
  margin: 0 auto 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 9px 18px; font-size: 0.85rem; }

/* ===== Launch offer banner ===== */
.launch-banner {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
}
.launch-banner a {
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 8, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }

/* Hamburger button — hidden on desktop, shown under 760px */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 12px 4px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 10px; text-align: center; }
.mobile-menu.open { display: flex; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 10px;
}
.subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Discord live widget ===== */
.discord-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.discord-widget:hover { border-color: var(--accent); color: var(--text); }
.discord-widget-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57f287; /* Discord's own "online" green */
  box-shadow: 0 0 8px #57f287;
  flex-shrink: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.hero-badges .discord-widget { margin-top: 0; }

/* Timezone / "currently coding" status badge — same pill shape as the Discord
   widget for visual consistency, but not a link. */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.status-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.status-badge.status-badge-active .status-badge-dot {
  background: #57f287;
  box-shadow: 0 0 8px #57f287;
}

/* ===== Payment badges ===== */
.payment-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
}
.payment-badge svg { color: var(--accent); }

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding-bottom: 18px;
  margin: 0;
}

/* ===== Comparison table ===== */
.compare-table {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div {
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.compare-row > div:first-child { color: var(--text); font-weight: 600; }
.compare-head { background: var(--bg-alt); }
.compare-head > div { color: var(--text); font-weight: 700; font-size: 0.85rem; }
.compare-highlight-col {
  background: rgba(139, 124, 246, 0.08);
  color: var(--text) !important;
  border-left: 1px solid var(--border);
}
.compare-head .compare-highlight-col { color: var(--accent) !important; }

@media (max-width: 640px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div:first-child { border-bottom: 1px dashed var(--border); }
  .compare-highlight-col { border-left: none; border-top: 1px solid var(--border); }
}

/* ===== Trust bar ===== */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item { display: flex; flex-direction: column; gap: 6px; }
.trust-item strong { color: var(--accent); font-size: 0.95rem; }
.trust-item span { color: var(--text-dim); font-size: 0.88rem; }

@media (max-width: 760px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Sections ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px;
}
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 48px;
}

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: linear-gradient(160deg, var(--card) 0%, rgba(23, 17, 43, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px -12px var(--accent-glow);
}
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 14px; }
.card-price { color: var(--text); font-size: 0.9rem; }
.card-price strong { color: var(--accent); }

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

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
}
.price-card-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 30px var(--accent-glow);
}
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.price-card .price { font-size: 1.8rem; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; }
.price-card li {
  color: var(--text-dim);
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
}
.price-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 40px;
  line-height: 1.9;
}

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

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.9rem; }

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

/* ===== Portfolio placeholder ===== */
.portfolio-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  color: var(--text-dim);
}

/* ===== CTA final ===== */
.cta-final {
  text-align: center;
  padding: 100px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.cta-final h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-final p { color: var(--text-dim); margin-bottom: 32px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand-footer { justify-content: center; }
.footer p { color: var(--text-dim); font-size: 0.85rem; }
.footer a { color: var(--accent); font-size: 0.85rem; }

/* ===== Floating "Open a ticket" button ===== */
/* Hidden until scrolled past the hero (see script.js) — the hero already has its
   own prominent CTA, so showing this immediately on load would just be noise. */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px var(--accent-glow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta:hover { transform: translateY(-2px); }

/* ===== Account page ===== */
.account-section { max-width: 640px; }
.account-state { margin-top: 24px; }
.account-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.account-login p { color: var(--text-dim); margin: 16px 0 24px; }
.account-login .moon-lg { margin: 0 auto 12px; }

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.account-user { display: flex; align-items: center; gap: 14px; }
.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.account-username { font-weight: 700; font-size: 1.05rem; }
.account-sub { color: var(--text-dim); font-size: 0.85rem; }

.products-list { display: flex; flex-direction: column; gap: 12px; }
.product-card { text-align: left; padding: 20px 22px; }
.product-name { font-weight: 600; margin-bottom: 4px; }
.product-meta { color: var(--text-dim); font-size: 0.85rem; }
.product-download {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.product-download:hover { transform: translateY(-1px); opacity: 0.9; }
