/* ============================================
   1. RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  color: var(--text-primary);
  line-height: 1.15;
}

/* ============================================
   2. CUSTOM PROPERTIES
   ============================================ */

:root {
  /* Backgrounds — Professional Graphite */
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #121212;
  --bg-elevated:   #171717;
  --bg-surface:    #262626;

  /* Text — Crisp & High Contrast */
  --text-primary:  #ffffff;
  --text-secondary:#a1a1aa;
  --text-tertiary: #52525b;

  /* Accent — Neutral Silver/Zinc */
  --accent-primary:   #ffffff;
  --accent-secondary: #71717a;
  --accent-glow:      rgba(255, 255, 255, 0.05);
  --accent-gradient:  linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  --zinc-gradient:    linear-gradient(135deg, #27272a, #09090b);

  /* Borders — Technical & Precise */
  --border-subtle: #262626;
  --border-accent: #3f3f46;
  --border-focus:  #52525b;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --content-padding: 2rem;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

h1, h2, h3 {
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h1 {
  font-weight: 800;
  text-transform: uppercase;
}

/* ============================================
   4. LAYOUT
   ============================================ */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
}

.section {
  padding-block: var(--space-4xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent) 50%, transparent);
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================
   5. COMPONENTS
   ============================================ */

/* Buttons — Unified Industrial Style */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px; /* Sharper, more professional than pills */
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  border: 1px solid transparent;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: var(--bg-surface);
  border-color: var(--text-primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
}

/* Icon Wrapper */

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: var(--space-md); /* Added breathing room */
}

.icon-wrapper svg {
  width: 20px;
  height: 20px;
}

/* Feature Card */

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-fast) ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

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

/* Step Card */

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-lg);
  position: relative;
}

.step-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: 0.2;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   6. NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-wordmark {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--duration-fast) ease;
}

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

/* ============================================
   7. HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 600px 400px at 50% 40%, rgba(37, 99, 235, 0.06), transparent),
    radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
}

.hero-content {
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.hero-eyebrow .eyebrow-product {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
  display: block;
  line-height: 1.15;
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-subheadline {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.35s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}

/* ============================================
   8. FEATURES
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* ============================================
   9. HOW IT WORKS
   ============================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  position: relative;
}

/* ============================================
   10. CTA SECTION
   ============================================ */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 800px 500px at 50% 50%, rgba(37, 99, 235, 0.06), transparent),
    radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
}

.cta-content {
  text-align: center;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.cta-trust {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ============================================
   11. FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

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

/* ============================================
   12. ON-PREMISES PAGE
   ============================================ */

/* Page Hero (shorter than home hero) */

.page-hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  max-width: 800px;
}

.page-hero .hero-eyebrow {
  animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.page-hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.page-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.page-hero .hero-cta {
  animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

/* Architecture Diagram */

.arch-layout {
  max-width: 800px;
  margin-inline: auto;
}

.arch-diagram {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.arch-box {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-md) var(--space-lg);
}

.arch-box-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.arch-box-items {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.arch-item {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.arch-connector-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* Requirements Grid */

.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.req-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-lg);
}

.req-card-recommended {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.req-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.req-card-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.req-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-subtle);
}

.req-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.req-key {
  font-weight: 600;
  color: var(--text-primary);
}

.req-value {
  color: var(--text-secondary);
  text-align: right;
}

/* Model List (inside req-card) */

.req-models {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.req-models-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.625rem;
}

.req-model-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.375rem 0.625rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 0.375rem;
}

.req-model-name {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.req-model-size {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.req-models-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Capabilities List (inside req-card) */

.req-capabilities {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.req-cap-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.625rem;
}

.req-cap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.req-cap-list li {
  font-size: 0.8125rem;
  line-height: 1.4;
  padding-left: 1.375rem;
  position: relative;
}

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

.req-cap-yes::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.2;
}

.req-cap-yes::after {
  content: '';
  position: absolute;
  left: 3px;
  top: calc(0.25em + 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.req-cap-no {
  color: var(--text-tertiary);
}

.req-cap-no::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.15;
}

.req-cap-no::after {
  content: '';
  position: absolute;
  left: 3px;
  top: calc(0.25em + 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.5;
}

/* Notes Grid */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.note-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-lg);
}

.note-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

/* ============================================
   12b. LEGAL PAGES
   ============================================ */

.legal-section {
  padding-top: 0;
}

.legal-content {
  max-width: 720px;
  margin-inline: auto;
}

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-md);
  margin-bottom: 0.375rem;
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
}

.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.legal-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--accent-light);
}

.legal-content strong {
  color: var(--text-primary);
}

/* ============================================
   14. HERO ANIMATION — ARCHIVE SCANNER
   ============================================ */

.hero-visual {
  height: 200px;
  max-width: 640px;
  margin: var(--space-xl) auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  width: 100%;
  padding: 2rem;
  opacity: 0.4;
}

.doc-tile {
  height: 80px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.25rem;
  position: relative;
}

.doc-line {
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  width: 100%;
}

.doc-line:nth-child(2) { width: 70%; }
.doc-line:nth-child(3) { width: 90%; }

.scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
  box-shadow: 0 0 20px var(--text-primary);
  z-index: 10;
  animation: scan-archive 8s infinite linear;
}

@keyframes scan-archive {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.fragment {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  z-index: 11;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes highlight-fragment {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-5px); }
  80% { opacity: 1; transform: translateY(-5px); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* Feature Card Enhancements */
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-fast) ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
}

.feature-card .icon-wrapper {
  display: none; /* Removing the old icon boxes */
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

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

/* ============================================
   14. RESPONSIVE
   ============================================ */

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

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .req-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .arch-diagram {
    flex-direction: column;
    align-items: stretch;
  }

  .arch-connector {
    flex-direction: row;
    justify-content: center;
    padding: var(--space-xs) 0;
  }

  .arch-connector svg {
    transform: rotate(90deg);
  }

  .notes-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .section {
    padding-block: var(--space-3xl);
  }
}

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

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .nav-inner {
    gap: var(--space-xs);
  }

  .nav-wordmark {
    font-size: 0.5rem;
    max-width: 60px;
    line-height: 1.3;
  }

  .nav-product {
    font-size: 0.9375rem;
    position: static;
    transform: none;
  }

  .nav-links {
    gap: var(--space-sm);
  }

  .nav-link {
    font-size: 0.8125rem;
  }

  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ============================================
   15. DOWNLOAD PAGE — HERO VISUAL MOCKUPS
   ============================================ */

.page-hero-visual {
  max-width: 580px;
  margin: var(--space-xl) auto 0;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-secondary);
  overflow: hidden;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-surface);
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-title {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}

.mockup-body {
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  min-height: 160px;
}

.mockup-line {
  opacity: 0;
  animation: typeIn 0.4s var(--ease-out-expo) forwards;
}

.mockup-line .prompt { color: var(--text-tertiary); }
.mockup-line .cmd { color: var(--text-primary); }
.mockup-line .success { color: #10b981; }
.mockup-line .info { color: #3b82f6; }
.mockup-line .accent { color: #a78bfa; }
.mockup-line .dim { color: var(--text-tertiary); }

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

/* Staggered line delays */
.mockup-line:nth-child(1) { animation-delay: 0.8s; }
.mockup-line:nth-child(2) { animation-delay: 1.4s; }
.mockup-line:nth-child(3) { animation-delay: 2.0s; }
.mockup-line:nth-child(4) { animation-delay: 2.6s; }
.mockup-line:nth-child(5) { animation-delay: 3.2s; }
.mockup-line:nth-child(6) { animation-delay: 3.8s; }
.mockup-line:nth-child(7) { animation-delay: 4.4s; }

/* Blinking cursor on the last visible line */
.mockup-cursor::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--text-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 1.2s step-end infinite;
}

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

/* macOS window chrome variant */
.mockup-chrome-macos .mockup-dot {
  width: 12px;
  height: 12px;
}

/* Windows title bar variant */
.mockup-chrome-win {
  justify-content: space-between;
}

.mockup-chrome-win .win-controls {
  display: flex;
  gap: 0;
}

.mockup-chrome-win .win-btn {
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  transition: background 0.15s;
}

.mockup-chrome-win .win-btn:hover {
  background: var(--bg-surface);
}

/* Search result mockup inside hero visual */
.mockup-search {
  padding: 1.25rem 1.5rem;
  min-height: 160px;
}

.mockup-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.8s both;
}

.mockup-search-bar svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.mockup-search-bar span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mockup-result {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background: var(--bg-primary);
  opacity: 0;
  animation: slideInResult 0.5s var(--ease-out-expo) forwards;
}

.mockup-result:nth-child(2) { animation-delay: 1.6s; }
.mockup-result:nth-child(3) { animation-delay: 2.1s; }
.mockup-result:nth-child(4) { animation-delay: 2.6s; }

@keyframes slideInResult {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.mockup-result-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
  white-space: nowrap;
  height: fit-content;
}

.mockup-result-text {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.mockup-result-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* ============================================
   16. BENTO FEATURES — DOWNLOAD PAGES
   ============================================ */

.download-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.download-bento .bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.download-bento .bento-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
}

.download-bento .bento-wide { grid-column: span 7; }
.download-bento .bento-narrow { grid-column: span 5; }
.download-bento .bento-full { grid-column: span 12; }
.download-bento .bento-half { grid-column: span 6; }

@media (max-width: 1024px) {
  .download-bento .bento-wide,
  .download-bento .bento-narrow,
  .download-bento .bento-half {
    grid-column: span 12;
  }
}

.bento-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: var(--accent-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.bento-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* Inline demo inside bento card */
.bento-demo {
  margin-top: auto;
  padding-top: 1.25rem;
}

.bento-demo-box {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3125rem 0.625rem;
  border-radius: 4px;
  width: fit-content;
}

.status-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.status-pill.green {
  color: #10b981;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-pill.green .pulse-dot { background: #10b981; }

.status-pill.blue {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.status-pill.blue .pulse-dot { background: #3b82f6; }

/* ============================================
   17. CALLOUT STRIP — PLATFORM NOTES
   ============================================ */

.callout-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin-inline: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.callout-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
  transition: background 0.2s ease;
}

.callout-item:last-child { border-bottom: none; }

.callout-item:hover { background: var(--bg-elevated); }

.callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.callout-icon svg {
  width: 16px;
  height: 16px;
}

.callout-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.callout-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================
   18. ANIMATED ARCHITECTURE — ON-PREMISES
   ============================================ */

.arch-animated {
  position: relative;
}

/* Data flow particles between server and clients */
.arch-flow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  z-index: 1;
}

.arch-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0;
  filter: blur(1px);
}

.arch-particle.to-right {
  animation: flow-right 4s linear infinite;
}

.arch-particle.to-left {
  animation: flow-left 4s linear infinite;
}

@keyframes flow-right {
  0% { left: 30%; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { left: 70%; opacity: 0; }
}

@keyframes flow-left {
  0% { left: 70%; opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { left: 30%; opacity: 0; }
}

/* Pulsing server status indicator */
.arch-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: #10b981;
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

.arch-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Server box glow on hover */
.arch-box.arch-server {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.arch-box.arch-server:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.03);
}

/* ============================================
   19. ENTERPRISE BENTO — ON-PREMISES FEATURES
   ============================================ */

.enterprise-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
}

.enterprise-bento .bento-card { min-height: 200px; }
.enterprise-bento .ent-lg { grid-column: span 7; }
.enterprise-bento .ent-sm { grid-column: span 5; }
.enterprise-bento .ent-third { grid-column: span 4; }

@media (max-width: 1024px) {
  .enterprise-bento .ent-lg,
  .enterprise-bento .ent-sm {
    grid-column: span 12;
  }
  .enterprise-bento .ent-third {
    grid-column: span 12;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .enterprise-bento .ent-third {
    grid-column: span 6;
  }
}

/* Req card tier indicator bar */
.req-tier-bar {
  height: 3px;
  border-radius: 2px;
  margin-bottom: var(--space-md);
  background: var(--border-subtle);
  overflow: hidden;
}

.req-tier-bar .req-tier-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s var(--ease-out-expo);
}

.req-tier-bar .tier-1 { width: 33%; background: var(--text-tertiary); }
.req-tier-bar .tier-2 { width: 66%; background: var(--text-secondary); }
.req-tier-bar .tier-3 { width: 100%; background: var(--text-primary); }

/* Breathing icon enhancement */
.breathing-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  position: relative;
}

.breathing-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  animation: icon-breathe 4s ease-in-out infinite;
}

@keyframes icon-breathe {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.06; transform: scale(1.1); }
}

.breathing-icon svg {
  position: relative;
  z-index: 1;
}

/* Status badge enhancement */
.status-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.status-badge.success {
  color: #10b981;
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

.status-badge.info {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.15);
}

/* ============================================
   20. REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero-eyebrow,
  .hero-headline,
  .hero-subheadline,
  .hero-cta,
  .page-hero-headline,
  .page-hero-sub,
  .page-hero .hero-cta,
  .page-hero-visual,
  .mockup-line,
  .mockup-search-bar,
  .mockup-result {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .mockup-cursor::after,
  .pulse-dot,
  .arch-status-dot,
  .arch-particle,
  .breathing-icon::before {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
