/* ==========================================================================
   Aim Landing Page — Style Sheet
   Patent-Pending Execution Engine
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */

:root {
  /* Backgrounds — neutral zinc, no blue tint */
  --bg-primary: #09090B;
  --bg-secondary: #18181B;
  --bg-tertiary: #27272A;

  /* Borders — transparent white at low opacity */
  --border: rgba(244, 244, 245, 0.08);
  --border-light: rgba(244, 244, 245, 0.14);

  /* Text — off-white to prevent halation */
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  /* Accents — single signature cyan, restrained secondaries */
  --accent-cyan: #06B6D4;
  --accent-purple: #8B5CF6;
  --accent-green: #22C55E;
  --accent-red: #EF4444;
  --accent-amber: #F59E0B;

  /* Gradients — single-hue, refined */
  --gradient-primary: linear-gradient(135deg, #06B6D4, #22D3EE);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* --------------------------------------------------------------------------
   Selection
   -------------------------------------------------------------------------- */

::selection {
  background: rgba(6, 182, 212, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(6, 182, 212, 0.3);
  color: white;
}

/* --------------------------------------------------------------------------
   Scrollbar (WebKit)
   -------------------------------------------------------------------------- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #22D3EE;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --------------------------------------------------------------------------
   Navigation (.nav)
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 5px 0;
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 7px);
}

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

.nav.open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

/* --------------------------------------------------------------------------
   Sections (General)
   -------------------------------------------------------------------------- */

.section {
  padding: 7rem 0;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.05);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Hero (.section-hero)
   -------------------------------------------------------------------------- */

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
  /* Hero is always visible — no scroll-reveal needed */
  opacity: 1;
  transform: none;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

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

.hero-badge {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgba(6, 182, 212, 0.15) 0%,
    rgba(6, 182, 212, 0.05) 40%,
    transparent 70%
  );
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: white;
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Stats Grid (.stats-grid)
   -------------------------------------------------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

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

/* --------------------------------------------------------------------------
   Problem Insight (.problem-insight)
   -------------------------------------------------------------------------- */

.problem-insight {
  margin-top: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-cyan);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  border-left: 3px solid var(--accent-cyan);
  background: rgba(6, 182, 212, 0.03);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Paradigm Flow (.paradigm-flow)
   -------------------------------------------------------------------------- */

.paradigm-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.paradigm-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.paradigm-step:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.step-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Paradigm Key Insight (.paradigm-key-insight)
   -------------------------------------------------------------------------- */

.paradigm-key-insight {
  margin-top: 4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-purple);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
}

.paradigm-key-insight + .paradigm-key-insight {
  margin-top: 1.5rem;
}

.paradigm-key-insight h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
  font-weight: 700;
}

.paradigm-key-insight p {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Layers Grid (.layers-grid)
   -------------------------------------------------------------------------- */

.layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.layer-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.layer-card:hover {
  border-color: var(--border-light);
}

.layer-card-highlight {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.layer-card-highlight:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
}

.layer-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-cyan);
  opacity: 0.3;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.layer-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.layer-role {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.layer-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Modules Grid (.modules-grid)
   -------------------------------------------------------------------------- */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.module-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.module-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.module-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.module-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.module-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Engine Insight (.engine-insight)
   -------------------------------------------------------------------------- */

.engine-insight {
  margin-top: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
}

.engine-insight h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.engine-insight p {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Vulnerability Grid (.vuln-grid)
   -------------------------------------------------------------------------- */

.vuln-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.vuln-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vuln-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-green);
}

.vuln-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
}

.vuln-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.vuln-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  white-space: nowrap;
}

.vuln-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.vuln-how {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Spec Split Panel (.spec-split)
   -------------------------------------------------------------------------- */

.spec-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.spec-panel {
  display: flex;
  flex-direction: column;
}

.spec-panel-label {
  padding: 0.875rem 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.spec-panel-human {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.spec-panel-human .spec-panel-label {
  color: var(--accent-amber);
}

.spec-panel-aim {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.spec-panel-aim .spec-panel-label {
  color: var(--accent-cyan);
}

.spec-panel-app {
  background: var(--bg-tertiary);
}

.spec-panel-app .spec-panel-label {
  color: var(--accent-green);
}

.spec-panel-content {
  padding: 2rem;
  flex: 1;
}

.human-line {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(245, 158, 11, 0.25);
}

.human-line:last-child {
  margin-bottom: 0;
}

.spec-code {
  display: block;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
}

/* Syntax highlighting — classes match script.js highlight pass */
.spec-code .kw {
  color: var(--accent-cyan);
}

.spec-code .str {
  color: var(--accent-green);
}

.spec-code .ty {
  color: var(--accent-purple);
}

.spec-code .cmt {
  color: var(--text-muted);
  font-style: italic;
}

.spec-code .mod {
  color: var(--accent-amber);
}

.spec-code .val {
  color: var(--accent-green);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Mock App UI (.mock-app)
   -------------------------------------------------------------------------- */

.mock-app {
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-primary);
}

.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.mock-app-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.mock-user {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mock-role {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-left: 0.25rem;
}

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

.mock-page-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.mock-btn-create {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: default;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.mock-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.mock-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

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

.mock-status {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.mock-status-draft {
  color: var(--text-muted);
  background: rgba(113, 113, 122, 0.15);
}

.mock-status-open {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

.mock-status-progress {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
}

.mock-action {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-cyan);
  cursor: default;
  white-space: nowrap;
}

.mock-action-danger {
  color: var(--accent-red);
}

.mock-footer-note {
  padding: 0.5rem 0.75rem;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Spec Showcase (.spec-showcase)
   -------------------------------------------------------------------------- */

.spec-showcase {
  margin-top: 4rem;
  text-align: center;
}

.spec-showcase-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.spec-showcase-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.spec-showcase-tabs {
  display: inline-flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.spec-tab {
  padding: 0.625rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.spec-tab:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.spec-tab:hover {
  color: var(--text-secondary);
}

.spec-tab.active {
  background: var(--accent-cyan);
  color: white;
}

.spec-showcase-images {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(6, 182, 212, 0.08);
}

.spec-showcase-img {
  display: none;
  width: 100%;
  height: auto;
}

.spec-showcase-img.active {
  display: block;
}

.spec-showcase-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Spec Callouts (.spec-callouts)
   -------------------------------------------------------------------------- */

.spec-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.spec-callout {
  padding: 1.5rem;
}

.spec-callout h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-cyan);
}

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

/* --------------------------------------------------------------------------
   Benefits Grid (.benefits-grid)
   -------------------------------------------------------------------------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.benefit-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   Patent Section
   -------------------------------------------------------------------------- */

.patent-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.patent-filing {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.patent-date {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.patent-inventor {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.patent-entity {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.patent-title {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
  font-style: italic;
}

.patent-claims-group {
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.patent-claims-group:last-of-type {
  margin-bottom: 2rem;
}

.patent-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.patent-claims {
  display: grid;
  gap: 0.75rem;
}

.patent-claim {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-purple);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

.patent-whitepaper-link {
  text-align: center;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   CTA Section (.section-cta)
   -------------------------------------------------------------------------- */

.section-cta {
  text-align: center;
  padding: 8rem 0;
}

.section-cta .section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.cta-email {
  display: inline-block;
  font-size: 1.35rem;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  margin-top: 2rem;
  padding: 1rem 2rem;
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-email:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.cta-links {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-links a:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Footer (.footer)
   -------------------------------------------------------------------------- */

.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer-legal {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal p {
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animations — Staggered Children
   -------------------------------------------------------------------------- */

/* Stagger cards within visible sections */
.section.visible .stat-card,
.section.visible .paradigm-step,
.section.visible .layer-card,
.section.visible .module-card,
.section.visible .vuln-card,
.section.visible .benefit-card,
.section.visible .patent-claim {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays for grid items */
.section.visible .stat-card:nth-child(1),
.section.visible .paradigm-step:nth-child(1),
.section.visible .layer-card:nth-child(1),
.section.visible .module-card:nth-child(1),
.section.visible .vuln-card:nth-child(1),
.section.visible .benefit-card:nth-child(1),
.section.visible .patent-claim:nth-child(1) {
  animation-delay: 0.05s;
}

.section.visible .stat-card:nth-child(2),
.section.visible .paradigm-step:nth-child(2),
.section.visible .layer-card:nth-child(2),
.section.visible .module-card:nth-child(2),
.section.visible .vuln-card:nth-child(2),
.section.visible .benefit-card:nth-child(2),
.section.visible .patent-claim:nth-child(2) {
  animation-delay: 0.1s;
}

.section.visible .stat-card:nth-child(3),
.section.visible .paradigm-step:nth-child(3),
.section.visible .layer-card:nth-child(3),
.section.visible .module-card:nth-child(3),
.section.visible .vuln-card:nth-child(3),
.section.visible .benefit-card:nth-child(3),
.section.visible .patent-claim:nth-child(3) {
  animation-delay: 0.15s;
}

.section.visible .stat-card:nth-child(4),
.section.visible .paradigm-step:nth-child(4),
.section.visible .layer-card:nth-child(4),
.section.visible .module-card:nth-child(4),
.section.visible .vuln-card:nth-child(4),
.section.visible .benefit-card:nth-child(4),
.section.visible .patent-claim:nth-child(4) {
  animation-delay: 0.2s;
}

.section.visible .stat-card:nth-child(5),
.section.visible .paradigm-step:nth-child(5),
.section.visible .layer-card:nth-child(5),
.section.visible .module-card:nth-child(5),
.section.visible .vuln-card:nth-child(5),
.section.visible .benefit-card:nth-child(5),
.section.visible .patent-claim:nth-child(5) {
  animation-delay: 0.25s;
}

.section.visible .stat-card:nth-child(6),
.section.visible .paradigm-step:nth-child(6),
.section.visible .layer-card:nth-child(6),
.section.visible .module-card:nth-child(6),
.section.visible .vuln-card:nth-child(6),
.section.visible .benefit-card:nth-child(6),
.section.visible .patent-claim:nth-child(6) {
  animation-delay: 0.3s;
}

.section.visible .stat-card:nth-child(n+7),
.section.visible .paradigm-step:nth-child(n+7),
.section.visible .layer-card:nth-child(n+7),
.section.visible .module-card:nth-child(n+7),
.section.visible .vuln-card:nth-child(n+7),
.section.visible .benefit-card:nth-child(n+7),
.section.visible .patent-claim:nth-child(n+7) {
  animation-delay: 0.35s;
}

/* Insight and special blocks also animate */
.section.visible .problem-insight,
.section.visible .paradigm-key-insight,
.section.visible .engine-insight,
.section.visible .spec-split,
.section.visible .spec-showcase,
.section.visible .patent-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (max-width: 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .nav.open .nav-link {
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  /* Sections */
  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-hero {
    padding: 5rem 0 4rem;
    min-height: auto;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Grids become single column */
  .stats-grid,
  .paradigm-flow,
  .layers-grid,
  .modules-grid,
  .vuln-grid,
  .spec-callouts,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Spec split panel */
  .spec-panel-content {
    padding: 1.5rem 1.25rem;
  }

  .human-line {
    font-size: 0.95rem;
  }

  .spec-code {
    font-size: 0.7rem;
  }

  /* Patent card */
  .patent-card {
    padding: 2rem;
  }

  /* Paradigm key insight */
  .paradigm-key-insight,
  .engine-insight {
    padding: 2rem;
  }

  /* Problem insight */
  .problem-insight {
    font-size: 1.1rem;
    padding: 1.5rem;
  }

  /* CTA */
  .section-cta {
    padding: 5rem 0;
  }

  .cta-email {
    font-size: 1.1rem;
    padding: 0.875rem 1.5rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

  /* Container */
  .container {
    padding: 0 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Desktop breakpoint adjustments (min-width: 1024px)
   -------------------------------------------------------------------------- */

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

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

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

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

}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.text-purple {
  color: var(--accent-purple);
}

.text-green {
  color: var(--accent-green);
}

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

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

/* --------------------------------------------------------------------------
   Reduced Motion Preference
   -------------------------------------------------------------------------- */

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

  .section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section.visible .stat-card,
  .section.visible .paradigm-step,
  .section.visible .layer-card,
  .section.visible .module-card,
  .section.visible .vuln-card,
  .section.visible .benefit-card,
  .section.visible .patent-claim,
  .section.visible .problem-insight,
  .section.visible .paradigm-key-insight,
  .section.visible .engine-insight,
  .section.visible .spec-split,
  .section.visible .spec-showcase,
  .section.visible .patent-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .btn,
  .stat-card,
  .paradigm-step,
  .module-card,
  .vuln-card,
  .benefit-card,
  .layer-card,
  .cta-email,
  .nav-link {
    transition: none;
  }
}
