/* ============================================
   SilentForce.io — Global Stylesheet
   Dark theme only. Red accent. Cybersecurity.
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;

  /* Red Accent */
  --red: #e63946;
  --red-hover: #ff4d5a;
  --red-dark: #b22d37;
  --red-darker: #8b1a24;
  --red-glow: rgba(230, 57, 70, 0.15);
  --red-glow-strong: rgba(230, 57, 70, 0.3);
  --red-border: rgba(230, 57, 70, 0.2);

  /* Text */
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --text-faint: #4a4a4a;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-red: 0 0 20px rgba(230, 57, 70, 0.15);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  max-width: 70ch;
}

.text-red {
  color: var(--red);
}

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

/* --- Utility Classes --- */
.font-mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: clamp(var(--space-3xl), 8vw, var(--space-5xl)) 0;
  position: relative;
  z-index: 1;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 680px;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 0 var(--red-glow);
}

.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--red-border);
  color: var(--red);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--red);
  background: var(--red-glow);
  color: var(--red-hover);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 16px;
}

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

.btn-arrow::after {
  content: '\2192';
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Magnetic button effect */
.btn-magnetic {
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  z-index: 110;
}

.nav__logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 0;
  transition: color var(--duration-fast);
  background: none;
  border: none;
  font-family: inherit;
}

.nav__dropdown-trigger:hover {
  color: var(--text-primary);
}

.nav__dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform var(--duration-fast);
}

.nav__dropdown:hover .nav__dropdown-trigger svg,
.nav__dropdown.active .nav__dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  min-width: 220px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.active .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.nav__dropdown-item:hover {
  background: var(--red-glow);
  color: var(--text-primary);
}

.nav__cta {
  padding: 8px 20px;
  font-size: 0.8125rem;
}

/* Mobile Nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 110;
  background: none;
  border: none;
  padding: 8px;
  position: relative;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out);
    z-index: 105;
    overflow-y: auto;
  }

  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: var(--space-sm) 0;
    display: none;
    min-width: auto;
    text-align: center;
  }

  .nav__dropdown.active .nav__dropdown-menu {
    display: block;
  }

  .nav__dropdown-trigger {
    font-size: 1rem;
  }

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

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-hover));
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(230,57,70,0.5);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-terminal { display: none; }
}

.hero--page {
  min-height: 50vh;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
}

.hero--page .container {
  display: block;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 580px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Stats */
.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--red);
}

.hero__stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .hero__stats {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }
}

/* --- Hero Terminal --- */
.hero-terminal {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px rgba(230, 57, 70, 0.08), inset 0 0 60px rgba(0,0,0,0.3);
}

.hero-terminal__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero-terminal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-terminal__dot--red { background: #ff5f57; }
.hero-terminal__dot--yellow { background: #febc2e; }
.hero-terminal__dot--green { background: #28c840; }

.hero-terminal__body {
  padding: 16px 18px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.hero-terminal__body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.008) 2px,
    rgba(255,255,255,0.008) 4px
  );
  pointer-events: none;
}

.hero-terminal__line {
  white-space: pre;
  min-height: 1.7em;
}

.hero-terminal__line--cmd {
  color: rgba(240,240,240,0.7);
}

.hero-terminal__line--info {
  color: var(--red);
}

.hero-terminal__line--success {
  color: #28c840;
}

.hero-terminal__line--empty {
  height: 1.7em;
}

.hero-terminal__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--red);
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
}

/* --- Cards --- */
.card, .tool-card, .highlight-box, .technique-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(230, 57, 70, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  border-color: var(--red-border);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-red);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-glow);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  color: var(--red);
  transition: all 0.35s var(--ease-out);
}

.card:hover .card__icon {
  transform: scale(1.08) rotate(-3deg);
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.25);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.card__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card__desc {
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.card__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration-fast);
}

.card__link:hover {
  color: var(--red-hover);
  gap: 8px;
}

.card__link::after {
  content: '\2192';
}

/* --- Featured Card (AI Red Teaming) --- */
.card--featured {
  border-color: var(--red-border);
  background: linear-gradient(135deg, rgba(230,57,70,0.06) 0%, rgba(20,20,20,0.6) 100%);
  grid-row: span 1;
  position: relative;
}

.card--featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-hover), var(--red));
  background-size: 200% 100%;
  animation: gradient-border-sweep 2.5s linear infinite;
}

.card__badge-urgent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.3);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.card__badge-urgent::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.card__countdown {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

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

.card__countdown-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.card__countdown-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Tool Card with animated gradient border */
.tool-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(230, 57, 70, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tool-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--red) 50%, transparent 70%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.tool-card:hover {
  border-color: transparent;
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.08);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover::after {
  opacity: 1;
  animation: gradient-border-sweep 2.5s linear infinite;
}

@keyframes gradient-border-sweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tool-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  border: 1px solid var(--red-border);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.tool-card__name {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.tool-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.tool-card__features {
  list-style: none;
}

.tool-card__features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.tool-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
}

/* --- Phase / Step blocks --- */
.phase {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}

.phase:last-child {
  border-bottom: none;
}

.phase__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-sm);
  background: var(--red-glow);
}

.phase__content {
  flex: 1;
}

.phase__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.phase__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .phase {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* --- Feature List --- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-item {
  padding: var(--space-lg);
  border-left: 2px solid var(--red-border);
  transition: border-color var(--duration-normal);
}

.feature-item:hover {
  border-left-color: var(--red);
}

.feature-item__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-item__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Client Logos (Text-based with Icons + Tooltips) --- */
.clients {
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.clients__track {
  display: flex;
  gap: var(--space-2xl);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.clients__track:hover {
  animation-play-state: paused;
}

.client-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity var(--duration-fast);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.client-logo:hover {
  opacity: 1;
}

.client-logo svg {
  width: 16px;
  height: 16px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.client-logo[data-info]::after {
  content: attr(data-info);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-tertiary);
  border: 1px solid var(--red-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--red);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 10;
}

.client-logo:hover[data-info]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

/* --- CTA Section with enhanced glow --- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,0.2) 0%, rgba(230,57,70,0.08) 30%, transparent 70%);
  pointer-events: none;
  animation: cta-glow-pulse 4s ease-in-out infinite;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: cta-glow-pulse 4s ease-in-out infinite 2s;
}

@keyframes cta-glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.cta-section__title {
  position: relative;
  margin-bottom: var(--space-md);
  background: linear-gradient(90deg, var(--text-primary), var(--red), var(--text-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-gradient-flow 4s linear infinite;
}

@keyframes text-gradient-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.cta-section__desc {
  position: relative;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.cta-section .btn {
  position: relative;
}

/* --- Impact Numbers Banner --- */
.impact-banner {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(230,57,70,0.04) 50%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.impact-banner__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.impact-banner__item {
  flex: 1;
}

.impact-banner__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.impact-banner__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.impact-banner__divider {
  width: 1px;
  height: 64px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .impact-banner__grid {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }
  .impact-banner__item { flex: 0 0 45%; }
  .impact-banner__divider { display: none; }
}

/* --- Regulatory Timeline --- */
.reg-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-xl) 0;
}

.reg-timeline__line {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.reg-timeline__line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: var(--red);
}

.reg-timeline__point {
  position: relative;
  text-align: center;
  z-index: 1;
}

.reg-timeline__point::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--text-muted);
  margin: 0 auto var(--space-sm);
}

.reg-timeline__point--past::before {
  border-color: var(--red);
  background: var(--red);
}

.reg-timeline__point--now::before {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(230,57,70,0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}

.reg-timeline__point--future::before {
  border-color: var(--text-muted);
}

.reg-timeline__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.reg-timeline__point--now .reg-timeline__date {
  color: var(--red);
}

.reg-timeline__event {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .reg-timeline {
    flex-direction: column;
    gap: var(--space-lg);
    padding-left: var(--space-xl);
  }
  .reg-timeline__line {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: 100%;
  }
  .reg-timeline__line::after {
    width: 100%;
    height: 40%;
  }
  .reg-timeline__point {
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }
  .reg-timeline__point::before {
    margin: 0;
    flex-shrink: 0;
    position: absolute;
    left: calc(-1 * var(--space-xl) + 1px);
  }
}

/* --- Section Glow Divider --- */
.section-glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-border), transparent);
  position: relative;
  z-index: 1;
}

.section-glow-divider::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(230,57,70,0.1), transparent);
  pointer-events: none;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  max-width: 300px;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--red);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__bottom a {
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer__bottom a:hover {
  color: var(--red);
}

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

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

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Maturity Levels --- */
.maturity-level {
  position: relative;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.maturity-level::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
  opacity: 0.5;
}

.maturity-level__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  opacity: 0.3;
  margin-bottom: var(--space-sm);
}

.maturity-level__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.maturity-level__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Attack Technique Grid --- */
.technique-card {
  padding: var(--space-xl);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.technique-card:hover {
  border-color: var(--red-border);
  box-shadow: 0 0 0 1px var(--red-border);
  transform: translateY(-2px);
}

.technique-card__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.technique-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.technique-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Testing Type Grid --- */
.testing-type {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.testing-type:hover {
  border-color: var(--red-border);
  transform: translateY(-2px);
}

.testing-type__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.testing-type__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.testing-type__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

/* --- Differentiators --- */
.diff-card {
  text-align: center;
  padding: var(--space-xl);
}

.diff-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red-border);
  border-radius: 50%;
  color: var(--red);
  background: var(--red-glow);
}

.diff-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.diff-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.diff-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* --- Benefits Grid --- */
.benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.benefit__marker {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 8px;
}

.benefit__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.benefit__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Page specific: divider line --- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--red);
  opacity: 0.5;
  margin: var(--space-xl) 0;
}

/* Two-column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

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

/* --- Glitch Text Effect --- */
.glitch-hover {
  position: relative;
}

.glitch-hover:hover {
  animation: glitch-skew 0.6s ease-in-out;
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  10% { transform: skew(-1deg); }
  20% { transform: skew(0.5deg); }
  30% { transform: skew(-0.3deg); }
  40% { transform: skew(0.8deg); }
  50% { transform: skew(-0.2deg); }
  100% { transform: skew(0deg); }
}

/* --- Stat Pulse Animation --- */
.stat-pulse {
  position: relative;
  display: inline-block;
}

.stat-pulse::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  animation: stat-pulse-line 2.5s ease-in-out infinite;
}

@keyframes stat-pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleX(0.6); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* --- Cursor Blink Effect --- */
.cursor-blink::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--red);
  font-weight: 300;
  animation: cursor-blink 1s step-end infinite;
}

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

/* --- Scramble Title (enhanced by JS) --- */
.scramble-title {
  position: relative;
}

/* --- Grid Pattern Background Overlay --- */
.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* --- AI Red Teaming Page: Package Cards --- */
.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-hover));
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.package-card:hover {
  border-color: var(--red-border);
  transform: translateY(-2px);
}

.package-card:hover::before {
  opacity: 1;
}

.package-card--featured {
  border-color: var(--red-border);
}

.package-card--featured::before {
  opacity: 1;
}

.package-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-md);
}

.package-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.package-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.package-card__features {
  list-style: none;
}

.package-card__features li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.package-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.75rem;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--red);
  color: #fff;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

/* Systems list */
.systems-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.systems-list span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.systems-list span:hover {
  border-color: var(--red-border);
  color: var(--text-primary);
}

/* Certifications list */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid var(--red-border);
  border-radius: 100px;
  color: var(--red);
  letter-spacing: 0.03em;
}

/* Box highlight */
.highlight-box {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

/* Content grid for 2-col text sections */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .clients__track {
    animation: none;
  }

  .stat-pulse::after {
    animation: none;
    opacity: 1;
    transform: scaleX(1);
  }

  .cursor-blink::after {
    animation: none;
    opacity: 1;
  }

  .cta-section::before,
  .cta-section::after {
    animation: none;
    opacity: 0.6;
  }

  .cta-section__title {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--text-primary);
  }

  .tool-card:hover::after {
    animation: none;
    opacity: 1;
  }

  .glitch-hover:hover {
    animation: none;
  }

  .card--featured::after {
    animation: none;
  }

  .card__badge-urgent::before {
    animation: none;
  }

  .hero-terminal__cursor {
    animation: none;
    opacity: 1;
  }

  .scroll-progress {
    display: none;
  }

  .reg-timeline__point--now::before {
    animation: none;
  }
}
