/* ═══════════════════════════════════════════
   Global SP Solutions — Shared Stylesheet
   Purple & Gold Theme with Particle/Grid Design
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Mono:wght@300;400&family=Lora:ital,wght@0,500;1,400&display=swap');

:root {
  --bg:       #0c0814;
  --surface:  #110d1e;
  --surface2: #160f24;
  --gridline: rgba(180,130,255,0.08);
  --c1: #9b4dff;
  --c2: #f0c040;
  --c3: #c97dff;
  --c4: #d4a017;
  --border: rgba(155,77,255,0.15);
  --border-gold: rgba(240,192,64,0.2);
  --text: #f5f0ff;
  --muted: rgba(245,240,255,0.42);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
#cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 12px; height: 12px;
  background: var(--c2); border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 36px; height: 36px;
  border: 1px solid rgba(240,192,64,0.45); border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .3s, height .3s, border-color .3s;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor  { width: 20px; height: 20px; background: var(--c3); }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 56px; height: 56px; border-color: var(--c3); }

/* ── CANVAS & OVERLAYS ── */
#particle-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--gridline) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.scanline {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.025) 2px, rgba(0,0,0,0.025) 4px
  );
}
.page { position: relative; z-index: 2; }

/* ── NAV ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(12,8,20,0.85);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
  letter-spacing: .08em; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-dot {
  width: 8px; height: 8px; background: var(--c2); border-radius: 50%;
  box-shadow: 0 0 12px var(--c2); animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--c2);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--c2); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ── PAGE HERO BANNER ── */
.page-hero {
  padding: 80px 64px 60px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 0% 50%, rgba(155,77,255,0.07) 0%, transparent 70%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-eyebrow {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c2); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: fadeUp .7s .1s forwards;
}
.page-eyebrow::before { content:''; width:24px; height:1px; background:var(--c2); }
.page-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(40px, 6vw, 80px); line-height: .95;
  letter-spacing: -.03em; max-width: 800px;
  opacity: 0; animation: fadeUp .8s .25s forwards;
}
.page-hero h1 .grad {
  background: linear-gradient(90deg, var(--c2) 0%, var(--c1) 50%, var(--c3) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradShift 5s linear infinite;
}
.page-hero .lead {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 17px; line-height: 1.75; color: var(--muted);
  max-width: 560px; margin-top: 24px;
  opacity: 0; animation: fadeUp .8s .4s forwards;
}

/* ── SECTION WRAPPER ── */
.section { padding: 80px 64px; }
.section + .section { border-top: 1px solid var(--border); }

.section-label {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c2); display: flex; align-items: center; gap: 12px;
  margin-bottom: 48px;
}
.section-label::before { content:''; width:20px; height:1px; background:var(--c2); }

.section-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -.02em;
  color: var(--text); margin-bottom: 28px;
}
.section-body {
  font-family: 'Lora', serif; font-size: 16px; line-height: 1.8;
  color: var(--muted); max-width: 680px;
}

/* ── GRID CARDS ── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-top: 48px;
}
.card {
  background: var(--bg); padding: 40px 32px;
  position: relative; overflow: hidden;
  transition: background .3s;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, var(--card-glow, var(--c1)) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { background: var(--surface); }
.card:hover::before { opacity: .07; }
.card:nth-child(4n+1) { --card-glow: var(--c1); }
.card:nth-child(4n+2) { --card-glow: var(--c2); }
.card:nth-child(4n+3) { --card-glow: var(--c3); }
.card:nth-child(4n+4) { --card-glow: var(--c4); }

.card-num {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 42px;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 20px;
}
.card-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px;
  color: var(--text); margin-bottom: 12px; letter-spacing: -.01em;
}
.card-body { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ── CHECKLIST ── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 16px;
  font-size: 15px; color: var(--text); line-height: 1.6;
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .3s, background .3s;
}
.checklist li:hover { border-color: var(--border-gold); background: var(--surface2); }
.checklist li::before {
  content: '✦'; color: var(--c2); font-size: 14px; flex-shrink: 0; margin-top: 2px;
}

/* ── BULLET LIST ── */
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.bullet-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: var(--muted); line-height: 1.65;
}
.bullet-list li::before {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--c1); border-radius: 50%; flex-shrink: 0; margin-top: 8px;
}
.bullet-list li strong { color: var(--text); }

/* ── TWO-COLUMN LAYOUT ── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── STATS ROW ── */
.stats-row {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  margin-top: 60px;
}
.stat-item {
  flex: 1; padding: 36px 32px;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background .3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(155,77,255,0.04); }
.stat-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c1), transparent);
  opacity: 0; transition: opacity .3s;
}
.stat-item:hover::before { opacity: 1; }
.stat-num {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 44px; line-height: 1;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: .12em; margin-top: 8px; text-transform: uppercase; }

/* ── PROCESS STEPS ── */
.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 48px; }
.step {
  display: flex; gap: 36px; align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding-left .25s;
}
.step:first-child { border-top: 1px solid var(--border); }
.step:hover { padding-left: 12px; }
.step-num {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 52px; line-height: 1;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  min-width: 60px;
}
.step-content { flex: 1; }
.step-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 20px;
  color: var(--text); margin-bottom: 10px; letter-spacing: -.01em;
}
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  padding: 56px; background: var(--surface);
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.highlight-box::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 10% 50%, rgba(155,77,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 50%, rgba(240,192,64,0.05) 0%, transparent 70%);
}
.highlight-box > * { position: relative; z-index: 1; }
.highlight-box h2 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(26px, 3vw, 42px); letter-spacing: -.02em; margin-bottom: 16px;
}
.highlight-box p { font-family: 'Lora', serif; font-style: italic; font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 580px; margin-bottom: 36px; }

/* ── CONTACT FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 14px 18px; font-family: 'DM Mono', monospace;
  font-size: 13px; outline: none; transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(155,77,255,0.5);
  box-shadow: 0 0 0 3px rgba(155,77,255,0.08);
}
.form-group select option { background: var(--surface2); }
.form-group textarea { min-height: 140px; }

/* ── CONTACT INFO CARDS ── */
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s;
}
.contact-card:hover { border-color: var(--border-gold); }
.contact-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(155,77,255,0.1); border: 1px solid var(--border);
  font-size: 18px; flex-shrink: 0;
}
.contact-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-value { font-size: 14px; color: var(--text); }
.contact-value a { color: var(--c2); text-decoration: none; }
.contact-value a:hover { color: var(--c3); }

/* ── BUTTONS ── */
.btn {
  position: relative; overflow: hidden;
  padding: 16px 40px; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase;
  font-family: 'DM Mono', monospace; font-weight: 400;
  text-decoration: none; cursor: none;
  border: none; outline: none; display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn span { position: relative; z-index: 1; }
.btn::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; width: 0; height: 0;
  border-radius: 50%; z-index: 0;
  transform: translate(-50%, -50%);
  transition: width .6s ease, height .6s ease, opacity .6s ease;
  opacity: 0;
}
.btn:hover::after { width: 500px; height: 500px; opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--c1) 0%, #6a1fc2 50%, var(--c4) 100%);
  color: #fff;
  box-shadow: 0 0 28px rgba(155,77,255,0.4), 0 0 56px rgba(240,192,64,0.12);
}
.btn-primary::after { background: rgba(255,255,255,0.12); }
.btn-primary:hover { box-shadow: 0 0 44px rgba(155,77,255,0.6), 0 0 80px rgba(240,192,64,0.25); }

.btn-secondary {
  background: transparent; color: var(--c2);
  border: 1px solid var(--c2);
  box-shadow: 0 0 18px rgba(240,192,64,0.1), inset 0 0 18px rgba(240,192,64,0.03);
}
.btn-secondary::after { background: rgba(240,192,64,0.1); }
.btn-secondary:hover {
  background: rgba(240,192,64,0.07);
  box-shadow: 0 0 40px rgba(240,192,64,0.35), inset 0 0 40px rgba(240,192,64,0.07);
}

.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid rgba(155,77,255,0.2);
}
.btn-ghost::after { background: rgba(155,77,255,0.07); }
.btn-ghost:hover { color: var(--text); border-color: rgba(155,77,255,0.5); }

/* ── CTA STRIP ── */
.cta-strip {
  margin: 0 64px 80px; padding: 72px 80px;
  background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden; text-align: center;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(155,77,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(240,192,64,0.06) 0%, transparent 70%);
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.5vw, 48px); letter-spacing: -.02em; margin-bottom: 16px;
}
.cta-strip p { color: var(--muted); font-size: 16px; font-family: 'Lora', serif; font-style: italic; max-width: 500px; margin: 0 auto 40px; line-height: 1.7; }
.cta-strip .btn-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 64px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(245,240,255,0.25); letter-spacing: .1em;
}
.footer-brand {
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c1));
  background-size: 300% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradShift 6s linear infinite; font-weight: 600;
  text-decoration: none;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradShift {
  0%   { background-position: 0%; }
  100% { background-position: 200%; }
}

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── HAMBURGER MENU ── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer;
  background: transparent; border: none; padding: 4px;
  position: relative; z-index: 1; /* within nav stacking context normally */
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
.nav-toggle.open {
  /* Escape nav's stacking context by going fixed, above the drawer */
  position: fixed; top: 16px; right: 20px; z-index: 200;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-links.open {
  display: flex !important;
  position: fixed; inset: 0;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 36px; background: rgba(12,8,20,0.97);
  backdrop-filter: blur(16px); z-index: 150; /* beats nav z-index:50 at root level */
  animation: fadeIn .2s ease;
}
.nav-links.open a { font-size: 20px; letter-spacing: .12em; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 900px) {
  nav { padding: 20px 28px; }
  .nav-links { gap: 24px; }
  .page-hero { padding: 60px 28px 48px; }
  .section { padding: 60px 28px; }
  .highlight-box { padding: 36px 28px; }
  .cta-strip { margin: 0 28px 60px; padding: 48px 32px; }
  .stats-row { flex-direction: column; margin: 0 28px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .form-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .step { gap: 20px; }
  .step-num { font-size: 40px; min-width: 44px; }
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 600px) {
  /* Nav */
  nav { padding: 16px 20px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }

  /* Hero */
  .hero-section {
    padding: 100px 20px 60px !important;
    min-height: 100svh !important;
  }
  .hero-logo-wrap { margin-bottom: 32px !important; }
  .hero-btns {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .hero-btns .btn { width: 100%; justify-content: center; text-align: center; }

  /* Page hero */
  .page-hero { padding: 72px 20px 40px; }
  .page-hero h1 { font-size: clamp(32px, 10vw, 52px); }

  /* Sections */
  .section { padding: 48px 20px; }
  .section-title { font-size: clamp(22px, 7vw, 32px); }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 28px 20px; }

  /* Stats */
  .stats-row { margin: 0 20px; }
  .stat-num { font-size: 36px; }
  .stat-item { padding: 24px 20px; }

  /* Highlight box */
  .highlight-box { padding: 28px 20px; }
  .highlight-box h2 { font-size: clamp(20px, 7vw, 30px); }

  /* CTA strip */
  .cta-strip { margin: 0 0 0; padding: 48px 20px; }
  .cta-strip h2 { font-size: clamp(24px, 8vw, 36px); }
  .cta-strip .btn-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-strip .btn-row .btn { justify-content: center; }

  /* Steps */
  .step { gap: 16px; padding: 24px 0; }
  .step-num { font-size: 34px; min-width: 36px; }
  .step-title { font-size: 17px; }

  /* Checklist */
  .checklist li { padding: 16px; font-size: 14px; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { padding: 20px 16px; }

  /* Buttons — full tap targets */
  .btn { padding: 16px 28px; cursor: pointer; }

  /* Footer */
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 28px 20px; }

  /* Disable heavy effects on mobile */
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
  .btn { cursor: pointer; }
}
