/* ==========================================================================
   SMS Campaign Manager — Design System & Stylesheet
   Evostackr Product Showcase
   ========================================================================== */

:root {
  /* Brand Color Palette (Synchronized with Android Jetpack Compose App) */
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-primary-glow: rgba(37, 99, 235, 0.45);
  --brand-secondary: #3b82f6;
  --brand-accent: #6366f1;
  
  --brand-success: #22c55e;
  --brand-success-glow: rgba(34, 197, 94, 0.35);
  --brand-warning: #f59e0b;
  --brand-error: #ef4444;
  --brand-cyan: #06b6d4;

  /* Surfaces & Backgrounds */
  --bg-deep: #07090e;
  --bg-dark: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #162033;
  --bg-glass: rgba(17, 24, 39, 0.72);
  --bg-glass-card: rgba(22, 32, 51, 0.65);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(59, 130, 246, 0.6);
  --border-glow: rgba(37, 99, 235, 0.4);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #07090e;

  /* Layout & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #2563eb, transparent 70%);
  top: -100px;
  left: 20%;
  animation: floatOrb 16s ease-in-out infinite alternate;
}

.bg-glow-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
  top: 35%;
  right: -100px;
  animation: floatOrb 20s ease-in-out infinite alternate-reverse;
}

.bg-glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #059669, transparent 70%);
  bottom: 5%;
  left: 10%;
  opacity: 0.25;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(40px) scale(1.08); }
  100% { transform: translateY(-30px) scale(0.95); }
}

/* Utility Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--brand-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(17, 24, 39, 0.6);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: #60a5fa;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-label-sm {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-label-lg {
  font-size: 1.02rem;
  font-weight: 700;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
}

.pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-success);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--brand-success); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pill-tag {
  background: rgba(37, 99, 235, 0.35);
  color: #93c5fd;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-description {
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-description strong {
  color: #f1f5f9;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-subtle);
}

/* Device Preview Frame in Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.device-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.device-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.4), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.device-frame {
  position: relative;
  z-index: 1;
  background: #0f172a;
  border: 4px solid #1e293b;
  border-radius: 36px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 12px;
  overflow: hidden;
}

.device-top-speaker {
  width: 70px;
  height: 4px;
  background: #334155;
  border-radius: 3px;
  margin: 6px auto 14px;
}

.device-screen {
  background: #0b0f19;
  border-radius: 26px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.mock-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 14px;
  padding: 0 4px;
}

.mock-badge-sim {
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}

.mock-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mock-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.mock-app-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.mock-app-sub {
  font-size: 0.72rem;
  color: #64748b;
}

.status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.mock-card {
  background: rgba(22, 32, 51, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.mock-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.mock-pct {
  color: #38bdf8;
}

.mock-bar-bg {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 4px;
}

.mock-metrics-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-val {
  font-weight: 700;
}

.text-green { color: #4ade80 !important; }
.text-blue { color: #60a5fa !important; }
.text-red { color: #f87171 !important; }
.text-purple { color: #c084fc !important; }

.mock-msg-tag {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
}

.mock-msg-bubble {
  background: rgba(37, 99, 235, 0.15);
  border-left: 3px solid #3b82f6;
  border-radius: 4px 8px 8px 4px;
  padding: 8px 10px;
  font-size: 0.75rem;
  color: #f1f5f9;
  line-height: 1.45;
  margin-bottom: 6px;
}

.mock-msg-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #64748b;
}

.mock-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.mock-stat-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 10px;
}

.stat-small-label {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
}

.stat-small-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.mock-floating-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  color: #e2e8f0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

/* Comparison Section */
.comparison-banner-section {
  padding: 40px 0 60px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
}

.comparison-bad {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(17, 24, 39, 0.7) 100%);
}

.comparison-good {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, rgba(17, 24, 39, 0.7) 100%);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.06);
}

.comparison-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-badge.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comparison-badge.green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.comparison-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-list li {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.comp-list strong {
  color: #ffffff;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(37, 99, 235, 0.15);
}

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

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-blue { background: rgba(37, 99, 235, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.icon-green { background: rgba(34, 197, 94, 0.18); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.icon-purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.icon-amber { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-cyan { background: rgba(6, 182, 212, 0.18); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.icon-red { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-desc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #93c5fd;
}

.feature-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Interactive Simulator Section
   ========================================================================== */
.simulator-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13, 18, 31, 0.7) 50%, transparent 100%);
}

.simulator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(37, 99, 235, 0.1);
  position: relative;
}

.sim-control-panel {
  display: flex;
  flex-direction: column;
}

.sim-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.sim-tab-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.sim-tab-content {
  display: none;
}

.sim-tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.control-group {
  margin-bottom: 20px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.label-helper {
  font-size: 0.75rem;
  color: #60a5fa;
  font-weight: 500;
}

.badge-count {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-radius: var(--radius-full);
}

.sim-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sim-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: all var(--transition-fast);
}

.sim-chip.active {
  background: rgba(37, 99, 235, 0.15);
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

.sim-chip-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.sim-chip-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.form-select, .form-textarea {
  width: 100%;
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  padding: 12px 14px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select:focus, .form-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.variable-pills {
  display: flex;
  gap: 6px;
}

.var-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.var-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Calculator Bar */
.calculator-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 10px;
}

.calc-stat {
  display: flex;
  flex-direction: column;
}

.calc-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.calc-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

/* Range Slider */
.slider-val-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.form-range {
  width: 100%;
  accent-color: #2563eb;
  cursor: pointer;
  height: 6px;
  border-radius: 3px;
  background: #1e293b;
}

.range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 6px;
}

.action-buttons-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* CSV Cleanser Demo Tab */
.cleaner-intro {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.cleaner-demo-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
}

.cleaner-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.csv-sample-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.csv-row-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.csv-row-item.invalid {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

.csv-row-item.valid {
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
}

.cleaner-arrow {
  font-size: 1.3rem;
  color: #60a5fa;
  font-weight: 800;
}

/* Analytics Tab */
.analytics-preview-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
}

.analytics-meter-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.delivery-rate-dial {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(#22c55e 0% 98.8%, #1e293b 98.8% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.dial-inner {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dial-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.dial-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.analytics-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.analytics-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.metric-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bg-green { background: #22c55e; }
.bg-blue { background: #3b82f6; }
.bg-red { background: #ef4444; }

.metric-name {
  color: #94a3b8;
  flex-grow: 1;
}

.metric-count {
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

/* Right Panel: Simulated Live Phone */
.sim-phone-display {
  display: flex;
  justify-content: center;
}

.mockup-frame {
  width: 100%;
  max-width: 360px;
  background: #07090e;
  border: 3px solid #222d42;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 10px;
  position: relative;
}

.mockup-notch {
  width: 50px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  margin: 4px auto 10px;
}

.mockup-screen {
  background: #0b0f19;
  border-radius: 24px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 12px;
  padding: 0 4px;
}

.phone-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.app-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-bar-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.app-bar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.app-bar-subtitle {
  font-size: 0.68rem;
  color: #94a3b8;
}

.live-dot-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.pulsing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseDot 1.2s infinite;
}

.live-text {
  font-size: 0.62rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.05em;
}

.phone-progress-box {
  background: rgba(22, 32, 51, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.progress-pct {
  color: #38bdf8;
  font-family: var(--font-mono);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
}

.phone-msg-preview-card {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.preview-recipient {
  color: #60a5fa;
  font-weight: 700;
}

.preview-body {
  font-size: 0.74rem;
  color: #f1f5f9;
  line-height: 1.4;
}

.phone-log-container {
  background: #06090e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px;
  height: 155px;
  display: flex;
  flex-direction: column;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-badge {
  color: #38bdf8;
  font-family: var(--font-mono);
}

.log-terminal {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding-right: 4px;
}

.log-terminal::-webkit-scrollbar {
  width: 4px;
}

.log-terminal::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 2px;
}

.log-entry {
  line-height: 1.35;
  word-break: break-all;
}

.log-system { color: #64748b; }
.log-success { color: #4ade80; }
.log-info { color: #60a5fa; }
.log-warn { color: #fbbf24; }

/* ==========================================================================
   Architecture & Tech Stack
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.tech-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(14px);
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tech-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #60a5fa;
  letter-spacing: 0.05em;
}

.tech-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.tech-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.tech-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Specs Table */
.specs-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.specs-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 24px;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.spec-highlight {
  font-weight: 700;
  color: #38bdf8;
}

/* Permissions Matrix */
.permissions-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.permissions-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 24px;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.permissions-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.permissions-table code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-status.req {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-status.opt {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Download Section */
.download-card {
  position: relative;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(37, 99, 235, 0.2);
}

.download-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.6), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.download-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
  margin-bottom: 24px;
}

.download-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.download-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 36px;
}

.download-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  border: 1px solid #3b82f6;
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.step-text {
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
}

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.open {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--bg-surface-elevated);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 1.4rem;
  color: #60a5fa;
  font-weight: 300;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #040609;
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand .brand-logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: #64748b;
  max-width: 400px;
  line-height: 1.6;
}

.footer-nav-groups {
  display: flex;
  gap: 60px;
}

.footer-group h5 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.footer-group a {
  display: block;
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-group a:hover {
  color: #38bdf8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: #475569;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta-group, .hero-stats-row {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simulator-wrapper {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 64px;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .calculator-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}
