/* ================================================================
   ALASTOR GLOBAL — LANDING PAGE STYLES
   Shared across /demo, /audit, /leads, /call
   Layout: Agentic Solutions pattern (2-col desktop, stacked mobile)
   Updated: 2026-03-23
   ================================================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --bg-glass: rgba(255,255,255,0.03);
  --bg-glass-hover: rgba(255,255,255,0.05);
  --border-glass: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.12);
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --gold: #D4AF37;
  --gold-dark: #b8941f;
  --gold-light: #E5C349;
  --gold-glow: rgba(212,175,55,0.06);
  --gold-glow-strong: rgba(212,175,55,0.12);
  --emerald: #34d399;
  --red: #ef4444;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1120px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  background: var(--gold); color: #0a0a0a; padding: 12px 24px; font-weight: 700; z-index: 99999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; width: auto; height: auto; }

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

/* === TOP BAR === */
.top-bar { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 12px 0; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar-brand { font-weight: 700; font-size: 0.875rem; letter-spacing: 0.02em; }
.top-bar-phone { font-size: 0.75rem; color: var(--text-muted); transition: color 0.3s var(--ease); }
.top-bar-phone:hover { color: var(--text); }

/* === HERO === */
.hero { position: relative; overflow: hidden; padding: 40px 0 60px; }

.hero-glow {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 600px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-copy { text-align: center; }

@media (min-width: 1024px) {
  .hero { padding: 80px 0 100px; }
  .hero-grid { grid-template-columns: 55fr 45fr; gap: 64px; }
  .hero-copy { text-align: left; }
}

.hero-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 8px;
}

.hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 16px; }

.hero-sub {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem); color: var(--text-muted);
  max-width: 540px; line-height: 1.7; margin-bottom: 24px;
}

@media (min-width: 1024px) { .hero-sub { margin-left: 0; margin-right: auto; } }
@media (max-width: 1023px) { .hero-sub { margin-left: auto; margin-right: auto; } }

/* Trust badges */
.trust-badges {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 12px 20px;
}
@media (min-width: 1024px) { .trust-badges { justify-content: flex-start; } }

.trust-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; color: var(--text-muted);
}
.trust-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

/* === FORM CARD (glassmorphism) === */
.form-card {
  background: var(--bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 24px 20px;
}
@media (min-width: 768px) { .form-card { padding: 36px 32px; } }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 6px; }

.form-group input,
.form-group select {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 0.9375rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: none;
}
@media (min-width: 768px) { .form-group input, .form-group select { padding: 14px 16px; } }

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

.form-group input::placeholder { color: rgba(255,255,255,0.2); }

.form-group select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-group select option { background: #1a1a1a; color: #fff; }

.form-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.form-error { border-color: rgba(239,68,68,0.5) !important; }

/* Checkbox row */
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; cursor: pointer; }
.checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04);
  accent-color: var(--gold); cursor: pointer;
}
.checkbox-row span { font-size: 0.8125rem; color: var(--text-muted); }
.checkbox-note { display: none; font-size: 0.75rem; color: var(--text-dim); margin: -8px 0 14px 24px; }

/* Gold CTA button */
.btn-gold {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0a; font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: all 0.3s var(--ease); margin-top: 8px;
}
@media (min-width: 768px) { .btn-gold { padding: 16px 32px; font-size: 1.0625rem; } }

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,0.25);
}
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.form-trust { text-align: center; font-size: 0.75rem; color: var(--text-dim); margin-top: 14px; }

/* === TRUST BAR (stats row) === */
.trust-bar {
  background: var(--bg-surface);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 40px 0;
}
.trust-bar .container { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; text-align: center; }
@media (min-width: 768px) { .trust-bar .container { grid-template-columns: repeat(4,1fr); } }

.stat-item { padding: 8px; }
.stat-value {
  font-family: var(--font-mono); font-size: clamp(1.5rem,4vw,2.5rem);
  font-weight: 800; color: var(--text); margin-bottom: 4px;
}
.stat-label { font-size: 0.8125rem; color: var(--text-muted); }

/* === PAIN SECTION === */
.pain-section { padding: 80px 0; }
@media (max-width: 767px) { .pain-section { padding: 60px 0; } }

.section-label {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--gold); margin-bottom: 12px; text-align: center;
}

.pain-section h2 { font-size: clamp(1.5rem,4vw,2.25rem); text-align: center; margin-bottom: 40px; }

.pain-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 960px; margin: 0 auto; }
@media (min-width: 768px) { .pain-grid { grid-template-columns: repeat(3,1fr); gap: 24px; } }

.pain-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 28px 24px; text-align: center;
}
.pain-stat { font-family: var(--font-mono); font-size: 2rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.pain-text { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* === TESTIMONIALS === */
.testimonials { padding: 80px 0; background: var(--bg-surface); }
@media (max-width: 767px) { .testimonials { padding: 60px 0; } }
.testimonials h2 { text-align: center; font-size: clamp(1.5rem,4vw,2rem); margin-bottom: 40px; }

.testimonial-top { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
@media (min-width: 768px) { .testimonial-top { grid-template-columns: repeat(2,1fr); } }

.testimonial-bottom { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .testimonial-bottom { grid-template-columns: repeat(3,1fr); } }

.testimonial-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 24px;
}
.testimonial-quote { font-size: 0.875rem; line-height: 1.7; color: var(--text); margin-bottom: 16px; }

.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.t-avatar--gold { background: rgba(212,175,55,0.15); color: var(--gold); }
.t-avatar--emerald { background: rgba(52,211,153,0.15); color: var(--emerald); }
.t-avatar--violet { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.t-avatar--amber { background: rgba(245,158,11,0.15); color: #f59e0b; }
.t-avatar--blue { background: rgba(59,130,246,0.15); color: #3b82f6; }

.t-name { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.t-meta { font-size: 0.6875rem; color: var(--text-dim); }

/* === FINAL CTA === */
.final-cta { padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
@media (max-width: 767px) { .final-cta { padding: 70px 0; } }

.final-cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta .container { max-width: 640px; position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(1.5rem,4vw,2.5rem); margin-bottom: 32px; }

/* === PHONE CTA (/call page) === */
.phone-hero { text-align: center; padding: 100px 0 60px; position: relative; overflow: hidden; }
@media (max-width: 767px) { .phone-hero { padding: 60px 0 40px; } }

.phone-hero-glow {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold-glow-strong) 0%, transparent 70%);
  pointer-events: none;
}

.phone-number {
  font-family: var(--font-mono); font-size: clamp(2.25rem,10vw,4rem); font-weight: 800;
  color: var(--gold); text-decoration: none; display: inline-block;
  transition: all 0.3s var(--ease); margin: 32px 0;
}
.phone-number:hover { text-shadow: 0 0 40px rgba(212,175,55,0.4); transform: scale(1.02); }

.phone-sub { font-size: 1rem; color: var(--text-muted); margin-top: 8px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }

.experience-list { max-width: 480px; margin: 48px auto; text-align: left; }
.experience-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.experience-item:last-child { border-bottom: none; }
.experience-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.experience-item span { font-size: 0.9375rem; color: var(--text-muted); }

/* === FOOTER === */
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 28px 0; text-align: center; }
.footer p { font-size: 0.8125rem; color: var(--text-dim); }
.footer-links { margin-top: 8px; font-size: 0.75rem; }
.footer-links a { color: var(--text-dim); transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--text); }

/* === SUCCESS STATE === */
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.visible { display: block; animation: fadeUp 0.5s ease; }

.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(52,211,153,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.success-icon svg { width: 28px; height: 28px; }

.form-success h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 8px; }
.form-success p { font-size: 0.875rem; color: var(--text-muted); }

.success-steps { text-align: left; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.success-step { font-size: 0.8125rem; color: var(--text-muted); padding: 4px 0; }
.success-step strong { color: var(--emerald); }

.upsell-box {
  display: none; margin-top: 16px; padding: 14px;
  background: var(--gold-glow-strong); border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius); font-size: 0.8125rem; color: var(--text-muted); text-align: left;
}
.upsell-box.visible { display: block; }

/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.spinner {
  display: none; width: 20px; height: 20px;
  border: 2px solid rgba(10,10,10,0.3); border-top-color: #0a0a0a;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Urgency nudge */
.urgency-nudge {
  text-align: center; padding: 8px 12px; border-radius: 8px; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(146,112,10,0.12), rgba(184,134,11,0.12));
}
.urgency-nudge p { font-size: 0.75rem; font-weight: 500; color: var(--gold); margin: 0; }

/* === UTILITIES === */
.text-gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
