/* =============================================================================
   File: /css/marketing.css
   Arcade Layer - Shared Marketing Site Styles
   v1.0.0 - Initial extraction from index.html + design system alignment

   Used by: index.html, season.html, partnership.html, white-label.html

   DESIGN SYSTEM REFERENCE:
   Per arcade-layer-design-system.md, this file is the single source of truth
   for all public-facing marketing pages. Every color, font, and spacing value
   aligns with the locked design system. Do not introduce new accent colors or
   deviate from these specs without updating the design system doc first.

   FONTS LOADED IN HTML HEAD:
     Rajdhani (body/UI), Michroma (logo only), Share Tech Mono (labels/code)
   ============================================================================= */


/* ─────────────────────────────────────────────────────────────
   RESET & ROOT VARIABLES
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Backgrounds */
  --bg-primary:   #0a0d12;
  --bg-secondary: #0d1117;
  --bg-tertiary:  #161b22;
  --bg-card:      rgba(22, 27, 34, 0.8);
  --bg-elevated:  #1c2128;

  /* Text */
  --text-primary:   #e6edf3;
  --text-secondary: #8b949e;
  --text-muted:     #6e7681;

  /* Accents */
  --accent-cyan:       #7dd3e8;
  --accent-cyan-light: #a5e4f3;
  --accent-cyan-glow:  rgba(125, 211, 232, 0.3);
  --accent-blue:       #58a6ff;
  --accent-purple:     #8b5cf6;
  --accent-magenta:    #a855f7;
  --accent-green:      #3fb950;
  --accent-gold:       #d29922;
  --accent-red:        #f85149;

  /* Borders */
  --border-color:     rgba(48, 54, 61, 0.6);
  --border-subtle:    rgba(48, 54, 61, 0.3);
  --border-highlight: rgba(125, 211, 232, 0.3);

  /* Steel button gradient stops */
  --steel-dark:      #2d3a47;
  --steel-mid:       #4a5568;
  --steel-light:     #718096;
  --steel-highlight: #a0aec0;

  /* Fonts */
  --font-body:    'Rajdhani', sans-serif;
  --font-display: 'Michroma', sans-serif;       /* Logo wordmark only */
  --font-mono:    'Share Tech Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  color: var(--accent-cyan);
}

img {
  max-width: 100%;
  display: block;
}


/* ─────────────────────────────────────────────────────────────
   BACKGROUND EFFECTS (three fixed layers)
   ───────────────────────────────────────────────────────────── */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(125, 211, 232, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(88, 166, 255, 0.03) 0%, transparent 50%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 232, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 232, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}


/* ─────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}


/* ─────────────────────────────────────────────────────────────
   SECTION HEADERS (label + title + subtitle)
   ───────────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.section-label::before,
.section-label::after {
  content: '';
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.section-header .section-label {
  display: inline-flex;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.7;
}


/* ─────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  background: rgba(10, 13, 18, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav.scrolled {
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 211, 232, 0.05);
  position: relative;
}

.nav-logo-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 232, 0.15);
}

.nav-logo-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-cyan);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
}


/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #8899aa 0%, #5a6278 35%, #404858 65%, #2a3040 100%);
  color: var(--text-primary);
  border: 1px solid #5a6278;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(125, 211, 232, 0.05);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-submit {
  background: linear-gradient(180deg, #8899aa 0%, #5a6278 35%, #404858 65%, #2a3040 100%);
  color: var(--text-primary);
  border: 1px solid #5a6278;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  width: 100%;
  padding: 14px 32px;
  font-size: 16px;
}

.btn-submit:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}


/* ─────────────────────────────────────────────────────────────
   BADGES & PILLS
   ───────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 40px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.pill-live {
  border-color: rgba(63, 185, 80, 0.3);
  background: rgba(63, 185, 80, 0.06);
  color: var(--accent-green);
}

.pill-cyan {
  border-color: rgba(125, 211, 232, 0.3);
  background: rgba(125, 211, 232, 0.06);
  color: var(--accent-cyan);
}

.pill-purple {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.06);
  color: var(--accent-magenta);
}

.pill-gold {
  border-color: rgba(210, 153, 34, 0.3);
  background: rgba(210, 153, 34, 0.06);
  color: var(--accent-gold);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px currentColor; }
  50%      { opacity: 0.5; box-shadow: 0 0 8px currentColor; }
}


/* ─────────────────────────────────────────────────────────────
   CARDS (generic)
   ───────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-purple);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(139, 92, 246, 0.06);
}

.card.featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(125, 211, 232, 0.1);
}

.card-compact {
  padding: 24px;
}


/* ─────────────────────────────────────────────────────────────
   FORMS
   ───────────────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--accent-red);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}

.form-submit-wrap {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

.form-honeypot {
  display: none;
}


/* ─────────────────────────────────────────────────────────────
   FAQ ACCORDION
   ───────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.active {
  border-color: var(--border-highlight);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}


/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.footer-social a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}


/* ─────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }


/* ─────────────────────────────────────────────────────────────
   UTILITY
   ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }
.text-cyan { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 32px; }
.mt-xl { margin-top: 48px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 32px; }
.mb-xl { margin-bottom: 48px; }

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 48px 0;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: auto;
  }

  .form-card {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 13, 18, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn-secondary {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }
}