/* ============================================
   SparkPit Labs — Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Tokens --- */
:root {
  --bg-primary: #060910;
  --bg-secondary: #0D1117;
  --bg-tertiary: #131923;
  --bg-card: rgba(13, 17, 23, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.025);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(0, 212, 255, 0.25);
  --text-primary: #EAF0FF;
  --text-secondary: #8B95A5;
  --text-muted: #5A6375;
  --accent-cyan: #00D4FF;
  --accent-purple: #6C63FF;
  --accent-blue: #3B82F6;
  --accent-indigo: #4F46E5;
  --glow-cyan: rgba(0, 212, 255, 0.12);
  --glow-purple: rgba(108, 99, 255, 0.12);
  --glow-blue: rgba(59, 130, 246, 0.12);
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  --gradient-hero: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 72px;
  --section-gap: 120px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #5de8ff; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p { color: var(--text-secondary); }

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* --- Backgrounds --- */
.bg-grid {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(6, 9, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-logo img, .nav-logo svg { width: 36px; height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.nav-links a.nav-cta {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
}
.nav-links a.nav-cta:hover { opacity: 0.9; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    background: rgba(6, 9, 16, 0.97);
    backdrop-filter: blur(20px);
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right var(--transition);
    border-left: 1px solid var(--border-glass);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; padding: 12px 16px; width: 100%; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 30px var(--glow-cyan), 0 4px 15px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--glow-cyan), 0 8px 25px rgba(0,0,0,0.4);
  color: #fff;
}

.btn-locked {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
  pointer-events: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  color: var(--accent-cyan);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 30px var(--glow-cyan);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.icon-pulse {
  animation: iconPulse 3s ease-in-out infinite;
}
.icon-pulse svg {
  stroke: var(--accent-cyan);
}

@keyframes iconPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 18px 2px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.35);
  }
}

.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }

/* Card grid */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero p.hero-sub {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.hero .btn-group { justify-content: center; }

.hero-glow-1 {
  width: 600px; height: 600px;
  background: var(--glow-cyan);
  top: -200px; left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--glow-purple);
  top: 100px; right: -100px;
}

/* ============================================
   SCROLLING MARQUEE / TAPE
   ============================================ */
.marquee-section {
  padding: 40px 0;
  overflow: hidden;
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-card {
  flex-shrink: 0;
  width: 320px;
  margin: 0 12px;
  padding: 24px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.marquee-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 30px var(--glow-cyan);
  transform: translateY(-2px);
}
.marquee-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent-cyan);
}
.marquee-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
}

/* ============================================
   STEPS / PROCESS
   ============================================ */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-glass);
  counter-increment: step;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
}

.step h3 { margin-bottom: 6px; font-size: 1.1rem; }
.step p { font-size: 0.9rem; }

/* ============================================
   TRUST / SAFETY BADGES
   ============================================ */
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust-badge .check {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.cta-banner h2 { margin-bottom: 24px; }
.cta-banner p { margin-bottom: 36px; }
.cta-banner .btn-group { justify-content: center; }

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.feature-list li:hover {
  border-color: var(--border-glass);
  background: rgba(255,255,255,0.03);
}

.feature-list .dot {
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-top: 8px;
}

@media (max-width: 600px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-glass);
  background: rgba(0,0,0,0.3);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); }

.footer-links h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
}
.footer-links a:hover { color: var(--accent-cyan); }

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-secondary); }

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--glow-cyan);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B95A5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-container {
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE HEADER (subpages)
   ============================================ */
.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  text-align: center;
  position: relative;
}
.page-header h1 { margin-bottom: 20px; }
.page-header p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  section { padding: 70px 0; }
  .hero { padding-top: calc(var(--nav-height) + 50px); padding-bottom: 40px; }
  .card { padding: 24px; }
  .section-header { margin-bottom: 40px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .step { flex-direction: column; gap: 12px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .btn-group { flex-direction: column; align-items: center; }
}

/* ============================================
   MISC UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* Two-column layout for subpages */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* Highlight card variant */
.card-highlight {
  border-color: rgba(0, 212, 255, 0.15);
  background: rgba(0, 212, 255, 0.03);
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  margin: 0;
}
