/* ==========================================================================
   AvailX Marketing Site - styles.css
   availx.tv
   ========================================================================== */

/* --- CSS Custom Properties (Middleman Base + AvailX Extensions) --- */
:root {
  /* === Middleman Brand Colors === */
  --mm-prime-blue: #00A4E4;
  --mm-pulse-orange: #F58426;
  --mm-code-white: #FFFFFF;
  --mm-gray-35: #232323;

  /* === Middleman Dark Theme === */
  --mm-bg-primary: var(--mm-gray-35);
  --mm-bg-secondary: #1a1a1a;
  --mm-surface: #2a2a2a;
  --mm-text-primary: var(--mm-code-white);
  --mm-text-secondary: #b0b0b0;
  --mm-text-muted: #777777;
  --mm-border: #3a3a3a;

  /* === Middleman Status === */
  --mm-success: #2ecc71;
  --mm-warning: var(--mm-pulse-orange);
  --mm-error: #e74c3c;
  --mm-info: var(--mm-prime-blue);
  --mm-neutral: #777777;
  --mm-high: #f0c040;
  --mm-danger: var(--mm-error);
  --mm-danger-hover: #c0392b;
  --mm-danger-active: #a93226;

  /* === AvailX Brand === */
  --ax-violet: #7B61FF;
  --ax-violet-hover: #6A50E0;
  --ax-violet-active: #5940C0;
  --ax-lock-green: #00E676;
  --ax-unlock-amber: #FFB300;
  --ax-preroll-lavender: #B388FF;

  /* === AvailX Interactive (overrides Middleman accent) === */
  --mm-accent: var(--ax-violet);
  --mm-accent-hover: var(--ax-violet-hover);
  --mm-accent-active: var(--ax-violet-active);
  --mm-cta: var(--mm-pulse-orange);
  --mm-cta-hover: #e0741e;
  --mm-cta-active: #c8671a;

  /* === Typography === */
  --mm-font-heading: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --mm-font-body: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --mm-font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
  --mm-font-size-xs: 0.75rem;
  --mm-font-size-sm: 0.875rem;
  --mm-font-size-base: 1rem;
  --mm-font-size-lg: 1.25rem;
  --mm-font-size-xl: 1.5rem;
  --mm-font-size-2xl: 2rem;
  --mm-weight-normal: 400;
  --mm-weight-medium: 500;
  --mm-weight-bold: 700;

  /* === Spacing === */
  --mm-space-xs: 0.25rem;
  --mm-space-sm: 0.5rem;
  --mm-space-md: 1rem;
  --mm-space-lg: 1.5rem;
  --mm-space-xl: 2rem;
  --mm-space-2xl: 3rem;
  --mm-radius-sm: 4px;
  --mm-radius-md: 8px;
  --mm-radius-lg: 12px;
}

/* --- Marketing Overrides --- */
.ax-marketing {
  --mm-font-size-base: 1.125rem;
  --mm-font-size-xl: 1.75rem;
  --mm-font-size-2xl: 2.5rem;
  --mm-space-section: 4rem;
  --ax-bar-height: 44px;
}

/* ==========================================================================
   Launch Countdown Bar (remove .ax-prelaunch from body to disable all)
   ========================================================================== */
.ax-countdown-bar {
  display: none;
}

.ax-prelaunch .ax-countdown-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ax-bar-height);
  z-index: 1100;
  background: linear-gradient(90deg, #0d0d12, #151520, #0d0d12);
  border-bottom: 1px solid rgba(123, 97, 255, 0.15);
  text-align: center;
}

.ax-countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mm-space-lg);
  flex-wrap: wrap;
}

.ax-countdown-label {
  font-size: 0.75rem;
  color: var(--mm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--mm-weight-medium);
}

.ax-countdown-digits {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--mm-font-mono);
}

.ax-cd-group {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.ax-cd-value {
  font-size: 0.95rem;
  font-weight: var(--mm-weight-bold);
  color: var(--ax-violet);
  min-width: 1.6em;
  text-align: right;
  letter-spacing: 0.02em;
}

.ax-cd-ms {
  color: var(--ax-violet);
  min-width: 2.2em;
}

.ax-cd-unit {
  font-size: 0.55rem;
  color: var(--mm-text-muted);
  text-transform: uppercase;
  margin-left: 1px;
}

.ax-cd-sep {
  font-size: 0.75rem;
  color: rgba(123, 97, 255, 0.3);
  margin: 0 1px;
}

.ax-countdown-cta {
  font-size: 0.75rem;
  color: var(--mm-text-muted);
  letter-spacing: 0.05em;
}

.ax-countdown-btn {
  font-size: 0.65rem;
  font-weight: var(--mm-weight-bold);
  color: #fff;
  background: var(--mm-cta);
  padding: 3px 12px;
  border-radius: var(--mm-radius-sm);
  text-decoration: none;
  transition: background 0.2s ease;
  letter-spacing: 0.02em;
}

.ax-countdown-btn:hover {
  background: var(--mm-cta-hover);
  color: #fff;
}

/* Push nav below countdown bar */
.ax-prelaunch .ax-nav {
  top: var(--ax-bar-height);
}

.ax-prelaunch .ax-hero {
  padding-top: var(--ax-bar-height);
}

/* =========================================================================
   Launch Modal
   ========================================================================== */
.ax-launch-modal {
  display: none;
}

.ax-prelaunch .ax-launch-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.ax-prelaunch .ax-launch-modal.dismissed {
  display: none;
}

.ax-launch-backdrop {
  position: absolute;
  inset: 0;
  background: #0a0a0e;
}

.ax-launch-dialog {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ax-launch-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ax-launch-content {
  position: relative;
  text-align: center;
  max-width: 600px;
  padding: var(--mm-space-xl);
}

.ax-launch-logo {
  height: 48px;
  margin: 0 auto var(--mm-space-md);
}

.ax-launch-tagline {
  font-size: 0.75rem;
  color: var(--mm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--mm-space-2xl);
}

.ax-launch-countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--mm-space-md);
  margin-bottom: var(--mm-space-2xl);
}

.ax-lcd-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ax-lcd-value {
  font-family: var(--mm-font-mono);
  font-size: 3.5rem;
  font-weight: var(--mm-weight-bold);
  color: var(--ax-violet);
  line-height: 1;
  min-width: 2em;
  letter-spacing: 0.02em;
}

.ax-lcd-unit {
  font-size: 0.65rem;
  color: var(--mm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ax-lcd-sep {
  font-family: var(--mm-font-mono);
  font-size: 2.5rem;
  color: rgba(123, 97, 255, 0.25);
  line-height: 1;
  margin-top: 0.1em;
}

.ax-launch-event {
  display: flex;
  flex-direction: column;
  gap: var(--mm-space-xs);
  margin-bottom: var(--mm-space-2xl);
}

.ax-launch-nab-logo {
  height: 32px;
  width: auto;
  margin: 0 auto;
}

.ax-launch-date {
  color: var(--mm-text-secondary);
  margin-bottom: 0;
}

.ax-launch-booth {
  color: var(--mm-text-primary);
  margin-bottom: 0;
}

.ax-launch-booth strong {
  color: var(--ax-violet);
  font-family: var(--mm-font-mono);
  font-size: 1.15em;
  letter-spacing: 0.05em;
}

.ax-launch-booth-note {
  font-size: 0.65rem;
  color: var(--mm-text-muted);
  font-style: italic;
  margin-top: -2px;
}

.ax-launch-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mm-space-lg);
  flex-wrap: wrap;
}

.ax-launch-dismiss {
  cursor: pointer;
}

/* Mobile adjustments for countdown */
@media (max-width: 768px) {
  .ax-prelaunch .ax-countdown-bar {
    padding: 5px var(--mm-space-sm);
  }

  .ax-countdown-inner {
    gap: var(--mm-space-sm);
  }

  .ax-countdown-label {
    font-size: 0.6rem;
  }

  .ax-cd-value {
    font-size: 0.75rem;
  }

  .ax-countdown-cta {
    display: none;
  }

  .ax-countdown-btn {
    display: none;
  }

  .ax-lcd-value {
    font-size: 2rem;
  }

  .ax-lcd-sep {
    font-size: 1.5rem;
  }

  .ax-launch-logo {
    height: 36px;
  }

  .ax-launch-actions {
    flex-direction: column;
    gap: var(--mm-space-md);
  }

  .ax-launch-actions .btn-cta,
  .ax-launch-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--mm-font-body);
  font-size: var(--mm-font-size-base);
  line-height: 1.6;
  color: var(--mm-text-primary);
  background-color: var(--mm-bg-secondary);
  overflow-x: hidden;
}

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

a {
  color: var(--mm-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--mm-accent-hover);
}

code {
  font-family: var(--mm-font-mono);
  font-size: 0.9em;
  color: var(--mm-text-primary);
  background-color: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: var(--mm-radius-sm);
}

a:focus-visible,
button:focus-visible {
  outline: none;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--mm-font-heading);
  font-weight: var(--mm-weight-bold);
  line-height: 1.15;
}

h2 {
  font-size: var(--mm-font-size-2xl);
  color: var(--mm-text-primary);
  margin-bottom: var(--mm-space-lg);
}

h3 {
  font-size: var(--mm-font-size-xl);
  color: var(--mm-text-primary);
  margin-bottom: var(--mm-space-sm);
}

p {
  margin-bottom: var(--mm-space-md);
  color: var(--mm-text-secondary);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--mm-space-xl);
}

.section {
  padding: var(--mm-space-section, 5rem) 0;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.ax-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--mm-space-md) 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    padding 0.3s ease;
}

.ax-nav.scrolled {
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--mm-border);
  padding: var(--mm-space-sm) 0;
}

.ax-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ax-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 1002;
}

.ax-logo-img {
  height: 28px;
  width: auto;
}

.ax-logo-img--footer {
  height: 22px;
  margin: 0 auto;
}

.ax-nav-links {
  display: flex;
  align-items: center;
  gap: var(--mm-space-xl);
  list-style: none;
}

.ax-nav-links a {
  font-size: var(--mm-font-size-sm);
  color: var(--mm-text-secondary);
  font-weight: var(--mm-weight-medium);
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 4px;
}

.ax-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ax-violet);
  transition: width 0.3s ease;
}

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

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

.ax-nav-links a.active::after {
  width: 100%;
}

/* Mobile hamburger */
.ax-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--mm-space-sm);
}

.ax-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--mm-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ax-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.ax-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.ax-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-server-room.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.ax-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.85) 0%,
    rgba(26, 26, 26, 0.7) 50%,
    rgba(26, 26, 26, 0.95) 100%
  );
  z-index: 1;
}

.ax-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--mm-space-xl);
}

.ax-hero-tag {
  display: inline-block;
  font-size: var(--mm-font-size-sm);
  font-weight: var(--mm-weight-medium);
  color: var(--ax-violet);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--mm-space-lg);
  border: 1px solid rgba(123, 97, 255, 0.3);
  padding: var(--mm-space-xs) var(--mm-space-md);
  border-radius: var(--mm-radius-sm);
}

.ax-hero-headline {
  font-size: 3.5rem;
  font-weight: var(--mm-weight-bold);
  line-height: 1.05;
  color: var(--mm-text-primary);
  margin-bottom: var(--mm-space-lg);
}

.ax-hero-sub {
  font-size: var(--mm-font-size-lg);
  color: var(--mm-text-secondary);
  max-width: 700px;
  margin: 0 auto var(--mm-space-2xl);
  line-height: 1.6;
}

.ax-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mm-space-xl);
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-cta {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: var(--mm-font-body);
  font-size: var(--mm-font-size-base);
  font-weight: var(--mm-weight-bold);
  color: var(--mm-code-white);
  background-color: var(--mm-cta);
  border: none;
  border-radius: var(--mm-radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-cta:hover {
  background-color: var(--mm-cta-hover);
  color: var(--mm-code-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 132, 38, 0.3);
}

.btn-cta:active {
  background-color: var(--mm-cta-active);
  transform: translateY(0);
}

.btn-ghost {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: var(--mm-font-body);
  font-size: var(--mm-font-size-base);
  font-weight: var(--mm-weight-medium);
  color: var(--mm-text-secondary);
  background: transparent;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

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

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--mm-space-2xl);
}

.section-label {
  display: inline-block;
  font-size: var(--mm-font-size-xs);
  font-weight: var(--mm-weight-bold);
  color: var(--ax-violet);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--mm-space-sm);
}

/* ==========================================================================
   Stream Pairing
   ========================================================================== */
.ax-pairing-steps {
  display: flex;
  gap: var(--mm-space-xl);
  justify-content: center;
  margin-bottom: var(--mm-space-2xl);
}

.ax-pairing-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 240px;
}

.ax-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ax-violet);
  color: var(--ax-violet);
  font-family: var(--mm-font-mono);
  font-size: var(--mm-font-size-lg);
  font-weight: var(--mm-weight-bold);
  margin-bottom: var(--mm-space-md);
}

.ax-pairing-step p {
  line-height: 1.6;
}

.ax-pairing-details {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.ax-pairing-details p {
  line-height: 1.7;
}

/* ==========================================================================
   Redundancy
   ========================================================================== */
.ax-redundancy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mm-space-lg);
  margin-bottom: var(--mm-space-xl);
}

.ax-redundancy-item {
  padding: var(--mm-space-lg);
  background-color: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
}

.ax-redundancy-item h4 {
  color: var(--mm-text-primary);
  margin-bottom: var(--mm-space-sm);
}

.ax-redundancy-item p {
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================================================
   Predictive Pre-Roll (highlight section)
   ========================================================================== */
.ax-preroll-section {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(123, 97, 255, 0.04) 0%,
    rgba(179, 136, 255, 0.02) 100%
  );
  border-top: 1px solid rgba(123, 97, 255, 0.08);
  border-bottom: 1px solid rgba(123, 97, 255, 0.08);
}

.ax-preroll-content {
  max-width: 800px;
  margin: 0 auto;
}

.ax-preroll-highlight {
  color: var(--mm-text-primary);
  font-weight: var(--mm-weight-medium);
  line-height: 1.6;
  margin-bottom: var(--mm-space-xl);
}

/* ==========================================================================
   Architecture Diagram
   ========================================================================== */
.ax-diagram-wrap {
  margin: var(--mm-space-2xl) auto;
  max-width: 960px;
  position: relative;
  cursor: pointer;
}

.ax-diagram-wrap svg {
  width: 100%;
  height: auto;
}

/* Expand hint */
.ax-diagram-expand {
  position: absolute;
  top: var(--mm-space-sm);
  right: var(--mm-space-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
  color: var(--mm-text-secondary);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.ax-diagram-wrap:hover .ax-diagram-expand {
  opacity: 1;
}

/* Fullscreen overlay */
.ax-diagram-wrap.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  margin: 0;
  z-index: 2000;
  background: rgba(10, 10, 10, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--mm-space-lg);
  cursor: default;
}

.ax-diagram-wrap.fullscreen svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.ax-diagram-wrap.fullscreen .ax-diagram-expand {
  position: fixed;
  top: var(--mm-space-lg);
  right: var(--mm-space-lg);
  opacity: 1;
  width: 40px;
  height: 40px;
  font-size: 20px;
  background: rgba(42, 42, 42, 0.9);
}
#phaselock-flow { filter: drop-shadow(0 0 3px #00E676); }
#scte104-flow   { filter: drop-shadow(0 0 2px #B388FF); }

/* ==========================================================================
   Use Cases (image background sections)
   ========================================================================== */
.ax-usecase {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.ax-usecase-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.ax-usecase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.92) 0%,
    rgba(26, 26, 26, 0.82) 100%
  );
  z-index: 1;
}

.ax-usecase-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.ax-usecase-content h3 {
  color: var(--mm-text-primary);
  margin-bottom: var(--mm-space-lg);
}

.ax-usecase-content p {
  line-height: 1.7;
}

.ax-key-message {
  display: inline-block;
  margin-top: var(--mm-space-lg);
  padding: var(--mm-space-sm) var(--mm-space-lg);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  color: var(--mm-text-primary);
  font-weight: var(--mm-weight-medium);
}

/* ==========================================================================
   Security Section
   ========================================================================== */
.ax-security {
  position: relative;
  overflow: hidden;
}

.ax-security-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/control-room.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.ax-security-content {
  position: relative;
  z-index: 1;
}

.ax-security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mm-space-lg);
}

.ax-security-item {
  padding: var(--mm-space-lg);
  background-color: rgba(42, 42, 42, 0.6);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
}

.ax-security-item h4 {
  color: var(--mm-text-primary);
  margin-bottom: var(--mm-space-sm);
}

.ax-security-item p {
  margin-bottom: 0;
}

/* ==========================================================================
   Deployment Cards
   ========================================================================== */
.ax-deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mm-space-xl);
}

.ax-deploy-card {
  background-color: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  padding: var(--mm-space-2xl);
  text-align: center;
}

.ax-deploy-card h3 {
  margin-bottom: var(--mm-space-md);
}

.ax-deploy-card p {
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ax-footer {
  border-top: 1px solid var(--mm-border);
  padding: var(--mm-space-2xl) 0;
  text-align: center;
}

.ax-footer-logo {
  margin-bottom: var(--mm-space-md);
}

.ax-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mm-space-xl);
  margin-bottom: var(--mm-space-lg);
  list-style: none;
}

.ax-footer-links a {
  font-size: var(--mm-font-size-sm);
  color: var(--mm-text-secondary);
}

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

.ax-footer-company {
  font-size: var(--mm-font-size-sm);
  color: var(--mm-text-muted);
  margin-bottom: var(--mm-space-xs);
}

.ax-footer-copyright {
  font-size: var(--mm-font-size-xs);
  color: var(--mm-text-muted);
}

/* ==========================================================================
   Component Descriptions
   ========================================================================== */
.ax-component-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mm-space-xl);
  margin-top: var(--mm-space-2xl);
}

.ax-component-item {
  background-color: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  padding: var(--mm-space-xl);
  transition: border-color 0.3s ease;
}

.ax-component-item:hover {
  border-color: rgba(123, 97, 255, 0.25);
}

.ax-component-item h4 {
  color: var(--mm-text-primary);
  margin-bottom: var(--mm-space-sm);
}

.ax-component-item p {
  line-height: 1.7;
}

.ax-component-item .component-tag {
  display: inline-block;
  font-size: var(--mm-font-size-xs);
  color: var(--mm-text-muted);
  font-family: var(--mm-font-mono);
  margin-bottom: var(--mm-space-sm);
}

.ax-component-emphasis {
  margin-top: var(--mm-space-2xl);
  padding: var(--mm-space-lg) var(--mm-space-xl);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  text-align: center;
}

.ax-component-emphasis p {
  color: var(--mm-text-primary);
  font-weight: var(--mm-weight-medium);
  font-size: var(--mm-font-size-lg);
  margin-bottom: 0;
}

/* ==========================================================================
   Problem / How It Works
   ========================================================================== */
.ax-problem-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--mm-space-lg);
  align-items: stretch;
}

.ax-problem-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.ax-problem-card {
  background-color: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  padding: var(--mm-space-2xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ax-problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ax-problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.ax-problem-card.problem::before {
  background: linear-gradient(90deg, var(--mm-error), transparent);
}

.ax-problem-card.problem:hover {
  border-color: rgba(231, 76, 60, 0.3);
}

.ax-problem-card.solution::before {
  background: linear-gradient(90deg, var(--ax-lock-green), transparent);
}

.ax-problem-card.solution:hover {
  border-color: rgba(0, 230, 118, 0.3);
}

.ax-problem-card h3 {
  font-size: var(--mm-font-size-xl);
  margin-bottom: var(--mm-space-md);
  display: flex;
  align-items: center;
  gap: var(--mm-space-sm);
}

.ax-problem-card h3::before {
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
}

.ax-problem-card.problem h3 {
  color: var(--mm-text-primary);
}

.ax-problem-card.problem h3::before {
  content: '\26A0';
  color: var(--mm-error);
}

.ax-problem-card.solution h3 {
  color: var(--mm-text-primary);
}

.ax-problem-card.solution h3::before {
  content: '\2713';
  color: var(--ax-lock-green);
}

.ax-problem-card p {
  line-height: 1.7;
}

/* ==========================================================================
   Animations (base states for GSAP)
   ========================================================================== */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-40px);
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(40px);
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.95);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .ax-security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--mm-space-lg);
  }

  .ax-nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: var(--mm-bg-secondary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--mm-space-2xl);
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
  }

  .ax-nav-links.open {
    display: flex;
  }

  .ax-nav-links a {
    font-size: var(--mm-font-size-lg);
    padding-bottom: 0;
  }

  .ax-nav-links a::after {
    display: none;
  }

  .ax-nav-links a.active {
    color: var(--ax-violet);
  }

  .ax-hamburger {
    display: flex;
    z-index: 1002;
    padding: var(--mm-space-sm) var(--mm-space-md);
  }

  .ax-hero {
    padding: 0 var(--mm-space-lg);
  }

  .ax-hero-headline {
    font-size: 2rem;
  }

  .ax-hero-sub {
    font-size: var(--mm-font-size-base);
  }

  .ax-hero-content {
    padding: 0;
  }

  .ax-hero-actions {
    flex-direction: column;
    gap: var(--mm-space-md);
  }

  .section {
    padding: 3rem 0;
  }

  h2 {
    font-size: var(--mm-font-size-xl);
  }

  .ax-deploy-grid,
  .ax-component-list,
  .ax-redundancy-grid {
    grid-template-columns: 1fr;
  }

  .ax-pairing-steps {
    flex-direction: column;
    align-items: center;
  }

  .ax-problem-grid {
    grid-template-columns: 1fr;
  }

  .ax-problem-arrow {
    transform: rotate(90deg);
  }

  .ax-security-grid {
    grid-template-columns: 1fr;
  }

  .ax-usecase {
    padding: 4rem 0;
  }

  .ax-deploy-card {
    padding: var(--mm-space-xl);
  }

  .ax-component-item {
    padding: var(--mm-space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--mm-space-md);
  }

  .ax-hero-headline {
    font-size: 1.75rem;
  }

  .ax-hero-tag {
    font-size: var(--mm-font-size-xs);
  }

  .btn-cta,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }
}
