/* =========================================
   VigilOS Landing Page — Theme CSS
   ========================================= */

:root {
  --bg: #06251a;
  --bg-2: #041c12;
  --surface: #0a3520;
  --surface-2: #0d4028;
  --accent: #b4ff4e;
  --accent-dim: rgba(180, 255, 78, 0.12);
  --accent-border: rgba(180, 255, 78, 0.25);
  --text: #e8ffe4;
  --text-2: rgba(232, 255, 228, 0.65);
  --text-3: rgba(232, 255, 228, 0.35);
  --border: rgba(180, 255, 78, 0.15);
  --error: #ff6b6b;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(6, 37, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  padding: 160px 48px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 255, 78, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 255, 78, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
  opacity: 0.4;
  animation: scanline 8s linear infinite;
}
@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 28px;
  width: fit-content;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-headline-accent {
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 500px;
}

/* Hero Dashboard Widget */
.hero-dashboard {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(180, 255, 78, 0.07);
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.dash-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-2);
  text-transform: uppercase;
}
.dash-status {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.dash-status.running {
  background: rgba(180, 255, 78, 0.15);
  color: var(--accent);
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.dash-metric {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.dash-metric:last-child { border-right: none; }
.dash-metric-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.dash-metric-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.dash-metric-value.positive { color: var(--accent); }
.dash-log {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.dash-log-line {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(180, 255, 78, 0.06);
}
.dash-log-line:last-child { border-bottom: none; }
.log-time {
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 11px;
  min-width: 36px;
}
.log-action { color: var(--text-2); }
.dash-activity {
  padding: 14px 20px;
}
.activity-bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.activity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(180, 255, 78, 0.4) 100%);
  border-radius: 2px;
  transition: width 1s ease;
}
.activity-label {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-display);
}

/* Hero Viz */
.hero-viz {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
.viz-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-display);
  color: var(--text-2);
  letter-spacing: 0.03em;
}
.viz-node-active {
  border-color: var(--accent-border);
  color: var(--accent);
}
.viz-node-action {
  border-color: rgba(180, 255, 78, 0.4);
}
.viz-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
.viz-connector {
  width: 20px;
  height: 1px;
  background: var(--border);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 60px auto 0;
  padding: 28px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  width: 100%;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-2);
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =========================================
   SECTIONS COMMON
   ========================================= */
section { padding: 100px 48px; }
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 600px;
}

/* =========================================
   MANIFESTO
   ========================================= */
.manifesto {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.manifesto-inner { max-width: 1400px; margin: 0 auto; }
.manifesto-label { margin-bottom: 24px; }
.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 32px;
}
.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
}
.manifesto-body p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
}

/* =========================================
   PLAYBOOK
   ========================================= */
.playbook { background: var(--bg); }
.playbook-header { margin-bottom: 64px; }
.playbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.playbook-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s;
}
.playbook-card:hover { border-color: var(--accent-border); }
.playbook-icon {
  margin-bottom: 20px;
}
.playbook-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.playbook-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.playbook-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.playbook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.playbook-tags span {
  font-size: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  color: var(--accent);
}

/* =========================================
   SIGNALS
   ========================================= */
.signals { background: var(--bg-2); }
.signals-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.signals-left .section-headline { margin-bottom: 20px; }
.signals-body {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.signal-list { display: flex; flex-direction: column; gap: 28px; }
.signal-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.signal-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;
}
.signal-content h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.signal-content p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Signal Feed */
.signal-feed {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(180, 255, 78, 0.05);
}
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.feed-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-transform: uppercase;
}
.feed-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.feed-items { padding: 4px 0; }
.feed-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(180, 255, 78, 0.06);
}
.feed-item:last-child { border-bottom: none; }
.feed-item-action { }
.feed-time {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.feed-text {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

/* =========================================
   OUTCOMES
   ========================================= */
.outcomes { background: var(--bg); }
.outcomes-header { margin-bottom: 64px; }
.outcomes-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 64px;
}
.outcome-col { }
.outcome-col-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.outcome-col-label-new { color: var(--accent); }
.outcome-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.outcome-item:last-child { border-bottom: none; }

.outcomes-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}
.outcome-stat { text-align: center; }
.outcome-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.outcome-stat-label {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

/* =========================================
   PHILOSOPHY
   ========================================= */
.philosophy {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.philosophy-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.philosophy-label { margin-bottom: 24px; }
.philosophy-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.philosophy-body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 48px;
}
.philosophy-quote {
  padding: 32px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.philosophy-quote blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}
.philosophy-quote blockquote::before {
  content: '"';
  color: var(--accent);
  font-size: 32px;
  font-style: normal;
}
.philosophy-quote blockquote::after {
  content: '"';
  color: var(--accent);
  font-size: 32px;
  font-style: normal;
}

/* =========================================
   CLOSING
   ========================================= */
.closing {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 720px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-note {
  font-size: 14px;
  color: var(--text-3);
  padding: 20px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-block;
}

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  font-size: 12px;
  color: var(--text-3);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .playbook-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-viz { display: none; }
}
@media (max-width: 768px) {
  section { padding: 80px 24px; }
  .nav { padding: 16px 24px; }
  .hero { padding: 120px 24px 60px; }
  .hero-headline { font-size: 36px; }
  .manifesto-body { grid-template-columns: 1fr; gap: 16px; }
  .playbook-grid { grid-template-columns: 1fr; }
  .signals-inner { grid-template-columns: 1fr; }
  .signal-feed { display: none; }
  .outcomes-comparison { grid-template-columns: 1fr; }
  .outcomes-stat-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: 20px; align-items: flex-start; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
  .dash-metrics { grid-template-columns: 1fr; }
  .dash-metric { border-right: none; border-bottom: 1px solid var(--border); }
  .dash-metric:last-child { border-bottom: none; }
}