/**
 * PowOrg Enterprise Light Design System
 * Clean, Professional, White Mode
 * Brand: Teal #0891b2 / Navy #0c4a6e
 */

/* ==================== Design Tokens ==================== */
:root {
  /* Colors - Enterprise Premium Dark */
  --bg-page: #060608;         /* Deepest ink black */
  --bg-subtle: #0b0b0f;       /* Dark gray for containers */
  --bg-card: #121217;         /* Sleek elevated gray */
  --bg-input: #161622;        /* Input background */

  /* Text Colors */
  --text-main: #f8fafc;       /* High-contrast crisp white */
  --text-muted: #94a3b8;      /* Readable slate gray */
  --text-light: #64748b;      /* Muted gray for subtitles/borders */

  /* Brand Colors - PowOrg Neon Teal & Deep Cyan */
  --primary: #06b6d4;         /* Bright electric cyan */
  --primary-dark: #0891b2;    /* Vibrant teal */
  --accent: #22d3ee;          /* Electric blue-cyan */
  --accent-glow: rgba(6, 182, 212, 0.12);

  /* Borders */
  --border-light: #1f1f2e;    /* Dark elegant border */
  --border-hover: #2e2e42;    /* Dark hover border */

  /* Effects */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 20px 32px -6px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.2);

  /* Typography - Inter */
  --font-main: 'Inter', 'Heebo', -apple-system, sans-serif;

  /* Layout */
  --container-width: 1280px;
  --header-height: 80px;
  --radius-card: 16px;
  --radius-btn: 8px;
}

/* ==================== Reset & Base ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Text direction now follows the <html dir="..."> attribute, which the
     language toggle (js/i18n.js) flips between "ltr" (English, default)
     and "rtl" (Hebrew). Do not hardcode a direction here. */
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.5rem, 5vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-main);
  box-shadow: 0 4px 14px 0 rgba(8, 145, 178, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(8, 145, 178, 0.3), var(--shadow-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

.btn-link {
  padding: 0;
  background: none;
  color: var(--primary);
  font-weight: 600;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==================== Navigation ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
}

/* ==================== SECTIONS & BACKGROUNDS ==================== */
/* General Section Config */
section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.section-spacer {
  padding: 8rem 0;
}

/* 1. Hero Section - The "Showcase" */
#hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--bg-page);
}

/* Re-using the generated 3D visual as standard image */
.hero-visual-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background-image: url('../assets/img/hero-bg-light.png');
  background-size: cover;
  background-position: center left;
  z-index: 0;
  opacity: 0.3;
  mix-blend-mode: multiply;
}

/* 2. Process Section - "The Flow" Background */
#process {
  background-color: var(--bg-subtle);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(8, 145, 178, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(14, 116, 144, 0.05) 0%, transparent 35%);
}

/* 3. Use Cases - "The Grid" Background */
#use-cases {
  background-color: var(--bg-page);
}

/* 4. Security & Contact - Organic Layouts */
.organic-shape {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.organic-shape:hover {
  border-color: var(--border-light);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

#contact {
  background-color: var(--bg-page);
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

/* Re-using glass-abstract.png as a "Process Sculpture" */
.process-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/img/The Seamless Flow.png');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* Re-using hero-light.png detailed crop */
.usecases-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/img/The Modular Grid.png');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* Inverting the dark hero-bg-light.png to create a technical wireframe */
.security-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/img/security-shield.png');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* ==================== Components ==================== */
/* Bento Card */
/* Bento Card */
.clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.clean-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.icon-box-clean {
  width: 56px;
  height: 56px;
  background: rgba(8, 145, 178, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.icon-box-clean img {
  width: 28px;
  height: 28px;
  opacity: 0.9;
  filter: brightness(0) saturate(100%) invert(40%) sepia(80%) saturate(600%) hue-rotate(160deg); /* Teal-tinted icons */
}

.section-head {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-input-clean {
  width: 100%;
  padding: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-input-clean:focus {
  outline: none;
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.25);
}

/* Bento Grid */
.bento-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* ==================== Utilities ==================== */
.tag-clean {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.footer-clean {
  background: var(--bg-subtle);
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: 4rem;
  text-align: center;
}

/* ==================== NEW CUSTOM COMPONENTS ==================== */

/* 1. Fit section — plain-language value cards (replaces the old role-tabbed
   "choose your role" persona switcher, which visitors outside their own role
   found confusing and visually distracting). No tabs: every visitor sees the
   same three cards at once. */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.fit-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fit-card .icon-box-clean {
  margin-bottom: 0.5rem;
}

.fit-card h3 {
  font-size: 1.2rem;
  color: var(--text-main);
}

.fit-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Language toggle — top nav, English default / Hebrew alt */
.lang-toggle-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lang-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
  background: var(--accent-glow);
}

/* Tech / Code Block Styles */
.code-window {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  direction: ltr;
  text-align: left;
}

.code-header {
  background: rgba(0, 0, 0, 0.02);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-title {
  font-size: 0.8rem;
  color: var(--text-light);
}

.code-body {
  padding: 1.5rem;
  overflow-x: auto;
  margin: 0;
  line-height: 1.5;
}

/* 2. Agent Simulator */
.simulator-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.simulator-dashboard {
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
  box-shadow: var(--shadow-xl);
}

.simulator-header {
  background: rgba(0, 0, 0, 0.02);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simulator-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280; /* Idle gray */
}

.status-indicator.running {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-glow 1.5s infinite;
}

.simulator-body {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.simulator-flow-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 220px;
}

/* Flow Nodes */
.flow-node-box {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border-light);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  min-width: 160px;
  transition: all 0.3s ease;
  opacity: 0.3;
  transform: scale(0.9);
  z-index: 2;
}

.flow-node-box.active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.3);
}

.flow-arrow-down {
  height: 25px;
  width: 2px;
  background: var(--border-light);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.flow-arrow-down.active {
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 0 8px var(--primary);
}

/* Console log */
.simulator-console {
  background: #05070c;
  border-top: 1px solid var(--border-light);
  height: 140px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  overflow-y: auto;
  color: #34d399; /* Green text */
  direction: ltr;
  text-align: left;
}

.console-line {
  margin-bottom: 4px;
}

.simulator-option-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.simulator-option-card:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border-hover);
}

.simulator-option-card.selected {
  border-color: var(--primary);
  background: rgba(8, 145, 178, 0.05);
}

.simulator-option-card h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.simulator-option-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 3. ROI Calculator */
.roi-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-label {
  font-weight: 600;
  font-size: 1rem;
}

.slider-value {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary);
}

.roi-slider {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.05);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.1s;
}

.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.5);
}

.roi-results-pane {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(14, 116, 144, 0.05) 100%);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.roi-metric-box {
  margin-bottom: 2rem;
  text-align: center;
}

.roi-metric-box:last-child {
  margin-bottom: 0;
}

.roi-metric-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.roi-metric-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  color: var(--text-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roi-metric-value.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roi-metric-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* 4. Trust Center Flow Diagram */
.trust-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.trust-diagram {
  background: rgba(9, 13, 22, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  direction: ltr; /* Diagram flows left to right structurally */
}

.trust-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.trust-node {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  min-width: 140px;
  z-index: 2;
  transition: all 0.3s ease;
}

.trust-node.highlight {
  border-color: #10b981; /* Green glow for security shield */
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
}

.trust-node h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-main);
}

.trust-node p {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.2;
}

.trust-connector-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-light), var(--primary), var(--border-light));
  margin: 0 12px;
  position: relative;
  opacity: 0.5;
}

.trust-connector-line::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: move-particle 3s linear infinite;
}

@keyframes move-particle {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}


/* Token Highlighting (SDK Code Window) */
.t-kw { color: #38bdf8; font-weight: 600; }           /* Sky blue keyword */
.t-comment { color: #64748b; font-style: italic; }     /* Muted comment */
.t-str { color: #34d399; }                              /* Emerald string */
.t-func { color: #a78bfa; }                             /* Light purple function */

/* CISO Architecture Diagram */
.ciso-arch-window {
  background: #070a13;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.vpc-boundary {
  border: 2px dashed rgba(8, 145, 178, 0.35);
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(8, 145, 178, 0.01);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vpc-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid rgba(8, 145, 178, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
  align-self: center;
}

.vpc-elements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.vpc-el {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}

.vpc-el:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 145, 178, 0.5);
  background: rgba(17, 24, 39, 0.8);
}

.vpc-el.highlight {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.vpc-el .el-icon {
  font-size: 1.4rem;
}

.vpc-el .el-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.vpc-el .el-sub {
  font-size: 0.65rem;
  color: var(--text-light);
  line-height: 1.2;
}

.gateway-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
}

.gateway-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
}

.gateway-arrow {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
  font-family: monospace;
}

.external-llm-cloud {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.external-llm-cloud .cloud-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.external-llm-cloud p {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* Business Impact Card (Left pane in Business Tab) */
.business-impact-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.impact-header {
  background: rgba(0, 0, 0, 0.02);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.impact-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.impact-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.impact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.impact-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.impact-stat {
  font-size: 2.5rem;
  font-weight: 800;
  min-width: 110px;
  text-align: left;
  direction: ltr;
}

.impact-stat.purple { color: var(--primary); }
.impact-stat.green { color: #34d399; }
.impact-stat.blue { color: #22d3ee; }

.impact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.impact-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.impact-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sandbox Playground Styles */
.sandbox-input-pane {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.presets-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.preset-chip:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border-light);
}

.preset-chip.active {
  border-color: var(--primary);
  background: rgba(8, 145, 178, 0.05);
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.15);
}

.preset-chip .chip-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.preset-chip .chip-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.sandbox-input-area {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sandbox-input-area input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(9, 13, 22, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.sandbox-input-area input:focus {
  border-color: var(--primary);
}

.sandbox-input-area button {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.sandbox-dashboard {
  background: #050811;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-xl);
}

.sandbox-tab-header {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.02);
}

.sandbox-tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.sandbox-tab-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.02);
}

.sandbox-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(8, 145, 178, 0.03);
}

.sandbox-content-pane {
  flex: 1;
  display: none;
  overflow-y: auto;
  padding: 1.25rem;
}

.sandbox-content-pane.active {
  display: block;
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.chat-welcome-msg {
  background: rgba(0, 0, 0, 0.02);
  border: 1px dashed var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-word;
}

.user-bubble {
  align-self: flex-start;
  background: rgba(8, 145, 178, 0.12);
  border: 1px solid rgba(8, 145, 178, 0.2);
  color: var(--text-main);
  border-top-right-radius: 2px;
  text-align: right;
}

.orchestrator-bubble {
  align-self: flex-end;
  background: rgba(14, 116, 144, 0.12);
  border: 1px solid rgba(14, 116, 144, 0.2);
  color: var(--text-main);
  border-top-left-radius: 2px;
  text-align: left;
  direction: ltr;
}

.agent-bubble {
  align-self: flex-end;
  background: #090d16;
  border: 1px solid var(--border-light);
  color: #34d399;
  font-family: monospace;
  font-size: 0.75rem;
  border-top-left-radius: 2px;
  text-align: left;
  direction: ltr;
  width: 90%;
}

/* Trust Center VPC Boundary Diagram */
.vpc-diagram-wrapper {
  background: #050811;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.vpc-diagram-header {
  background: rgba(0, 0, 0, 0.02);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
}

.vpc-diagram-header .diag-ip {
  font-family: monospace;
  color: var(--text-light);
}

.vpc-diagram-header .diag-status {
  color: #10b981;
  animation: pulse-glow 1.5s infinite;
}

.vpc-diagram-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.diagram-internal-zone {
  border: 2px dashed rgba(8, 145, 178, 0.3);
  border-radius: 10px;
  padding: 1rem;
  width: 100%;
  background: rgba(8, 145, 178, 0.01);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diagram-internal-zone .zone-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}

.diagram-internal-zone .zone-nodes-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0.5rem;
}

.diagram-internal-zone .diag-node {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.diagram-internal-zone .diag-node.active {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(8, 145, 178, 0.2);
}

.diagram-internal-zone .node-icon {
  font-size: 1.1rem;
}

.diagram-internal-zone .node-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.diagram-internal-zone .node-meta {
  font-size: 0.6rem;
  color: var(--text-light);
}

.diagram-internal-zone .node-link-double {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.8rem;
}

.security-barrier-line {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.security-barrier-line .barrier-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
}

.diagram-transit-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--text-light);
}

.diagram-transit-line .transit-arrow {
  font-size: 0.8rem;
  font-weight: 700;
}

.diagram-transit-line .transit-label {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.03);
  padding: 2px 8px;
  border-radius: 4px;
}

.diagram-external-zone {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  text-align: center;
}

.diagram-external-zone .zone-notes {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 1px;
}

/* Animations for Mobile Menu active state */
@media (max-width: 1024px) {
  .nav-menu {
    background: rgba(3, 7, 18, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-left: 1px solid var(--border-light) !important;
  }

  .persona-content-grid,
  .simulator-container,
  .roi-card-layout,
  .trust-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .trust-step {
    flex-direction: column !important;
    gap: 1rem;
  }

  .trust-connector-line {
    width: 2px !important;
    height: 30px !important;
    margin: 0 !important;
  }
  
  .trust-connector-line::after {
    display: none; /* Hide animation on mobile for performance */
  }

  .roi-results-pane {
    padding: 1.5rem;
  }
}

/* --- Sandbox Live Flow Diagram --- */
.sandbox-flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  min-height: 100%;
  justify-content: center;
}

.flow-vpc-container {
  border: 2px dashed rgba(8, 145, 178, 0.35);
  border-radius: 12px;
  padding: 1.25rem;
  background: rgba(8, 145, 178, 0.01);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.flow-vpc-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid rgba(8, 145, 178, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
  align-self: center;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.flow-node {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.45;
  transform: scale(0.96);
}

.flow-node .fn-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.flow-node .fn-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.flow-node .fn-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Active node state with color-coded high-fidelity glows */
.flow-node.active {
  opacity: 1;
  transform: scale(1.02);
  background: rgba(17, 24, 39, 0.9);
}

/* Customized colors per active node */
#flow-node-sso.active {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.3);
}

#flow-node-engine.active {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
}

#flow-node-resources.active {
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

#flow-node-gateway.active {
  border-color: var(--primary-dark);
  box-shadow: 0 0 15px rgba(12, 74, 110, 0.3);
}

#flow-node-cloud.active {
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.05);
}

.flow-connector-line {
  height: 24px;
  width: 2px;
  background: rgba(0, 0, 0, 0.05);
  position: relative;
}

.flow-connector-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  opacity: 0;
}

.flow-connector-line.active::after {
  opacity: 1;
  animation: flow-packet 1.5s linear infinite;
}

@keyframes flow-packet {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.flow-external-cloud {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.flow-external-cloud .flow-node {
  min-width: 280px;
  transform: none;
}

/* CTO Tab styles inside code-window */
.code-tabs {
  display: flex;
  gap: 8px;
}
.code-tab {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.code-tab:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.02);
}
.code-tab.active {
  color: var(--primary);
  background: rgba(8, 145, 178, 0.1);
  border-color: rgba(8, 145, 178, 0.25);
}

/* CISO Security Audit Checklist Styles */
.ciso-checklist-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.checklist-header {
  background: rgba(0, 0, 0, 0.02);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checklist-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.checklist-dots {
  display: flex;
  gap: 6px;
}

.checklist-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.checklist-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.chk-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.chk-checkbox.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: none;
}

.chk-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.chk-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.chk-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.chk-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  align-self: center;
}

.badge-blue { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.25); color: var(--primary); }
.badge-green { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.25); color: #34d399; }
.badge-indigo { background: rgba(129, 140, 248, 0.15); border: 1px solid rgba(129, 140, 248, 0.25); color: #818cf8; }
.badge-purple { background: rgba(167, 139, 250, 0.15); border: 1px solid rgba(167, 139, 250, 0.25); color: #a78bfa; }

/* Sandbox Observability Dashboard Grid */
.sandbox-dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 480px;
  height: 100%;
}

.sandbox-flow-panel {
  border-left: 1px solid var(--border-light);
  background: rgba(9, 13, 22, 0.3);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

.sandbox-console-panel {
  display: flex;
  flex-direction: column;
  background: #050811;
}

.panel-header-clean {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
  text-align: center;
}

/* Developer Mode Settings */
.sandbox-dev-mode {
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all 0.25s ease;
}

.sandbox-dev-mode:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--border-light);
}

.dev-toggle-btn {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: color 0.2s;
}

.dev-toggle-btn:hover {
  color: var(--text-main);
}

.dev-settings-drawer {
  padding: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dev-form-group label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dev-form-group input,
.dev-form-group select {
  padding: 6px 10px;
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.8rem;
  outline: none;
}

.dev-form-group input:focus,
.dev-form-group select:focus {
  border-color: var(--primary);
}

.dev-disclaimer {
  font-size: 0.65rem;
  color: var(--text-light);
  line-height: 1.3;
  margin: 0;
}

/* High-Fidelity Use Case Modals Styling */
.modal-workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.workflow-step-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s ease;
}

.workflow-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 145, 178, 0.25);
  background: rgba(0, 0, 0, 0.03);
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
}

.input-card .step-badge {
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary);
  border: 1px solid rgba(8, 145, 178, 0.25);
}

.process-card .step-badge {
  background: rgba(14, 116, 144, 0.1);
  color: var(--accent);
  border: 1px solid rgba(14, 116, 144, 0.25);
}

.output-card .step-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.step-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-details strong {
  font-size: 1rem;
  color: var(--text-main);
}

.step-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.step-preview-code {
  background: #090d16;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--accent);
  overflow-x: auto;
  margin: 4px 0;
}

.step-bullets {
  padding-right: 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step-bullets li {
  line-height: 1.4;
}

/* LTR class to force left-to-right text layout */
.LTR {
  direction: ltr !important;
  text-align: left !important;
}

/* ==================== AI PLAYGROUND REDESIGN ==================== */
.playground-card {
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-main);
}

.playground-card:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
  transform: translateY(-2px);
}

.playground-card.active {
  background: rgba(8, 145, 178, 0.05) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 25px rgba(8, 145, 178, 0.15);
}

/* Scanner Laser Beam */
.scan-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.8), transparent);
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.8);
  z-index: 5;
  animation: laserSweep 2s ease-in-out infinite;
}

@keyframes laserSweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Glowing Pulse Nodes */
.glow-node {
  box-shadow: 0 0 20px var(--primary);
  animation: pulseGlow 2s infinite alternate;
}

.glow-node-success {
  box-shadow: 0 0 20px #10b981;
  animation: pulseGlowSuccess 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 10px rgba(8, 145, 178, 0.5); }
  100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 25px rgba(8, 145, 178, 0.9); }
}

@keyframes pulseGlowSuccess {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
  100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 25px rgba(16, 185, 129, 0.9); }
}

/* Floating animation */
.float-effect {
  animation: elementFloat 3s ease-in-out infinite;
}

@keyframes elementFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* System container styling inside presentation stage */
.system-node-box {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 140px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-node-box.active {
  border-color: var(--primary);
  background: rgba(8, 145, 178, 0.08);
}

.system-node-box.success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

/* Progress track bar */
.progress-connector {
  flex: 1;
  height: 2px;
  background: rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.progress-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 8px var(--primary);
  transition: width 1.5s ease-in-out;
}

.progress-connector.active::after {
  width: 100%;
}

.progress-connector.success::after {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  width: 100%;
}

/* Technology Partners Section */
.tech-partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.partner-logo {
  height: 36px;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.95;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-logo:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.05);
}


/* ══════════════════════════════════════════════════
   REDESIGN 2026-06-21 — Dark Hero + Modern Layout
   ══════════════════════════════════════════════════ */

/* ---- DARK HERO ---- */
.hero-dark {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070b12;                         /* near-black */
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

/* Radial teal glow behind the headline */
.hero-glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(8, 145, 178, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #67d8ef;               /* light teal */
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0891b2;
  box-shadow: 0 0 8px rgba(8, 145, 178, 0.8);
  animation: pulse-glow 2s infinite;
}

/* Hero headline — large, white, tight tracking */
.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f1f5f9;               /* near-white */
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #94a3b8;               /* slate-400 */
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}

/* CTA buttons in hero */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #030712;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(6, 182, 212, 0.5);
  filter: brightness(1.08);
}

.btn-hero-ghost {
  background: transparent;
  color: #f1f5f9;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f1f5f9;
}

/* Trust pills below CTA */
.hero-trust-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: #64748b;               /* slate-500 */
  font-weight: 500;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(8, 145, 178, 0.6), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ---- SECTION BACKGROUNDS ---- */
.section-light {
  background: var(--bg-page);
  padding: 6rem 0;
}

.section-subtle {
  background: var(--bg-subtle);
  padding: 6rem 0;
}

/* ---- PROBLEM → SOLUTION STRIP ---- */
.problem-strip {
  background: #0c1220;           /* dark, slightly lighter than hero */
  padding: 5rem 0;
  border-top: 1px solid rgba(8, 145, 178, 0.12);
  border-bottom: 1px solid rgba(8, 145, 178, 0.12);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* Cards in problem strip: dark background */
.problem-strip .problem-grid > div {
  background: rgba(8, 145, 178, 0.04);
  border: 1px solid rgba(8, 145, 178, 0.12);
  border-radius: 14px;
  padding: 2rem;
}

.problem-strip .problem-grid h3 {
  color: #f1f5f9;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.problem-strip .problem-grid p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.7;
}

/* Override parseOutcomes() default inline styles for dark strip */
.problem-strip #outcomes-grid > div > h3 {
  font-size: 1.15rem !important;
  color: #f1f5f9 !important;
}

.problem-strip #outcomes-grid > div > p {
  color: #94a3b8 !important;
}

/* ---- HOW IT WORKS GRID ---- */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Step number badge on each card */
.how-step {
  position: relative;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(8, 145, 178, 0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.03em;
}

/* ---- FEATURE LIST (persona panes) ---- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.5;
}

.feat-check {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-check.accent {
  color: var(--accent);
}

/* ---- TECH STRIP ---- */
.tech-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.tech-strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ---- OUTLINE BUTTON ---- */
.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: rgba(8, 145, 178, 0.06);
  transform: translateY(-1px);
}

/* ---- NAVBAR CTA (pill style) ---- */
.nav-cta {
  padding: 0.55rem 1.4rem !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
}

/* ---- TEAM GRID ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.16);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.team-disclosure {
  max-width: 860px;
  margin: 2rem auto 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

/* ---- CONTACT SECTION ---- */
.section-contact {
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
  padding: 6rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-visual {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-copy-block {
  text-align: start;
}

.contact-headline {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-form-wrap {
  /* card is inside */
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-visual .organic-shape {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 1024px) {
  .persona-content-grid,
  .roi-card-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Conversational Intake Agent & Typing Keyframes */
@keyframes typing-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.intake-agent-messages::-webkit-scrollbar {
  width: 6px;
}

.intake-agent-messages::-webkit-scrollbar-track {
  background: transparent;
}

.intake-agent-messages::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.bubble.agent, .bubble.user {
  animation: message-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-option-btn {
  font-family: inherit;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.quick-option-btn:hover {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.agent-chat-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

/* Mobile navigation: the hamburger toggle + slide-in menu panel.
   main.js toggles .active; the 1024px block above styles the panel background. */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1100;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1050;
  }

  .nav-menu.active {
    transform: translateX(0);
  }
}
