@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --bg: #030303;
  --bg-surface: #0a0c0a;
  --text: #e6e6e6;
  --text-dim: #8b928c;
  --accent-green: #00ff66;
  --accent-orange: #ff3300;
  --border: #1a241c;
  --border-focus: #2a3a2e;
  --neon-glow: 0 0 15px rgba(0, 255, 102, 0.4);
  --orange-glow: 0 0 15px rgba(255, 51, 0, 0.4);
}

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

body {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
}

/* Custom Scanlines */
.hud-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 1000;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px);
}

h1, h2 { font-family: 'Chakra Petch', sans-serif; text-transform: uppercase; }
a { color: var(--accent-green); text-decoration: none; }
a:hover { box-shadow: 0 2px 0 var(--accent-green); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

header { padding: 30px 0; margin-bottom: 40px; }
.nav-wrap { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--accent-green); padding-bottom: 10px; }
.logo { font-size: 28px; font-family: 'Chakra Petch', sans-serif; font-weight: 700; color: var(--accent-green); text-shadow: var(--neon-glow); letter-spacing: 2px;}
.logo a { color: inherit; }
.logo a:hover { box-shadow: none; }
.nav-links { display: flex; gap: 24px; font-size: 13px; font-weight: 600;}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--accent-orange); box-shadow: 0 2px 0 var(--accent-orange); }

.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* Windows / Panes */
.pane {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  margin-bottom: 40px;
  position: relative;
  transition: border-color 0.3s;
}

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

.pane-header {
  background: var(--border);
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-green);
  letter-spacing: 1px;
}
.pane-status { color: var(--accent-orange); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: stretch; }
.hero-content { padding: 60px 40px; border-right: 1px solid var(--border); }
.sys-label { background: var(--accent-green); color: #000; padding: 2px 8px; font-size: 11px; font-weight: 600; margin-bottom: 24px; display: inline-block; }
.hero h1 { font-size: 64px; line-height: 1.1; margin-bottom: 24px; text-shadow: 2px 2px 0px rgba(255, 51, 0, 0.5); }
.hero .desc { font-size: 16px; color: var(--text-dim); margin-bottom: 40px; max-width: 480px; }

.cta { display: flex; gap: 20px; }
.btn { padding: 14px 24px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border: 1px solid transparent; background: transparent; transition: 0.2s; display: inline-block;}
.btn-primary { border-color: var(--accent-green); color: var(--accent-green); }
.btn-primary:hover { background: var(--accent-green); color: #000; box-shadow: var(--neon-glow); text-decoration: none;}
.btn-secondary { border-color: var(--text-dim); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent-orange); color: var(--accent-orange); text-decoration: none;}

.hero-visual { position: relative; padding: 40px; display: flex; justify-content: center; align-items: center; background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%232a3a2e"/></svg>') repeat;}
.hero-visual img { max-width: 100%; height: auto; mix-blend-mode: screen; filter: drop-shadow(0 0 20px rgba(0,255,102,0.1)); animation: float 6s ease-in-out infinite; }
.tech-frame { position: absolute; border: 1px solid var(--border); pointer-events: none;}
.frame-1 { top: 20px; left: 20px; width: 40px; height: 40px; border-color: var(--accent-green); border-right: none; border-bottom: none; }
.frame-2 { bottom: 20px; right: 20px; width: 40px; height: 40px; border-color: var(--accent-orange); border-left: none; border-top: none; }

/* Grid features */
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.feat-content { padding: 40px; }
.feature svg { width: 48px; height: 48px; stroke: var(--accent-orange); fill: none; stroke-width: 1.5; margin-bottom: 24px; transition: 0.3s; }
.feature:hover { border-color: var(--accent-green); }
.feature:hover svg { stroke: var(--accent-green); filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.4)); transform: scale(1.05);}
.feature h2 { font-size: 20px; margin-bottom: 12px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.feature h2::before { content: ''; display: inline-block; width: 12px; height: 2px; background: var(--accent-green); }
.feature p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.feat-wide { grid-column: span 2; }
.feat-wide .feat-content { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.feat-wide svg { margin-bottom: 0; }

/* Legal pages support */
.legal { padding: 60px 40px; max-width: 800px; margin: 0 auto; color: var(--text-dim); }
.legal h1 { font-size: 32px; color: var(--accent-green); margin-bottom: 8px; text-shadow: var(--neon-glow); }
.legal .updated { font-size: 12px; display: inline-block; background: var(--border); padding: 4px 8px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; color: var(--text); margin: 40px 0 16px; display: flex; align-items: center; gap: 10px; }
.legal h2::before { content: '>'; color: var(--accent-orange); }
.legal p, .legal li { font-size: 14px; margin-bottom: 16px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-green); text-decoration: underline; text-underline-offset: 4px; }
.legal a:hover { color: var(--accent-orange); text-decoration: none; box-shadow: none; }

footer { padding: 0; }
.footer-data { padding: 20px 40px; display: flex; justify-content: space-between; }
.cpu-stat { color: var(--text); }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { border-right: none; border-bottom: 1px solid var(--border); padding: 40px 20px; }
  .module-grid { grid-template-columns: 1fr; }
  .feat-wide { grid-column: span 1; }
  .feat-wide .feat-content { grid-template-columns: 1fr; gap: 20px; direction: column;}
  .hero h1 { font-size: 48px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  header { padding: 20px 0; margin-bottom: 30px; }
  .nav-wrap { flex-wrap: wrap; gap: 12px; }
  .logo { font-size: 20px; letter-spacing: 1px; }
  .nav-links { gap: 12px; font-size: 11px; }

  main { margin-bottom: 20px; }

  .hero-grid { gap: 0; }
  .hero-content { padding: 30px 16px; }
  .sys-label { font-size: 9px; padding: 2px 6px; margin-bottom: 16px; }
  .hero h1 { font-size: 36px; line-height: 1.2; margin-bottom: 16px; }
  .hero .desc { font-size: 13px; line-height: 1.5; margin-bottom: 24px; }

  .cta { flex-direction: column; gap: 12px; }
  .btn { padding: 12px 18px; font-size: 11px; }

  .hero-visual { padding: 24px 16px; }
  .tech-frame { display: none; }

  .module-grid { gap: 16px; }
  .feat-content { padding: 24px 16px; }
  .feature h2 { font-size: 16px; margin-bottom: 10px; }
  .feature p { font-size: 13px; }
  .feature svg { width: 36px; height: 36px; margin-bottom: 16px; }

  .footer-data { padding: 16px; flex-direction: column; gap: 8px; font-size: 12px; }

  .pane { margin-bottom: 24px; }
  .pane-header { font-size: 10px; padding: 5px 10px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; line-height: 1.5; }

  .container { padding: 0 12px; }

  header { padding: 16px 0; margin-bottom: 20px; }
  .nav-wrap { border-bottom-width: 1px; padding-bottom: 8px; }
  .logo { font-size: 18px; letter-spacing: 1px; }
  .nav-links { gap: 8px; font-size: 10px; flex-wrap: wrap; }

  .hero-content { padding: 24px 12px; }
  .sys-label { font-size: 8px; padding: 2px 5px; margin-bottom: 12px; }
  .hero h1 { font-size: 28px; line-height: 1.2; margin-bottom: 14px; word-break: break-word; }
  .hero .desc { font-size: 12px; line-height: 1.5; margin-bottom: 20px; }

  .cta { flex-direction: column; gap: 10px; }
  .btn { padding: 11px 16px; font-size: 10px; }

  .hero-visual { padding: 20px 12px; }
  .hero-visual img { max-width: 85%; }

  .pane { margin-bottom: 20px; }
  .pane-header { font-size: 9px; padding: 4px 8px; }

  .module-grid { gap: 12px; }
  .feat-content { padding: 20px 12px; }
  .feature h2 { font-size: 14px; margin-bottom: 8px; }
  .feature h2::before { width: 10px; height: 1.5px; }
  .feature p { font-size: 12px; line-height: 1.5; }
  .feature svg { width: 32px; height: 32px; margin-bottom: 12px; stroke-width: 1; }

  .footer-data { padding: 12px 8px; flex-direction: column; gap: 6px; font-size: 11px; }
  .cpu-stat { font-size: 11px; }
}

@media (max-width: 360px) {
  .container { padding: 0 10px; }

  .logo { font-size: 16px; }
  .nav-links { gap: 6px; font-size: 9px; }

  .hero h1 { font-size: 24px; margin-bottom: 12px; }
  .hero .desc { font-size: 11px; margin-bottom: 16px; }

  .cta { gap: 8px; }
  .btn { padding: 10px 14px; font-size: 9px; }

  .feat-content { padding: 16px 10px; }
  .feature h2 { font-size: 13px; }
  .feature p { font-size: 11px; }
}
