/* ===== DESIGN TOKENS ===== */
:root {
  --bg-dark: #030305;
  --bg-card: #0a0a0c;
  --bg-light: #f5f5f7;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-dark: #1d1d1f;
  --primary: #3b82f6;
  --border: #1e293b;
  --sev-critical: #ef4444;
  --sev-high: #f97316;
  --sev-medium: #eab308;
  --sev-low: #3b82f6;
  --sev-resolved: #22c55e;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 980px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  opacity: 0;
  overflow-x: hidden;
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Noise grain overlay — covers entire site */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  color: inherit;
}

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  font-size: clamp(0.7rem, 1vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.section-headline-minor {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.8;
  letter-spacing: 0.005em;
}

/* Section dividers */
.section-divider-dark {
  border-top: 0.5px solid rgba(255,255,255,0.06);
}

.section-divider-light {
  border-top: 0.5px solid rgba(0,0,0,0.06);
}

/* Light section overrides */
.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-light .section-headline {
  color: var(--text-dark);
}

.section-light .section-sub {
  color: #6e6e73;
}

.section-light .eyebrow {
  color: var(--primary);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SECTION PADDING ===== */
.section-padding {
  padding: 6rem 0;
}

.section-padding-major {
  padding: 8rem 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 10rem 0;
  }
  .section-padding-major {
    padding: 14rem 0;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #ffffff;
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.03);
}

.btn-primary-blue {
  background: var(--primary);
  color: #fff;
}

.btn-primary-blue:hover {
  background: #2563eb;
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(3, 3, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: transform 0.35s ease;
}

.nav.nav-hidden {
  transform: translateY(-100%);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.nav-logo svg {
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

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

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

.nav-cta {
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  background: #1d4ed8;
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.nav-cta:active {
  transform: scale(0.98);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.lang-toggle:hover {
  border-color: var(--text-secondary);
}

.lang-option {
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.lang-option.lang-active {
  color: var(--text-primary);
}

.lang-sep {
  color: var(--border);
  user-select: none;
}

/* Nav active link indicator */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a.nav-active {
  color: var(--text-primary);
}

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

/* Hamburger button */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(3,3,5,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  text-decoration: none;
}

.mobile-menu-link:hover {
  color: var(--text-primary);
}

.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
}

.mobile-menu-cta:hover {
  background: #2563eb;
  transform: scale(1.03);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .nav-hamburger {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(59,130,246,0.15), transparent 50%),
              radial-gradient(ellipse 70% 50% at 80% 50%, rgba(139,92,246,0.12), transparent 50%),
              radial-gradient(ellipse 60% 40% at 50% 0%, rgba(6,182,212,0.1), transparent 60%);
  animation: meshShift 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes meshShift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -10px) scale(1.02); }
  66% { transform: translate(-15px, 15px) scale(0.98); }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.4;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
  top: 10%;
  left: -10%;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
  top: 30%;
  right: -10%;
}

.hero-glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent);
  bottom: 10%;
  left: 30%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  display: none;
}

.hero-h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-line-2 {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  display: none;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero floating badges */
.hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59,130,246,0.15);
  background: rgba(59,130,246,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: badgeFloat 4s ease-in-out infinite;
  animation-delay: var(--float-delay);
}

.hero-badge-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 8px 2px rgba(34,197,94,0.3); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-pill {
  width: 24px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--text-secondary);
  position: relative;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--text-secondary);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 22px; opacity: 0.3; }
}

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-dark);
}

.marquee-light {
  background: var(--bg-light);
  border-color: #e5e5e7;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
}

.marquee-item {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marquee-item::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
  background: var(--bg-dark);
}

.problem-header {
  text-align: center;
  margin-bottom: 4rem;
}

.problem-header .section-sub {
  margin: 0 auto;
}

.problem-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.problem-stat {
  text-align: center;
  flex: 0 0 180px;
}

.problem-stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.problem-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Problem chart */
.problem-chart {
  max-width: 560px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
}

.problem-chart-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.problem-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.problem-bar-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: 130px;
  flex-shrink: 0;
  text-align: right;
}

.problem-bar-track {
  flex: 1;
  height: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
}

.problem-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-bar-fill-critical {
  background: linear-gradient(90deg, var(--sev-critical), var(--sev-high));
}

.problem-bar-fill-muted {
  background: rgba(255,255,255,0.15);
}

.problem-bar-fill-dim {
  background: rgba(255,255,255,0.08);
}

.problem-bar-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  width: 40px;
  flex-shrink: 0;
}

/* ===== DARK SECTION MESH ===== */
.video-section,
.device-showcase,
.features-section,
.devices-section,
.stats-section {
  position: relative;
}

.video-section::before,
.device-showcase::before,
.features-section::before,
.devices-section::before,
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.04) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139,92,246,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== DEVICE SHOWCASE ===== */
.device-showcase {
  background: var(--bg-dark);
}

.device-showcase .section-headline,
.device-showcase .section-sub {
  text-align: center;
}

.device-showcase .section-sub {
  margin: 0 auto 3rem;
}

.device-showcase .eyebrow {
  text-align: center;
}

.macbook-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}

.macbook-device {
  position: relative;
  width: 100%;
}

/* Screenshot positioned exactly behind the transparent screen area of the PNG.
   Measured from PNG: screen opening is at top:14.4% left:11.7% width:76.6% height:74.1% */
.macbook-screen-img {
  position: absolute;
  top: 14.4%;
  left: 11.7%;
  width: 76.6%;
  height: 74.1%;
  z-index: 1;
  object-fit: contain;
  object-position: top center;
  pointer-events: none;
}

/* Frame PNG on top — its transparent screen area reveals the screenshot behind */
.macbook-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  background: var(--bg-dark);
}

.video-section .eyebrow,
.video-section .section-headline {
  text-align: center;
}

.video-wrapper {
  max-width: 1200px;
  margin: 2rem auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  cursor: pointer;
  border: none;
  z-index: 2;
}

.video-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.video-play-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  animation: playRipple 2s ease-out infinite;
  pointer-events: none;
}

.video-play-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  animation: playRipple 2s ease-out infinite 0.6s;
  pointer-events: none;
}

@keyframes playRipple {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.video-play-btn:hover::before,
.video-play-btn:hover::after {
  animation-duration: 1.2s;
}

.video-player.is-playing + .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

/* Video takeaway cards */
.video-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .video-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.video-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59,130,246,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.video-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

.video-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.video-card-text strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.video-card-text span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ===== PIPELINE ===== */
.pipeline-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

.pipeline-header {
  text-align: center;
  margin-bottom: 5rem;
}

.pipeline-header .section-sub {
  margin: 0 auto;
}

.pipeline-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 3rem;
}

/* Vertical line on mobile */
.pipeline-timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(59,130,246,0.2));
}

.pipeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pipeline-step-circle {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  z-index: 1;
}

.pipeline-step-circle-highlight {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}

.pipeline-step-highlight .pipeline-title {
  color: var(--primary);
}

.pipeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.pipeline-desc {
  font-size: 0.9rem;
  color: #6e6e73;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.pipeline-latency {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* Pipeline pulse flow */
.pipeline-timeline::after {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(59,130,246,0.6), var(--primary));
  background-size: 100% 200%;
  animation: pipelinePulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pipelinePulse {
  0% { background-position: 0% 0%; opacity: 0.4; }
  50% { background-position: 0% 100%; opacity: 1; }
  100% { background-position: 0% 200%; opacity: 0.4; }
}

/* Desktop: horizontal */
@media (min-width: 1024px) {
  .pipeline-timeline {
    flex-direction: row;
    padding-left: 0;
    gap: 0;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 3rem;
  }

  .pipeline-timeline::before {
    left: 1.25rem;
    right: 1.25rem;
    top: 4.25rem;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, var(--primary), rgba(59,130,246,0.2));
  }

  .pipeline-timeline::after {
    left: 1.25rem;
    right: 1.25rem;
    top: 4.25rem;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    background-size: 200% 100%;
    animation: pipelinePulseH 3s ease-in-out infinite;
  }

  @keyframes pipelinePulseH {
    0% { background-position: -100% 0%; }
    100% { background-position: 200% 0%; }
  }

  .pipeline-step {
    flex: 1;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
  }

  .pipeline-step-circle {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 1rem;
  }

  .pipeline-step-circle-highlight {
    left: auto;
    top: auto;
  }
}

/* ===== PERSONAS ===== */
.personas-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.persona-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.persona-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.persona-pain {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 2px solid rgba(59, 130, 246, 0.2);
}

.persona-solution {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

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

/* ===== HOW IT WORKS (SIMPLE) ===== */
.howto-header {
  text-align: center;
  margin-bottom: 4rem;
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}

/* Connector line between steps — aligned to icon center */
.howto-steps::before {
  content: '';
  position: absolute;
  top: calc(32px + 1.25rem + 28px); /* number height + gap + half icon */
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
  opacity: 0.4;
}

.howto-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.howto-number {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.howto-icon {
  width: 56px;
  height: 56px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howto-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
}

.howto-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.howto-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
}

@media (max-width: 768px) {
  .howto-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .howto-steps::before {
    display: none;
  }
}

/* ===== MAGI SYSTEM ===== */
.magi-section {
  background: var(--bg-dark);
  padding: 4rem 1.5rem;
}

.magi-pin-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.magi-sticky {
  height: 80vh;
  min-height: 550px;
  max-height: 750px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 0 80px rgba(59, 130, 246, 0.04), 0 0 0 1px rgba(255,255,255,0.03) inset;
  position: relative;
  will-change: transform;
  transform: translateZ(0);
  cursor: default;
}

/* Scroll hint at bottom of MAGI window */
.magi-scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #a1a1a6;
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}

.magi-scroll-hint-hidden {
  opacity: 0;
}

.magi-scroll-hint svg {
  width: 14px;
  height: 14px;
  animation: magiHintBounce 1.5s ease-in-out infinite;
}

@keyframes magiHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.magi-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.magi-phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.magi-phase-title {
  opacity: 1;
}

.magi-phase-title .eyebrow {
  margin-bottom: 1rem;
}

.magi-phase-title .section-headline {
  margin-bottom: 1.5rem;
}

.magi-phase-title .section-sub {
  margin: 0 auto;
  text-align: center;
}

/* MAGI scenario alert card */
.magi-scenario-card {
  max-width: 420px;
  margin: 2rem auto 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: left;
  opacity: 0;
}

.magi-scenario-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(239,68,68,0.08);
  border-bottom: 1px solid rgba(239,68,68,0.15);
}

.magi-scenario-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sev-critical);
  letter-spacing: 0.03em;
}

.magi-scenario-time {
  font-size: 0.65rem;
  font-family: monospace;
  color: var(--text-secondary);
}

.magi-scenario-body {
  padding: 0.75rem 1rem;
}

.magi-scenario-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.magi-scenario-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.magi-scenario-footer {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  opacity: 0.6;
}

.magi-agent-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.magi-agent-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.magi-agent-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.magi-agent-role {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Stepper — vertical left side tracker */
.magi-stepper {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 10;
  opacity: 0;
}

.magi-stepper-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.magi-stepper-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(134,134,139,0.15);
  border: 1.5px solid rgba(134,134,139,0.25);
  flex-shrink: 0;
}

.magi-stepper-label {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(134,134,139,0.3);
  white-space: nowrap;
}

.magi-stepper-track {
  width: 1.5px;
  height: 32px;
  background: rgba(134,134,139,0.1);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.magi-stepper-progress {
  width: 100%;
  height: 0%;
  border-radius: 1px;
}

@media (max-width: 1024px) {
  .magi-stepper {
    left: 1rem;
  }
  .magi-stepper-label {
    display: none;
  }
}

/* Schemas — bigger */
.magi-schema {
  width: 100%;
  max-width: 520px;
  margin: 1.5rem auto;
}

.magi-schema svg {
  width: 100%;
  height: auto;
}

/* Fusion animation */
.magi-fusion {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.magi-fusion-svg {
  width: 100%;
  height: auto;
}

/* Fusion flash — radial glow burst, not a rectangle */
.magi-flash {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(249,115,22,0.2) 30%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.magi-consensus-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, #ef4444, #f97316, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 1rem;
}

.magi-agent-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
  margin: 0.5rem auto 0;
}

.magi-agent-quote {
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.7;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.magi-consensus-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Verdict result card */
.magi-verdict {
  max-width: 360px;
  width: 100%;
  margin: 1.5rem auto 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: left;
}

.magi-verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(34,197,94,0.06);
  border-bottom: 1px solid rgba(34,197,94,0.12);
}

.magi-verdict-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.magi-verdict-critical {
  background: rgba(239,68,68,0.15);
  color: var(--sev-critical);
}

.magi-verdict-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--sev-resolved);
}

.magi-verdict-body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.magi-verdict-action {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.magi-verdict-action::first-letter {
  color: var(--sev-resolved);
}

.magi-verdict-time {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(59,130,246,0.04);
}

/* ===== SECURITY SCORE ===== */
.score-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

.score-header {
  text-align: center;
  margin-bottom: 4rem;
}

.score-header .section-sub {
  margin: 0 auto;
}

.score-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .score-layout {
    flex-direction: row;
    justify-content: center;
    gap: 5rem;
  }
}

.score-gauge {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  will-change: transform;
}

.score-gauge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.score-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-gauge-bg {
  fill: none;
  stroke: #e5e5e7;
  stroke-width: 8;
}

.score-gauge-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
}

.score-gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.score-label {
  font-size: 0.85rem;
  color: #6e6e73;
  margin-top: 0.25rem;
}

.score-bars {
  flex: 1;
  max-width: 500px;
  width: 100%;
}

.score-bar-item {
  margin-bottom: 1.25rem;
}

.score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.score-bar-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.score-bar-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #60a5fa;
}

.score-bar-track {
  height: 6px;
  border-radius: 3px;
  background: #e5e5e7;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  width: 0%;
  box-shadow: 0 0 8px currentColor;
}

/* Score comparison cards */
.score-comparison {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.score-compare-card {
  flex: 0 0 200px;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid #e5e5e7;
  background: #fff;
}

.score-compare-score {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.score-compare-bad .score-compare-score { color: var(--sev-critical); }
.score-compare-mid .score-compare-score { color: var(--sev-medium); }
.score-compare-good .score-compare-score { color: var(--sev-resolved); }

.score-compare-good {
  border-color: rgba(34,197,94,0.3);
  box-shadow: 0 0 20px rgba(34,197,94,0.08);
}

.score-compare-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.score-compare-desc {
  font-size: 0.75rem;
  color: #6e6e73;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .score-compare-card { flex: 1 1 100%; }
}

/* ===== FEATURES ===== */
.features-section {
  background: var(--bg-dark);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.feature-row-reverse {
  flex-direction: row-reverse;
}

.feature-visual {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

/* On reversed rows, align text to the right */
.feature-row-reverse .feature-text {
  text-align: right;
}

.feature-row-reverse .feature-desc {
  margin-left: auto;
}

@media (max-width: 768px) {
  .feature-row,
  .feature-row-reverse {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .feature-visual {
    flex: none;
    width: 100%;
  }

  .feature-row-reverse .feature-text {
    text-align: center;
  }

  .feature-row-reverse .feature-desc {
    margin-left: 0;
  }

  .feature-title {
    font-size: 1.3rem;
  }

  .features-list {
    gap: 2rem;
  }
}

/* ===== COMPLIANCE ===== */
.compliance-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

.compliance-header {
  text-align: center;
  margin-bottom: 4rem;
}

.compliance-header .section-sub {
  margin: 0 auto;
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .compliance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.compliance-card {
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.compliance-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-color: #d1d5db;
}

.compliance-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.compliance-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.compliance-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.compliance-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.compliance-card-desc {
  font-size: 0.9rem;
  color: #6e6e73;
  line-height: 1.6;
}

.compliance-card-impact {
  font-size: 0.85rem;
  color: var(--primary);
  line-height: 1.5;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

/* Compliance matrix */
.compliance-matrix {
  margin-top: 3rem;
  overflow-x: auto;
}

.compliance-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.compliance-matrix th {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e5e5e7;
}

.compliance-matrix td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e5e5e7;
}

.matrix-reg {
  font-weight: 700;
  color: var(--text-dark);
  text-align: left !important;
}

.matrix-check {
  color: var(--sev-resolved);
  font-weight: 700;
  font-size: 1rem;
}

.matrix-dash {
  color: #d1d5db;
}

/* ===== MULTI-DEVICE ===== */
.devices-section {
  background: var(--bg-dark);
}

.devices-header {
  text-align: center;
  margin-bottom: 4rem;
}

.devices-header .section-sub {
  margin: 0 auto;
}

.devices-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .devices-layout {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
  }
}

.phone-mockup {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  top: 3.5%;
  left: 7.3%;
  width: 85.7%;
  height: 92.9%;
  overflow: hidden;
  border-radius: 28px;
  z-index: 1;
}

.phone-screen-content {
  width: 100%;
  height: 100%;
  background: #111113;
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
}

.phone-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.phone-chat-body {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

.chat-bubble {
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  max-width: 85%;
  line-height: 1.5;
  font-size: 0.65rem;
}

.chat-user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-ai {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.tablet-mockup {
  position: relative;
  width: 420px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .tablet-mockup {
    width: 480px;
  }
}

.tablet-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}

.tablet-screen {
  position: absolute;
  top: 3.4%;
  left: 4.4%;
  width: 91.1%;
  height: 93.2%;
  overflow: hidden;
  border-radius: 14px;
  z-index: 1;
}

.tablet-screen-content {
  width: 100%;
  height: 100%;
  background: #111113;
  padding: 1rem;
  font-size: 0.8rem;
}

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

.tablet-report-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.report-check::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.report-pass::before {
  background: var(--sev-resolved);
}

.report-warn::before {
  background: var(--sev-medium);
}

/* Dynamic Island spacer — leaves room for the frame's built-in island */
.phone-dynamic-island-spacer {
  height: 2.5rem;
  flex-shrink: 0;
}

/* Chat header elements */
.phone-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-chat-header-text {
  display: flex;
  flex-direction: column;
}

.phone-chat-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
}

.phone-chat-status {
  font-size: 0.55rem;
  color: #22c55e;
}

/* Chat stats pills */
.chat-stat {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.25rem;
}

.chat-stat-critical {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

.chat-stat-high {
  background: rgba(249,115,22,0.15);
  color: #f97316;
}

.chat-stat-resolved {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

/* Chat typing indicator */
.chat-typing-indicator {
  display: none;
}

/* Chat input bar */
.phone-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.phone-chat-input-text {
  font-size: 0.6rem;
  color: var(--text-secondary);
}

/* Tablet top bar */
.tablet-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.tablet-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tablet-app-name {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.tablet-breadcrumb {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Tablet report title & date */
.tablet-report-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.tablet-report-date {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.tablet-score-pill {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  background: rgba(34,197,94,0.12);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

.tablet-score-number {
  font-size: 0.9rem;
  font-weight: 800;
  color: #22c55e;
}

.tablet-score-label {
  font-size: 0.6rem;
  color: #22c55e;
  font-weight: 500;
}

/* Tablet progress bar */
.tablet-progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.tablet-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #3b82f6);
  border-radius: 2px;
}

/* Tablet export button */
.tablet-export-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Device scenarios */
.device-scenarios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .device-scenarios {
    grid-template-columns: repeat(3, 1fr);
  }
}

.device-scenario {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.scenario-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scenario-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.device-scenario h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.device-scenario p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== INTEGRATIONS ===== */
.integrations-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

.integrations-header {
  text-align: center;
  margin-bottom: 4rem;
}

.integrations-header .section-sub {
  margin: 0 auto;
}

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

@media (min-width: 640px) {
  .integrations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .integrations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.integration-item {
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.integration-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-color: #d1d5db;
}

.integration-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.integration-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}

/* Filled logos (VirusTotal, HIBP, Palo Alto, Fortinet) don't need stroke */
.integration-icon svg[fill="var(--primary)"] {
  stroke: none;
}

.integration-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ===== STATS ===== */
.stats-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s, border-color 0.3s;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.3);
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  opacity: 0.6;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-dark);
  position: relative;
  overflow: visible;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.cta-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}

.cta-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent);
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.cta-glow-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent);
  top: 10%;
  right: 15%;
}

.cta-glow-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent);
  bottom: 15%;
  left: 20%;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-logo {
  margin-bottom: 2rem;
}

.cta-logo svg {
  filter: drop-shadow(0 0 20px rgba(59,130,246,0.3));
}

.cta-headline {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-cta-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: none;
  box-shadow: 0 0 30px rgba(245,245,247,0.1);
}

.btn-cta-primary:hover {
  box-shadow: 0 0 40px rgba(245,245,247,0.2);
  transform: translateY(-2px);
}

/* CTA demo flow timeline */
.cta-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.cta-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 120px;
}

.cta-flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59,130,246,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-flow-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.cta-flow-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}

.cta-flow-arrow {
  opacity: 0.25;
}

.cta-flow-arrow svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .cta-flow-arrow { display: none; }
  .cta-flow { gap: 1.5rem; }
  .cta-flow-step { width: 100px; }
}

.cta-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-secondary), transparent);
  margin: 0 auto 2rem;
  opacity: 0.3;
}

.cta-trust {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.trust-badge:hover svg {
  opacity: 1;
  height: 20px;
  stroke: var(--sev-resolved);
}

/* ===== CHATBOT WIDGET ===== */
.chatbot-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chatbot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5);
}

.chatbot-fab svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.chatbot-fab-hidden {
  transform: scale(0);
  pointer-events: none;
}

.chatbot-window {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.chatbot-window-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 32px;
  height: 32px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chatbot-status {
  font-size: 0.7rem;
  color: #22c55e;
}

.chatbot-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.chatbot-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  transition: stroke 0.15s;
}

.chatbot-close:hover svg {
  stroke: var(--text-primary);
}

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 340px;
}

.chatbot-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: chatbotMsgIn 0.25s ease-out;
}

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

.chatbot-msg-bot {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot-msg-user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-msg p {
  margin: 0;
}

.chatbot-msg a {
  color: var(--primary);
  text-decoration: underline;
}

.chatbot-msg-user a {
  color: #fff;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  animation: chatbotMsgIn 0.3s ease-out;
}

.chatbot-suggestion {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--primary);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.chatbot-suggestion:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--primary);
}

.chatbot-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.chatbot-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.chatbot-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.chatbot-send {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.chatbot-send svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  transition: stroke 0.15s;
}

.chatbot-send:hover svg {
  stroke: #60a5fa;
}

.chatbot-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  margin: 0 1.5px;
  animation: chatbotDot 1.2s infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbotDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 1rem;
    max-height: 70vh;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

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

.footer-bar {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== REVEAL ANIMATION ===== */
.reveal-card {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-text {
  opacity: 0;
  transform: translateY(20px);
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal-card,
  .reveal-text {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

  .scroll-dot {
    animation: none;
  }

  .score-gauge-fill {
    stroke-dashoffset: 0;
  }

  .score-bar-fill {
    width: var(--bar-width);
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== GRADIENT TEXT UTILITY ===== */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SOCIAL PROOF ===== */
.proof-section {
  border-top: 1px solid var(--border);
}

.proof-header {
  text-align: center;
  margin-bottom: 3rem;
}

.proof-trust-line {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.proof-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.proof-testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.proof-stars {
  color: #eab308;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.proof-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: normal;
  flex: 1;
}

.proof-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.proof-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.proof-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

  .proof-logos {
    gap: 1rem 1.5rem;
  }
}

/* ===== INLINE CTA ===== */
.inline-cta {
  padding: 2rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.inline-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.inline-cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .inline-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ===== PRICING ===== */
.pricing-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1050px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
  transform: scale(1.03);
}

.pricing-card-featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card-header {
  text-align: center;
}

.pricing-tier {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.pricing-target {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-price {
  text-align: center;
  padding: 0.5rem 0;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  vertical-align: super;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-price-custom {
  padding: 1rem 0;
}

.pricing-custom {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: #4b5563;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

.pricing-cta {
  text-align: center;
  margin-top: auto;
}

/* Pricing on light background — ghost button needs dark text */
.pricing-section .btn-ghost {
  color: var(--text-dark);
  border-color: #d1d5db;
}

.pricing-section .btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 2rem;
  }

  .pricing-card-featured {
    transform: none;
    order: -1;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }
}

/* ===== FOOTER COMING SOON ===== */
.footer-link-soon {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.footer-link-soon::after {
  content: ' (bientôt)';
  font-size: 0.65em;
  opacity: 0.6;
}

/* ===== ATTACK SCENARIO ===== */
.scenario-header {
  text-align: center;
  margin-bottom: 4rem;
}

.scenario-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 120px;
}

/* Vertical line */
.scenario-timeline::before {
  content: '';
  position: absolute;
  left: 119px;
  top: 8px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(to bottom, var(--sev-critical), var(--primary), #22c55e);
  opacity: 0.3;
}

.scenario-event {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2.5rem;
}

.scenario-time {
  position: absolute;
  left: -120px;
  top: 2px;
  width: 100px;
  text-align: right;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.scenario-dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
}

.scenario-dot-detect { border-color: var(--sev-critical); background: rgba(239, 68, 68, 0.2); }
.scenario-dot-enrich { border-color: var(--sev-high); background: rgba(249, 115, 22, 0.2); }
.scenario-dot-magi { border-color: var(--primary); background: rgba(59, 130, 246, 0.2); }
.scenario-dot-action { border-color: #22c55e; background: rgba(34, 197, 94, 0.2); }
.scenario-dot-notify { border-color: #22c55e; background: rgba(34, 197, 94, 0.3); }

.scenario-detail h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.scenario-detail p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.scenario-total {
  text-align: center;
  padding-top: 1.5rem;
  margin-left: -120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scenario-total-time {
  font-size: 2rem;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: -0.03em;
}

.scenario-total-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .scenario-timeline {
    padding-left: 40px;
  }
  .scenario-timeline::before {
    left: 39px;
  }
  .scenario-time {
    position: static;
    width: auto;
    text-align: left;
    margin-bottom: 0.25rem;
  }
  .scenario-total {
    margin-left: -40px;
  }
}

/* ===== TRUST & SECURITY ===== */
.trust-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.trust-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.trust-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 240px;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

/* ===== COMPARISON TABLE ===== */
.compare-header {
  text-align: center;
  margin-bottom: 3rem;
}

.compare-table {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table thead th {
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.compare-table thead th.compare-highlight {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.compare-table tbody td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  text-align: center;
  vertical-align: middle;
}

.compare-table tbody td.compare-highlight {
  background: rgba(59, 130, 246, 0.03);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:last-child td.compare-highlight {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.compare-label {
  text-align: left !important;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.compare-yes {
  color: var(--sev-resolved);
  font-weight: 600;
}

.compare-partial {
  color: var(--sev-medium);
}

.compare-no {
  color: var(--text-secondary);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .compare-table {
    font-size: 0.8rem;
  }

  .compare-table thead th,
  .compare-table tbody td {
    padding: 0.7rem 0.6rem;
  }
}

/* ===== FAQ ===== */
.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 0 1.25rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== DECORATIVE SECTION GLOWS ===== */
.section-padding,
.section-padding-major {
  position: relative;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.04;
  z-index: 0;
}

.glow-orb-blue {
  background: var(--primary);
}

.glow-orb-purple {
  background: #8b5cf6;
}

.glow-orb-cyan {
  background: #06b6d4;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */

/* --- Small tablets (480px–768px) --- */
@media (max-width: 768px) {
  .hero-h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .scroll-indicator {
    bottom: 1.25rem;
  }
  .problem-stats {
    gap: 1.5rem;
  }
  .problem-stat {
    flex: 0 0 140px;
  }
  .problem-bar-label {
    width: 90px;
    font-size: 0.7rem;
  }
  .magi-stepper {
    display: none;
  }
  .magi-flash {
    width: 200px;
    height: 200px;
  }
  .phone-mockup {
    width: 260px;
  }
  .tablet-mockup {
    width: 100%;
    max-width: 360px;
  }
  .score-gauge {
    width: 200px;
    height: 200px;
  }
  .score-gauge::before {
    width: 240px;
    height: 240px;
  }
  .score-number {
    font-size: 3rem;
  }
  .score-bars {
    max-width: 100%;
  }
  .marquee-track {
    gap: 2rem;
  }
  .stats-grid {
    gap: 1rem;
  }
  .stat-item {
    padding: 1.5rem 1rem;
  }
  .cta-flow-step {
    width: 100px;
  }
}

/* --- Small phones (≤480px) — iPhone SE, etc. --- */
@media (max-width: 480px) {
  /* Hero */
  .hero-h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
  .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  .hero-badges {
    margin-top: 1.5rem;
    gap: 0.5rem;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }
  .scroll-indicator {
    bottom: 1rem;
  }

  .section-padding {
    padding: 3rem 1rem;
  }
  .section-padding-major {
    padding: 4rem 1rem;
  }

  /* Problem */
  .problem-stats {
    gap: 1rem;
  }
  .problem-stat {
    flex: 0 0 calc(50% - 0.5rem);
  }
  .problem-chart {
    padding: 1.25rem;
  }
  .problem-bar-label {
    width: 70px;
    font-size: 0.65rem;
  }

  /* MAGI */
  .magi-section {
    padding: 2rem 0.75rem;
  }
  .magi-sticky {
    min-height: 400px;
    height: 70vh;
  }
  .magi-content {
    padding: 0 1rem;
  }
  .magi-agent-name {
    font-size: 1.4rem;
  }
  .magi-agent-role {
    font-size: 0.85rem;
  }

  /* Score */
  .score-gauge {
    width: 180px;
    height: 180px;
  }
  .score-gauge::before {
    width: 220px;
    height: 220px;
  }
  .score-number {
    font-size: 2.5rem;
  }
  .score-layout {
    gap: 2rem;
  }

  /* Features */
  .feature-visual {
    max-width: 240px;
  }
  .feature-title {
    font-size: 1.15rem;
  }
  .feature-desc {
    font-size: 0.95rem;
  }

  /* Personas */
  .persona-card {
    padding: 1.75rem 1.25rem;
  }

  /* Devices */
  .phone-mockup {
    width: 220px;
  }
  .devices-layout {
    gap: 2rem;
  }

  /* Integrations */
  .integrations-grid {
    gap: 0.75rem;
  }
  .integration-item {
    padding: 1rem;
    gap: 0.5rem;
  }

  /* Trust */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .trust-item p {
    max-width: 100%;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Compare table */
  .compare-table {
    font-size: 0.7rem;
  }
  .compare-table thead th,
  .compare-table tbody td {
    padding: 0.5rem 0.4rem;
  }

  /* Compliance matrix */
  .compliance-matrix table {
    font-size: 0.7rem;
  }
  .compliance-matrix th,
  .compliance-matrix td {
    padding: 0.5rem 0.5rem;
  }

  /* Pricing */
  .pricing-grid {
    max-width: 100%;
  }

  /* Proof */
  .proof-logos {
    gap: 0.75rem 1rem;
  }

  /* CTA */
  .cta-flow-step {
    width: 80px;
  }
  .cta-flow-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .cta-flow-icon svg {
    width: 18px;
    height: 18px;
  }
  .cta-flow-label {
    font-size: 0.65rem;
  }

  /* Marquee */
  .marquee-track {
    gap: 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .hero::before {
    animation: none !important;
  }
}

/* Background grid for dark sections */
.section-grid-bg {
  position: relative;
}

.section-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-grid-bg > * {
  position: relative;
  z-index: 1;
}
