/*
Theme Name: MBiteByte
Version: 2.1.1
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES & RESET
   ═══════════════════════════════════════════ */

:root {
  --bg: hsl(222, 47%, 4%);
  --fg: hsl(210, 40%, 98%);
  --card-bg: hsl(222, 47%, 6%);
  --primary: hsl(175, 100%, 50%);
  --primary-fg: hsl(222, 47%, 4%);
  --secondary: hsl(150, 100%, 40%);
  --muted: hsl(217, 33%, 15%);
  --muted-fg: hsl(215, 20%, 65%);
  --border: hsl(217, 33%, 15%);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Menlo', 'Consolas', monospace;
  --radius: 0.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ═══════════════════════════════════════════
   BACKGROUND EFFECTS
   ═══════════════════════════════════════════ */

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, hsl(175 100% 50% / 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.line-grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(hsl(175 100% 50% / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsl(175 100% 50% / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.scanline-beam {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 999;
  background: linear-gradient(90deg, transparent, hsl(175 100% 50% / 0.6), transparent);
  pointer-events: none;
  animation: scanline-sweep 8s ease-in-out infinite;
}

.film-grain {
  position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════ */

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scanline-sweep {
  0% { transform: translateY(-100vh); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(200vh); opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px hsl(175 100% 50% / 0.3), 0 0 20px hsl(175 100% 50% / 0.1); }
  50% { box-shadow: 0 0 16px hsl(175 100% 50% / 0.6), 0 0 40px hsl(175 100% 50% / 0.2); }
}

@keyframes text-glow {
  0%, 100% { text-shadow: 0 0 8px hsl(175 100% 50% / 0.5); }
  50% { text-shadow: 0 0 20px hsl(175 100% 50% / 0.9), 0 0 40px hsl(175 100% 50% / 0.4); }
}

@keyframes glitch-1 {
  0%, 93%, 100% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
  94% { clip-path: inset(20% 0 60% 0); transform: translateX(-4px); }
  95% { clip-path: inset(55% 0 20% 0); transform: translateX(4px); }
  96% { clip-path: inset(10% 0 75% 0); transform: translateX(-2px); }
  97% { clip-path: inset(80% 0 5%); transform: translateX(2px); }
}

@keyframes glitch-2 {
  0%, 93%, 100% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
  94% { clip-path: inset(65% 0 10% 0); transform: translateX(4px); }
  95% { clip-path: inset(30% 0 50% 0); transform: translateX(-4px); }
  96% { clip-path: inset(5% 0 85%); transform: translateX(2px); }
  97% { clip-path: inset(75% 0 15%); transform: translateX(-2px); }
}

@keyframes float-up-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

@keyframes pulse-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */

.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

.glow-box { animation: glow-pulse 3s ease-in-out infinite; }
.glow-text { animation: text-glow 3s ease-in-out infinite; }

.glitch-wrap { position: relative; }
.glitch-wrap::before,
.glitch-wrap::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: hsl(175, 100%, 50%);
}
.glitch-wrap::before { animation: glitch-1 8s steps(1) infinite; }
.glitch-wrap::after {
  color: hsl(150, 100%, 60%);
  animation: glitch-2 8s steps(1) infinite;
}

.float-element { animation: float-up-down 6s ease-in-out infinite; }

.neon-card {
  position: relative;
  border: 1px solid hsl(175 100% 50% / 0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.neon-card:hover {
  border-color: hsl(175 100% 50% / 0.6);
  box-shadow: 0 0 20px hsl(175 100% 50% / 0.1), inset 0 0 20px hsl(175 100% 50% / 0.02);
}

.bracket-corners { position: relative; }
.bracket-corners::before,
.bracket-corners::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  border-color: hsl(175 100% 50% / 0.6); border-style: solid;
}
.bracket-corners::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.bracket-corners::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: hsl(222, 47%, 4%); }
::-webkit-scrollbar-thumb { background: hsl(175 100% 50% / 0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: hsl(175 100% 50% / 0.6); }

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid hsl(217 33% 15% / 0.5);
  background: hsl(222 47% 4% / 0.8);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 100%; margin: 0; padding: 0 16px 0 12px; height: 64px;
  display: flex; align-items: center; gap: 12px;
}

.site-logo {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 700;
  letter-spacing: -0.05em; color: var(--primary); text-decoration: none; flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo .blink { animation: blink 1s step-end infinite; }

.main-nav {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.5625rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  flex: 1; justify-content: flex-end;
}
.main-nav a .nav-desc,
.main-nav a .nav-sep { display: none; }
@media (min-width: 1440px) {
  .main-nav a .nav-desc,
  .main-nav a .nav-sep { display: inline; }
}

.main-nav a {
  color: var(--muted-fg); text-decoration: none;
  padding: 6px 4px; transition: color 0.2s; position: relative;
  white-space: nowrap;
}
.main-nav a .nav-sep {
  color: hsl(215 20% 65% / 0.35); font-weight: 400;
}
.main-nav a .nav-desc {
  font-size: 0.625rem; text-transform: none; letter-spacing: 0.02em;
  color: hsl(215 20% 65% / 0.5); font-weight: 400;
}
.main-nav a:hover { color: var(--fg); text-decoration: none; }
.main-nav a:hover .nav-desc { color: hsl(215 20% 65% / 0.7); }
.main-nav a.active { color: var(--fg); }
.main-nav a.active .nav-desc { color: var(--primary); opacity: 0.6; }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--primary);
}

.menu-toggle {
  display: none; background: none; border: none;
  color: var(--muted-fg); cursor: pointer; padding: 4px;
}

.mobile-nav {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: hsl(222 47% 4% / 0.95); backdrop-filter: blur(24px);
  border-bottom: 1px solid hsl(217 33% 15% / 0.4); padding: 16px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; color: var(--muted-fg);
  text-decoration: none; border-bottom: 1px solid hsl(217 33% 15% / 0.2);
}
.mobile-nav a.active { color: var(--primary); }
.mobile-nav a:hover { text-decoration: none; }
.mobile-nav a .nav-desc { display: none; }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ═══════════════════════════════════════════
   HUD CORNERS
   ═══════════════════════════════════════════ */

.hud-corner {
  position: fixed; top: 68px; z-index: 40; pointer-events: none; display: none;
}
.hud-corner.left { left: 4px; }
.hud-corner.right { right: 4px; }

@media (min-width: 1280px) { .hud-corner { display: block; } }

.hud-corner .bracket {
  width: 40px; height: 40px;
  border-color: hsl(175 100% 50% / 0.15); border-style: solid;
  animation: corner-pulse 2s ease-in-out infinite;
}
.hud-corner.left .bracket { border-width: 2px 0 0 2px; }
.hud-corner.right .bracket { border-width: 2px 2px 0 0; margin-left: auto; }

.hud-corner .label {
  font-family: var(--font-mono); font-size: 0.5rem;
  color: hsl(175 100% 50% / 0.3); letter-spacing: 0.2em; margin-top: 4px;
}
.hud-corner.right .label { text-align: right; }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

.site-main { padding-top: 64px; position: relative; z-index: 10; }
.content-wrapper { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 24px; text-align: center;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
#hero3d-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.mbite-3d-zone { position: relative; overflow: hidden; }
.mbite-3d-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.xr-enter-btn {
  position: absolute; bottom: 88px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  color: var(--primary); background: transparent;
  border: 1px solid hsl(162 100% 50% / 0.45); border-radius: 999px;
  padding: 10px 22px; cursor: pointer; z-index: 3;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.xr-enter-btn:hover { background: hsl(162 100% 50% / 0.12); box-shadow: 0 0 18px hsl(162 100% 50% / 0.35); }
.mbite-3d-zone > canvas.mbite-3d-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none; z-index: 0;
}
.mbite-3d-zone > :not(canvas) { position: relative; z-index: 1; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.35; mix-blend-mode: screen;
}
.hero-bg .gradient-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, hsl(222 47% 4% / 0.3), hsl(222 47% 4% / 0.6), hsl(222 47% 4%));
}

.hero-content {
  position: relative; z-index: 10; max-width: 1280px;
  display: flex; flex-direction: column; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 9999px;
  border: 1px solid hsl(175 100% 50% / 0.4);
  background: hsl(175 100% 50% / 0.1);
  color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem;
  margin-bottom: 40px; animation: glow-pulse 3s ease-in-out infinite;
}

.hero-badge .pulse-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); animation: pulse-anim 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 9rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 0.95;
  color: transparent;
  background: linear-gradient(to bottom right, #fff, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: 24px;
}

.hero-subtitle {
  max-width: 42rem; font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-fg); font-family: var(--font-mono); margin-bottom: 12px;
}

.hero-desc {
  max-width: 42rem; font-size: clamp(0.8rem, 1.5vw, 0.875rem);
  color: hsl(215 20% 65% / 0.6); font-family: var(--font-mono);
  line-height: 1.6; margin-bottom: 40px;
}

.hero-actions {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px; background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.875rem;
  text-decoration: none; border-radius: var(--radius); transition: background 0.2s;
}
.btn-primary:hover { background: hsl(175, 100%, 45%); text-decoration: none; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px; border: 1px solid hsl(217 33% 15% / 0.6);
  background: hsl(222 47% 4% / 0.4); backdrop-filter: blur(4px);
  color: var(--fg); font-family: var(--font-mono); font-size: 0.875rem;
  text-decoration: none; border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: hsl(175 100% 50% / 0.6); color: var(--primary); text-decoration: none; }

/* ─── Nexus Button ─── */
.btn-nexus {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px;
  background: linear-gradient(135deg, hsl(175, 100%, 50%), hsl(150, 100%, 40%));
  color: var(--primary-fg);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.875rem;
  text-decoration: none; border-radius: var(--radius);
  transition: all 0.3s; position: relative; overflow: hidden;
  box-shadow: 0 0 20px hsl(175 100% 50% / 0.3);
}
/* ─── Nexus Header Button ─── */
.btn-nexus-header {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 20px;
  background: linear-gradient(135deg, hsl(175, 100%, 50%), hsl(150, 100%, 40%));
  color: var(--primary-fg);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem;
  text-decoration: none; border-radius: var(--radius);
  transition: all 0.3s;
  box-shadow: 0 0 12px hsl(175 100% 50% / 0.25);
  flex-shrink: 0;
}
.btn-nexus-header:hover {
  box-shadow: 0 0 24px hsl(175 100% 50% / 0.4);
  transform: translateY(-1px);
  text-decoration: none;
}
@media (max-width: 768px) {
  .btn-nexus-header { display: none; }
}

.btn-nexus:hover {
  box-shadow: 0 0 40px hsl(175 100% 50% / 0.5);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-nexus::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, hsl(0 0% 100% / 0.1) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 0.5s;
}
.btn-nexus:hover::before { transform: translateX(100%); }

.hint-text {
  font-size: 0.625rem; font-family: var(--font-mono);
  color: hsl(215 20% 65% / 0.3); letter-spacing: 0.2em;
}

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.scroll-indicator .label {
  font-family: var(--font-mono); font-size: 0.5625rem;
  color: hsl(215 20% 65% / 0.3); letter-spacing: 0.2em;
}
.scroll-indicator .bar {
  width: 1px; height: 24px;
  background: linear-gradient(to bottom, hsl(175 100% 50% / 0.4), transparent);
  animation: float-up-down 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════ */

.stats-section {
  border-top: 1px solid hsl(175 100% 50% / 0.2);
  border-bottom: 1px solid hsl(175 100% 50% / 0.2);
  background: hsl(175 100% 50% / 0.05);
  padding: 10px 0; overflow: hidden; position: relative;
}

.stats-section .fade-left,
.stats-section .fade-right {
  position: absolute; top: 0; bottom: 0; width: 64px; z-index: 10; pointer-events: none;
}
.stats-section .fade-left { left: 0; background: linear-gradient(to right, hsl(222 47% 4%), transparent); }
.stats-section .fade-right { right: 0; background: linear-gradient(to left, hsl(222 47% 4%), transparent); }

/* ═══════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════ */

.stat-cards { border-bottom: 1px solid hsl(217 33% 15% / 0.4); background: hsl(222 47% 6% / 0.1); }
.stat-cards .inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stat-cards .inner { grid-template-columns: repeat(4, 1fr); } }

.stat-card { text-align: center; padding: 20px 16px; border-right: 1px solid hsl(217 33% 15% / 0.4); }
.stat-card:last-child { border-right: none; }
.stat-card .number {
  font-family: var(--font-mono); font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900; color: var(--primary); animation: text-glow 3s ease-in-out infinite;
}
.stat-card .label { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg); margin-top: 6px; letter-spacing: 0.1em; }
.stat-card .sublabel { font-family: var(--font-mono); font-size: 0.625rem; color: hsl(215 20% 65% / 0.5); margin-top: 2px; }

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */

.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  font-family: var(--font-mono); font-size: 0.625rem;
  color: hsl(175 100% 50% / 0.6); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -0.04em; }
.section-line {
  margin-top: 16px; height: 1px; width: 96px; margin-left: auto; margin-right: auto;
  background: linear-gradient(to right, transparent, hsl(175 100% 50% / 0.5), transparent);
}

/* ═══════════════════════════════════════════
   PILLAR CARDS
   ═══════════════════════════════════════════ */

.pillars-section { padding: 112px 0; border-bottom: 1px solid hsl(217 33% 15% / 0.4); position: relative; }
.pillars-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar-card {
  padding: 28px; background: hsl(222 47% 6% / 0.2); backdrop-filter: blur(4px);
  display: flex; flex-direction: column; cursor: default;
}
.pillar-card .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.pillar-card .code { font-family: var(--font-mono); font-size: 0.625rem; color: hsl(175 100% 50% / 0.6); letter-spacing: 0.2em; }
.pillar-card .icon { width: 20px; height: 20px; color: hsl(215 20% 65% / 0.4); }
.pillar-card:hover .icon { color: var(--primary); }
.pillar-card .title { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 6px; }
.pillar-card:hover .title { color: var(--primary); }
.pillar-card .tagline { color: hsl(175 100% 50% / 0.7); font-family: var(--font-mono); font-size: 0.75rem; font-style: italic; margin-bottom: 16px; line-height: 1.6; }
.pillar-card .desc { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; flex: 1; }
.pillar-card .card-link { margin-top: 24px; padding-top: 16px; border-top: 1px solid hsl(217 33% 15% / 0.3); }
.pillar-card .card-link a { font-size: 0.6875rem; font-family: var(--font-mono); color: hsl(215 20% 65% / 0.4); text-decoration: none; transition: color 0.2s; }
.pillar-card .card-link a:hover { color: var(--primary); }

/* ═══════════════════════════════════════════
   TRUST GRID
   ═══════════════════════════════════════════ */

.trust-section { padding: 112px 0; border-bottom: 1px solid hsl(217 33% 15% / 0.4); position: relative; overflow: hidden; }
.trust-grid { display: grid; grid-template-columns: 1fr; background: hsl(217 33% 15% / 0.3); gap: 1px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-card { background: var(--bg); padding: 28px; position: relative; overflow: hidden; transition: background 0.3s; }
.trust-card:hover { background: hsl(222 47% 6% / 0.5); }
.trust-card .card-icon { width: 20px; height: 20px; color: var(--primary); margin-bottom: 16px; }
.trust-card .card-title { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; margin-bottom: 8px; }
.trust-card:hover .card-title { color: var(--primary); }
.trust-card .card-desc { color: var(--muted-fg); font-size: 0.75rem; line-height: 1.6; }

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */

.cta-section { padding: 128px 0; position: relative; overflow: hidden; }
.cta-inner { max-width: 768px; margin: 0 auto; text-align: center; padding: 0 24px; }
.cta-title { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 24px; }
.cta-title .gradient-text { color: transparent; background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; }
.cta-desc { color: var(--muted-fg); font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.6; max-width: 32rem; margin: 0 auto 40px; }
.footer-guarantee { margin-top: 20px; font-size: 0.625rem; font-family: var(--font-mono); color: hsl(215 20% 65% / 0.3); letter-spacing: 0.2em; }

/* ═══════════════════════════════════════════
   BITE - BYTE AI CHATBOT
   ═══════════════════════════════════════════ */

.hermes-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 9999px;
  background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: 0 0 20px hsl(175 100% 50% / 0.3);
  transition: box-shadow 0.3s;
}
.hermes-fab:hover { box-shadow: 0 0 30px hsl(175 100% 50% / 0.5); }
.hermes-fab .fab-label { letter-spacing: 0.1em; }
.hermes-fab .fab-status {
  font-size: 0.5rem; opacity: 0.7; letter-spacing: 0.15em;
  font-weight: 400;
}
.hermes-fab .pulse-ring {
  position: absolute; inset: -4px; border-radius: 9999px;
  border: 2px solid hsl(175 100% 50% / 0.4);
  animation: pulse-anim 2s ease-in-out infinite;
}
.hermes-fab.active { background: hsl(175, 100%, 40%); }

.hermes-chat {
  position: fixed; bottom: 80px; right: 24px; z-index: 100;
  width: 380px; max-width: calc(100vw - 48px);
  background: hsl(222 47% 6%); border: 1px solid hsl(175 100% 50% / 0.3);
  border-radius: 8px; overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: 0 0 40px hsl(175 100% 50% / 0.1);
}
.hermes-chat.open { display: flex; }

.hermes-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid hsl(217 33% 15% / 0.5);
  background: hsl(222 47% 4%);
}
.hermes-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted-fg); }
.hermes-status .status-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(142 76% 66%); }
.ai-badge {
  font-size: 0.5rem; font-weight: 700; letter-spacing: 0.15em;
  padding: 2px 6px; border-radius: 4px;
  background: hsl(175 100% 50% / 0.15); color: var(--primary);
  border: 1px solid hsl(175 100% 50% / 0.3);
  margin-left: 4px;
}
.hermes-close { background: none; border: none; color: var(--muted-fg); cursor: pointer; font-size: 1rem; padding: 4px; }
.hermes-close:hover { color: var(--fg); }

.hermes-messages {
  height: 320px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.hermes-msg { display: flex; }
.hermes-msg.hermes-user { justify-content: flex-end; }
.hermes-msg .bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 8px;
  font-size: 0.8125rem; line-height: 1.5;
}
.hermes-msg.hermes-bot .bubble { background: hsl(217 33% 15% / 0.5); color: var(--fg); }
.hermes-msg.hermes-user .bubble { background: hsl(175 100% 50% / 0.15); color: var(--fg); border: 1px solid hsl(175 100% 50% / 0.2); }
.hermes-msg .bubble a { color: var(--primary); }

.hermes-input-area {
  display: flex; border-top: 1px solid hsl(217 33% 15% / 0.5);
}
.hermes-input-area input {
  flex: 1; padding: 12px 16px; background: transparent; border: none;
  color: var(--fg); font-family: var(--font-sans); font-size: 0.8125rem;
  outline: none;
}
.hermes-input-area input::placeholder { color: hsl(215 20% 65% / 0.4); }
.hermes-input-area button {
  padding: 12px 16px; background: none; border: none;
  color: var(--primary); cursor: pointer; font-size: 1.125rem;
}
.hermes-input-area button:hover { color: hsl(175, 100%, 60%); }

/* ═══════════════════════════════════════════
   WATCH IT RUN + FOOTER
   ═══════════════════════════════════════════ */

.watch-section { padding: 96px 0; border-bottom: 1px solid hsl(217 33% 15% / 0.4); }
.watch-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.watch-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden;
  border: 1px solid hsl(175 100% 50% / 0.25);
  box-shadow: 0 0 40px hsl(175 100% 50% / 0.08);
  background: hsl(222 47% 6%);
}
.watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-facts { display: flex; flex-direction: column; gap: 0; }
.watch-fact { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px dashed hsl(217 33% 15% / 0.6); }
.watch-fact-label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.18em; color: var(--primary); }
.watch-fact-value { font-size: 0.875rem; line-height: 1.6; color: var(--fg); opacity: 0.9; }
.watch-cta { margin-top: 28px; align-self: flex-start; }

.site-footer {
  border-top: 1px solid hsl(217 33% 15% / 0.5);
  background: hsl(222 47% 4% / 0.6);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-logo { font-family: var(--font-mono); color: var(--primary); font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; }
.footer-brand p { color: var(--muted-fg); font-size: 0.8125rem; line-height: 1.7; margin-top: 12px; max-width: 340px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--muted-fg); margin-bottom: 16px; }
.footer-col a {
  display: block; color: var(--fg); text-decoration: none; font-size: 0.875rem;
  padding: 5px 0; opacity: 0.8; transition: opacity 0.2s, color 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1200px; margin: 48px auto 0; padding: 24px 24px 0;
  border-top: 1px solid hsl(217 33% 15% / 0.4);
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em;
  color: hsl(215 20% 65% / 0.5);
}

@media (max-width: 900px) {
  .watch-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 12px 20px; background: var(--primary); color: #000;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.compare-featured { border: 1px solid hsl(175 100% 50% / 0.5); box-shadow: 0 0 30px hsl(175 100% 50% / 0.1); }
.compare-grid h3 { font-family: var(--font-mono); font-size: 0.9375rem; letter-spacing: 0.05em; margin-bottom: 16px; }
.compare-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.compare-grid li { color: var(--muted-fg); font-size: 0.8125rem; line-height: 1.6; padding-left: 18px; position: relative; }
.compare-grid li::before { content: '—'; position: absolute; left: 0; color: var(--primary); }
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } }

.pipeline-section { padding: 96px 0; border-bottom: 1px solid hsl(217 33% 15% / 0.4); }
.pipeline-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pipe-step {
  position: relative; padding: 28px 24px;
  border: 1px solid hsl(217 33% 15% / 0.6);
  border-radius: 12px; background: hsl(222 47% 5% / 0.7);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.pipe-step:hover { border-color: hsl(175 100% 50% / 0.4); box-shadow: 0 0 24px hsl(175 100% 50% / 0.07); transform: translateY(-2px); }
.pipe-num { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.2em; color: hsl(175 100% 50% / 0.5); margin-bottom: 14px; }
.pipe-step h4 { font-family: var(--font-mono); font-size: 0.9375rem; letter-spacing: 0.05em; margin-bottom: 10px; }
.pipe-step p { color: var(--muted-fg); font-size: 0.8125rem; line-height: 1.6; }
.pipe-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  color: hsl(175 100% 50% / 0.4); font-family: var(--font-mono); z-index: 1;
}
@media (max-width: 900px) {
  .pipeline-strip { grid-template-columns: 1fr 1fr; }
  .pipe-step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) { .pipeline-strip { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 767px) {
  .hero { min-height: 85vh; }
  .pillars-section, .trust-section { padding: 64px 0; }
  .cta-section { padding: 80px 0; }
  .hermes-chat { width: calc(100vw - 32px); right: 16px; bottom: 72px; }
}

/* ═══════════════════════════════════════════
   WORK PAGE — Showcase
   ═══════════════════════════════════════════ */

.work-hero {
  padding: 96px 0 48px;
  border-bottom: 1px solid hsl(217 33% 15% / 0.4);
  position: relative;
  overflow: hidden;
}

.work-hero-sub {
  max-width: 720px;
  color: var(--muted-fg);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-top: 24px;
}

.work-hero-proof {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Filter */
.work-filter {
  padding: 24px 0;
  border-bottom: 1px solid hsl(217 33% 15% / 0.3);
  position: sticky;
  top: 60px;
  z-index: 50;
  background: var(--bg);
}

.filter-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid hsl(217 33% 15% / 0.6);
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.2s;
}

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

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}

/* Grid */
.work-grid {
  padding: 64px 0;
}

/* Card */
.work-card {
  border: 1px solid hsl(217 33% 15% / 0.4);
  border-radius: 12px;
  margin-bottom: 48px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.work-card:hover {
  border-color: hsl(175 100% 50% / 0.3);
}

.work-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid hsl(217 33% 15% / 0.3);
  background: hsl(222 47% 6% / 0.5);
}

.work-card-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: hsl(175 100% 50% / 0.15);
  line-height: 1;
}

.work-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.work-tag {
  padding: 4px 12px;
  background: hsl(217 33% 15% / 0.5);
  border: 1px solid hsl(217 33% 15% / 0.6);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.work-card-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 24px 32px 0;
  color: var(--fg);
}

.work-card-body {
  padding: 24px 32px;
}

.work-business {
  margin-bottom: 32px;
}

.work-business h3,
.work-tech h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.work-business p {
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.work-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.metric-full {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.work-tech ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.work-tech li {
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.work-tech li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.work-tech li strong {
  color: var(--fg);
  font-weight: 600;
}

.work-proof {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 32px;
  border-top: 1px solid hsl(217 33% 15% / 0.3);
  background: hsl(222 47% 6% / 0.3);
}

.work-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: hsl(175 100% 50% / 0.08);
  border: 1px solid hsl(175 100% 50% / 0.2);
  border-radius: 100px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s;
}

.work-proof-link:hover {
  background: hsl(175 100% 50% / 0.15);
  border-color: var(--primary);
  text-decoration: none;
}

.work-proof-note {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-style: italic;
}

.work-cta {
  border-top: 1px solid hsl(217 33% 15% / 0.4);
}

/* Responsive */
@media (max-width: 767px) {
  .work-hero { padding: 64px 0 32px; }
  .work-card-header { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .work-card-meta { justify-content: flex-start; }
  .work-card-title { padding: 16px 20px 0; font-size: 1.25rem; }
  .work-card-body { padding: 16px 20px; }
  .work-metrics { gap: 20px; }
  .work-proof { padding: 16px 20px; flex-direction: column; }
  .filter-inner { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.6875rem; }
}

/* ═══════════════════════════════════════════
   HOME — Proof Section
   ═══════════════════════════════════════════ */

.proof-section {
  padding: 96px 0;
  border-top: 1px solid hsl(217 33% 15% / 0.3);
}

.proof-intro {
  max-width: 600px;
  color: var(--muted-fg);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

.proof-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid hsl(217 33% 15% / 0.4);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  background: hsl(222 47% 6% / 0.3);
}

.proof-card:hover {
  border-color: hsl(175 100% 50% / 0.3);
  background: hsl(222 47% 6% / 0.6);
  text-decoration: none;
  transform: translateY(-2px);
}

.proof-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(175 100% 50% / 0.15);
  line-height: 1;
  margin-bottom: 4px;
}

.proof-card h4 {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.proof-card p {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.proof-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.03em;
  margin-top: 8px;
}

.proof-card-cta {
  background: hsl(175 100% 50% / 0.05);
  border-color: hsl(175 100% 50% / 0.2);
}

.proof-card-cta:hover {
  background: hsl(175 100% 50% / 0.1);
  border-color: var(--primary);
}

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

@media (max-width: 767px) {
  .proof-section { padding: 64px 0; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { padding: 20px; }
}
