/* ==========================================================================
   EntheoryAI — Clinical Oncology SaaS Design System & Stylesheet
   Palette: Clinical Paper Base, Hospital Teal Primary, Sky Blue Data, Amber Conflict Flags
   Typography: Inter (Body), Outfit (Headings), JetBrains Mono (Code & Data)
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-paper: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-dark: #0B132B;
  --bg-dark-surface: #1C2541;

  --brand-teal-900: #00303D;
  --brand-teal-800: #004655;
  --brand-teal-700: #005F73;
  --brand-teal-600: #0A9396;
  --brand-teal-500: #00B4D8;
  --brand-teal-100: #E6F7F8;
  --brand-teal-50: #F0FDFD;

  --sky-blue-600: #0284C7;
  --sky-blue-500: #0EA5E9;
  --sky-blue-100: #E0F2FE;

  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;
  --amber-50: #FFFBEB;

  --red-600: #DC2626;
  --red-100: #FEE2E2;

  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;

  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(10, 147, 150, 0.25);
  --shadow-glow-amber: 0 0 20px rgba(217, 119, 6, 0.25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

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

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

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

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 3.5vw + 0.8rem, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.4rem, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 1.8vw + 0.2rem, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: var(--slate-600); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-teal-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-teal-600);
}

code, pre {
  font-family: var(--font-mono);
}

/* Container & Sections */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  position: relative;
}

.section-sm {
  padding: 2rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem) auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--brand-teal-100);
  color: var(--brand-teal-800);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-600);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.badge-abdm {
  background-color: var(--emerald-100);
  color: var(--emerald-600);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-fhir {
  background-color: var(--sky-blue-100);
  color: var(--sky-blue-600);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge-conflict {
  background-color: var(--amber-100);
  color: var(--amber-600);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-verified {
  background-color: var(--emerald-100);
  color: var(--emerald-600);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green { background-color: var(--emerald-500); }
.status-dot.amber { background-color: var(--amber-500); }
.status-dot.teal { background-color: var(--brand-teal-600); }
.status-dot.pulse {
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(10, 147, 150, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(10, 147, 150, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(10, 147, 150, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-teal-700);
  color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--brand-teal-800);
  color: var(--bg-surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--brand-teal-700);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand-teal-600);
  color: var(--brand-teal-800);
  background-color: var(--brand-teal-50);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--slate-100);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-dark:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--slate-900);
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-teal-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.brand-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  background-color: var(--brand-teal-100);
  color: var(--brand-teal-800);
  font-family: var(--font-mono);
  border-radius: 4px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-teal-700);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--slate-800);
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + clamp(1.5rem, 5vw, 3.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
  background: radial-gradient(circle at 70% 20%, rgba(10, 147, 150, 0.08) 0%, rgba(248, 250, 252, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(2, 132, 199, 0.05) 0%, rgba(248, 250, 252, 0) 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--slate-900);
}

.hero-title span {
  color: var(--brand-teal-700);
  background: linear-gradient(135deg, var(--brand-teal-800), var(--brand-teal-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--slate-600);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
  font-size: 0.875rem;
  color: var(--slate-500);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Interactive Dashboard Demo Component */
.demo-widget-container {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.demo-header {
  background: var(--slate-900);
  color: #fff;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.window-dots {
  display: flex;
  gap: 0.375rem;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.red { background: #FF5F56; }
.window-dot.yellow { background: #FFBD2E; }
.window-dot.green { background: #27C93F; }

.demo-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

.step-tab {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  word-break: break-word;
}

.step-tab.active {
  color: var(--brand-teal-700);
  border-bottom-color: var(--brand-teal-700);
  background: var(--bg-surface);
}

.step-tab.completed {
  color: var(--emerald-600);
}

.demo-body {
  padding: 1.25rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Demo Step Content */
.patient-selector-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.patient-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.patient-name {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 1rem;
}

.abdm-id-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-direction: row;
}

.input-field {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  outline: none;
  width: 100%;
}

.input-field:focus {
  border-color: var(--brand-teal-600);
  box-shadow: 0 0 0 3px rgba(10, 147, 150, 0.15);
}

.fetching-stream-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stream-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stream-item.active {
  border-color: var(--brand-teal-600);
  box-shadow: var(--shadow-sm);
}

.stream-item.done {
  border-color: var(--emerald-500);
  background: var(--emerald-100);
  color: var(--emerald-600);
}

/* Conflict Alert Box */
.conflict-box {
  background: var(--amber-50);
  border: 1px solid var(--amber-600);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.conflict-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber-600);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.conflict-body {
  font-size: 0.8125rem;
  color: var(--slate-700);
}

/* Summary Card Output */
.summary-card {
  background: var(--brand-teal-50);
  border: 1px solid var(--brand-teal-600);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  width: 100%;
}

.summary-headline {
  font-weight: 700;
  color: var(--brand-teal-800);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.summary-entity {
  background: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--slate-200);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-teal-700);
  font-weight: 600;
}

.demo-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Traction & Trust Strip */
.traction-strip {
  background: var(--brand-teal-900);
  color: #FFFFFF;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.traction-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.traction-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #FFFFFF;
  font-weight: 500;
  text-align: center;
}

.traction-item strong {
  color: var(--brand-teal-500);
  font-weight: 700;
}

.traction-icon {
  font-size: 1.25rem;
  display: inline-block;
}

/* Corporate Info Card in Footer */
.footer-corporate-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--slate-300);
  line-height: 1.6;
}

.footer-corporate-info strong {
  color: var(--brand-teal-500);
}

/* Problem Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--brand-teal-700);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Pipeline 3-Step Overview */
.pipeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.pipeline-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
}

.step-num-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--brand-teal-100);
  color: var(--brand-teal-800);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Data Taxonomy Chips Grid */
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.taxonomy-card {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
}

.taxonomy-card:hover {
  border-color: var(--brand-teal-600);
  box-shadow: var(--shadow-md);
}

.taxonomy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.taxonomy-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate-900);
}

.taxonomy-standards {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-500);
}

.taxonomy-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--slate-200);
}

.trait-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: 4px;
}

/* Product Visual Showcase Panels */
.visuals-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.tab-btn.active {
  background: var(--brand-teal-700);
  color: #fff;
  border-color: var(--brand-teal-700);
}

.visual-panel {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
}

.visual-panel.active {
  display: block;
}

.visual-panel-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Code Playground Window */
.code-window {
  background: var(--slate-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.code-header {
  background: var(--slate-800);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.code-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.code-tabs::-webkit-scrollbar {
  height: 4px;
}

.code-tabs::-webkit-scrollbar-thumb {
  background: var(--slate-600);
  border-radius: 2px;
}

.code-tab {
  background: transparent;
  border: none;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.code-tab.active {
  background: var(--brand-teal-700);
  color: #fff;
}

.code-body {
  padding: 1.25rem;
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: auto;
  max-height: 400px;
  background: var(--slate-950);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
}

/* Pricing Cards & ROI Calculator */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card.featured {
  border-color: var(--brand-teal-600);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(1.03);
  z-index: 2;
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-teal-700);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 1rem 0;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--slate-700);
}

.feature-icon {
  color: var(--emerald-600);
  font-weight: bold;
  margin-top: 2px;
}

/* ROI Calculator Box */
.roi-box {
  background: var(--slate-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 4rem;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.slider-group {
  margin-bottom: 1.75rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.range-input {
  width: 100%;
  accent-color: var(--brand-teal-500);
  height: 6px;
  background: var(--slate-700);
  border-radius: 3px;
  outline: none;
}

.roi-results-card {
  background: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
}

.roi-big-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--brand-teal-500);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Founder & About Card */
.founder-card {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.founder-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-teal-600);
  flex-shrink: 0;
}

.advisors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.advisor-card {
  background: var(--bg-surface);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--slate-500);
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-400);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--slate-800);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  left: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  pointer-events: none;
}

@media (min-width: 560px) {
  .toast-container {
    left: auto;
  }
}

.toast {
  background: var(--slate-900);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  animation: slide-in 0.3s ease forwards;
  pointer-events: auto;
}

@keyframes slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: clamp(3rem, 5vw, 4rem) 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--slate-400);
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-col h5 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

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

.footer-links a {
  color: var(--slate-400);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--brand-teal-500);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Media Queries */

/* Tablet landscape breakpoint */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-badges, .hero-ctas, .hero-meta {
    justify-content: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .price-card.featured {
    transform: none;
    grid-column: span 2;
  }
}

/* Tablet portrait breakpoint */
@media (max-width: 920px) {
  .roi-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founder-card {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid,
  .pipeline-steps-grid,
  .advisors-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Breakpoint (Smooth Glassmorphic Mobile Drawer) */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--slate-200);
    gap: 1.5rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-actions {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 1rem);
  }

  .demo-stepper {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .step-tab {
    padding: 0.6rem 0.35rem;
    font-size: 0.725rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .abdm-id-input-group {
    flex-direction: column;
  }

  .abdm-id-input-group button {
    width: 100%;
  }

  .demo-stepper {
    grid-template-columns: 1fr;
  }

  .demo-body {
    min-height: 420px;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}
