@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@700;800&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #000000;
  --bg-surface: #030814;
  --bg-panel: #0a1222;
  --accent-gold: #FFCC00;
  --accent-glow: rgba(255, 204, 0, 0.35);
  --text-main: #FFFFFF;
  --text-dim: #7A94B5;
  --border-light: rgba(255, 204, 0, 0.2);
  --border-heavy: rgba(255, 204, 0, 0.4);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --font-brand: 'JetBrains Mono', monospace;
  --font-ui: 'Roboto Mono', monospace;
  --mono: 'Roboto Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-ui);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 204, 0, 0.05), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 204, 0, 0.03), transparent 40%);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255, 204, 0, 0.015) 50%, transparent 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 99999;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 99998;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s;
}

.site-shell {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.topbar,
.footer,
.hero,
.section,
.page-hero,
.legal-page {
  backdrop-filter: blur(20px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(10, 18, 34, 0.85);
  position: sticky;
  top: 20px;
  z-index: 10000;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-text {
  font-size: 1.2rem;
  color: var(--accent-gold);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: var(--accent-gold);
  color: var(--bg-deep);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 8px var(--accent-glow);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 4px;
  background: var(--accent-gold);
  color: var(--bg-deep);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.hero,
.page-hero,
.section,
.legal-page {
  margin-top: 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 80px 60px;
  border-color: var(--border-heavy);
  background: linear-gradient(135deg, var(--bg-surface) 0%, #050c1b 100%);
}

.hero-copy h1 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}

.lede {
  margin-top: 24px;
  max-width: 55ch;
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--mono);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.button-primary {
  background: var(--accent-gold);
  color: var(--bg-deep);
  box-shadow: 0 0 20px var(--accent-glow);
}

.button-secondary {
  border: 1px solid var(--border-heavy);
  background: transparent;
  color: var(--accent-gold);
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.hero-points {
  margin-top: 40px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  color: var(--text-dim);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold);
}

.hero-panel {
  display: grid;
  gap: 24px;
}

.signal-card,
.grid-card,
.card,
.path-card,
.briefing-panel,
.wide-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.signal-card {
  padding: 24px;
  border-left: 4px solid var(--accent-gold);
}

.forensic-heartbeat {
  background: rgba(0, 240, 255, 0.03);
  position: relative;
}

.heartbeat-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.data-item {
  display: flex;
  flex-direction: column;
}

.data-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.data-item strong {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent-gold);
  text-shadow: 0 0 10px var(--accent-glow);
}

.heartbeat-vitals {
  margin-bottom: 16px;
}

.vitals-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.vitals-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  position: absolute;
  transform: translateX(-100%);
  animation: vitals-sweep 3s infinite linear;
}

@keyframes vitals-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Synthesis Path Visual */
.visual-container {
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.synthesis-path {
  width: 100%;
  max-width: 800px;
  height: auto;
}

.animate-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: path-draw 4s infinite linear;
}

@keyframes path-draw {
  0% { stroke-dashoffset: 1000; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

.ping {
  transform-origin: center;
  animation: ping-pulse 2s infinite ease-out;
}

@keyframes ping-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.node {
  transition: 0.3s;
}

.node:hover {
  filter: drop-shadow(0 0 10px var(--accent-gold));
}

.data-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0;
  opacity: 0.8;
}

.signal-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #fff;
}

.signal-label {
  font-family: var(--mono);
  color: var(--accent-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.grid-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-light);
}

.grid-card > div {
  padding: 24px;
  background: var(--bg-surface);
}

.grid-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.grid-card strong {
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.page-hero,
.legal-page {
  padding: 80px 60px;
}

.section {
  padding: 60px;
}

.accent-section {
  background: radial-gradient(circle at bottom right, rgba(0, 240, 255, 0.05), transparent 50%), var(--bg-surface);
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.three-up, .two-up, .path-grid {
  display: grid;
  gap: 24px;
}

.three-up { grid-template-columns: repeat(3, 1fr); }
.two-up { grid-template-columns: repeat(2, 1fr); }
.path-grid { grid-template-columns: repeat(3, 1fr); }

.card, .path-card {
  padding: 32px;
  transition: 0.3s;
}

.card:hover, .path-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-gold);
}

.card h3, .path-card h3 {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.list {
  padding-left: 0;
  list-style: none;
}

.list li {
  margin-bottom: 12px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.feature-stack {
  display: grid;
  gap: 20px;
}

.feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
}

.feature-index {
  color: var(--accent-gold);
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--mono);
  opacity: 0.5;
}

.closing-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 80px 60px;
  background: linear-gradient(135deg, #050c1b 0%, var(--bg-deep) 100%);
  border-color: var(--border-heavy);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 24px 40px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
}

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

/* Redacted Content */
.redacted {
  background: #000;
  color: transparent !important;
  user-select: none;
  cursor: help;
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 4px;
  border-radius: 2px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.redacted:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-gold) !important;
  user-select: auto;
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Section Scanning Line */
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.15;
  animation: scan-vertical 8s infinite linear;
  pointer-events: none;
}

@keyframes scan-vertical {
  0% { top: 0; }
  100% { top: 100%; }
}

/* Terminal Intake */
.terminal-container {
  background: #000;
  border: 1px solid var(--border-heavy);
  border-radius: var(--radius-md);
  padding: 32px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 40px;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.terminal-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0, 240, 255, 0.03) 50%, transparent 50%);
  background-size: 100% 4px;
  pointer-events: none;
}

.terminal-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}

.terminal-line {
  margin-bottom: 8px;
  display: block;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent-gold);
  vertical-align: middle;
  animation: blink 1s infinite;
  margin-left: 4px;
}

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

/* Vault Ledger & Asset Tags */
.vault-ledger {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.asset-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: 0.3s;
}

.asset-item:hover {
  border-color: var(--accent-gold);
  background: rgba(0, 240, 255, 0.05);
}

.asset-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-heavy);
  border-radius: var(--radius-sm);
  color: var(--accent-gold);
  font-family: var(--mono);
  font-weight: 800;
}

.asset-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #fff;
}

.asset-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.asset-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--border-light);
  text-transform: uppercase;
}

/* Global Tactical Map */
.map-container {
  height: 400px;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%), var(--bg-deep);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

.map-svg {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.map-node {
  fill: var(--accent-gold);
  filter: drop-shadow(0 0 5px var(--accent-gold));
  animation: node-ping 2s infinite ease-out;
}

@keyframes node-ping {
  0% { r: 2; opacity: 1; }
  100% { r: 8; opacity: 0; }
}

.map-line {
  stroke: var(--accent-gold);
  stroke-width: 0.5;
  stroke-dasharray: 2 4;
  opacity: 0.2;
}

/* Matrix Table for Technical Density */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.matrix-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--border-heavy);
  color: var(--accent-gold);
}

.matrix-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 960px) {
  .hero, .page-hero, .legal-page { grid-template-columns: 1fr; padding: 40px 24px; }
  .three-up, .two-up, .path-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 24px; }
  .closing-band { flex-direction: column; align-items: flex-start; padding: 40px; }
  
  .topbar { 
    border-radius: 24px; 
    flex-direction: column; 
    align-items: center; 
    padding: 20px;
    gap: 16px;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* Contact Form Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 64px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  color: #fff;
  font-family: var(--sans);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-note {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 16px;
  font-family: var(--mono);
}

/* Screenshot Styling */
.screenshot-container, .screenshot-card {
  margin-top: 32px;
  position: relative;
  background: #000;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.screenshot {
  width: 100%;
  display: block;
  opacity: 0.9;
  filter: grayscale(20%) contrast(110%);
  transition: opacity 0.3s;
}

.screenshot:hover {
  opacity: 1;
}

.caption {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: rgba(0,0,0,0.8);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* New Styles for Interactivity & Authority */

/* Wall of Bypasses (Scrolling Ticker) */
.bypass-ticker {
  background: #000;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-content {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: inline-block;
  margin-right: 48px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ticker-item span {
  color: var(--accent-gold);
  font-weight: 800;
  margin-right: 8px;
}

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

/* Parity Scanner (Interactive Terminal) */
.scanner-terminal {
  background: #020612;
  border: 1px solid var(--border-heavy);
  border-radius: var(--radius-md);
  margin-top: 40px;
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.scanner-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  opacity: 0.8;
}

.scanner-line {
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(5px);
  animation: scan-line-in 0.3s forwards;
}

.scanner-line.warning { color: #ff9d00; }
.scanner-line.critical { color: #ff4d00; }
.scanner-line.success { color: #00ffaa; }

@keyframes scan-line-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Identity Lifecycle (Step Visual) */
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.lifecycle-step {
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  position: relative;
}

.lifecycle-step::after {
  content: "→";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border-light);
  font-size: 1.5rem;
}

.lifecycle-step:last-child::after { content: ""; }

.step-num {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent-gold);
  opacity: 0.3;
  margin-bottom: 12px;
  display: block;
}

/* Kinematics Card */
.kinematics-card {
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.08), transparent);
  border-color: var(--accent-gold);
}

.kinematics-visual {
  height: 100px;
  width: 100%;
  background: url("data:image/svg+xml,%3Csvg width='400' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q 50 10, 100 50 T 200 50 T 300 50 T 400 50' stroke='%2300f0ff' fill='none' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 200% 100%;
  animation: wave 10s linear infinite;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

@keyframes wave {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

@media (max-width: 960px) {
  .lifecycle-grid { grid-template-columns: 1fr; }
  .lifecycle-step::after { content: "↓"; bottom: -15px; right: 50%; transform: translateX(50%); top: auto; }
}
