/* ==========================================================================
   Veylith — Premium Product Landing Website Stylesheet
   Palette: Deep Navy (#0B132B, #1C2541), Sky Blue (#38BDF8, #0284C7), Clean Slate
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0b132b;
  --bg-dark-card: #141f36;
  --bg-dark-code: #0a0f1d;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  --text-inverse-muted: #94a3b8;

  --brand-navy: #0b132b;
  --brand-navy-light: #1c2541;
  --brand-sky: #0284c7;
  --brand-sky-light: #38bdf8;
  --brand-sky-glow: rgba(56, 189, 248, 0.15);

  --status-allow: #10b981;
  --status-block: #ef4444;
  --status-review: #f59e0b;
  --status-quarantine: #8b5cf6;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #1e293b;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* ================= Container ================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

a {
  color: var(--brand-sky);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #0369a1;
}

code,
pre {
  font-family: var(--font-mono);
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-sky);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0284c7;
  box-shadow: 0 0 16px var(--brand-sky-glow);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-dark);
}

.btn-dark {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--brand-navy-light);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* ================= Badges ================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-sky {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-dark {
  background: rgba(11, 19, 43, 0.08);
  color: var(--brand-navy);
  border: 1px solid rgba(11, 19, 43, 0.15);
}

.badge-pill-alpha {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #bae6fd;
}

/* ================= Header & KokonutUI Split Navigation (Apple Liquid Glass) ================= */
.site-header {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 54px;
  gap: 16px;
}

.site-header .brand-pill,
.site-header .split-nav-container,
.site-header .header-actions {
  pointer-events: auto;
}

/* Apple Liquid Glass Brand Pill */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.35) 100%);
  backdrop-filter: blur(28px) saturate(210%) contrast(104%);
  -webkit-backdrop-filter: blur(28px) saturate(210%) contrast(104%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  padding: 7px 16px 7px 12px;
  box-shadow:
    0 18px 38px -10px rgba(0, 32, 80, 0.12),
    0 4px 12px -2px rgba(0, 0, 0, 0.05),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.brand-pill:hover {
  transform: translateY(-1.5px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.45) 100%);
  box-shadow:
    0 22px 42px -8px rgba(0, 32, 80, 0.16),
    0 6px 14px -2px rgba(0, 0, 0, 0.06),
    inset 0 2px 3px rgba(255, 255, 255, 1);
}

.brand-icon {
  width: 26px;
  height: 26px;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand-navy);
}

/* KokonutUI Split Nav Bar (Apple Liquid Glass) */
.split-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-nav-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.32) 100%);
  backdrop-filter: blur(32px) saturate(210%) contrast(104%);
  -webkit-backdrop-filter: blur(32px) saturate(210%) contrast(104%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 20px 45px -12px rgba(0, 32, 80, 0.14),
    0 8px 18px -4px rgba(0, 117, 255, 0.08),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.split-segment {
  position: relative;
  transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.split-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: transparent;
  transition:
    color 0.18s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.2s ease;
  white-space: nowrap;
  outline: none;
}

.split-link:hover {
  color: #0b132b;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.8);
}

/* Active Segment: Apple Liquid Glass elevated pill */
.split-segment.active .split-link {
  background: rgba(255, 255, 255, 0.92);
  color: #0b132b;
  font-weight: 700;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.09),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1.5px 2px #ffffff;
}

/* KokonutUI Orange Indicator */
.split-orange-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 14px;
  height: 2.5px;
  background: #ff9800;
  border-radius: 9999px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 1px 5px rgba(255, 152, 0, 0.7);
  pointer-events: none;
}

.split-segment.active .split-orange-indicator {
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Apple Liquid Glass Shiny Button */
.shiny-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 15px 35px -10px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 2px rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.shiny-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 18px 40px -8px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 2px 4px rgba(255, 255, 255, 0.95) inset;
}

.shiny-button:active {
  transform: translateY(1px);
}

.shiny-button .shiny-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  mask:
    linear-gradient(#000, #000) content-box exclude,
    linear-gradient(#000, #000);
  -webkit-mask:
    linear-gradient(#000, #000) content-box exclude,
    linear-gradient(#000, #000);
  background: linear-gradient(
    -75deg,
    rgba(2, 132, 199, 0.2) 0%,
    rgba(2, 132, 199, 0.9) 50%,
    rgba(2, 132, 199, 0.2) 100%
  );
  background-size: 200% 100%;
  animation: shiny-sweep 3s ease-in-out infinite;
  pointer-events: none;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* ================= Hero Section with OriginKit Cloud Sky ================= */
.hero-section {
  position: relative;
  min-height: 880px;
  padding: 140px 20px 90px 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0075ff;
}

.hero-section::after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  pointer-events: none;
  content: '';
  background: linear-gradient(180deg, transparent 0%, rgba(240, 247, 255, 0.45) 55%, #f0f7ff 100%);
  z-index: 2;
}

.cloud-sky-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge-wrap {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Magic UI Text Highlighter */
.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0b132b;
  line-height: 1.18;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.highlighter-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.highlighter-underline svg {
  position: absolute;
  left: -4%;
  bottom: -6px;
  width: 108%;
  height: 14px;
  pointer-events: none;
  overflow: visible;
}

.highlighter-underline path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-stroke 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.highlighter-box {
  position: relative;
  display: inline-block;
  padding: 0 8px;
  white-space: nowrap;
}

.highlighter-box svg {
  position: absolute;
  inset: -3px -6px;
  width: calc(100% + 12px);
  height: calc(100% + 6px);
  z-index: -1;
  pointer-events: none;
}

.highlighter-box path {
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left center;
  animation: pop-highlight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

@keyframes draw-stroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop-highlight {
  to {
    opacity: 0.85;
    transform: scaleX(1);
  }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: #1e293b;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 450;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

/* Magic UI Shimmer Button */
.shimmer-button {
  --shimmer-color: #38bdf8;
  --speed: 3s;
  --spread: 90deg;
  --bg: #0b132b;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9999px;
  color: #ffffff;
  background: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    0 10px 25px -4px rgba(11, 19, 43, 0.4),
    inset 0 -6px 10px rgba(255, 255, 255, 0.12);
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.shimmer-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px -4px rgba(11, 19, 43, 0.5),
    inset 0 -6px 12px rgba(255, 255, 255, 0.22);
}

.shimmer-button:active {
  transform: translateY(1px);
}

.shimmer-spark-container {
  position: absolute;
  inset: 0;
  overflow: visible;
  border-radius: inherit;
  pointer-events: none;
  filter: blur(1.5px);
  z-index: 1;
}

.shimmer-spark {
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 270deg, transparent 0, #38bdf8 90deg, transparent 90deg);
  animation: spin-around calc(var(--speed) * 1.5) linear infinite;
}

.shimmer-backdrop {
  position: absolute;
  inset: 1.5px;
  border-radius: inherit;
  background: var(--bg);
  z-index: 2;
}

.shimmer-content {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes spin-around {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Magic UI Terminal Card (Mac-Style Light Frosted Terminal) */
.magic-terminal-card {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow:
    0 25px 60px -15px rgba(2, 132, 199, 0.25),
    0 10px 30px -5px rgba(0, 0, 0, 0.08);
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.magic-terminal-card:hover {
  box-shadow:
    0 30px 70px -12px rgba(2, 132, 199, 0.32),
    0 12px 35px -5px rgba(0, 0, 0, 0.1);
}

.magic-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid #e2e8f0;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}
.dot-amber {
  background: #ffbd2e;
}
.dot-green {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.terminal-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.terminal-copy-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.magic-terminal-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.8;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.88);
}

.terminal-cmd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #0f172a;
}

.terminal-prompt-sym {
  color: #0284c7;
  font-weight: 700;
}

.terminal-typing-text {
  color: #0f172a;
}

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: #0284c7;
  margin-left: 2px;
  animation: terminal-blink 1s steps(2, start) infinite;
  vertical-align: middle;
}

@keyframes terminal-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.terminal-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal-step-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.terminal-step-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-check {
  color: #10b981;
  font-weight: 700;
  flex-shrink: 0;
}

.terminal-status-dot {
  color: #0284c7;
  font-size: 1.1rem;
  line-height: 1;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-inverse-muted);
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #e2e8f0;
}

.terminal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.terminal-code {
  color: #38bdf8;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.terminal-log-output {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Accessible Screen Reader Hide Utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================= Section Layout ================= */
.section {
  padding: 88px 0;
}

/* ================= Section 2: Threat Landscape Theme (Full Viewport Height + PulseRoll + Glitch + Shine Border) ================= */
.section-problem-theme {
  position: relative;
  min-height: 100vh;
  min-height: 940px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 95px 24px 85px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f7ff 0%, #e2f1fd 40%, #f4faff 75%, #ffffff 100%);
  border-top: none;
  border-bottom: none;
  box-sizing: border-box;
}

/* Magic UI Dot Pattern Background (Sky Blue) */
.dot-pattern-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 120px,
    #000 calc(100% - 120px),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 120px,
    #000 calc(100% - 120px),
    transparent 100%
  );
}

.dot-pattern-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Huge Ghost Watermark Heading: Signal Text (Figma Spec) */
.watermark-signal-text {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(56, 189, 248, 0.26);
  text-shadow: 0 0 32px rgba(56, 189, 248, 0.12);
  opacity: 0.95;
}

/* OriginKit PulseRoll 3D Canvas Background Attraction */
.pulseroll-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  opacity: 0.88;
}

.pulseroll-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.section-content-relative {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Centered Header Block (Shifted 20px Up) */
.section-problem-theme .section-header {
  text-align: center;
  max-width: 860px;
  margin: -15px auto 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-problem-theme .section-label-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.12);
  color: #0284c7;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 auto 12px auto;
}

/* Bigger Prominent Centered Heading */
.section-problem-theme .section-title,
.section-problem-theme .glitch-section-heading {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #0a0f1d;
  text-align: center;
  margin: 0 auto 10px auto;
  width: 100%;
}

.section-problem-theme .section-description {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: #475569;
  line-height: 1.65;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 8px auto;
}

/* KokonutUI GlitchText (Signal Text) Centered */
.kokonut-glitch-text {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.kokonut-glitch-text .glitch-layers {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
}

.kokonut-glitch-text .glitch-layer {
  grid-column: 1;
  grid-row: 1;
  color: #0a0f1d;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: center;
}

.kokonut-glitch-text .glitch-base {
  position: relative;
  color: #0a0f1d;
  font-weight: 850;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.kokonut-glitch-text .glitch-band {
  position: absolute;
  inset: 0;
  color: #0a0f1d;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.kokonut-glitch-text .glitch-channel-red {
  position: absolute;
  inset: 0;
  color: #ef4444;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.kokonut-glitch-text .glitch-channel-cyan {
  position: absolute;
  inset: 0;
  color: #00f0ff;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* Magic UI Shine Border Cards (Shifted Up) */
.threat-grid-shine {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
  width: 100%;
}

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

@media (max-width: 640px) {
  .threat-grid-shine {
    grid-template-columns: 1fr;
  }
  .section-problem-theme {
    padding: 90px 16px 80px 16px;
    min-height: auto;
  }
}

.shine-card {
  position: relative;
  border-radius: 20px;
  padding: 1.5px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow:
    0 18px 40px -12px rgba(2, 132, 199, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease;
}

.shine-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 26px 54px -12px rgba(2, 132, 199, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.06);
}

.shine-border-mask {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  background-image: radial-gradient(
    circle at center,
    #38bdf8 0%,
    #0284c7 35%,
    #ff9800 65%,
    transparent 85%
  );
  background-size: 300% 300%;
  animation: shine-sweep-anim 8s linear infinite;
}

@keyframes shine-sweep-anim {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.shine-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 18.5px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}

.threat-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.threat-stage-pill {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}

.stage-pill-1,
.stage-pill-3 {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.stage-pill-2,
.stage-pill-4 {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.threat-sev-tag {
  font-size: 0.7rem;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sev-critical {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.sev-high {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.threat-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: #0a0f1d;
  margin-bottom: 10px;
  line-height: 1.3;
}

.threat-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Threat Code Box: Mac-Style High-Contrast Container */
.threat-code-box {
  background: #080f20;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(2, 132, 199, 0.08);
  overflow: hidden;
  margin-top: auto;
  text-align: left;
}

.code-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.68rem;
  color: #64748b;
  width: 100%;
}

.code-dots-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.code-dots-row .code-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.code-dots-row .dot-red {
  background: #ef4444;
}

.code-dots-row .dot-amber {
  background: #f59e0b;
}

.code-dots-row .dot-green {
  background: #10b981;
}

.code-file-label {
  color: #cbd5e1;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.code-tag-badge.badge-threat {
  margin-left: auto;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.28);
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.code-snippet-pre {
  margin: 0;
  padding: 2px 0 0 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: #e2e8f0;
  text-align: left;
  white-space: pre;
  overflow-x: auto;
}

.code-snippet-pre code {
  display: block;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
  white-space: pre;
}

.c-key {
  color: #38bdf8;
  font-weight: 600;
}

.c-str {
  color: #fcd34d;
}

.c-fn {
  color: #c084fc;
  font-weight: 600;
}

.c-danger {
  color: #f87171;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

.dot-amber {
  background: #f59e0b;
}

/* ================= Architecture Section ================= */
.arch-diagram-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.arch-svg {
  width: 100%;
  height: auto;
  display: block;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.outcome-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border-top: 4px solid var(--border-medium);
}

.outcome-allow {
  border-top-color: var(--status-allow);
}
.outcome-block {
  border-top-color: var(--status-block);
}
.outcome-review {
  border-top-color: var(--status-review);
}
.outcome-quarantine {
  border-top-color: var(--status-quarantine);
}

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

.outcome-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.outcome-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.tag-allow {
  background: #dcfce7;
  color: #15803d;
}
.tag-block {
  background: #fee2e2;
  color: #b91c1c;
}
.tag-review {
  background: #fef3c7;
  color: #b45309;
}
.tag-quarantine {
  background: #f3e8ff;
  color: #7e22ce;
}

.outcome-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ================= Benchmark Section ================= */
.benchmark-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.benchmark-table th {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
}

.benchmark-table td {
  padding: 16px 20px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

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

.benchmark-table .metric-name {
  font-weight: 600;
  color: var(--brand-navy);
}

.benchmark-table .metric-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-navy);
}

.benchmark-table .metric-val.highlight {
  color: #0284c7;
}

.benchmark-footnote {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-size: 0.88rem;
  color: #1e3a8a;
  line-height: 1.5;
}

/* ================= Features Grid ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ================= Quickstart Tabs ================= */
.code-tabs-wrap {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tab-nav {
  display: flex;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  background: rgba(255, 255, 255, 0.02);
}

.tab-content {
  display: none;
  padding: 24px;
}

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

.code-container {
  position: relative;
}

.code-container pre {
  margin: 0;
  padding: 16px 20px;
  background: var(--bg-dark-code);
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-x: auto;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ================= Limitations Callout ================= */
.limitations-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  color: #92400e;
}

.limitations-box svg {
  flex-shrink: 0;
}

.limitations-title {
  font-size: 1rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 6px;
}

.limitations-text {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.5;
}

/* ================= Interactive ridgeline footer ================= */
.rdf-root {
  --rdf-paper: #f2f6fa;
  --rdf-ink: #121b26;
  --rdf-muted: #637184;
  --rdf-line: #dce5ef;
  --rdf-accent: #287ab5;
  --rdf-pad: clamp(22px, 4vw, 40px);
  position: relative;
  display: grid;
  min-height: 580px;
  overflow: hidden;
  isolation: isolate;
  border-top: none;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(199, 222, 241, 0.34), transparent 56%),
    linear-gradient(180deg, #f8fafc 0%, #f2f6fa 50%, #edf3f9 100%);
  color: var(--rdf-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.rdf-frame {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(250px, 1fr);
  width: 100%;
  min-height: 580px;
  margin: 0 auto;
}

.rdf-r {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 850ms cubic-bezier(0.2, 0.7, 0.1, 1),
    transform 950ms cubic-bezier(0.2, 0.7, 0.1, 1),
    filter 850ms ease;
  transition-delay: calc(var(--d, 0) * 1ms);
}

.rdf-enhanced .rdf-r {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(12px);
}

.rdf-enhanced.rdf-in .rdf-r {
  opacity: 1;
  filter: none;
  transform: none;
}

.rdf-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(54px, 6.4vw, 76px) var(--rdf-pad) 38px;
}

.rdf-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.rdf-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--rdf-ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  line-height: 1;
}

.rdf-mark {
  display: block;
  width: 29px;
  height: 29px;
  overflow: visible;
}
.rdf-tag {
  max-width: 34ch;
  margin: 0;
  color: var(--rdf-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.rdf-social {
  display: flex;
  gap: 6px;
  margin: 0 0 0 -7px;
  padding: 0;
  list-style: none;
}
.rdf-social a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #64778d;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    transform 420ms cubic-bezier(0.2, 0.7, 0.1, 1);
}
.rdf-social a:hover {
  color: #1b5c8b;
  background: rgba(42, 115, 166, 0.09);
  transform: translateY(-2px);
}
.rdf-social svg {
  display: block;
  width: 16px;
  height: 16px;
}

.rdf-col h3 {
  margin: 5px 0 20px;
  color: #718096;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rdf-col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rdf-link,
.rdf-static {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #27384a;
  font-size: 0.87rem;
  line-height: 1.45;
  text-decoration: none;
  transition:
    color 240ms ease,
    transform 420ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.rdf-link::before {
  position: absolute;
  left: -12px;
  top: 50%;
  width: 7px;
  height: 1px;
  content: '';
  background: var(--rdf-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.rdf-link:hover {
  color: var(--rdf-accent);
  transform: translateX(7px);
}
.rdf-link:hover::before {
  transform: scaleX(1);
}
.rdf-link:focus-visible,
.rdf-logo:focus-visible,
.rdf-social a:focus-visible {
  outline: 1px solid var(--rdf-accent);
  outline-offset: 5px;
  border-radius: 3px;
}

.rdf-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--rdf-pad);
  color: #66778a;
  font-size: 0.75rem;
}

.rdf-bar p {
  margin: 0;
}
.rdf-scene {
  position: relative;
  z-index: 1;
  min-height: 330px;
  margin-top: -42px;
  overflow: hidden;
}
.rdf-scene canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  max-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.rdf-alt {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  color: #244968;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  transition: opacity 300ms ease;
}

.rdf-alt i {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border: 1.5px solid #244968;
  border-radius: 50%;
  background: #f2f6fa;
  box-shadow: 0 0 0 3px rgba(40, 122, 181, 0.14);
}

.rdf-alt b {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 1px;
  height: 26px;
  background: #567b9b;
  opacity: 0.75;
}
.rdf-alt span {
  position: absolute;
  bottom: 34px;
  left: 0;
  padding: 5px 8px 4px;
  border: 1px solid rgba(74, 111, 144, 0.22);
  border-radius: 5px;
  background: rgba(242, 246, 250, 0.9);
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  .rdf-top {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .rdf-root,
  .rdf-frame {
    min-height: 760px;
  }
  .rdf-frame {
    grid-template-rows: auto auto minmax(300px, 1fr);
  }
  .rdf-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
    padding-top: 48px;
  }
  .rdf-brand {
    grid-column: 1 / -1;
  }
  .rdf-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .rdf-scene {
    min-height: 300px;
    margin-top: -24px;
  }
}

@media (max-width: 420px) {
  .rdf-root,
  .rdf-frame {
    min-height: 830px;
  }
  .rdf-col h3 {
    margin-bottom: 14px;
  }
  .rdf-link,
  .rdf-static {
    font-size: 0.8rem;
  }
  .rdf-bar {
    font-size: 0.69rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rdf-r,
  .rdf-link,
  .rdf-link::before,
  .rdf-social a {
    transition: none;
  }
  .rdf-r {
    filter: none;
  }
}

/* ================= Responsive Adjustments ================= */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================= Interactive Threads section backgrounds ================= */
.threads-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.threads-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
}

.threads-layer canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.threads-section > .container {
  position: relative;
  z-index: 1;
}

.threads-research {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(186, 230, 253, 0.4), transparent 40%),
    linear-gradient(180deg, #f4faff 0%, #f7fbff 25%, #eef7ff 60%, #f4faff 100%);
}

.threads-research-bg {
  opacity: 0.33;
}

.threads-quickstart {
  background:
    radial-gradient(ellipse at 88% 18%, rgba(165, 224, 246, 0.35), transparent 40%),
    linear-gradient(180deg, #f4faff 0%, #edf7fc 30%, #e7f3fb 65%, #f2f7fb 100%);
}

.threads-quickstart-bg {
  opacity: 0.3;
}

/* Section rhythm, anchor offsets, and visible keyboard focus */
.hero-section,
.section[id] {
  scroll-margin-top: 108px;
}

.split-link:focus-visible,
.mobile-menu-btn:focus-visible,
.tab-btn:focus-visible,
.code-copy-btn:focus-visible,
.terminal-copy-btn:focus-visible,
.shimmer-button:focus-visible,
.shiny-button:focus-visible {
  outline: 3px solid #075985;
  outline-offset: 3px;
}

.hero-badge-wrap .badge-sky {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.88);
  color: #075985;
  box-shadow: 0 5px 18px rgba(7, 42, 77, 0.1);
}

.hero-badge-wrap .badge-dark {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(248, 251, 255, 0.86);
  color: #17243b;
}

.split-link[aria-current='location'] .split-name {
  color: #0b132b;
}

.section-problem-theme .watermark-signal-text {
  opacity: 0.48;
  -webkit-text-stroke-color: rgba(14, 116, 172, 0.16);
  text-shadow: none;
}

.section-problem-theme .pulseroll-wrap {
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 20%,
    #000 72%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 72%, transparent 100%);
}

.benchmark-table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.benchmark-table {
  min-width: 760px;
}

.tab-content[hidden] {
  display: none !important;
}

.tab-btn {
  min-height: 46px;
}

.tab-btn:focus-visible {
  position: relative;
  z-index: 1;
}

.code-copy-btn.is-copied {
  border-color: rgba(52, 211, 153, 0.48);
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
}

.copy-status {
  min-height: 1.4em;
  margin: 10px 2px 0;
  color: #075985;
  font-size: 0.82rem;
}

.copy-status:empty {
  display: none;
}

.limitations-section {
  padding: 40px 0 52px;
  background: linear-gradient(180deg, #f2f7fb 0%, #f6fafd 50%, #f8fafc 100%);
}

.limitations-box {
  max-width: 1180px;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(133, 93, 15, 0.06);
}

.rdf-root,
.rdf-frame {
  min-height: 580px;
}

.rdf-frame {
  grid-template-rows: auto auto minmax(250px, 1fr);
}

.rdf-top {
  padding-top: clamp(44px, 5vw, 60px);
  padding-bottom: 28px;
}

.rdf-scene {
  min-height: 250px;
  margin-top: -24px;
}

@media (max-width: 700px) {
  .rdf-root,
  .rdf-frame {
    min-height: 710px;
  }

  .rdf-frame {
    grid-template-rows: auto auto minmax(210px, 1fr);
  }

  .rdf-scene {
    min-height: 210px;
  }

  .limitations-section {
    padding: 28px 0 36px;
  }

  .limitations-box {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding: 0 10px;
    gap: 6px;
  }

  .brand-pill {
    padding: 6px 10px;
    gap: 6px;
  }

  .brand-pill .badge-pill-alpha {
    display: none;
  }

  .header-actions .shiny-button span:not(.shiny-glow) {
    display: none;
  }

  .header-actions .shiny-button {
    padding: 7px 9px;
  }

  .benchmark-table {
    min-width: 700px;
  }

  .tab-nav {
    scrollbar-width: thin;
  }

  .tab-btn {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .split-segment,
  .split-link,
  .rdf-r {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .threads-layer canvas {
    opacity: 0.72;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 12px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 8px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .split-nav-container,
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .split-nav-container.open,
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .split-nav-container.open .split-nav-track {
    flex-direction: column;
    border-radius: 16px;
    width: 100%;
    padding: 8px;
    gap: 4px;
  }

  .split-nav-container.open .split-segment {
    width: 100%;
    transform: none !important;
  }

  .split-nav-container.open .split-link {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 116px 16px 64px;
    min-height: 760px;
  }

  .magic-terminal-card {
    border-radius: 16px;
  }

  .magic-terminal-body {
    padding: 16px;
    font-size: 0.8rem;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 768px) {
  .architecture-section {
    min-height: 0;
  }
}

/* ================= Premium white architecture section ================= */
.architecture-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 184px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 1071px;
  padding: clamp(48px, 5vw, 60px) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 242, 254, 0.45), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 40%, #f4faff 70%, #ebf5fe 100%);
  border-top: none;
  border-bottom: none;
}

.architecture-section .grid-pulse-layer {
  --grid-pulse-cell: 25px;
  --grid-pulse-line: rgba(100, 116, 139, 0.075);
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-pulse-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-pulse-line) 1px, transparent 1px);
  background-size: var(--grid-pulse-cell) var(--grid-pulse-cell);
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 100px,
    #000 calc(100% - 100px),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 100px,
    #000 calc(100% - 100px),
    transparent 100%
  );
}

.grid-pulse-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.architecture-section .section-content-relative {
  z-index: 0;
}

.architecture-section .section-header {
  max-width: 850px;
  margin: 0 auto 26px;
  text-align: center;
}

.architecture-section .section-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

.architecture-section .architecture-title {
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
  color: #101a2e;
  font-size: clamp(2.1rem, 4.1vw, 3.25rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.typewriter-title,
.typewriter-live {
  grid-area: 1 / 1;
}

.architecture-title {
  display: grid !important;
}

.typewriter-title {
  visibility: hidden;
  white-space: nowrap;
}

.typewriter-live {
  min-height: 1.08em;
  white-space: nowrap;
}

.typewriter-caret {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 0.12em;
  vertical-align: -0.03em;
  border-radius: 3px;
  background: #0284c7;
  animation: typewriter-blink 1s steps(2, start) infinite;
}

@keyframes typewriter-blink {
  to {
    visibility: hidden;
  }
}

.architecture-section .section-description {
  max-width: 650px;
  margin: 0 auto;
  color: #64748b;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75;
}

.architecture-section .arch-diagram-wrap {
  max-width: 900px;
  margin: 0 auto 22px;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow:
    0 24px 70px -42px rgba(15, 23, 42, 0.22),
    0 2px 8px rgba(15, 23, 42, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.architecture-section .arch-svg {
  overflow: visible;
}

.architecture-section .outcomes-grid {
  gap: 14px;
}

.architecture-section .outcome-card {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  padding: 18px 18px 17px;
  border: 1px solid #e4eaf1;
  border-top: 0;
  border-radius: 17px;
  background: linear-gradient(155deg, #fff 0%, #fcfdff 100%);
  box-shadow:
    0 8px 26px -20px rgba(15, 23, 42, 0.35),
    0 2px 6px rgba(15, 23, 42, 0.025);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.architecture-section .outcome-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: '';
  background: var(--outcome-accent, #94a3b8);
  opacity: 0.9;
}

.architecture-section .outcome-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow:
    0 18px 34px -22px rgba(15, 23, 42, 0.3),
    0 5px 12px rgba(15, 23, 42, 0.045);
}

.architecture-section .outcome-allow {
  --outcome-accent: #10b981;
}
.architecture-section .outcome-block {
  --outcome-accent: #ef4444;
}
.architecture-section .outcome-review {
  --outcome-accent: #f59e0b;
}
.architecture-section .outcome-quarantine {
  --outcome-accent: #8b5cf6;
}

.architecture-section .outcome-header {
  gap: 10px;
  margin-bottom: 14px;
}

.architecture-section .outcome-title {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
}

.architecture-section .outcome-tag {
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 999px;
  font-size: 0.65rem;
  line-height: 1.2;
  white-space: nowrap;
}

.architecture-section .outcome-desc {
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .architecture-section .architecture-title {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
    letter-spacing: -0.05em;
  }

  .typewriter-title,
  .typewriter-live {
    white-space: normal;
  }

  .architecture-section .section-header {
    margin-bottom: 22px;
  }

  .architecture-section .arch-diagram-wrap {
    overflow-x: auto;
  }

  .architecture-section .arch-svg {
    min-width: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .architecture-section *,
  .architecture-section *::before,
  .architecture-section *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================= Gradient blinds capability showcase ================= */
.capabilities-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(186, 230, 253, 0.5), transparent 48%),
    radial-gradient(ellipse at 86% 76%, rgba(186, 230, 253, 0.55), transparent 42%),
    linear-gradient(180deg, #ebf5fe 0%, #d8efff 38%, #e2f2fd 72%, #f4faff 100%);
}

.gradient-blinds-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.36;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 100px,
    #000 calc(100% - 100px),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 100px,
    #000 calc(100% - 100px),
    transparent 100%
  );
}

.gradient-blinds-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.capabilities-section > .container {
  position: relative;
  z-index: 1;
}

.capabilities-section .capability-header {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}

.capabilities-section .capability-header .section-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(88, 164, 205, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #036b9e;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(25, 89, 129, 0.08);
  backdrop-filter: blur(14px);
}

.capabilities-section .capability-title {
  max-width: 800px;
  margin: 0 auto 15px;
  color: #102c46;
  font-family:
    Iowan Old Style,
    Baskerville,
    'Palatino Linotype',
    'Book Antiqua',
    Georgia,
    serif;
  font-size: clamp(2.6rem, 5.5vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.capability-title-accent {
  color: #087fb6;
  font-style: italic;
  font-weight: 500;
}

.capabilities-section .section-description {
  max-width: 600px;
  margin: 0 auto;
  color: #4e687e;
  font-size: 1.02rem;
  line-height: 1.75;
}

.capabilities-section .features-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(205px, auto);
  gap: 18px;
  align-items: stretch;
}

.capabilities-section .feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
  padding: 27px 28px;
  border: 1px solid rgba(163, 197, 222, 0.24);
  border-radius: 23px;
  background-color: #0b132b;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 18px 50px -34px rgba(0, 0, 0, 0.65),
    0 2px 8px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  transition:
    transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.capabilities-section .feature-card::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.48), transparent);
}

.capabilities-section .feature-card::after {
  position: absolute;
  top: 24px;
  right: 26px;
  content: attr(data-feature-index);
  color: #8aa0b6;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.capabilities-section .feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 160, 218, 0.55);
  box-shadow:
    0 26px 56px -32px rgba(0, 0, 0, 0.62),
    0 8px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.capabilities-section .feature-card:nth-child(1) {
  grid-column: span 5;
  grid-row: span 2;
  justify-content: flex-end;
  min-height: 430px;
  padding: 34px;
  border-color: rgba(8, 35, 68, 0.8);
  background:
    radial-gradient(circle at 92% 8%, rgba(56, 189, 248, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(12, 29, 53, 0.08) 0%, rgba(8, 19, 43, 0.48) 54%, #0b132b 100%),
    url('https://images.unsplash.com/photo-1751887687443-ec4dc66e230d?auto=format&fit=crop&w=1400&q=80');
  box-shadow:
    0 28px 62px -38px rgba(4, 18, 40, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.capabilities-section .feature-card:nth-child(1)::before {
  right: 28px;
  left: 28px;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, rgba(147, 197, 253, 0.1));
}

.capabilities-section .feature-card:nth-child(1)::after {
  top: 24px;
  right: 26px;
  bottom: auto;
  color: rgba(186, 230, 253, 0.58);
  content: attr(data-feature-index);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.capabilities-section .feature-card:nth-child(2),
.capabilities-section .feature-card:nth-child(3) {
  grid-column: span 7;
}

.capabilities-section .feature-card:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgba(9, 25, 47, 0.18), rgba(8, 19, 43, 0.82)),
    url('https://images.unsplash.com/photo-1644325349124-d1756b79dd42?auto=format&fit=crop&w=1400&q=80');
  background-position: center 47%;
}

.capabilities-section .feature-card:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(9, 25, 47, 0.16), rgba(8, 19, 43, 0.84)),
    url('https://images.unsplash.com/photo-1727434032773-af3cd98375ba?auto=format&fit=crop&w=1400&q=80');
  background-position: center 54%;
}

.capabilities-section .feature-card:nth-child(n + 4) {
  grid-column: span 4;
}

.capabilities-section .feature-card:nth-child(4) {
  background-image:
    linear-gradient(180deg, rgba(9, 25, 47, 0.18), rgba(8, 19, 43, 0.87)),
    url('https://images.unsplash.com/photo-1774898989484-0b9becf69efb?auto=format&fit=crop&w=1100&q=80');
}

.capabilities-section .feature-card:nth-child(5) {
  background-image:
    linear-gradient(180deg, rgba(9, 25, 47, 0.2), rgba(8, 19, 43, 0.86)),
    url('https://images.unsplash.com/photo-1548094990-c16ca90f1f0d?auto=format&fit=crop&w=1100&q=80');
  background-position: center 42%;
}

.capabilities-section .feature-card:nth-child(6) {
  background-image:
    linear-gradient(180deg, rgba(9, 25, 47, 0.2), rgba(8, 19, 43, 0.88)),
    url('https://images.unsplash.com/photo-1789845043994-0741ead89a50?auto=format&fit=crop&w=1100&q=80');
  background-position: center 43%;
}

.capabilities-section .feature-icon-wrap {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  margin: 0 0 23px;
  border: 1px solid rgba(219, 240, 255, 0.25);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(223, 244, 255, 0.22), rgba(191, 226, 250, 0.1));
  color: #c7ecff;
  box-shadow:
    0 8px 18px rgba(8, 124, 183, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.capabilities-section .feature-title {
  margin: 0 0 10px;
  color: #f8fbff;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.capabilities-section .feature-desc {
  max-width: 58ch;
  margin: 0;
  color: #d1deec;
  font-size: 0.92rem;
  line-height: 1.72;
}

.capabilities-section .feature-card:nth-child(1) .feature-icon-wrap {
  border-color: rgba(125, 211, 252, 0.3);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.24), rgba(147, 197, 253, 0.12));
  color: #7dd3fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.capabilities-section .feature-card:nth-child(1) .feature-title {
  max-width: 11ch;
  color: #f8fbff;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.capabilities-section .feature-card:nth-child(1) .feature-desc {
  max-width: 38ch;
  color: #bac9db;
}

.capabilities-section.is-visible .capability-header .section-label,
.capabilities-section.is-visible .capability-header .capability-title,
.capabilities-section.is-visible .capability-header .section-description,
.capabilities-section.is-visible .feature-card {
  animation: capability-rise 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.capabilities-section.is-visible .capability-header .capability-title {
  animation-delay: 70ms;
}

.capabilities-section.is-visible .capability-header .section-description {
  animation-delay: 140ms;
}

.capabilities-section.is-visible .feature-card:nth-child(1) {
  animation-delay: 100ms;
}
.capabilities-section.is-visible .feature-card:nth-child(2) {
  animation-delay: 160ms;
}
.capabilities-section.is-visible .feature-card:nth-child(3) {
  animation-delay: 220ms;
}
.capabilities-section.is-visible .feature-card:nth-child(4) {
  animation-delay: 280ms;
}
.capabilities-section.is-visible .feature-card:nth-child(5) {
  animation-delay: 340ms;
}
.capabilities-section.is-visible .feature-card:nth-child(6) {
  animation-delay: 400ms;
}

@keyframes capability-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .capabilities-section .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(220px, auto);
  }

  .capabilities-section .feature-card:nth-child(1) {
    grid-column: span 2;
    grid-row: auto;
    min-height: 300px;
  }

  .capabilities-section .feature-card:nth-child(2),
  .capabilities-section .feature-card:nth-child(3),
  .capabilities-section .feature-card:nth-child(n + 4) {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .capabilities-section .capability-header {
    margin-bottom: 36px;
  }

  .capabilities-section .capability-title {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .capabilities-section .features-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .capabilities-section .feature-card,
  .capabilities-section .feature-card:nth-child(1) {
    grid-column: auto;
    min-height: 0;
    padding: 24px;
  }

  .capabilities-section .feature-card:nth-child(1) {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .capabilities-section.is-visible .capability-header .section-label,
  .capabilities-section.is-visible .capability-header .capability-title,
  .capabilities-section.is-visible .capability-header .section-description,
  .capabilities-section.is-visible .feature-card {
    animation: none;
  }
}
