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

:root {
  /* Color Palette - Premium Cyber Green Glassmorphism */
  --bg-main: #020703;
  --bg-gradient: linear-gradient(135deg, #020703 0%, #051609 50%, #010502 100%);
  --green-glow: rgba(0, 255, 102, 0.08);
  --cyan-glow: rgba(0, 240, 255, 0.06);
  
  --primary: #00ff66;         /* Neon green primary */
  --primary-bright: #39ff14;  /* Glowing lime accent */
  --accent: #00b347;          /* Forest emerald green */
  --accent-glowing: #00e5ff;   /* Cyber cyan */
  --text-main: #f0fbf2;       /* Crisp ice green white */
  --text-muted: #a3c2ac;      /* Soft sage gray */
  --text-dim: #63856e;        /* Dark forest gray */
  
  --border-glass: rgba(0, 255, 102, 0.1);
  --border-glass-hover: rgba(0, 255, 102, 0.25);
  --bg-glass: rgba(5, 18, 9, 0.6);
  --bg-glass-card: rgba(8, 25, 12, 0.7);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.7);
  
  /* Fonts */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Cybernetic Grid Overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 102, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(150px);
  opacity: 0.55;
  animation: pulse-ambient 12s infinite alternate ease-in-out;
}

.glow-orb-1 {
  top: -10vw;
  right: -10vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
}

.glow-orb-2 {
  bottom: 10vw;
  left: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
}

@keyframes pulse-ambient {
  0% { transform: scale(1) translate(0, 0); opacity: 0.45; }
  100% { transform: scale(1.15) translate(30px, -30px); opacity: 0.65; }
}

/* Typography & Layout Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 8rem 0;
  border-bottom: 1px solid rgba(0, 255, 102, 0.03);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(2, 7, 3, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 68px;
  width: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Glassmorphism Panel styles */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 40px 0 rgba(0, 255, 102, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #020703;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 255, 102, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 102, 0.4);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(0, 255, 102, 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 12rem;
  padding-bottom: 8rem;
  background: radial-gradient(ellipse at top, rgba(0, 255, 102, 0.08) 0%, transparent 60%);
  text-align: center;
  position: relative;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 102, 0.06);
  border: 1px solid rgba(0, 255, 102, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-tagline-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-glowing);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero h1 {
  font-size: 4rem;
  max-width: 950px;
  margin: 0 auto 1.5rem;
  line-height: 1.1;
  background: linear-gradient(to bottom right, #ffffff 40%, var(--primary-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 750px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px 4px rgba(0, 240, 255, 0.4); }
  100% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* Metrics Section (Social Proof) */
.metrics {
  background: rgba(2, 7, 3, 0.6);
  position: relative;
  z-index: 2;
}

.section-label {
  text-align: center;
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-header);
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
  color: var(--text-muted);
}

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

.metric-card {
  text-align: center;
  border: 1px solid rgba(0, 255, 102, 0.05);
}

.metric-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-header);
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

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

.metric-source {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* PAS Structure Section (Agitation of Problems) */
.problems {
  background: radial-gradient(ellipse at bottom, rgba(0, 255, 102, 0.05) 0%, transparent 60%);
}

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

.problem-card {
  position: relative;
  border-color: rgba(239, 68, 68, 0.1);
}

.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 12px 40px 0 rgba(239, 68, 68, 0.06);
}

.problem-icon {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

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

.problem-agitation {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.problem-solution-preview {
  font-size: 0.9rem;
  color: var(--primary);
  border-top: 1px solid rgba(0, 255, 102, 0.05);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* INTERACTIVE DIAGNOSTICS DASHBOARD CSS */
.diagnostics-section {
  background: rgba(2, 7, 3, 0.4);
}

.diagnostics-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.diagnostics-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0, 255, 102, 0.06);
  padding-bottom: 1.5rem;
}

.diagnostics-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.diagnostics-tab-btn:hover {
  background: rgba(0, 255, 102, 0.05);
  color: var(--text-main);
  border-color: rgba(0, 255, 102, 0.3);
}

.diagnostics-tab-btn.active {
  background: rgba(0, 255, 102, 0.1);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.diagnostics-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.failures-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Scrollbar for list wrapper */
.failures-list-wrapper::-webkit-scrollbar {
  width: 6px;
}
.failures-list-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
}
.failures-list-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 102, 0.15);
  border-radius: 10px;
}
.failures-list-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 102, 0.3);
}

.scenario-card {
  padding: 1.25rem;
  cursor: pointer;
  background: rgba(8, 25, 12, 0.4);
  border: 1px solid rgba(0, 255, 102, 0.06);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.scenario-card:hover {
  background: rgba(8, 25, 12, 0.7);
  border-color: rgba(0, 255, 102, 0.2);
  transform: translateX(4px);
}

.scenario-card.active {
  background: rgba(0, 255, 102, 0.06);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 255, 102, 0.1);
}

.scenario-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
}

.scenario-card-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.scenario-card.active .scenario-card-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.detail-viewer-panel {
  position: sticky;
  top: 110px;
  min-height: 480px;
  border-color: rgba(0, 255, 102, 0.15);
  background: rgba(5, 20, 10, 0.85);
  display: flex;
  flex-direction: column;
}

.viewer-placeholder {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.viewer-placeholder-icon {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  animation: pulse-placeholder 2s infinite alternate ease-in-out;
}

@keyframes pulse-placeholder {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.08); opacity: 0.8; }
}

.viewer-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.viewer-content.active {
  display: block;
}

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

.viewer-header {
  border-bottom: 1px solid rgba(0, 255, 102, 0.08);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.viewer-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.badge-dfy {
  background: rgba(0, 255, 102, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 102, 0.2);
}

.badge-dwy {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-glowing);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.badge-consulting {
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.viewer-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.viewer-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.viewer-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.viewer-block {
  margin-bottom: 1.5rem;
}

.viewer-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Simulation Workflow Diagram inside Dashboard */
.simulation-container {
  background: rgba(2, 7, 3, 0.4);
  border: 1px solid rgba(0, 255, 102, 0.08);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.simulation-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0.5rem 0;
}

.sim-node {
  background: rgba(8, 25, 12, 0.8);
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-header);
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.sim-node.active-node {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.25);
}

.sim-connector {
  flex-grow: 1;
  height: 2px;
  background: rgba(0, 255, 102, 0.15);
  position: relative;
  margin: 0 0.5rem;
}

.sim-connector::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-glowing);
  box-shadow: 0 0 8px var(--accent-glowing);
  animation: flow-particle 2s infinite linear;
}

@keyframes flow-particle {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Offer Stack Section */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.offer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offer-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 40px 0 rgba(0, 255, 102, 0.08);
}

.offer-tier {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

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

.offer-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  min-height: 50px;
}

.offer-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.offer-features li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.offer-features li strong {
  color: var(--primary-bright);
}

.offer-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-glowing);
  font-weight: bold;
}

.offer-outcome {
  background: rgba(0, 255, 102, 0.02);
  border: 1px dashed rgba(0, 255, 102, 0.15);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.offer-outcome-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

.offer-footer {
  margin-top: auto;
}

.offer-footer .btn {
  width: 100%;
}

/* Security and Trust Indicators */
.security-banner {
  background: rgba(2, 7, 3, 0.85);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 5rem 0;
}

.security-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.security-content {
  flex: 1.1;
}

.security-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  flex: 0.9;
}

.security-badge {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(0, 255, 102, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.security-badge-icon {
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}

.security-badge h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.security-badge p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Timeline/Process Section */
.timeline-section {
  position: relative;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 4rem;
}

.timeline-step {
  position: relative;
}

.timeline-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #020703;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* FAQ Section */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 255, 102, 0.08);
  padding-bottom: 1.5rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  outline: none;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

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

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 1rem;
}

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

/* Final CTA Section */
.final-cta {
  background: radial-gradient(circle at center, rgba(0, 255, 102, 0.08) 0%, transparent 60%);
  text-align: center;
}

.final-cta-card {
  max-width: 850px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.final-cta p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 255, 102, 0.05);
  background: rgba(2, 7, 3, 0.95);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

/* CTA MODAL (Cal.com Booking Pop-up) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 7, 3, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-container {
  width: 90%;
  max-width: 950px;
  height: 85vh;
  background: rgba(5, 18, 9, 0.95);
  border: 1px solid rgba(0, 255, 102, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0, 255, 102, 0.08);
  background: rgba(5, 20, 10, 0.5);
}

.modal-title {
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title span {
  color: var(--accent-glowing);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  outline: none;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  flex-grow: 1;
  width: 100%;
  height: calc(100% - 70px);
  position: relative;
}

.booking-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: -1; /* behind iframe if iframe loads successfully */
}

/* RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
  padding: 0;
}

.mobile-nav-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.mobile-nav-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--primary);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--primary);
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .metrics-grid, .problems-grid, .offers-grid, .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .diagnostics-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .failures-list-wrapper {
    max-height: none; /* No nested scrollbar on mobile/tablet */
    overflow-y: visible;
  }
  .detail-viewer-panel {
    position: static;
    min-height: auto;
  }
  .security-flex {
    flex-direction: column;
    gap: 3rem;
  }
  section {
    padding: 5rem 0;
  }
  .modal-container {
    height: 90vh;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex; /* Show toggle */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden offscreen right */
    width: 100%;
    height: 100vh;
    background: rgba(2, 7, 3, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 150;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-glass);
    padding: 3rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    right: 0; /* Slide in */
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-family: var(--font-header);
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
  }

  .nav-links .btn {
    width: 100%;
    max-width: 280px;
    margin: 1rem auto 0;
  }

  .hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
  
  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

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

  .security-badge-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 500px) {
  .simulation-flow {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 0;
  }

  .sim-node {
    width: 100%;
    max-width: 160px;
    padding: 0.4rem;
    font-size: 0.7rem;
  }

  .sim-connector {
    width: 2px;
    height: 25px;
    margin: 0.1rem 0;
  }

  .sim-connector::after {
    left: -2px;
    top: 0;
    width: 6px;
    height: 6px;
    animation: flow-particle-vertical 2s infinite linear;
  }

  @keyframes flow-particle-vertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  .diagnostics-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

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

