/* ==========================================================================
   NoirShield — Apple Design & Emil Kowalski Craft UI System
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Colors */
  --bg-deep: #050508;
  --bg-surface: #0a0b10;
  --bg-card: rgba(16, 18, 27, 0.7);
  --bg-card-hover: rgba(22, 25, 38, 0.85);
  --bg-glass: rgba(10, 11, 16, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --border-active: rgba(0, 194, 255, 0.5);
  
  --cyan: #00d2ff;
  --cyan-glow: rgba(0, 210, 255, 0.28);
  --emerald: #00f5a0;
  --emerald-glow: rgba(0, 245, 160, 0.25);
  --purple: #7928ca;
  --purple-glow: rgba(121, 40, 202, 0.3);
  --error: #ff4766;
  --warning: #ffb800;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  
  --measure: 68ch;
  
  /* Easings — Emil Kowalski custom curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duration-fast: 160ms;
  --duration-normal: 240ms;
  --duration-smooth: 350ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background-color: var(--bg-deep);
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmosphere Mesh */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle at 50% 30%, rgba(0, 210, 255, 0.14) 0%, rgba(121, 40, 202, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-2 {
  position: absolute;
  top: 35%;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.08) 0%, transparent 65%);
  filter: blur(70px);
}

.glow-orb-3 {
  position: absolute;
  bottom: 10%;
  left: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.1) 0%, rgba(0, 210, 255, 0.05) 50%, transparent 70%);
  filter: blur(80px);
}

@keyframes floatOrb {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-48%) translateY(40px) scale(1.08); }
}

/* Typography Defaults */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.narrow {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand .wordmark {
  height: 22px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 6px 0;
  position: relative;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-pill {
  color: var(--text-secondary) !important;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--duration-fast) var(--ease-out);
}

.lang-pill:hover {
  border-color: var(--border-highlight);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary) !important;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.mobile-menu-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Buttons & Interactive Pills
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #009be5 100%);
  color: #031018;
  box-shadow: 0 4px 20px var(--cyan-glow);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: linear-gradient(135deg, #33dcff 0%, #00a8f7 100%);
    box-shadow: 0 6px 28px rgba(0, 210, 255, 0.45);
    transform: translateY(-1px);
    text-decoration: none;
  }
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

@media (hover: hover) and (pointer: fine) {
  .btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
    color: var(--text-primary);
    transform: translateY(-1px);
    text-decoration: none;
  }
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
  border-radius: 9px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 88px 0 72px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.8vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ==========================================================================
   Interactive Hero Live Shield Preview Mockup
   ========================================================================== */

.device-showcase {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
}

.device-frame {
  background: linear-gradient(180deg, rgba(22, 26, 38, 0.85) 0%, rgba(12, 14, 21, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(0, 210, 255, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.device-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  transition: all var(--duration-smooth) var(--ease-out);
}

.status-indicator.paused {
  background: var(--warning);
  box-shadow: 0 0 12px var(--warning);
}

.status-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.device-controls {
  display: flex;
  gap: 8px;
}

.sim-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.sim-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.sim-toggle-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.4);
  color: var(--cyan);
}

.device-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  text-align: left;
}

.shield-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shield-counter-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.shield-counter-val {
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.shield-subtext {
  font-size: 13px;
  color: var(--text-secondary);
}

.toggles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  user-select: none;
}

.toggle-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-highlight);
}

.toggle-item:active {
  transform: scale(0.98);
}

.toggle-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 210, 255, 0.1);
  color: var(--cyan);
  font-size: 14px;
}

.toggle-text h4 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.toggle-text p {
  font-size: 11.5px;
  color: var(--text-dim);
}

.switch {
  width: 38px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  position: relative;
  transition: background var(--duration-fast) var(--ease-out);
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.toggle-item.active .switch {
  background: var(--cyan);
}

.toggle-item.active .switch::after {
  transform: translateX(16px);
}

/* ==========================================================================
   Multi-Platform Showcase Section (iOS, Android, macOS, Windows)
   ========================================================================== */

.section-platforms {
  padding: 96px 0;
  position: relative;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-highlight);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 210, 255, 0.1);
    background: var(--bg-card-hover);
  }
}

.platform-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-primary);
  transition: background var(--duration-fast) var(--ease-out);
}

.platform-card:hover .platform-icon-wrap {
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyan);
}

.platform-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.platform-subtitle {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 14px;
}

.platform-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.platform-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  width: 100%;
}

.platform-features-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.platform-features-list li svg {
  color: var(--emerald);
  flex-shrink: 0;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.platform-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  text-decoration: none;
}

.platform-badge[aria-disabled="true"] {
  opacity: 0.65;
  cursor: default;
}

/* ==========================================================================
   Architecture & Flow Comparison Section
   ========================================================================== */

.section-architecture {
  padding: 88px 0;
  border-top: 1px solid var(--border-subtle);
}

.architecture-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.arch-card.noirshield-arch {
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 32px rgba(0, 210, 255, 0.08);
}

.arch-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.arch-tag.traditional {
  background: rgba(255, 71, 102, 0.12);
  color: var(--error);
}

.arch-tag.noir {
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyan);
}

.arch-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.arch-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.flow-diagram-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  gap: 8px;
}

.flow-node {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  white-space: nowrap;
  text-align: center;
}

.flow-node.highlight {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.flow-node.danger {
  background: rgba(255, 71, 102, 0.12);
  border-color: var(--error);
  color: var(--error);
}

.flow-arrow-visual {
  color: var(--text-dim);
  font-size: 12px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Features Bento Grid
   ========================================================================== */

.section-features {
  padding: 88px 0;
  border-top: 1px solid var(--border-subtle);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-highlight);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-icon.emerald {
  background: rgba(0, 245, 160, 0.1);
  color: var(--emerald);
}

.bento-icon.purple {
  background: rgba(121, 40, 202, 0.15);
  color: #a855f7;
}

.bento-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

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

/* ==========================================================================
   Interactive AutoFix & Resolver Benchmark Simulator
   ========================================================================== */

.resolver-benchmark-box {
  margin-top: 24px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
}

.resolver-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
}

.resolver-row:last-child {
  border-bottom: none;
}

.resolver-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.resolver-bar-wrap {
  flex-grow: 1;
  max-width: 140px;
  margin: 0 16px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.resolver-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--cyan);
  transition: width 1s var(--ease-out);
}

.resolver-bar.fastest {
  background: var(--emerald);
}

.resolver-bar.slow {
  background: var(--error);
}

.resolver-ping {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text-primary);
}

/* ==========================================================================
   Privacy & Truth Matrix (What it does / does not do)
   ========================================================================== */

.section-privacy-matrix {
  padding: 88px 0;
  border-top: 1px solid var(--border-subtle);
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px;
}

.matrix-card.does-card {
  border-top: 2px solid var(--emerald);
}

.matrix-card.does-not-card {
  border-top: 2px solid var(--error);
}

.matrix-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.matrix-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.matrix-badge.yes {
  background: rgba(0, 245, 160, 0.15);
  color: var(--emerald);
}

.matrix-badge.no {
  background: rgba(255, 71, 102, 0.15);
  color: var(--error);
}

.matrix-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.matrix-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.matrix-list li:last-child {
  border-bottom: none;
}

.matrix-list li svg {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Zero-Data Grid */
.zero-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.zero-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}

.zero-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.zero-card p {
  font-size: 13px;
  color: var(--error);
  font-weight: 600;
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */

.section-faq {
  padding: 88px 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
  margin: 36px auto 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.faq-item:hover {
  border-color: var(--border-highlight);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-trigger:active {
  transform: scale(0.99);
}

.faq-icon {
  transition: transform var(--duration-normal) var(--ease-spring);
  color: var(--text-dim);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--cyan);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-smooth) var(--ease-out), padding var(--duration-smooth) var(--ease-out);
  padding: 0 24px;
}

.faq-item.open .faq-content {
  max-height: 280px;
  padding-bottom: 20px;
}

.faq-content p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   Final Call To Action Section
   ========================================================================== */

.section-cta {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
}

.cta-box {
  background: linear-gradient(180deg, rgba(16, 20, 32, 0.8) 0%, rgba(8, 10, 16, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 28px;
  padding: 64px 32px;
  box-shadow: 0 0 60px rgba(0, 210, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 64px;
  color: var(--text-dim);
  font-size: 14px;
  background: var(--bg-surface);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 320px;
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-bottom .publisher {
  opacity: 0.6;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.footer-bottom .publisher:hover {
  opacity: 1;
}

.footer-bottom .publisher img {
  height: 16px;
  width: auto;
}

/* ==========================================================================
   Legal Documents Styles (Privacy / Terms / Support)
   ========================================================================== */

.doc {
  padding: 64px 0 96px;
}

.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 8px;
}

.doc .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 1.5rem;
  margin: 44px 0 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.doc h3 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
}

.doc p, .doc li {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

.doc ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.doc li {
  margin-bottom: 8px;
}

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

.callout {
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 28px 0;
}

.callout p {
  margin: 0;
  color: var(--text-primary);
}

.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 14.5px;
}

th, td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

th {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

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

/* ==========================================================================
   Scroll Reveal Animation Classes
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delay helpers */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */

@media (max-width: 992px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-span-2 {
    grid-column: span 1;
  }
  .architecture-comparison {
    grid-template-columns: 1fr;
  }
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .zero-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .flow-diagram-visual {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .flow-arrow-visual {
    justify-content: center;
    transform: rotate(90deg);
    padding: 6px 0;
  }
  .zero-data-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 40px 20px;
  }
}

/* Language Switcher Component */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-link {
  color: var(--text-dim) !important;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.lang-link:hover {
  color: var(--text-primary) !important;
  text-decoration: none;
}

.lang-link.active {
  color: var(--cyan) !important;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 11px;
}

/* Refined Linear Icon Wrappers */
.icon-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-svg-sm {
  width: 14px;
  height: 14px;
}

.icon-svg-lg {
  width: 24px;
  height: 24px;
}
