/* ==========================================================================
   CloudWapAI Design System - Premium Light Enterprise Theme
   Domain: cloudwapai.com
   ========================================================================== */

:root {
  /* Color Palette - Premium Light Theme */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fbfcfe;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #3b82f6;

  /* Typography */
  --text-primary: #0f172a;     /* Slate 900 */
  --text-secondary: #475569;   /* Slate 600 */
  --text-muted: #64748b;       /* Slate 500 */
  --text-faint: #94a3b8;       /* Slate 400 */
  --text-inverse: #ffffff;

  /* Accents & Brand Colors */
  --brand-primary: #2563eb;    /* Royal Electric Blue */
  --brand-primary-hover: #1d4ed8;
  --brand-primary-light: #eff6ff;
  --brand-indigo: #4f46e5;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --brand-gradient-subtle: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);

  /* AI Performance Colors */
  --color-win: #059669;        /* Emerald Green for winning prompts */
  --color-win-bg: #ecfdf5;
  --color-win-border: #a7f3d0;
  --color-loss: #dc2626;       /* Rose Red for lost prompts */
  --color-loss-bg: #fef2f2;
  --color-loss-border: #fecaca;
  --color-warn: #d97706;       /* Amber for at-risk prompts */
  --color-warn-bg: #fffbeb;
  --color-warn-border: #fde68a;

  /* AWS Brand Accent for Cloud Infrastructure Trust */
  --aws-orange: #ff9900;
  --aws-navy: #232f3e;
  --aws-tint: #fff8eb;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px -5px rgba(37, 99, 235, 0.15);
  --shadow-win-glow: 0 0 25px -5px rgba(5, 150, 105, 0.2);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, Monaco, monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Container */
  --max-width: 1240px;
  --header-height: 72px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Typography Utilities */
.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.kicker-aws {
  color: #c25e00;
  background: #fff6eb;
  border-color: rgba(255, 153, 0, 0.3);
}

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

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  transition: all 0.2s ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-icon-box {
  transform: scale(1.05);
}

.brand-logo-text span {
  color: var(--brand-primary);
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  padding: 6px 2px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.nav-badge-new {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  vertical-align: middle;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.25;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--text-inverse);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25), 0 8px 16px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 72px 0 56px;
  background: radial-gradient(1200px 800px at 50% -10%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 70%),
              radial-gradient(800px 500px at 80% 20%, rgba(16, 185, 129, 0.05) 0%, rgba(248, 250, 252, 0) 60%),
              var(--bg-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

/* Light Mode Radar Ambient Graphic */
.radar-bg-container {
  position: absolute;
  top: 10px;
  right: -80px;
  width: 580px;
  height: 580px;
  pointer-events: none;
  opacity: 0.75;
  z-index: 1;
}

@media (max-width: 992px) {
  .radar-bg-container {
    opacity: 0.3;
    right: -200px;
    top: 50px;
  }
}

.radar-sweep-disk {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle, #000 98%, transparent 100%);
  mask-image: radial-gradient(circle, #000 98%, transparent 100%);
}

.radar-sweep-beam {
  position: absolute;
  inset: 0;
  animation: radarSpin 4s linear infinite;
  background: conic-gradient(from 0deg, rgba(37, 99, 235, 0) 0deg, rgba(37, 99, 235, 0) 280deg, rgba(37, 99, 235, 0.15) 340deg, rgba(37, 99, 235, 0.35) 360deg);
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 20px 0;
}

.hero-title .highlight-win {
  color: var(--color-win);
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight-loss {
  color: var(--color-loss);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Domain Search Bar */
.scan-input-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 680px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scan-input-card:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), var(--shadow-xl);
}

.scan-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
}

.scan-input-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.scan-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.125rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  outline: none;
}

.scan-input::placeholder {
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.preset-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.preset-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-pill-btn:hover {
  background: var(--brand-primary-light);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--brand-primary);
}

/* Trust Stats Bar */
.trust-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.trust-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.trust-stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.trust-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* AWS Startup Banner */
.aws-partner-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(255, 153, 0, 0.35);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-top: 36px;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.08);
}

.aws-partner-banner span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}

.aws-partner-banner a {
  color: #ea580c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Multi-Engine Support Matrix
   ========================================================================== */
.engines-bar-section {
  padding: 32px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.engines-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.engines-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.engine-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.engine-item:hover {
  background: var(--bg-card);
  border-color: var(--brand-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Interactive Live Scanner / Dashboard Modal & Widget
   ========================================================================== */
.live-demo-section {
  padding: 80px 0;
  background: var(--bg-subtle);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 12px 0 16px;
}

.section-lede {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dashboard Mockup Frame */
.dashboard-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.dashboard-header-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.dash-dot-red { background: #f87171; }
.dash-dot-yellow { background: #fbbf24; }
.dash-dot-green { background: #34d399; }

.dash-target-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-target-brand .live-pulse {
  width: 8px;
  height: 8px;
  background: var(--color-win);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.dash-quick-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-filter-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dash-filter-btn.active, .dash-filter-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
}

/* Dashboard Body Grid */
.dashboard-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .dashboard-body {
    grid-template-columns: 1fr;
  }
}

/* Left Sidebar - Scorecards & Metrics */
.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.score-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.score-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.score-card-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-win);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.score-card-value span {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
}

.score-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.score-trend-up {
  color: var(--color-win);
  font-weight: 600;
}

.score-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}

.score-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 999px;
  transition: width 0.8s ease;
}

/* Share of voice breakdown */
.sov-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.sov-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.sov-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.sov-brand-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

.badge-brand { background: #dbeafe; color: #1d4ed8; }
.badge-comp1 { background: #fee2e2; color: #b91c1c; }
.badge-comp2 { background: #fef3c7; color: #b45309; }

/* Right Main Panel - Tabs & Visualizers */
.dash-main-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  overflow-x: auto;
}

.dash-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dash-tab-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.dash-tab-btn.active {
  background: var(--brand-primary-light);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--brand-primary);
}

/* Prompt Matrix Table */
.matrix-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

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

.matrix-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.matrix-table tr:hover td {
  background: #fbfcfe;
}

.prompt-text {
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
}

.rank-chip-win {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.rank-chip-loss {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.rank-chip-na {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Model Answer Viewer Tab */
.model-answer-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.model-selector-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.model-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.model-btn.active {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.answer-bubble {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.answer-bubble strong.win {
  color: var(--color-win);
  font-weight: 700;
}

.answer-bubble strong.loss {
  color: var(--color-loss);
  font-weight: 700;
}

.answer-citations {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.citation-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.citation-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Playbook Interactive Checklist */
.playbook-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.playbook-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playbook-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  cursor: pointer;
}

.playbook-item:hover {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.playbook-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  display: grid;
  place-items: center;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.playbook-item.completed .playbook-checkbox {
  background: var(--color-win);
  border-color: var(--color-win);
  color: white;
}

.playbook-item.completed .playbook-item-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.playbook-item-content {
  flex: 1;
}

.playbook-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.playbook-item-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.playbook-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.playbook-tag {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  color: var(--text-secondary);
}

.playbook-tag-high {
  background: #fee2e2;
  color: #b91c1c;
}

/* ==========================================================================
   Feature Deep-Dive Grid (Why Teams Switch)
   ========================================================================== */
.feature-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.feature-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-grid-2col:last-child {
  margin-bottom: 0;
}

@media (max-width: 868px) {
  .feature-grid-2col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.feature-visual-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.feature-text-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 12px 0 16px;
}

.feature-text-content p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   AWS Cloud-Native Architecture Showcase
   (Critical for AWS Activate Credit Evaluators)
   ========================================================================== */
.aws-architecture-section {
  padding: 96px 0;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 50%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.aws-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff8eb;
  border: 1px solid rgba(255, 153, 0, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 16px;
}

.aws-diagram-card {
  background: #ffffff;
  border: 1px solid rgba(255, 153, 0, 0.25);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 12px 30px -5px rgba(255, 153, 0, 0.08), var(--shadow-lg);
  margin-top: 40px;
}

.aws-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.aws-service-card {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s ease;
}

.aws-service-card:hover {
  background: #ffffff;
  border-color: #f59e0b;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.aws-service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #232f3e;
  color: #ff9900;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  margin-bottom: 14px;
}

.aws-service-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.aws-service-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Architecture Flow Steps */
.arch-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.arch-flow-node {
  background: #ffffff;
  border: 1.5px dashed var(--border-hover);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch-arrow {
  color: var(--brand-primary);
  font-weight: 800;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  padding: 96px 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-switch-wrapper {
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 3px;
  display: inline-flex;
  cursor: pointer;
}

.toggle-btn {
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.toggle-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.save-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.pricing-card.popular {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gradient);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 42px;
  margin-bottom: 24px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.plan-period {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.plan-feature-item.highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.plan-tick {
  color: var(--color-win);
  font-weight: 800;
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-section {
  padding: 96px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: grid;
  place-items: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

.faq-answer {
  padding: 0 24px 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   High-Conversion Bottom CTA Band
   ========================================================================== */
.cta-band-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-band-desc {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}

.cta-input-row {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 6px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.cta-domain-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: white;
  padding: 0 12px;
}

.cta-domain-input::placeholder {
  color: #94a3b8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-col p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: var(--brand-primary);
}

.footer-compliance-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-compliance-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.compliance-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.6875rem;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Interactive Scan Result Modal & Loading Animation
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

/* Scanning Progress Animation */
.scan-stepper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.scan-step-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.scan-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.scan-step-row.active .scan-step-dot {
  border-color: var(--brand-primary);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  animation: pulseDot 1.2s infinite;
}

.scan-step-row.done .scan-step-dot {
  border-color: var(--color-win);
  background: var(--color-win);
  color: white;
}

/* Mobile Navigation Drawer */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: white;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.mobile-nav-links a {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}
