/* ==========================================
   TrupeerTechnologies.com - Design System & Styles
   Modern Clean Light SaaS Aesthetic
   ========================================== */

:root {
  /* Color Palette - Clean Light Mode */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-nav: rgba(255, 255, 255, 0.88);
  --bg-accent-soft: rgba(99, 102, 241, 0.06);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-light: #e2e8f0;
  --border-glow: rgba(99, 102, 241, 0.3);

  /* Brand Accents */
  --primary: #4f46e5;       /* Deep Indigo */
  --primary-glow: #6366f1;  /* Soft Indigo */
  --accent-coral: #e11d48;   /* Rose / Coral accent */
  --accent-purple: #9333ea;  /* Rich AI purple */
  --accent-teal: #0d9488;    /* Teal success / feature badge */

  --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #e11d48 100%);
  --gradient-light: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12), transparent 70%);

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

  /* Shadows & Glass */
  --glass-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --glow-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.bg-glow-top {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(147, 51, 234, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.8;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--text-muted);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

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

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.45);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
}

.brand-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 8.5rem 0 5rem;
  text-align: center;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* Interactive Demo Frame */
.demo-container {
  margin: 2rem auto 0;
  max-width: 1040px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.demo-header {
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.mac-dots {
  display: flex;
  gap: 6px;
}
.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.demo-tabs {
  display: flex;
  gap: 0.5rem;
}
.demo-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.demo-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.demo-body {
  padding: 1.5rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* Stepper Bar inside Demo */
.pipeline-stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.step-item.active {
  color: var(--primary);
}

.step-item.completed {
  color: var(--accent-teal);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.step-item.active .step-num {
  background: var(--primary);
  color: #ffffff;
}
.step-item.completed .step-num {
  background: var(--accent-teal);
  color: #ffffff;
}

.demo-stage-view {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  text-align: left;
}

@media (max-width: 860px) {
  .demo-stage-view {
    grid-template-columns: 1fr;
  }
}

.video-mockup-frame {
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-mockup-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-target-box {
  position: absolute;
  border: 2px dashed var(--accent-coral);
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
  border-radius: 6px;
  pointer-events: none;
  animation: pulse-border 2s infinite ease-in-out;
}

@keyframes pulse-border {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 1; }
}

.doc-mockup-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.88rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doc-step-badge {
  display: inline-block;
  background: rgba(147, 51, 234, 0.1);
  color: var(--accent-purple);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.demo-controls-bar {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
}

/* Traction Strip */
.traction-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
  text-align: center;
}

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

.traction-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.traction-item strong {
  color: var(--text-main);
}

/* Problem Stats Strip */
.problem-strip {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 3-Step How It Works */
.how-it-works-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.step-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--glow-shadow);
}

.step-card-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.08);
  font-family: var(--font-mono);
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Static Output Visuals Panel */
.visuals-section {
  padding: 5rem 0;
}

.visuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.visual-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.visual-panel-header {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.visual-panel-header h4 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visual-panel-body {
  padding: 1.5rem;
  flex: 1;
}

/* Taxonomy Chip Grid */
.taxonomy-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.taxonomy-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.taxonomy-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.taxonomy-format-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: #e2e8f0;
  border-radius: 4px;
  color: var(--text-main);
  font-weight: 600;
}

/* Use Cases Cards */
.usecases-section {
  padding: 5rem 0;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-fast);
}

.usecase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: var(--glow-shadow);
}

.usecase-icon {
  width: 42px;
  height: 42px;
  background: rgba(147, 51, 234, 0.1);
  color: var(--accent-purple);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Pricing Grid */
.pricing-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.discount-badge {
  background: rgba(13, 148, 136, 0.15);
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--glow-shadow);
  background: #ffffff;
}

.pricing-card .popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1rem 0;
}
.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.pricing-features li i {
  color: var(--accent-teal);
}

/* Call to Action Section */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(147, 51, 234, 0.06) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.founder-credibility {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Footer & Legal */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

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

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

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

.footer-col h5 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.legal-details-strip {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.legal-links-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-links-bar a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Pipeline 5-Phase Deep Dive */
.pipeline-phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

@media (max-width: 680px) {
  .pipeline-phase-card {
    grid-template-columns: 1fr;
  }
}

.phase-number {
  width: 64px;
  height: 64px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.phase-details h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.phase-io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1px solid var(--border-light);
}

/* Legal Document Layout */
.legal-page-container {
  max-width: 800px;
  margin: 7rem auto 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.legal-page-container h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.legal-page-container h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.85rem;
  color: var(--primary);
}

.legal-page-container p, .legal-page-container ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-page-container ul {
  padding-left: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

/* Mobile & Tablet Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .visuals-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Hide absolute glow assets causing mobile overflow scroll */
  .bg-glow-top {
    display: none !important;
  }

  /* Navbar */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .navbar .container {
    height: auto;
    padding: 0.85rem 1.5rem;
  }
  .nav-cta {
    margin-left: auto;
    gap: 0.75rem;
  }
  @media (max-width: 580px) {
    .nav-cta .btn {
      display: none;
    }
  }

  /* Typography & Spacing */
  .hero-title {
    font-size: 2.2rem;
    padding: 0 0.5rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
    padding: 0 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hero-section {
    padding: 7.5rem 0 3.5rem;
  }
  .problem-strip, .how-it-works-section, .visuals-section, .taxonomy-section, .usecases-section, .pricing-section, .cta-section {
    padding: 3.5rem 0;
  }

  /* Grid Layouts */
  .stats-grid, .steps-grid, .taxonomy-grid, .usecases-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Demo Frame Adjustments */
  .demo-container {
    border-radius: var(--radius-md);
    margin: 1.5rem 1rem 0;
  }
  .demo-body {
    padding: 1rem;
    min-height: auto;
  }
  .demo-stage-view {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .doc-mockup-card {
    min-height: 200px;
  }
  .demo-controls-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }
  .demo-controls-bar div {
    justify-content: center;
  }

  /* 5-Phase Cards IO block stack */
  .phase-io {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* About narrative card pad */
  .legal-page-container {
    padding: 2rem 1.25rem;
    margin: 6rem 1rem 3rem;
  }

  /* Stepper Scrollability */
  .pipeline-stepper {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    gap: 1.25rem;
    padding-bottom: 0.75rem;
  }
  .step-item {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .btn {
    width: 100%;
  }
  .hero-section .btn {
    width: 100%;
  }
  .price-amount {
    font-size: 2.25rem;
  }
  .pricing-card {
    padding: 1.75rem 1.25rem;
  }
}

