/* ═══════════════════════════════════════════
   SPNT StoryForge — B2B Marketing Site
   Color scheme: #6C63FF / #00D4AA / #0A0A1A
   ═══════════════════════════════════════════ */

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

:root {
  --primary: #6C63FF;
  --secondary: #00D4AA;
  --bg-dark: #0A0A1A;
  --bg-card: #12121F;
  --bg-card2: #181828;
  --text: #E8E8F0;
  --text-muted: #8888AA;
  --gold: #FFD700;
  --gradient: linear-gradient(135deg, #6C63FF, #00D4AA);
  --gradient-text: linear-gradient(135deg, #6C63FF, #00D4AA, #6C63FF);
  --glow-primary: 0 0 30px rgba(108, 99, 255, 0.3);
  --glow-secondary: 0 0 30px rgba(0, 212, 170, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Outfit', 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }

.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
/* Subtle ambient glow on regular sections */
.section:not(.section-dark)::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.04) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.section:not(.section-dark)::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.03) 0%, transparent 70%);
  bottom: -150px; left: -150px;
  pointer-events: none;
}
.section-dark {
  background: linear-gradient(180deg, #0d0d20 0%, #0f1025 40%, #0d0d20 100%);
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(108, 99, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(0, 212, 170, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.section-dark::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(108, 99, 255, 0.3) 50%, transparent 90%);
}

.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-bottom: 12px;
  padding: 4px 16px;
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 20px;
}
.section-header h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 12px; font-weight: 600;
  font-size: 1rem; text-decoration: none; cursor: pointer;
  border: none; transition: all 0.3s ease; position: relative;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5); }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(232, 232, 240, 0.2);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── NAV ──────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.1);
  transition: all 0.3s;
}
#main-nav.scrolled { background: rgba(10, 10, 26, 0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1200px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-img { height: 42px; width: auto; border-radius: 8px; }
.logo-text { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; }
.logo-accent { color: var(--secondary); margin-left: 4px; font-weight: 500; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient) !important; color: #fff !important;
  padding: 10px 24px !important; border-radius: 10px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }
.mobile-nav { display: none; flex-direction: column; padding: 16px 24px; gap: 16px; }
.mobile-nav a { color: var(--text-muted); text-decoration: none; font-size: 1rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-nav.open { display: flex; }

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

/* ── HERO ─────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 24px 80px;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
#particles-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; }
.hero-badge {
  display: inline-block; padding: 6px 20px; border-radius: 24px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  background: rgba(108, 99, 255, 0.15); border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--primary); margin-bottom: 24px;
}
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 20px; letter-spacing: -0.02em; }
.hero-sub { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto 36px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.stat-num { font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--text); }
.stat-plus, .stat-prefix, .stat-unit { font-size: 1.2rem; color: var(--secondary); font-weight: 700; }
.stat-label { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
/* Hero proof blocks (replace stats) */
.hero-proof-blocks {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px;
}
.proof-block {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.15);
  font-size: 0.85rem; color: var(--text-muted);
  transition: all 0.3s;
}
.proof-block:hover { border-color: rgba(0, 212, 170, 0.3); color: var(--text); }
.proof-icon { font-size: 1.1rem; }

.hero-scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-arrow { width: 24px; height: 24px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); animation: scrollBounce 2s ease infinite; opacity: 0.5; }
@keyframes scrollBounce { 0%,100% { transform: rotate(45deg) translate(0,0); opacity:0.5; } 50% { transform: rotate(45deg) translate(6px,6px); opacity:1; } }

/* ── Particles ──────────────────────────── */
.particle {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ── USE CASES ────────────────────────────── */
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.use-case-card {
  background: var(--bg-card);
  border: 1px solid rgba(108, 99, 255, 0.1);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.use-case-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); opacity: 0; transition: opacity 0.4s;
}
.use-case-card:hover { transform: translateY(-6px); border-color: rgba(108, 99, 255, 0.3); box-shadow: var(--glow-primary); }
.use-case-card:hover::before { opacity: 1; }
.uc-icon { width: 52px; height: 52px; color: var(--primary); margin-bottom: 20px; }
.uc-icon svg { width: 100%; height: 100%; }
.use-case-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.use-case-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.uc-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 3px 10px; border-radius: 6px;
  background: rgba(0, 212, 170, 0.1); color: var(--secondary); border: 1px solid rgba(0, 212, 170, 0.2);
}

/* ── HOW IT WORKS ─────────────────────────── */
.steps-row { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }
.step-card {
  background: linear-gradient(160deg, rgba(18, 18, 35, 0.95), rgba(10, 10, 26, 0.95));
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  max-width: 320px;
  flex: 1;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}
.step-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 8px 40px rgba(108, 99, 255, 0.15), inset 0 1px 0 rgba(108, 99, 255, 0.2);
  transform: translateY(-4px);
}
.step-num {
  font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 16px; opacity: 0.3;
}
.step-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--secondary); }
.step-icon svg { width: 100%; height: 100%; }
.step-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }
.step-connector { display: flex; align-items: center; padding: 0 8px; margin-top: 60px; }
.connector-line { width: 50px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); opacity: 0.4; }
.connector-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--secondary);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.5), 0 0 24px rgba(0, 212, 170, 0.2);
  animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 12px rgba(0,212,170,0.5); } 50% { box-shadow: 0 0 20px rgba(0,212,170,0.8), 0 0 40px rgba(0,212,170,0.3); } }
@media (max-width: 900px) {
  .steps-row { flex-direction: column; align-items: center; gap: 24px; }
  .step-connector { display: none; }
  .step-card { max-width: 100%; }
}

/* ── DEMO SHOWCASE ─────────────────────────── */
.demo-showcase { max-width: 750px; margin: 0 auto; }
.demo-card {
  background: linear-gradient(160deg, rgba(18, 18, 35, 0.95), rgba(12, 12, 24, 0.95));
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.demo-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
}
.demo-badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  background: rgba(0, 212, 170, 0.15); color: var(--secondary);
  border: 1px solid rgba(0, 212, 170, 0.3); margin-bottom: 20px;
}
.demo-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.demo-card > p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; max-width: 580px; margin-left: auto; margin-right: auto; }
.demo-features-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px;
}
.demo-feat {
  padding: 5px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 500;
  background: rgba(108, 99, 255, 0.08); border: 1px solid rgba(108, 99, 255, 0.12);
  color: var(--text-muted);
}
.demo-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.demo-rights {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 20px;
  font-style: italic;
}

/* ── Workflow Artifact ─────────────────────── */
.workflow-artifact {
  margin-top: 64px;
  padding: 40px 32px;
  background: linear-gradient(160deg, rgba(18, 18, 35, 0.9), rgba(10, 10, 26, 0.9));
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: var(--radius);
}
.workflow-artifact h4 {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 500;
}
.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.wf-step {
  text-align: center;
  flex: 1;
  min-width: 120px;
  max-width: 160px;
}
.wf-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 8px;
}
.wf-box {
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
}
.wf-box .dim { color: var(--text-muted); font-size: 0.72rem; }
.wf-step-final .wf-box {
  background: rgba(0, 212, 170, 0.08);
  border-color: rgba(0, 212, 170, 0.25);
}
.wf-step-final .wf-label { color: var(--secondary); }
.wf-arrow {
  font-size: 1.4rem;
  color: rgba(108, 99, 255, 0.3);
  padding: 0 8px;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .workflow-steps { flex-direction: column; gap: 8px; }
  .wf-arrow { transform: rotate(90deg); padding: 4px 0; margin-top: 0; }
  .wf-step { max-width: 100%; min-width: 0; }
}

/* ── FEATURES ─────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(108, 99, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(108, 99, 255, 0.25); transform: translateY(-3px); }
.fc-icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature-card h4 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ── PRICING ──────────────────────────────── */
.pricing-custom { max-width: 900px; margin: 0 auto; }
.pricing-factors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 48px; }
.pricing-factor {
  background: linear-gradient(160deg, rgba(18, 18, 35, 0.9), rgba(10, 10, 26, 0.9));
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.pricing-factor:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.1);
  transform: translateY(-3px);
}
.pf-icon { font-size: 2rem; margin-bottom: 12px; }
.pricing-factor h4 { font-size: 1rem; margin-bottom: 8px; }
.pricing-factor p { color: var(--text-muted); font-size: 0.85rem; }
.pricing-cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(0, 212, 170, 0.08));
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}
.pricing-cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(108, 99, 255, 0.08), transparent, rgba(0, 212, 170, 0.06), transparent);
  animation: pricingGlow 8s linear infinite;
}
@keyframes pricingGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.pricing-cta-box h3, .pricing-cta-box p, .pricing-cta-box a, .pricing-cta-box .pricing-note { position: relative; z-index: 1; }
.pricing-cta-box h3 { font-size: 1.5rem; margin-bottom: 12px; }
.pricing-cta-box p { color: var(--text-muted); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.pricing-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }

/* ── CONTACT ──────────────────────────────── */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; gap: 40px; } }
.contact-info h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.cd-item { display: flex; align-items: center; gap: 12px; }
.cd-icon { font-size: 1.2rem; color: var(--primary); width: 24px; text-align: center; }
.cd-item a { color: var(--text); text-decoration: none; transition: color 0.3s; }
.cd-item a:hover { color: var(--secondary); }
.contact-social { display: flex; gap: 12px; }
.contact-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid rgba(108, 99, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--text-muted); font-weight: 700; font-size: 0.9rem;
  transition: all 0.3s;
}
.contact-social a:hover { border-color: var(--primary); color: var(--primary); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg-card);
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--primary);
}
.contact-form select { cursor: pointer; }
.contact-form select option { background: var(--bg-dark); }

/* ── FOOTER ───────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(108, 99, 255, 0.08);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-logo-row { display: flex; align-items: center; gap: 10px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }
.footer-brand a { color: var(--secondary); text-decoration: none; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h5 { color: var(--text); font-size: 0.85rem; margin-bottom: 4px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ── SCROLL REVEAL ────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: calc(var(--delay, 0) * 0.12s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 480px) {
  .hero-stats { gap: 24px; }
  .hero-stat { min-width: 120px; }
  .section { padding: 80px 0; }
  .use-cases-grid { grid-template-columns: 1fr; }
}
