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

/* --- CSS Variables & Custom Design System --- */
:root {
  /* Colors - Warm Editorial Canvas with Deep Charcoal & Corporate Blue Accents */
  --bg-dark: hsl(40, 20%, 94%);
  --bg-base: hsl(40, 20%, 97%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-surface-opaque: hsl(0, 0%, 100%);
  --bg-surface-hover: hsl(40, 15%, 92%);
  
  --cobalt: hsl(220, 60%, 28%);
  --cobalt-glow: rgba(0, 0, 0, 0);
  --cobalt-dim: hsl(220, 60%, 20%);
  --cyan: hsl(190, 50%, 35%);
  --cyan-glow: rgba(0, 0, 0, 0);
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 0, 0, 0.12);
  
  --text-primary: hsl(224, 25%, 15%);
  --text-secondary: hsl(224, 12%, 36%);
  --text-muted: hsl(224, 10%, 55%);
  --text-dark: hsl(40, 20%, 97%);

  /* Typography */
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout and Spacing */
  --header-height: 80px;
  --max-width: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* Transition Constants */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cobalt);
}

/* --- Selection --- */
::selection {
  background-color: var(--cobalt);
  color: var(--text-primary);
}

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

.section-padding {
  padding-top: 140px;
  padding-bottom: 140px;
}

.story-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 140px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .story-section {
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: auto;
  }
}

/* --- Typographical System --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-bottom: 12px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

p.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--cobalt) 70%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }

/* --- UI Buttons & Links --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-dim) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  background: var(--bg-dark);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.btn-text {
  background: none;
  border: none;
  color: var(--cobalt);
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.btn-text:hover {
  color: var(--cyan);
}

.btn-text svg {
  transition: transform var(--transition-fast);
}

.btn-text:hover svg {
  transform: translateX(4px);
}

/* --- Decorative / Ambient Visual Elements --- */
.glow-backdrop {
  display: none;
}

/* Glassmorphism utility refactored to premium flat card style */
.glass {
  background: var(--bg-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015), 0 10px 40px rgba(0, 0, 0, 0.025);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.glass:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), border-bottom var(--transition-normal), height var(--transition-normal);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: hsla(40, 20%, 97%, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 70px;
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.logo svg {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--cobalt);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a.active {
  color: var(--cobalt);
}

nav a.active::after {
  transform: scaleX(1);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 24px;
    transition: right var(--transition-normal);
  }
  
  header.scrolled nav {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  nav.active {
    right: 0;
  }
  
  nav .nav-cta {
    width: 100%;
    margin-top: 16px;
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsla(217, 91%, 56%, 0.1);
  border: 1px solid hsla(217, 91%, 56%, 0.3);
  padding: 6px 16px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cobalt);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
}

/* Hero Interactive Visuals */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-mesh {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cobalt-glow) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-mesh::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px dashed hsla(217, 91%, 56%, 0.2);
  border-radius: 50%;
  animation: rotate 60s linear infinite;
}

.visual-mesh::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px solid hsla(188, 86%, 53%, 0.15);
  border-radius: 50%;
  animation: rotate 30s linear infinite reverse;
}

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

.mesh-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse-node 4s infinite ease-in-out;
}

@keyframes pulse-node {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.8); opacity: 1; box-shadow: 0 0 20px var(--cyan); }
}

/* Hero Stat Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

@media (max-width: 576px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
}

/* --- Philosophy (Refuge from Noise) --- */
.refuge-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-dark) 100%);
}

.refuge-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px;
}

@media (max-width: 768px) {
  .refuge-card {
    padding: 32px 20px;
  }
}

.refuge-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.toggle-group {
  display: inline-flex;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.toggle-btn {
  background: none;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-btn.active {
  background: var(--cobalt);
  color: var(--bg-base);
}

.refuge-content {
  min-height: 200px;
  position: relative;
}

.refuge-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.refuge-pane.active {
  display: block;
}

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

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

@media (max-width: 768px) {
  .grid-comparison {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.compare-card {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.compare-card.danger {
  border-left: 4px solid hsl(0, 84%, 60%);
}

.compare-card.success {
  border-left: 4px solid var(--cyan);
}

.compare-card h4 {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-card ul {
  list-style: none;
}

.compare-card li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.compare-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.compare-card.danger li::before {
  color: hsl(0, 84%, 60%);
}

.compare-card.success li::before {
  color: var(--cyan);
}

/* --- Service Offerings --- */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 56px;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

.service-info-col {
  flex: 1.2;
}

.service-image-col {
  flex: 0.8;
  width: 100%;
}

.editorial-image-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.015), 0 10px 40px rgba(0, 0, 0, 0.025);
  background: var(--bg-dark);
  border: 1px solid rgba(0, 0, 0, 0.04);
  aspect-ratio: 16 / 10;
  width: 100%;
}

.editorial-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.refuge-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

@media (max-width: 992px) {
  .services-grid {
    gap: 60px;
  }
  .service-row, .service-row:nth-child(even) {
    flex-direction: column;
    gap: 32px;
  }
  .refuge-layout {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 576px) {
  .service-card {
    padding: 24px;
  }
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: hsla(217, 91%, 56%, 0.08);
  border: 1px solid hsla(217, 91%, 56%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
  margin-bottom: 24px;
}

.service-card:hover .service-icon {
  background: hsla(188, 86%, 53%, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.service-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.service-features {
  list-style: none;
  margin-top: 20px;
  margin-bottom: 28px;
}

.service-features li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features svg {
  color: var(--cobalt);
  flex-shrink: 0;
}

/* --- TCO/OpEx Calculator Section --- */
.calculator-section {
  position: relative;
  background: var(--bg-dark);
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  margin-top: 56px;
}

@media (max-width: 992px) {
  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.calculator-card {
  padding: 40px;
}

@media (max-width: 576px) {
  .calculator-card {
    padding: 24px;
  }
}

.calc-group {
  margin-bottom: 32px;
}

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

.calc-label-row label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.calc-value-badge {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Custom Sliders */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cobalt);
  border: 2px solid var(--text-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--cobalt-glow);
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--cyan);
}

.preset-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.preset-btn {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn.active {
  border-color: var(--cobalt);
  background: hsla(217, 91%, 56%, 0.1);
  color: var(--text-primary);
}

/* Calculator Output display */
.results-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: var(--border-glow);
}

.results-header h3 {
  margin-bottom: 24px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-light);
}

.result-row:last-child {
  border-bottom: none;
}

.result-row span:first-child {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.result-row span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.result-row.total-row {
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  border-bottom: none;
}

.result-row.total-row span:first-child {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.result-row.total-row span:last-child {
  color: var(--cyan);
  font-size: 1.6rem;
}

.savings-highlight {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.savings-highlight strong {
  color: var(--cobalt);
}

/* --- Trust, Proof & Clients --- */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .client-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.logo-item {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity var(--transition-fast), background-color var(--transition-fast);
}

.logo-item:hover {
  opacity: 0.85;
  background-color: rgba(255, 255, 255, 0.01);
}

.logo-item span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Case study metrics card layout */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

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

.case-card {
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-metric {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--cobalt);
  margin-bottom: 12px;
  line-height: 1;
}

.case-card:hover .case-metric {
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
}

/* --- Lead Assessment Multi-Step Form --- */
.lead-form-container {
  max-width: 680px;
  margin: 56px auto 0;
  padding: 48px;
}

@media (max-width: 576px) {
  .lead-form-container {
    padding: 24px;
  }
}

.form-progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  transition: background-color var(--transition-normal);
}

.progress-step.active {
  background: var(--cobalt);
}

.progress-step.completed {
  background: var(--cyan);
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
  display: block;
}

.form-step-title {
  margin-bottom: 24px;
}

.form-step-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-grid-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 576px) {
  .form-grid-options {
    grid-template-columns: 1fr;
  }
}

.option-card {
  padding: 20px;
  border: 1px solid var(--border-light);
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-card:hover {
  border-color: var(--cobalt);
  background: hsla(217, 91%, 56%, 0.04);
}

.option-card.selected {
  border-color: var(--cyan);
  background: hsla(188, 86%, 53%, 0.08);
}

.option-card input[type="radio"] {
  display: none;
}

.option-card h5 {
  font-size: 1rem;
}

.option-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Inputs styling */
.form-input-group {
  margin-bottom: 24px;
}

.form-input-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 10px var(--cobalt-glow);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

/* Success State Pane */
.form-success-pane {
  text-align: center;
  padding: 40px 0 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  border: 1px solid hsla(188, 86%, 53%, 0.3);
}

/* --- Footer --- */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

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

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

.footer-info p {
  margin-top: 16px;
  max-width: 350px;
}

.footer-links h5 {
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

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

.footer-links li {
  margin-bottom: 12px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* --- Phase 2 Expansion Styles --- */

/* 1. Client Portal Login Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal var(--transition-fast) forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 480px;
  padding: 40px;
  position: relative;
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: slideUpModal var(--transition-normal) forwards;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
}

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

.sso-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
}

.sso-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-light);
  z-index: 1;
}

.sso-divider span {
  background: var(--bg-surface-opaque);
  padding: 0 12px;
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sso-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sso-btn {
  padding: 12px;
  font-size: 0.85rem;
  justify-content: center;
}

/* MFA/2FA Visuals */
.mfa-visual-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfa-shield {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid hsla(188, 86%, 53%, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--cyan-glow);
  animation: pulseMFA 2s infinite ease-out;
  z-index: 1;
}

@keyframes pulseMFA {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}

.mfa-input {
  box-shadow: none !important;
}


/* 2. Client Control Plane (Dashboard Mockup) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 580px;
  overflow: hidden;
  border-color: var(--border-glow);
}

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

.db-sidebar {
  border-right: 1px solid var(--border-light);
  padding: 24px;
  background: rgba(4, 9, 20, 0.4);
}

@media (max-width: 992px) {
  .db-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

.db-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.db-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cobalt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.db-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.db-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.db-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.db-nav-item.active {
  background: hsla(217, 91%, 56%, 0.1);
  color: var(--cyan);
  border-left: 3px solid var(--cyan);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.db-sub-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.db-agent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agent-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.agent-status-row:last-child {
  border-bottom: none;
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator.online {
  background-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.status-indicator.warning {
  background-color: hsl(38, 92%, 50%);
  box-shadow: 0 0 8px hsla(38, 92%, 50%, 0.4);
}

.agent-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.agent-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.agent-metric {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.db-main {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 576px) {
  .db-main {
    padding: 24px;
  }
}

.db-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .db-stats-row {
    grid-template-columns: 1fr;
  }
}

.db-stat-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.db-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.db-stat-value-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.db-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.db-stat-trend {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.db-stat-trend.positive {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}

.db-stat-trend.negative {
  color: hsl(0, 84%, 60%);
  background: rgba(239, 68, 68, 0.08);
}

.db-stat-trend.neutral {
  color: var(--cobalt);
  background: rgba(37, 99, 235, 0.08);
}

.db-stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.db-visuals-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

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

.db-chart-panel {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-header h5 {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.live-pulse {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-area-mock {
  height: 160px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.chart-grid-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.03);
}

.chart-svg {
  width: 100%;
  height: 140px;
  z-index: 2;
  overflow: visible;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.db-console-panel {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: monospace;
}

.console-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.console-header h5 {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.console-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 140px;
  overflow-y: hidden;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.log-line {
  word-break: break-all;
  white-space: pre-wrap;
}

.log-line.text-cyan {
  color: var(--cyan);
}


/* 3. Productized Sprint Timelines Component */
.timeline-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 56px;
}

.timeline-nav-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .timeline-nav-wrapper {
    flex-direction: column;
  }
}

.timeline-nav-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  flex: 1;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.timeline-nav-step:hover {
  border-color: var(--cobalt);
  background: var(--bg-surface-hover);
}

.timeline-nav-step.active {
  border-color: var(--cyan);
  background: var(--bg-surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.timeline-nav-step.active .step-num {
  color: var(--cyan);
}

.timeline-nav-step h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.step-duration {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
}

.timeline-content-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 576px) {
  .timeline-content-card {
    padding: 24px;
  }
}

.timeline-pane {
  animation: fadeIn 0.4s ease forwards;
}

.timeline-pane h3 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.timeline-deliverables {
  margin-top: 32px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.timeline-deliverables h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.timeline-deliverables ul {
  list-style: none;
}

.timeline-deliverables li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-deliverables svg {
  flex-shrink: 0;
}


/* 4. Ecosystem & Compliance Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.badge-card {
  padding: 24px;
  text-align: center;
}

.badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin: 0 auto 16px;
}

.badge-card h5 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.badge-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}


/* 5. Thought Leadership Insights Grid */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.insight-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
}

@media (max-width: 576px) {
  .insight-card {
    padding: 24px;
  }
}

.insight-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.insight-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.insight-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* --- Phase 3 - Custom Animations & Visualization Component Styling --- */

/* 1. Workflow Delta Visualization Section */
.workflow-delta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .workflow-delta-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.delta-panel {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: none;
  transition: border-color var(--transition-normal);
}

.delta-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.legacy-browser-mock {
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  height: 220px;
  position: relative;
  margin-bottom: 16px;
}

.browser-tabs {
  display: flex;
  background: hsl(223, 47%, 2%);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
}

.browser-tabs .tab {
  padding: 8px 16px;
  color: var(--text-muted);
  border-right: 1px solid var(--border-light);
  cursor: default;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.browser-tabs .tab.active {
  background: hsl(223, 47%, 4%);
  color: var(--text-primary);
  font-weight: 500;
}

.browser-content {
  padding: 20px;
  position: relative;
  height: calc(100% - 31px);
}

.skeleton-field {
  height: 12px;
  background: hsla(223, 47%, 20%, 0.4);
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

.fake-cursor {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 60%;
  left: 80%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white'><path d='M4.5 2.25v16.88l4.47-4.47 3.19 7.44 2.81-1.2-3.19-7.44 5.34.02L4.5 2.25z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
  pointer-events: none;
}

.delta-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* Agentic panel specifics */
.agentic-terminal-mock {
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  height: 220px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid hsla(223, 47%, 20%, 0.3);
  padding-bottom: 8px;
}

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

.terminal-bar .dot.red { background: hsl(0, 84%, 60%); }
.terminal-bar .dot.yellow { background: hsl(40, 90%, 60%); }
.terminal-bar .dot.green { background: hsl(142, 70%, 45%); }

.terminal-bar .terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.executed-stamp {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg) scale(3);
  border: 3px double hsl(142, 70%, 45%);
  color: hsl(142, 70%, 45%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  padding: 8px 16px;
  background: hsla(224, 71%, 2%, 0.9);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 25px hsla(142, 70%, 45%, 0.4);
}

.executed-stamp.visible {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-12deg) scale(1);
}

/* Animations for Legacy Workflow */
#workflow-delta.animate #legacy-cursor {
  animation: cursorMove 10s infinite ease-in-out;
}

#workflow-delta.animate #legacy-tab-1 {
  animation: tab1Active 10s infinite step-end;
}

#workflow-delta.animate #legacy-tab-2 {
  animation: tab2Active 10s infinite step-end;
}

#workflow-delta.animate #legacy-tab-3 {
  animation: tab3Active 10s infinite step-end;
}

#workflow-delta.animate .data-fields {
  animation: contentShift 10s infinite step-end;
}

@keyframes cursorMove {
  0%, 100% { top: 60%; left: 80%; }
  18% { top: 8px; left: 95px; } /* Hover tab 2 */
  22% { top: 8px; left: 95px; transform: scale(0.85); } /* Click tab 2 */
  25% { top: 40%; left: 30%; transform: scale(1); } /* Move inside CRM field */
  48% { top: 8px; left: 185px; } /* Hover tab 3 */
  52% { top: 8px; left: 185px; transform: scale(0.85); } /* Click tab 3 */
  55% { top: 60%; left: 45%; transform: scale(1); } /* Move inside field */
  80% { top: 8px; left: 15px; } /* Hover tab 1 */
  84% { top: 8px; left: 15px; transform: scale(0.85); } /* Click tab 1 */
  88% { top: 60%; left: 80%; transform: scale(1); }
}

@keyframes tab1Active {
  0%, 22% { background: hsl(223, 47%, 4%); color: var(--text-primary); }
  23%, 83% { background: transparent; color: var(--text-muted); }
  84%, 100% { background: hsl(223, 47%, 4%); color: var(--text-primary); }
}

@keyframes tab2Active {
  0%, 22% { background: transparent; color: var(--text-muted); }
  23%, 52% { background: hsl(223, 47%, 4%); color: var(--text-primary); }
  53%, 100% { background: transparent; color: var(--text-muted); }
}

@keyframes tab3Active {
  0%, 52% { background: transparent; color: var(--text-muted); }
  53%, 83% { background: hsl(223, 47%, 4%); color: var(--text-primary); }
  84%, 100% { background: transparent; color: var(--text-muted); }
}

@keyframes contentShift {
  0%, 22% { filter: hue-rotate(0deg); opacity: 1; }
  23%, 52% { filter: hue-rotate(80deg); opacity: 0.85; }
  53%, 83% { filter: hue-rotate(170deg); opacity: 0.9; }
  84%, 100% { filter: hue-rotate(0deg); opacity: 1; }
}


/* 2. Local-First Data Masking Component Styling */
.masking-flow-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .masking-flow-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .flow-connector {
    transform: rotate(90deg);
    margin: 16px 0;
    width: 40px;
  }
}

.flow-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  position: relative;
  min-height: 340px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.015), 0 10px 40px rgba(0, 0, 0, 0.025);
  backdrop-filter: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.flow-card:hover {
  border-color: var(--border-glow);
}

.flow-card.proxy-card {
  border-color: var(--cyan);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02), 0 10px 40px rgba(0, 0, 0, 0.03);
}

.flow-step-indicator {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--bg-surface-opaque);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.flow-step-indicator.highlight {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cyan) 100%);
  color: #ffffff;
  border: none;
  box-shadow: none;
}

.flow-card h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.terminal-mock {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.terminal-mock .string { color: var(--text-secondary); }
.terminal-mock .key { color: var(--cobalt); font-weight: 600; }
.terminal-mock .number { color: var(--cyan); font-weight: 600; }
.terminal-mock .comment { color: var(--text-muted); font-style: italic; }
.terminal-mock .token { color: var(--cyan); font-weight: 600; }
.terminal-mock .token-muted { color: var(--cyan); font-weight: 600; }

.pipeline-status {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-status {
  background: hsla(0, 84%, 60%, 0.08);
  color: hsl(0, 84%, 60%);
  border: 1px solid hsla(0, 84%, 60%, 0.15);
}

.success-status {
  background: hsla(188, 86%, 53%, 0.08);
  color: var(--cyan);
  border: 1px solid hsla(188, 86%, 53%, 0.15);
}

.safe-status {
  background: hsla(142, 70%, 45%, 0.08);
  color: hsl(142, 70%, 45%);
  border: 1px solid hsla(142, 70%, 45%, 0.15);
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 48px;
  flex-shrink: 0;
}

.connector-line {
  width: 100%;
  height: 2px;
  background: var(--border-light);
}

.connector-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: flowPulse 3s infinite linear;
}

@keyframes flowPulse {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Local Data Cryptographic Tokenization Animations */
.animate-token::after {
  content: '"John Doe"';
  animation: tokenGlitch 4s infinite step-end;
  color: hsl(142, 70%, 45%);
}

.animate-token-ssn::after {
  content: '"024-81-1934"';
  animation: tokenGlitchSSN 4s infinite step-end;
  color: hsl(142, 70%, 45%);
}

@keyframes tokenGlitch {
  0%, 100% { content: '"John Doe"'; color: hsl(142, 70%, 45%); }
  25% { content: '"tok_us*******"'; color: var(--cyan); }
  50%, 80% { content: '"tok_user_7b2"'; color: var(--cyan); }
}

@keyframes tokenGlitchSSN {
  0%, 100% { content: '"024-81-1934"'; color: hsl(142, 70%, 45%); }
  25% { content: '"tok_9f******"'; color: var(--cyan); }
  50%, 80% { content: '"tok_9f83a21bc"'; color: var(--cyan); }
}

/* --- Scroll Reveal Animations --- */
.reveal-element {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

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

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* --- Workflow Delta Light Theme Refactor --- */
#workflow-delta.delta-light-theme {
  background: hsl(40, 20%, 97%) !important;
  color: hsl(224, 20%, 25%) !important;
  border-top: 1px solid hsla(224, 20%, 25%, 0.08) !important;
  border-bottom: 1px solid hsla(224, 20%, 25%, 0.08) !important;
}

#workflow-delta.delta-light-theme h2 {
  color: hsl(224, 25%, 15%) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

#workflow-delta.delta-light-theme p.lead {
  color: hsl(224, 15%, 35%) !important;
}

#workflow-delta.delta-light-theme .hero-badge {
  background: hsla(217, 91%, 45%, 0.06) !important;
  border: 1px solid hsla(217, 91%, 45%, 0.2) !important;
  color: hsl(217, 91%, 45%) !important;
}

#workflow-delta.delta-light-theme .delta-panel {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: var(--radius-md);
  background: hsl(40, 20%, 99%) !important;
  border: 1px solid hsla(224, 20%, 25%, 0.1) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.015) !important;
  backdrop-filter: none !important;
  transition: border-color var(--transition-normal);
  color: hsl(224, 20%, 25%) !important;
}

#workflow-delta.delta-light-theme .delta-panel:hover {
  border-color: hsla(224, 20%, 25%, 0.2) !important;
}

#workflow-delta.delta-light-theme .panel-header {
  border-bottom: 1px solid hsla(224, 20%, 25%, 0.06) !important;
}

#workflow-delta.delta-light-theme .panel-title {
  color: hsl(224, 25%, 15%) !important;
  font-weight: 600;
}

/* Left Panel - Legacy Ingestion Wireframe */
#workflow-delta.delta-light-theme .legacy-browser-mock {
  border: 1px solid hsla(224, 20%, 25%, 0.08) !important;
  background: hsl(40, 15%, 98%) !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 220px;
  position: relative;
  margin-bottom: 16px;
}

#workflow-delta.delta-light-theme .browser-tabs {
  background: hsl(40, 10%, 93%) !important;
  border-bottom: 1px solid hsla(224, 20%, 25%, 0.08) !important;
  display: flex;
}

#workflow-delta.delta-light-theme .browser-tabs .tab {
  padding: 8px 16px;
  color: hsl(224, 10%, 45%) !important;
  border-right: 1px solid hsla(224, 20%, 25%, 0.08) !important;
  font-size: 0.75rem;
}

#workflow-delta.delta-light-theme .browser-tabs .tab.active {
  background: hsl(40, 15%, 98%) !important;
  color: hsl(224, 20%, 25%) !important;
  font-weight: 500;
}

#workflow-delta.delta-light-theme .browser-content {
  padding: 20px;
}

#workflow-delta.delta-light-theme .legacy-field-group {
  margin-bottom: 14px;
}

#workflow-delta.delta-light-theme .legacy-label {
  font-size: 0.72rem;
  color: hsl(224, 10%, 45%);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
}

#workflow-delta.delta-light-theme .skeleton-field {
  height: 8px;
  background: hsla(224, 20%, 25%, 0.06) !important;
  border-radius: 2px;
}

#workflow-delta.delta-light-theme .data-fields {
  position: relative;
  height: 140px;
}

#workflow-delta.delta-light-theme .tab-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

#workflow-delta.delta-light-theme .tab-content-wrapper.tab-content-1 {
  opacity: 1;
  pointer-events: auto;
}

#workflow-delta.delta-light-theme.animate .tab-content-wrapper.tab-content-1 {
  animation: tab1ContentAnim 10s infinite step-end;
}

#workflow-delta.delta-light-theme.animate .tab-content-wrapper.tab-content-2 {
  animation: tab2ContentAnim 10s infinite step-end;
}

#workflow-delta.delta-light-theme.animate .tab-content-wrapper.tab-content-3 {
  animation: tab3ContentAnim 10s infinite step-end;
}

@keyframes tab1ContentAnim {
  0%, 22% { opacity: 1; pointer-events: auto; }
  23%, 83% { opacity: 0; pointer-events: none; }
  84%, 100% { opacity: 1; pointer-events: auto; }
}

@keyframes tab2ContentAnim {
  0%, 22% { opacity: 0; pointer-events: none; }
  23%, 52% { opacity: 1; pointer-events: auto; }
  53%, 100% { opacity: 0; pointer-events: none; }
}

@keyframes tab3ContentAnim {
  0%, 52% { opacity: 0; pointer-events: none; }
  53%, 83% { opacity: 1; pointer-events: auto; }
  84%, 100% { opacity: 0; pointer-events: none; }
}

/* Right Panel - Polished Data Card */
#workflow-delta.delta-light-theme .agentic-datacard-container {
  border: 1px solid hsla(224, 20%, 25%, 0.08);
  background: hsl(40, 15%, 98%);
  border-radius: var(--radius-sm);
  padding: 16px;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  margin-bottom: 16px;
}

#workflow-delta.delta-light-theme .datacard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid hsla(224, 20%, 25%, 0.04);
}

#workflow-delta.delta-light-theme .datacard-row:last-child {
  border-bottom: none;
}

#workflow-delta.delta-light-theme .datacard-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: hsla(217, 91%, 45%, 0.08);
  color: hsl(217, 91%, 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#workflow-delta.delta-light-theme .datacard-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#workflow-delta.delta-light-theme .datacard-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(224, 25%, 15%);
}

#workflow-delta.delta-light-theme .datacard-subtitle {
  font-size: 0.7rem;
  color: hsl(224, 10%, 48%);
}

#workflow-delta.delta-light-theme .datacard-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(217, 91%, 45%);
  background: hsla(217, 91%, 45%, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Subtle Status Badge */
#workflow-delta.delta-light-theme .status-badge-premium {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid hsla(224, 20%, 25%, 0.15);
  background: hsl(40, 20%, 99%);
  color: hsl(224, 25%, 15%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

#workflow-delta.delta-light-theme .status-badge-premium.visible {
  opacity: 1;
}

#workflow-delta.delta-light-theme .status-badge-premium svg {
  color: hsl(217, 91%, 45%);
}

/* Metrics Typography Sanitization */
#workflow-delta.delta-light-theme .metric-row {
  font-size: 0.9rem;
  color: hsl(224, 15%, 45%);
}

#workflow-delta.delta-light-theme .metric-row .metric-value {
  color: hsl(224, 25%, 20%) !important;
  font-weight: 600;
}

#workflow-delta.delta-light-theme .metric-row .metric-value.text-gradient {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: hsl(217, 91%, 45%) !important;
}

/* Light Theme Mouse Cursor & Tab Animations */
#workflow-delta.delta-light-theme .fake-cursor {
  display: block !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%232c3e50'><path d='M4.5 2.25v16.88l4.47-4.47 3.19 7.44 2.81-1.2-3.19-7.44 5.34.02L4.5 2.25z'/></svg>") !important;
}

#workflow-delta.delta-light-theme.animate #legacy-cursor {
  animation: cursorMoveLight 10s infinite ease-in-out;
}

@keyframes cursorMoveLight {
  0%, 100% { top: 60%; left: 80%; }
  18% { top: -16px; left: 95px; } /* Hover tab 2 */
  22% { top: -16px; left: 95px; transform: scale(0.85); } /* Click tab 2 */
  25% { top: 40px; left: 30%; transform: scale(1); } /* Move inside CRM field */
  48% { top: -16px; left: 185px; } /* Hover tab 3 */
  52% { top: -16px; left: 185px; transform: scale(0.85); } /* Click tab 3 */
  55% { top: 60%; left: 45%; transform: scale(1); } /* Move inside field */
  80% { top: -16px; left: 15px; } /* Hover tab 1 */
  84% { top: -16px; left: 15px; transform: scale(0.85); } /* Click tab 1 */
  88% { top: 60%; left: 80%; transform: scale(1); }
}

#workflow-delta.delta-light-theme.animate #legacy-tab-1 {
  animation: tab1ActiveLight 10s infinite step-end;
}

#workflow-delta.delta-light-theme.animate #legacy-tab-2 {
  animation: tab2ActiveLight 10s infinite step-end;
}

#workflow-delta.delta-light-theme.animate #legacy-tab-3 {
  animation: tab3ActiveLight 10s infinite step-end;
}

@keyframes tab1ActiveLight {
  0%, 22% { background: hsl(40, 15%, 98%); color: hsl(224, 20%, 25%); font-weight: 500; }
  23%, 83% { background: transparent; color: hsl(224, 10%, 45%); font-weight: 400; }
  84%, 100% { background: hsl(40, 15%, 98%); color: hsl(224, 20%, 25%); font-weight: 500; }
}

@keyframes tab2ActiveLight {
  0%, 22% { background: transparent; color: hsl(224, 10%, 45%); font-weight: 400; }
  23%, 52% { background: hsl(40, 15%, 98%); color: hsl(224, 20%, 25%); font-weight: 500; }
  53%, 100% { background: transparent; color: hsl(224, 10%, 45%); font-weight: 400; }
}

@keyframes tab3ActiveLight {
  0%, 52% { background: transparent; color: hsl(224, 10%, 45%); font-weight: 400; }
  53%, 83% { background: hsl(40, 15%, 98%); color: hsl(224, 20%, 25%); font-weight: 500; }
  84%, 100% { background: transparent; color: hsl(224, 10%, 45%); font-weight: 400; }
}

