/* ─── Variables ─────────────────────────────────────── */
:root {
  --accent: #ff6b1a;
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #fafafa;
  --muted: #737373;
}

/* ─── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ─── Custom cursor (desktop only) ──────────────────── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  #cursor { display: block; }
}

#cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.15s ease, height 0.15s ease,
              background 0.15s ease, border 0.15s ease;
  will-change: transform;
}

#cursor.expanded {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1.5px solid var(--accent);
}

/* ─── Boost trail ────────────────────────────────────── */
.boost-trail {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: 1px;
  z-index: 49;
  pointer-events: none;
  overflow: hidden;
}

.boost-trail::after {
  content: '';
  position: absolute;
  top: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, #ff6b1a 35%, #3b82f6 65%, transparent 100%);
  opacity: 0.4;
  animation: boostSweep 7s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes boostSweep {
  0%   { left: -35%; }
  100% { left: 100%; }
}

/* ─── Nav ────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

@media (min-width: 1024px) {
  #nav { padding: 0 56px; }
}

/* ─── Hero character animation ───────────────────────── */
.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(4px);
  animation: charReveal 0.35s ease forwards;
}

@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Scroll reveals ─────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Scroll indicator ───────────────────────────────── */
.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  position: relative;
  margin: 0 auto;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  80%       { top: 20px; opacity: 0; }
}

/* ─── Discord pulse dot ──────────────────────────────── */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  position: relative;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: pulsate 2s ease-out infinite;
}

@keyframes pulsate {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ─── Section helpers ────────────────────────────────── */
.section-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .section-container { padding: 0 56px; }
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* ─── Feature cards ──────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 28px rgba(255, 107, 26, 0.09);
}

.feature-card:nth-child(even):hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 28px rgba(59, 130, 246, 0.09);
}

.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0;
}

/* ─── Pricing cards ──────────────────────────────────── */
.pricing-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(255, 107, 26, 0.1);
}

.pricing-card.popular  { border-color: var(--accent); }
.pricing-card.best-val { border-color: rgba(255, 107, 26, 0.35); }

.pricing-card .tier-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.pricing-card .price-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-card .price-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  flex: 1;
}

/* ─── Badge ──────────────────────────────────────────── */
.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge.hot {
  background: var(--accent);
  color: #000;
}

.badge.value {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ─── Buttons ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.45s ease;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:hover::after { left: 160%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.38); }

.btn-card {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(255, 107, 26, 0.08);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 107, 26, 0.2);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-18deg);
  transition: left 0.4s ease;
}

.pricing-card:hover .btn-card {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.pricing-card:hover .btn-card::after { left: 160%; }

/* ─── FAQ ────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .faq-trigger { cursor: none; }
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  padding-bottom: 20px;
  margin: 0;
}

/* ─── Focus ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Success modal ──────────────────────────────────── */
#success-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

#success-modal {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 48px 40px 36px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.12), 0 24px 64px rgba(0, 0, 0, 0.6);
  outline: none;
  animation: modalIn 0.3s ease;
}

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

#success-check {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

#success-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.success-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 28px;
}

#success-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#success-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

#success-steps li > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#success-steps strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

#success-steps code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.3);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.success-discord-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}

.success-discord-btn:hover { opacity: 0.85; }

.success-step-detail {
  font-size: 13px;
  color: var(--muted);
}

.success-contact {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.success-contact a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.success-contact a:hover { color: var(--text); }

#success-close {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

#success-close:hover { color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  #success-close { cursor: none; }
}

/* ─── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-char { opacity: 1 !important; transform: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
