
/* ============ SELF-HOSTED FONTS (no third-party requests) ============ */
/* Each family is one variable font per subset; a weight range on a single face
   means one download per subset instead of one per weight. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/inter-latext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/inter-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500 600;font-display:swap;src:url('/fonts/jetbrainsmono-latext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500 600;font-display:swap;src:url('/fonts/jetbrainsmono-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url('/fonts/spacegrotesk-latext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url('/fonts/spacegrotesk-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ================================================
   ARCITIX AI SECURITY — NEON WIREFRAME THEME
   Dark, technical, signal-orange on deep space.
   Space Grotesk display · Inter body · JetBrains Mono labels
   ================================================ */

/* ============ CSS VARIABLES ============ */
:root {
  /* Brand */
  --primary: #ff6b35;
  --primary-dark: #e55a2d;
  --primary-light: #ff8c5a;
  --primary-glow: rgba(255, 107, 53, 0.5);

  /* Secondary accents */
  --secondary: #00d4aa;
  --secondary-dark: #00b894;
  --secondary-glow: rgba(0, 212, 170, 0.35);
  --violet: #b266ff;

  /* Alert */
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.4);
  --warning: #f59e0b;
  --success: #00d4aa;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  --gradient-secondary: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, 0.10) 0%, transparent 55%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);

  /* Backgrounds */
  --bg-primary: #07070b;
  --bg-secondary: #0b0c12;
  --bg-tertiary: #12141c;
  --bg-card: rgba(14, 16, 22, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.02);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #8d95a6;
  --text-muted: #505868;

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(255, 107, 53, 0.3);

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

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

  /* Radius — sharp / technical */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-danger: 0 0 30px var(--danger-glow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

main { position: relative; z-index: 1; }

/* ============ NEON WIREFRAME BACKGROUND ============ */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(620px circle at 22% 18%, rgba(255, 107, 53, 0.07), transparent 60%),
    radial-gradient(720px circle at 80% 72%, rgba(178, 102, 255, 0.05), transparent 60%);
}

.bg-ambient .wire-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-ambient .wire-svg line {
  stroke: rgba(255, 107, 53, 0.06);
  stroke-width: 1;
}

.bg-ambient .wire-svg line.glow {
  stroke: rgba(255, 107, 53, 0.16);
  stroke-width: 2;
  filter: blur(3px);
}

.bg-ambient .neon-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary), 0 0 60px rgba(255, 107, 53, 0.3);
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

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

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

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: 1;
}

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

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

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

/* Mono section label with leading rule */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--primary);
}

.section-header .section-label { justify-content: center; }

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(7, 7, 11, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(7, 7, 11, 0.92);
  border-bottom-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-icon { width: 32px; height: 32px; }

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-emergency {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px var(--space-md);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition-fast);
}

.nav-emergency:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: var(--danger);
}

.nav-emergency-dot {
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--danger);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.3; } }

/* "Demo" header button: a quieter sibling of Request Access, with a live dot so it
   reads as "go see it running" rather than another sales CTA. */
.nav-demo { padding: 9px 16px; gap: 8px; }
.nav-demo.active { border-color: var(--primary); color: var(--primary); }
.nav-demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: blink 2s ease-in-out infinite;
}

/* Nine items (incl. Demo) need a tighter rhythm on narrow laptops before the
   bar collapses into the mobile menu at 1024px. */
@media (min-width: 1025px) and (max-width: 1320px) {
  .nav-links { gap: var(--space-lg); }
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-secondary);
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: flex; }
}

/* ============ BUTTONS — mono / technical ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #0a0a0a;
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-1px);
}

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

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

.btn-danger {
  background: var(--danger);
  color: #fff;
}

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

.btn-icon { width: 16px; height: 16px; }

/* Constrain inline SVG icons inside buttons (prevents full-width stretch) */
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn-lg { padding: 15px 28px; font-size: 0.84rem; }
.btn-lg svg { width: 1.05em; height: 1.05em; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

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

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

.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.06);
  border: 1.5px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.card-icon svg { width: 22px; height: 22px; color: var(--primary); }

.card h3 { margin-bottom: var(--space-sm); font-size: 1.15rem; }

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

/* mono kicker tag (optional, used inside cards) */
.card .tag, .card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: var(--space-md);
}

/* ============ INTEGRATIONS — animated grid ============ */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-lg);
}

.integration-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-align: left;
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

/* hover sweep */
.integration-logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 107, 53, 0.12), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.integration-logo:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 107, 53, 0.12);
}

.integration-logo:hover::after { left: 140%; }

/* live "connected" status dot */
.integration-status {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5);
  animation: integration-pulse 2.4s ease-in-out infinite;
}

@keyframes integration-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

.integration-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.06);
  border: 1.5px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
  transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.integration-icon svg { width: 22px; height: 22px; color: var(--primary); }

.integration-logo:hover .integration-icon {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(255, 107, 53, 0.12);
  box-shadow: 0 0 18px rgba(255, 107, 53, 0.25);
}

.integration-logo strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.integration-logo span { color: var(--text-secondary); font-size: 0.88rem; }

/* staggered scroll-reveal cascade */
.js-reveal .integration-grid .integration-logo:nth-child(1) { transition-delay: 0.04s; }
.js-reveal .integration-grid .integration-logo:nth-child(2) { transition-delay: 0.10s; }
.js-reveal .integration-grid .integration-logo:nth-child(3) { transition-delay: 0.16s; }
.js-reveal .integration-grid .integration-logo:nth-child(4) { transition-delay: 0.22s; }
.js-reveal .integration-grid .integration-logo:nth-child(5) { transition-delay: 0.28s; }
.js-reveal .integration-grid .integration-logo:nth-child(6) { transition-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  .integration-status { animation: none; }
  .integration-logo::after { display: none; }
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
}

.legal-content .card h3 { font-size: 1.25rem; }

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

.legal-content .card p + p { margin-top: var(--space-md); }
.legal-list {
  margin: var(--space-sm) 0 0;
  padding-left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.legal-list li {
  list-style: disc;
  color: var(--text-secondary);
  line-height: 1.7;
}
.legal-list li::marker { color: var(--primary); }
.legal-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
}

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* ============ STATS / TICKER ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
}

.stat {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-right: 1px solid var(--border-color);
}

.stat:last-child { border-right: none; }

.stat-value {
  font-size: 2.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border-color); }
}

/* ============ HERO ============ */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

#hero-dots-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 880px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--space-md);
  background: transparent;
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin-bottom: var(--space-xl);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary);
  animation: blink 2s ease-in-out infinite;
}

.hero h1 { margin-bottom: var(--space-xl); line-height: 1.08; }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ FEATURES / WHY US ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

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

.feature-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.06);
  border: 1.5px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-md);
}

.feature-icon svg { width: 22px; height: 22px; color: var(--primary); }

.feature h4 { margin-bottom: var(--space-sm); font-size: 1.05rem; }

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

/* ============ PLATFORM TABS ============ */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.platform-tab {
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.platform-tab:hover { border-color: var(--border-hover); color: var(--text-primary); }

.platform-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #0a0a0a;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  transition: var(--transition-base);
}

.testimonial:hover { border-color: var(--border-hover); }

.testimonial::before {
  content: '"';
  font-size: 5rem;
  font-family: var(--font-display);
  color: rgba(255, 107, 53, 0.12);
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  line-height: 1;
}

.testimonial-content {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  font-style: italic;
  position: relative;
  z-index: 1;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #0a0a0a;
}
.testimonial-avatar svg { width: 22px; height: 22px; }

.testimonial-info h5 { font-weight: 600; margin-bottom: 2px; }
.testimonial-info span { color: var(--text-muted); font-size: 0.8rem; }

/* ============ CTA ============ */
.cta {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.cta-content { position: relative; z-index: 1; }
.cta h2 { margin-bottom: var(--space-lg); }

.cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
}

/* ============ EMERGENCY BANNER ============ */
.emergency-banner {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.emergency-content { display: flex; align-items: center; gap: var(--space-lg); }

.emergency-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
}

.emergency-icon svg { width: 24px; height: 24px; color: var(--danger); }
.emergency-text h4 { color: var(--text-primary); margin-bottom: var(--space-xs); }
.emergency-text p { color: var(--text-secondary); font-size: 0.9rem; }

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

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

.footer-brand { max-width: 320px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-certifications { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.certification-badge {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-column h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-color);
}

.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

.footer-legal-links { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.footer-legal-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--primary); }

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

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #0a0a0a;
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-lg); text-align: center; }
}

/* ============ ABOUT PAGE ============ */
.about-hero {
  padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-text h2 { margin-bottom: var(--space-xl); }

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-image { position: relative; }

.about-image-frame {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }

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

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

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

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.06);
  border: 1.5px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-lg);
}

.value-icon svg { width: 30px; height: 30px; color: var(--primary); }
.value-card h4 { margin-bottom: var(--space-md); }
.value-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.team-member {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.team-member:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.team-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  overflow: hidden;
}

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-member h4 { margin-bottom: var(--space-xs); }

.team-member .role {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.team-member p { color: var(--text-secondary); font-size: 0.88rem; }

/* ============ SERVICES PAGE ============ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail-content h3 { margin-bottom: var(--space-lg); }

.service-detail-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.service-features { display: flex; flex-direction: column; gap: var(--space-md); }

.service-feature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-feature-icon { width: 20px; height: 20px; color: var(--secondary); flex-shrink: 0; }

.service-visual {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.service-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }

@media (max-width: 768px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
}

/* ============ CASE STUDIES ============ */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.case-study {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
}

.case-study:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.case-study-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.case-study-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.case-study-content { padding: var(--space-xl); }

.case-study-tag {
  display: inline-block;
  padding: 4px var(--space-md);
  background: rgba(255, 107, 53, 0.08);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.case-study h3 { margin-bottom: var(--space-md); font-size: 1.2rem; }

.case-study p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.case-study-stats { display: flex; gap: var(--space-xl); }
.case-study-stat { text-align: center; }

.case-study-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.case-study-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-info h2 { margin-bottom: var(--space-lg); }

.contact-info > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--space-2xl);
}

.contact-details { display: flex; flex-direction: column; gap: var(--space-xl); }
.contact-item { display: flex; gap: var(--space-lg); }

.contact-item-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.06);
  border: 1.5px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-md);
}

.contact-item-icon svg { width: 22px; height: 22px; color: var(--primary); }
.contact-item h5 { font-weight: 600; margin-bottom: var(--space-xs); }

.contact-item p, .contact-item a { color: var(--text-secondary); font-size: 0.92rem; }
.contact-item a:hover { color: var(--primary); }

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.contact-form { display: flex; flex-direction: column; gap: var(--space-lg); }
.form-group { display: flex; flex-direction: column; gap: var(--space-sm); }

.form-group label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
  /* A select's intrinsic width is its longest option; without this, one long
     option label widens the whole contact grid and overflows on mobile. */
  min-width: 0;
  max-width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

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

/* ============ PAGE HEADERS ============ */
.page-header {
  padding: calc(80px + var(--space-4xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.page-header h1 { margin-bottom: var(--space-lg); position: relative; }

.page-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

/* ============ CAREERS PAGE ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.benefit-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

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

.benefit-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.06);
  border: 1.5px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.benefit-icon svg { width: 22px; height: 22px; color: var(--primary); }
.benefit-card h4 { margin-bottom: var(--space-sm); }
.benefit-card p { color: var(--text-secondary); font-size: 0.9rem; }

.job-listing {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  transition: var(--transition-base);
}

.job-listing:hover { border-color: var(--border-hover); }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.job-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.job-tags { display: flex; gap: var(--space-sm); }

.job-tag {
  padding: 4px var(--space-sm);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.job-description { color: var(--text-secondary); margin-bottom: var(--space-lg); line-height: 1.6; }
.job-meta { display: flex; gap: var(--space-xl); flex-wrap: wrap; }

.job-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.job-meta-item svg { width: 16px; height: 16px; }

/* ============ TRUST BADGES / FRAMEWORK CHIPS ============ */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-2xl) 0;
  margin-top: var(--space-2xl);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.trust-badge:hover { border-color: var(--primary); }

.trust-badge-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge-icon svg { width: 18px; height: 18px; color: var(--primary); }

.trust-badge span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-badge:hover span { color: var(--primary); }
.trust-badge-highlight { border-color: var(--border-accent); }
.trust-badge-highlight span { color: var(--primary); }

/* ============ THREAT LEVEL INDICATORS ============ */
.threat-level {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.threat-level-high { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.threat-level-medium { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.threat-level-low { background: rgba(0, 212, 170, 0.1); color: var(--success); }

/* ============ INDUSTRY CARDS ============ */
.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition-base);
}

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

.industry-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.05);
  border: 1.5px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-md);
}

.industry-card-icon svg { width: 24px; height: 24px; color: var(--primary); }
.industry-card h4 { margin-bottom: var(--space-sm); font-size: 1rem; }
.industry-card p { color: var(--text-secondary); font-size: 0.82rem; }

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* ============ SCROLL REVEAL ============ */
.js-reveal .card,
.js-reveal .feature,
.js-reveal .value-card,
.js-reveal .team-member,
.js-reveal .case-study,
.js-reveal .industry-card,
.js-reveal .testimonial,
.js-reveal .service-detail,
.js-reveal .integration-logo,
.js-reveal .trust-badge,
.js-reveal .job-listing,
.js-reveal .benefit-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .in-view {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .card,
  .js-reveal .feature,
  .js-reveal .value-card,
  .js-reveal .team-member,
  .js-reveal .case-study,
  .js-reveal .industry-card,
  .js-reveal .testimonial,
  .js-reveal .service-detail,
  .js-reveal .integration-logo,
  .js-reveal .trust-badge,
  .js-reveal .job-listing,
  .js-reveal .benefit-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

.loading { display: flex; align-items: center; justify-content: center; min-height: 200px; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ BLOG — LISTING ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition-base);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

.blog-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.blog-card:hover::before { opacity: 1; }

.blog-card-body { padding: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); flex: 1; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card-category { color: var(--primary); font-weight: 600; }
.blog-card-dot { color: var(--text-muted); }

.blog-card h3 { font-size: 1.25rem; line-height: 1.25; }
.blog-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; flex: 1; }

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.blog-card-author { display: flex; align-items: center; gap: var(--space-sm); }

.blog-card-author strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.blog-card-author span { font-size: 0.72rem; color: var(--text-muted); }

.blog-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: #0a0a0a;
}

.blog-card-arrow { color: var(--text-muted); transition: var(--transition-fast); }
.blog-card-arrow svg { width: 18px; height: 18px; }
.blog-card:hover .blog-card-arrow { color: var(--primary); transform: translate(2px, -2px); }

/* Featured card spans full width with horizontal layout on wide screens */
.blog-card-featured { border-color: var(--border-accent); }
.blog-card-featured .blog-card-body { padding: var(--space-2xl); gap: var(--space-lg); }
.blog-card-featured h3 { font-size: 1.9rem; }
.blog-card-featured p { font-size: 1.02rem; max-width: 70ch; }

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

/* ============ BLOG — ARTICLE ============ */
.blog-article { position: relative; z-index: 1; }

.blog-article-header {
  padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.blog-article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.blog-article-container { max-width: 820px; position: relative; }

.blog-article-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: var(--space-md) 0 var(--space-lg);
  line-height: 1.1;
}

.blog-article-lede { color: var(--text-secondary); font-size: 1.2rem; line-height: 1.7; }

.blog-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.blog-article-meta-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); transition: var(--transition-fast); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-current] { color: var(--primary); }

/* Article prose */
.blog-prose { padding: var(--space-3xl) 0 var(--space-xl); font-size: 1.06rem; line-height: 1.85; color: var(--text-secondary); }
.blog-prose > p:first-child { color: var(--text-primary); }
.blog-prose h2 {
  font-size: 1.7rem;
  color: var(--text-primary);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-top: var(--space-md);
}
.blog-prose h3 { font-size: 1.25rem; color: var(--text-primary); margin: var(--space-xl) 0 var(--space-sm); }
.blog-prose p { margin-bottom: var(--space-lg); }
.blog-prose ul, .blog-prose ol { margin: 0 0 var(--space-lg); padding-left: var(--space-xl); }
.blog-prose ul li { list-style: disc; margin-bottom: var(--space-sm); }
.blog-prose ol li { list-style: decimal; margin-bottom: var(--space-sm); }
.blog-prose li::marker { color: var(--primary); }
.blog-prose strong { color: var(--text-primary); font-weight: 600; }
.blog-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.blog-prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  color: var(--primary-light);
}
.blog-prose blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 3px solid var(--primary);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-style: italic;
}

.blog-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding: var(--space-lg) 0; border-top: 1px solid var(--border-color); }

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-share { display: flex; gap: var(--space-md); flex-wrap: wrap; padding: var(--space-lg) 0 var(--space-2xl); }

/* ============ JOB DETAIL PAGE ============ */
.job-detail-tags { display: flex; gap: var(--space-sm); justify-content: center; margin-bottom: var(--space-md); }

.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-3xl);
  align-items: start;
}

.job-detail-main .job-section { margin-bottom: var(--space-2xl); }
.job-detail-main .job-section h2 { font-size: 1.6rem; margin-bottom: var(--space-md); }
.job-detail-main .job-section h3 { font-size: 1.2rem; margin-bottom: var(--space-md); }
.job-overview-p { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-md); }
.job-detail-main .job-list { padding-left: var(--space-xl); color: var(--text-secondary); }
.job-detail-main .job-list li { list-style: disc; margin-bottom: var(--space-sm); line-height: 1.7; }
.job-detail-main .job-list li::marker { color: var(--primary); }

.job-detail-aside { position: sticky; top: 90px; }
.job-detail-card h4 { font-size: 1.05rem; margin-bottom: var(--space-lg); }
.job-detail-facts { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-md); }
.job-detail-facts li { display: flex; gap: var(--space-md); align-items: flex-start; }
.job-detail-facts .job-detail-icon { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.job-detail-facts .job-detail-icon svg { width: 100%; height: 100%; }
.job-detail-facts > li > div { display: flex; flex-direction: column; font-size: 0.92rem; color: var(--text-primary); }
.job-detail-facts .fact-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .job-detail-layout { grid-template-columns: 1fr; }
  .job-detail-aside { position: static; }
}

/* ============ CONTACT FORM CONSENT ============ */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.form-consent label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.form-consent a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   Cookie consent banner + preferences modal (GDPR / ePrivacy)
   ============================================================ */
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: var(--space-md);
  background: rgba(7, 7, 11, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}
.cookie-banner-copy h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.cookie-banner-copy p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 760px;
  margin: 0;
}
.cookie-banner-copy a { color: var(--primary); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-modal.is-open { display: flex; }
.cookie-modal-panel {
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  outline: none;
}
.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.cookie-modal-head h3 { font-size: 1.3rem; margin: 0; }
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover { color: var(--primary); }
.cookie-modal-intro {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.cookie-cats { display: flex; flex-direction: column; gap: var(--space-sm); }
.cookie-cat {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 0.4rem;
}
.cookie-cat-name { font-weight: 600; font-size: 0.95rem; }
.cookie-cat-locked {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.cookie-cat-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

.cookie-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-color);
  border-radius: var(--radius-full);
  transition: background 0.25s;
}
.cookie-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}
.cookie-switch input:checked + .cookie-slider { background: var(--primary); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(18px); }
.cookie-switch input:focus-visible + .cookie-slider { box-shadow: 0 0 0 2px var(--primary-glow); }

.cookie-modal-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1 1 auto; }
  .cookie-modal-actions { justify-content: stretch; }
  .cookie-modal-actions .btn { flex: 1 1 auto; }
}

/* App-shell pages (/demo): a compact banner so the console under it stays usable. */
.is-app .cookie-banner { padding: 10px var(--space-md); }
.is-app .cookie-banner-copy h4 { display: none; }
.is-app .cookie-banner-copy p { font-size: 0.8rem; line-height: 1.45; }
@media (max-width: 720px) {
  .is-app .cookie-banner-inner { gap: 10px; }
  .is-app .cookie-banner-actions { flex-wrap: nowrap; gap: 6px; }
  .is-app .cookie-banner-actions .btn { padding: 8px 6px; font-size: 0.68rem; letter-spacing: 0.02em; }
}
@media (max-width: 380px) {
  .is-app .cookie-banner-actions { flex-wrap: wrap; }
}

/* ================================================
   ARCITIX WARDEN — AGENT CONTROL PLANE
   ================================================ */

section[id] { scroll-margin-top: 96px; }

/* ---------- hero variant that carries the console ----------
   The stock .hero is a 92vh flex box that vertically centres its single child.
   The Warden hero stacks copy above a full-bleed stage instead, so it opts out
   of the flex centring and sizes to its content. */
.hero-warden {
  display: block;
  min-height: 0;
  align-items: initial;
  justify-content: initial;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}

.hero-warden .hero-content { margin: 0 auto; max-width: 900px; }
.page-header .hero-badge { position: relative; }
.hero-warden h1 { margin-bottom: var(--space-lg); }
.hero-warden .hero-subtitle { margin-bottom: var(--space-xl); }

/* ---------- full-bleed stage that shrinks into the column on scroll ---------- */
.wd-stage {
  margin-top: var(--space-2xl);
  position: relative;
  width: min(1400px, 96vw);
  margin-left: 50%;
  transform: translateX(-50%);
}

.wd-stage::before {
  content: '';
  position: absolute;
  inset: -10% -4% -14%;
  background: radial-gradient(55% 60% at 50% 38%, rgba(255, 107, 53, 0.13), transparent 70%);
  pointer-events: none;
}

.wd-shrink { transform-origin: 50% 0; will-change: transform; position: relative; }
.wd-scroll { overflow-x: auto; border-radius: var(--radius-lg); position: relative; scrollbar-width: thin; }

.wd-hint {
  display: none;
  margin-top: var(--space-md);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.wd-stage.scrolls .wd-hint { display: block; }

.wd-stage.scrolls .wd-shrink::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46px;
  background: linear-gradient(to right, transparent, var(--bg-primary));
  pointer-events: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* honest label above the demo */
.wd-note {
  margin-top: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.wd-toggle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  transition: var(--transition-fast);
}

.wd-toggle:hover { border-color: var(--primary); color: var(--primary); }
.wd-toggle-hot { border-color: rgba(239, 68, 68, 0.4); color: var(--danger); }
.wd-toggle-hot:hover { border-color: var(--danger); color: var(--danger); box-shadow: 0 0 20px rgba(239, 68, 68, 0.25); }

/* ---------- the console window ---------- */
.wd {
  min-width: 1180px;
  text-align: left;
  position: relative;
  background: #08090e;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.wd-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #0d0e15;
}

.wd-tl { display: flex; gap: 7px; }
.wd-tl i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.wd-tl i:nth-child(1) { background: #ff5f57; }
.wd-tl i:nth-child(2) { background: #febc2e; }
.wd-tl i:nth-child(3) { background: #28c840; }

.wd-name { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; }
.wd-name span { color: var(--text-muted); font-weight: 500; }

.wd-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.wd-chip-mode { border-color: rgba(255, 107, 53, 0.35); color: var(--primary); }

.wd-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}

.wd-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: blink 2s ease-in-out infinite;
}

.wd-paused .wd-live { color: var(--text-muted); }
.wd-paused .wd-live i { background: var(--text-muted); box-shadow: none; animation: none; }

/* ---------- replay narration ---------- */
.wd-narrate {
  display: none;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 16px;
  background: rgba(239, 68, 68, 0.07);
  border-bottom: 1px solid rgba(239, 68, 68, 0.22);
}

.wd-narrating .wd-narrate { display: flex; }

.wd-narrate-step {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  white-space: nowrap;
  margin-top: 1px;
}

.wd-narrate-text { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.6; }
.wd-narrate-text b { color: var(--text-primary); font-weight: 600; }
.wd-narrate-text code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--primary-light);
  background: rgba(255, 107, 53, 0.09);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

/* ---------- body ---------- */
.wd-body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 312px; min-height: 462px; }

.wd-side { border-right: 1px solid rgba(255,255,255,0.07); padding: var(--space-md) 0; background: #0a0b11; }

.wd-side-h {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 14px;
  margin: var(--space-md) 0 var(--space-sm);
}

.wd-side-h:first-child { margin-top: 0; }

.wd-agent {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 7px 14px; text-align: left;
  border-left: 2px solid transparent;
  transition: background var(--transition-fast);
}

.wd-agent:hover { background: rgba(255,255,255,0.03); }
.wd-agent.on { background: rgba(255,107,53,0.09); border-left-color: var(--primary); }
.wd-agent i { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; }
.wd-agent.restricted i { background: var(--warning); }

.wd-agent-n {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-primary);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.wd-agent-c { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-muted); }

.wd-filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px; }

.wd-filter {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  transition: var(--transition-fast);
}

.wd-filter:hover { border-color: var(--border-hover); }
.wd-filter.on { border-color: var(--primary); color: var(--primary); background: rgba(255,107,53,0.08); }

.wd-pol { padding: 0 14px; }
.wd-pol-row {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--font-mono); font-size: 0.64rem; padding: 4px 0;
  color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wd-pol-row b { color: var(--text-secondary); font-weight: 500; }

.wd-main { display: flex; flex-direction: column; min-width: 0; }

.wd-main-h {
  display: flex; align-items: center; gap: var(--space-md);
  padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}

.wd-main-h .wd-spacer { margin-left: auto; }
.wd-rows { flex: 1; overflow: hidden; }

.wd-row {
  display: grid;
  grid-template-columns: 76px 118px minmax(0, 1fr) 78px 54px;
  align-items: center; gap: 10px;
  width: 100%; padding: 7px 16px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-left: 2px solid transparent;
  transition: background var(--transition-fast);
}

.wd-row:hover { background: rgba(255,255,255,0.03); }
.wd-row.on { background: rgba(255,255,255,0.05); border-left-color: var(--primary); }
.wd-row.fresh { animation: wdIn 420ms ease-out; }

@keyframes wdIn {
  from { opacity: 0; transform: translateY(-6px); background: rgba(255,107,53,0.10); }
  to { opacity: 1; transform: none; }
}

.wd-t { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }
.wd-a { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-call { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-call em { font-style: normal; color: var(--text-muted); }
.wd-call .wd-flag { color: var(--warning); margin-left: 6px; }

.wd-d {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-align: center; padding: 2px 0;
  border-radius: var(--radius-sm); border: 1px solid;
}

.wd-d-allow { color: var(--secondary); border-color: rgba(0,212,170,0.3); background: rgba(0,212,170,0.07); }
.wd-d-block { color: var(--danger); border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.09); }
.wd-d-hold { color: var(--warning); border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.08); }

.wd-ms { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-muted); text-align: right; }

.wd-empty { padding: 28px 16px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

/* ---------- detail panel ---------- */
.wd-detail { border-left: 1px solid rgba(255,255,255,0.07); background: #0a0b11; padding: var(--space-md) 14px; overflow: hidden; }

.wd-det-h { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-sm); }
.wd-det-call { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-primary); word-break: break-all; margin-bottom: var(--space-sm); line-height: 1.5; }

.wd-det-verdict {
  display: inline-block; font-family: var(--font-mono); font-size: 0.62rem;
  font-weight: 600; letter-spacing: 0.12em; padding: 3px 9px;
  border-radius: var(--radius-sm); border: 1px solid; margin-bottom: var(--space-md);
}

.wd-kv { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 4px 10px; font-family: var(--font-mono); font-size: 0.66rem; margin-bottom: var(--space-md); }
.wd-kv dt { color: var(--text-muted); letter-spacing: 0.06em; }
.wd-kv dd { color: var(--text-secondary); word-break: break-word; }
.wd-kv dd b { color: var(--text-primary); font-weight: 500; }

.wd-reason { font-size: 0.74rem; line-height: 1.65; color: var(--text-secondary); border-left: 2px solid var(--border-accent); padding-left: 10px; margin-bottom: var(--space-md); }

.wd-risk { margin-bottom: var(--space-md); }
.wd-risk-h { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; }
.wd-risk-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.07); overflow: hidden; }
.wd-risk-bar i { display: block; height: 100%; border-radius: 2px; transition: width 400ms ease; }

.wd-chain { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-muted); line-height: 1.9; margin-bottom: var(--space-md); }
.wd-chain b { color: var(--text-secondary); font-weight: 500; }
.wd-chain .wd-bad { color: var(--danger); }

.wd-acts { display: flex; gap: 6px; flex-wrap: wrap; }

.wd-act {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover); color: var(--text-secondary);
  transition: var(--transition-fast);
}

.wd-act:hover { border-color: var(--primary); color: var(--primary); }
.wd-act-ok:hover { border-color: var(--secondary); color: var(--secondary); }
.wd-act-no:hover { border-color: var(--danger); color: var(--danger); }

.wd-resolved { font-family: var(--font-mono); font-size: 0.64rem; color: var(--secondary); border: 1px dashed rgba(0,212,170,0.3); border-radius: var(--radius-sm); padding: 7px 9px; line-height: 1.5; }
.wd-resolved-no { color: var(--danger); border-color: rgba(239,68,68,0.3); }

.wd-incident { border: 1px solid rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); border-radius: var(--radius-sm); padding: 10px 11px; }
.wd-incident h6 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--danger); margin-bottom: 7px; }

/* ---------- footer stats ---------- */
.wd-foot { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,0.07); background: #0d0e15; }
.wd-stat { padding: 10px 16px; border-right: 1px solid rgba(255,255,255,0.05); }
.wd-stat:last-child { border-right: none; }
.wd-stat b { display: block; font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.wd-stat-block b { color: var(--danger); }
.wd-stat-hold b { color: var(--warning); }
.wd-stat span { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.wd-noscript {
  max-width: 70ch; margin: var(--space-lg) auto 0; text-align: left;
  border: 1px solid var(--border-hover); border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm); padding: var(--space-md) var(--space-lg);
  color: var(--text-secondary); font-size: 0.9rem;
}

.wd-noscript p + p { margin-top: var(--space-sm); }

/* ---------- facts strip ---------- */
.facts { display: flex; flex-wrap: wrap; justify-content: center; margin: var(--space-3xl) auto 0; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; max-width: 940px; background: var(--bg-secondary); }
.fact { flex: 1 1 160px; padding: var(--space-lg); border-right: 1px solid var(--border-color); text-align: center; }
.fact:last-child { border-right: none; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; }
.fact span { font-size: 0.66rem; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- capability slices ---------- */
.slice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-3xl); align-items: center; }
.slice-grid.flip .slice-copy { order: 2; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--primary); margin-bottom: var(--space-md); }
.kicker::before { content: ''; width: 20px; height: 1px; background: var(--primary); }

.slice-copy h2 { margin-bottom: var(--space-md); }
.slice-copy > p { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; }

.ticks { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); }
.ticks li { position: relative; padding-left: 24px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 11px; height: 1px; background: var(--primary); }
.ticks li b { color: var(--text-primary); font-weight: 600; }

/* ---------- small live panels ---------- */
.panel { border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: #08090e; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
.panel-title { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid rgba(255,255,255,0.06); background: #0d0e15; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-secondary); }
.panel-title .tl { display: flex; gap: 6px; }
.panel-title .tl i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.panel-title .tl i:nth-child(1) { background: #ff5f57; }
.panel-title .tl i:nth-child(2) { background: #febc2e; }
.panel-title .tl i:nth-child(3) { background: #28c840; }
.panel-title .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--secondary); }
.panel-title .live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 8px var(--secondary); animation: blink 2s ease-in-out infinite; }
.panel-body { padding: var(--space-lg) var(--space-md); }
.panel-note { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--text-muted); margin-top: var(--space-md); line-height: 1.7; }

.meter { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; align-items: center; margin-bottom: 11px; }
.meter:last-child { margin-bottom: 0; }
.meter-n { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-v { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-secondary); text-align: right; white-space: nowrap; }
.meter-bar { grid-column: 1/3; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.07); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 2px; background: var(--primary); transition: width 700ms ease; }
.meter-bar.ok i { background: var(--secondary); }
.meter-bar.warn i { background: var(--warning); }
.meter-bar.bad i { background: var(--danger); }

.ent { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.64rem; }
.ent th, .ent td { padding: 6px 5px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ent thead th { color: var(--text-muted); font-weight: 500; letter-spacing: 0.06em; font-size: 0.58rem; text-transform: uppercase; }
.ent tbody th { text-align: left; color: var(--text-primary); font-weight: 500; white-space: nowrap; }
.ent tbody tr:last-child th, .ent tbody tr:last-child td { border-bottom: none; }
.ent .y { color: var(--secondary); }
.ent .n { color: var(--text-muted); }
.ent .h { color: var(--warning); }

.gpu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-lg); }
.gpu-cell { background: #08090e; padding: 11px 13px; }
.gpu-cell b { display: block; font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; color: var(--primary); line-height: 1.3; }
.gpu-cell span { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.model-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.model-row:last-child { border-bottom: none; }
.model-n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-primary); }
.model-sz { font-family: var(--font-mono); font-size: 0.62rem; color: var(--primary); text-align: right; white-space: nowrap; }
.model-d { grid-column: 1/3; font-size: 0.72rem; color: var(--text-secondary); line-height: 1.6; }

.budget { display: flex; height: 22px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.budget i { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.56rem; color: #08090e; font-style: normal; font-weight: 600; white-space: nowrap; overflow: hidden; }
.budget i:nth-child(1) { background: #3d4351; color: var(--text-secondary); }
.budget i:nth-child(2) { background: var(--primary); }
.budget i:nth-child(3) { background: var(--primary-light); }
.budget i:nth-child(4) { background: #00d4aa; }
.budget-key { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-sm); font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); }

.spark { width: 100%; height: 44px; display: block; }
.spark polyline { fill: none; stroke: var(--primary); stroke-width: 1.5; }
.spark .base { stroke: rgba(255,255,255,0.10); stroke-dasharray: 3 3; stroke-width: 1; }
.spark-row { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted); margin-bottom: 2px; }
.spark-row b { color: var(--text-primary); font-weight: 500; }

.appr { border: 1px solid rgba(245,158,11,0.28); background: rgba(245,158,11,0.05); border-radius: var(--radius-sm); padding: 10px 11px; margin-bottom: 9px; }
.appr:last-of-type { margin-bottom: 0; }
.appr-h { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.appr-h b { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-primary); font-weight: 500; }
.appr-h span { margin-left: auto; font-family: var(--font-mono); font-size: 0.58rem; color: var(--warning); letter-spacing: 0.08em; }
.appr-call { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-primary); margin-bottom: 6px; word-break: break-all; }
.appr p { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.appr p b { color: var(--text-primary); }
.appr-done { font-family: var(--font-mono); font-size: 0.64rem; color: var(--secondary); }
.appr-done.no { color: var(--danger); }

.ledger-row { font-family: var(--font-mono); font-size: 0.62rem; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); line-height: 1.7; }
.ledger-row:last-of-type { border-bottom: none; }
.ledger-row b { color: var(--text-secondary); font-weight: 500; }
.ledger-row .hash { color: var(--violet); word-break: break-all; }
.verify-out { margin-top: var(--space-md); font-family: var(--font-mono); font-size: 0.64rem; color: var(--secondary); line-height: 1.7; }

.score-row { display: grid; grid-template-columns: 52px minmax(0,1fr) 62px; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 0.66rem; padding: 5px 0; }
.score-id { color: var(--text-muted); }
.score-n { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-v { text-align: right; color: var(--secondary); }
.score-v.fail { color: var(--danger); }

/* ---------- feature grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--border-color); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; }
.feat { background: var(--bg-primary); padding: var(--space-xl); }
.feat h4 { font-size: 0.96rem; margin-bottom: var(--space-sm); }
.feat p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.7; }
.feat-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); border: 1px solid var(--border-accent); border-radius: var(--radius-sm); padding: 1px 6px; margin-bottom: var(--space-sm); }
.section-dark .feat { background: var(--bg-secondary); }

/* ---------- how it works ---------- */
.wd-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-lg); counter-reset: wdstep; }
.wd-step { position: relative; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-card); padding: var(--space-xl); }
.wd-step::before { counter-increment: wdstep; content: '0' counter(wdstep); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; color: var(--primary); display: block; margin-bottom: var(--space-md); }
.wd-step h3 { font-size: 1.1rem; margin-bottom: var(--space-sm); }
.wd-step p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.wd-step-list { margin-top: var(--space-md); }
.wd-step-list li { position: relative; padding-left: 18px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); line-height: 2; }
.wd-step-list li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 8px; height: 1px; background: var(--primary); }

/* ---------- deployment ---------- */
.wd-deploy { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-lg); }
.wd-deploy-card { border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-card); padding: var(--space-lg) var(--space-xl); }
.wd-deploy-card h4 { font-size: 0.98rem; margin-bottom: var(--space-xs); }
.wd-deploy-mode { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); display: block; margin-bottom: var(--space-sm); }
.wd-deploy-card p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.7; }

/* ---------- preview band ---------- */
.wd-band { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; border: 1px solid var(--border-accent); border-left: 3px solid var(--primary); border-radius: var(--radius-md); background: rgba(255,107,53,0.04); padding: var(--space-lg) var(--space-xl); }
.wd-band-label { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); white-space: nowrap; }
.wd-band p { color: var(--text-secondary); font-size: 0.92rem; flex: 1 1 340px; margin: 0; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); align-items: stretch; }

.price {
  display: flex; flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-xl);
}

.price-featured { border-color: var(--border-accent); background: radial-gradient(ellipse at 50% 0%, rgba(255,107,53,0.08), transparent 60%), var(--bg-card); }

.price-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-sm); display: block; }
.price h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.price-amt { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1.1; margin-bottom: var(--space-xs); }
.price-amt small { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-top: var(--space-xs); }
.price > p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; margin: var(--space-md) 0 var(--space-lg); }
.price .ticks { margin-top: 0; margin-bottom: var(--space-xl); }
.price .ticks li { font-size: 0.84rem; }
.price .btn { margin-top: auto; width: 100%; }

.price-foot { margin-top: var(--space-xl); text-align: center; font-size: 0.86rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border-color); }
.faq details { border-bottom: 1px solid var(--border-color); }
.faq summary { cursor: pointer; padding: var(--space-lg) var(--space-xl) var(--space-lg) 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); color: var(--primary); font-size: 1.1rem; }
.faq details[open] summary::after { content: '\2212'; }
.faq summary:hover { color: var(--primary); }
.faq-a { padding: 0 var(--space-2xl) var(--space-lg) 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8; }

/* ---------- access request modal ---------- */
.ax-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4, 4, 8, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  overflow-y: auto;
}

.ax-overlay.open { display: flex; }

.ax-panel {
  width: 100%; max-width: 560px;
  margin: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.75);
  padding: var(--space-2xl);
  position: relative;
}

.ax-close {
  position: absolute; top: var(--space-md); right: var(--space-md);
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 1.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}

.ax-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.ax-kicker { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); }
.ax-panel h2 { font-size: 1.5rem; margin: var(--space-sm) 0 var(--space-sm); }
.ax-intro { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: var(--space-xl); }

.ax-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.ax-field { margin-bottom: var(--space-md); }

.ax-field label {
  display: block; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}

.ax-field input,
.ax-field select,
.ax-field textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.ax-field textarea { resize: vertical; min-height: 82px; }

.ax-field input:focus,
.ax-field select:focus,
.ax-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

.ax-consent { display: flex; gap: 10px; align-items: flex-start; margin: var(--space-lg) 0; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.ax-consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.ax-consent a { color: var(--primary); text-decoration: underline; }

.ax-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.ax-actions .btn { flex: 1 1 auto; }

.ax-msg { margin-top: var(--space-md); font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.6; display: none; }
.ax-msg.show { display: block; }
.ax-msg.err { color: var(--danger); }
.ax-msg.ok { color: var(--secondary); }

.ax-done { text-align: center; padding: var(--space-xl) 0; display: none; }
.ax-done.show { display: block; }
.ax-done-icon { width: 48px; height: 48px; margin: 0 auto var(--space-lg); color: var(--secondary); }
.ax-done h3 { font-size: 1.2rem; margin-bottom: var(--space-sm); }
.ax-done p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

body.ax-locked { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .slice-grid { gap: var(--space-xl); }
  .slice-grid.flip .slice-copy { order: 0; }
  .wd-band { padding: var(--space-lg); }
}

@media (max-width: 560px) {
  .ax-row { grid-template-columns: 1fr; gap: 0; }
  .ax-panel { padding: var(--space-xl) var(--space-lg); }
  .fact { flex: 1 1 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .wd-row.fresh { animation: none; }
  .wd-live i, .panel-title .live::before { animation: none; }
  .wd-risk-bar i, .meter-bar i { transition: none; }
}
