/* ============================================================
   GrowthOps AI — Landing Page Custom Styles
   Complements TailwindCSS CDN
   ============================================================ */

/* ── Base & Variables ── */
:root {
  --brand-primary: #6366f1;
  --brand-secondary: #8b5cf6;
  --brand-accent: #06b6d4;
  --brand-green: #10b981;
  --brand-yellow: #f59e0b;
  --brand-red: #ef4444;
  --bg-base: #0a0b0f;
  --bg-surface: #111218;
  --bg-card: #16181f;
  --bg-card-hover: #1c1e28;
  --border-subtle: rgba(99, 102, 241, 0.15);
  --border-card: rgba(255, 255, 255, 0.06);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --glow-primary: rgba(99, 102, 241, 0.25);
  --glow-accent: rgba(6, 182, 212, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #2d2f3e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* ── Navigation ── */
.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 11, 15, 0.85);
  border-bottom: 1px solid var(--border-card);
}

.nav-logo-gradient {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero ── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    var(--bg-base);
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 60%, var(--brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* ── AI Dashboard Mock ── */
.dashboard-mock {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.1),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(99,102,241,0.08);
}

.dashboard-titlebar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.titlebar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.titlebar-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 4px;
}

.alert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.2s;
}

.alert-card:hover {
  background: var(--bg-card-hover);
}

.alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.alert-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alert-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.alert-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* Alert color variants */
.alert-red    { border-left: 3px solid var(--brand-red); }
.alert-yellow { border-left: 3px solid var(--brand-yellow); }
.alert-purple { border-left: 3px solid var(--brand-primary); }
.alert-green  { border-left: 3px solid var(--brand-green); }

.icon-red    { background: rgba(239,68,68,0.15); color: var(--brand-red); }
.icon-yellow { background: rgba(245,158,11,0.15); color: var(--brand-yellow); }
.icon-purple { background: rgba(99,102,241,0.15); color: var(--brand-primary); }
.icon-green  { background: rgba(16,185,129,0.15); color: var(--brand-green); }

.badge-red    { background: rgba(239,68,68,0.15);  color: var(--brand-red); }
.badge-yellow { background: rgba(245,158,11,0.15); color: var(--brand-yellow); }
.badge-purple { background: rgba(99,102,241,0.15); color: var(--brand-primary); }
.badge-green  { background: rgba(16,185,129,0.15); color: var(--brand-green); }

/* Pulse animation on alert icons */
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: pulse-anim 2s ease-in-out infinite;
}

.pulse-red    { background: var(--brand-red);    box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
.pulse-yellow { background: var(--brand-yellow); box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
.pulse-purple { background: var(--brand-primary);box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
.pulse-green  { background: var(--brand-green);  box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }

@keyframes pulse-anim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ── Section Titles ── */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 640px;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(99,102,241,0.1);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* ── Problem Section ── */
.problem-bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(239,68,68,0.06) 0%, transparent 60%),
    var(--bg-surface);
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tool-chip:hover {
  border-color: rgba(99,102,241,0.4);
  color: var(--text-primary);
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--brand-red);
  border-radius: 10px;
}

/* ── Meet GrowthOps ── */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.feature-pill .check {
  width: 16px;
  height: 16px;
  background: var(--brand-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: white;
  flex-shrink: 0;
}

/* ── How It Works ── */
.steps-bg {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99,102,241,0.06) 0%, transparent 70%),
    var(--bg-surface);
}

.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(99,102,241,0.4), rgba(99,102,241,0.1));
  margin: 0 auto;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

/* ── Architecture ── */
.arch-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.arch-block-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.arch-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 3px;
  transition: all 0.2s;
}

.arch-tag:hover {
  border-color: rgba(99,102,241,0.3);
  color: var(--text-primary);
}

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
}

.arch-arrow-line {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(99,102,241,0.5), rgba(99,102,241,0.1));
}

.arch-arrow-head {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(99,102,241,0.5);
}

.arch-block-primary {
  border-color: rgba(99,102,241,0.3);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
}

.arch-block-accent {
  border-color: rgba(6,182,212,0.3);
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(99,102,241,0.05));
}

/* ── Impact Metrics ── */
.impact-bg {
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, rgba(16,185,129,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 50%, rgba(99,102,241,0.07) 0%, transparent 50%),
    var(--bg-base);
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(99,102,241,0.04));
  opacity: 0;
  transition: opacity 0.3s;
}

.metric-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.metric-card:hover::before { opacity: 1; }

.metric-number {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 8px;
}

.metric-sublabel {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Final CTA ── */
.cta-bg {
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(99,102,241,0.15) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
}

.cta-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 20px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer ── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-card);
}

.footer-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider ── */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: 2px;
  margin: 0 auto;
}

/* ── Floating AI badge ── */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.ai-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Capability Cards ── */
.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.capability-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.capability-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.capability-card:hover::after { opacity: 1; }

/* ── Stat row in hero ── */
.stat-item {
  text-align: center;
  padding: 0 16px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border-card);
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .cta-card { padding: 40px 24px; }
  .hero-headline { font-size: 2.2rem; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--border-card); }
}

/* ── Animations ── */
@keyframes float-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: float-up 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
.fade-in-delay-5 { animation-delay: 0.5s; }

/* Intersection observer driven reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Glow border ── */
.glow-border {
  box-shadow: 0 0 0 1px rgba(99,102,241,0.3), 0 0 20px rgba(99,102,241,0.1);
}

/* ── Noise texture overlay (subtle) ── */
.noise-overlay {
  position: relative;
}
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}
