/* Lightning Command Lines — Global Styles */
/* Dark cyberpunk aesthetic with electric blue */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d1117;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --blue-electric: #00bfff;
  --blue-glow: #0080ff;
  --blue-dark: #003366;
  --blue-accent: #00e5ff;
  --cyan: #00ffd5;
  --text-primary: #e0e8f0;
  --text-secondary: #8892a0;
  --text-muted: #4a5568;
  --border: #1e293b;
  --gradient-blue: linear-gradient(135deg, #00bfff, #0066cc);
  --gradient-glow: linear-gradient(135deg, #00bfff 0%, #00ffd5 100%);
  --shadow-glow: 0 0 20px rgba(0, 191, 255, 0.3);
  --shadow-glow-strong: 0 0 40px rgba(0, 191, 255, 0.5);
  --font-mono: 'Courier New', 'Fira Code', monospace;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Matrix Rain Canvas */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  background: transparent;
}

.nav-logo .logo-icon {
  font-family: var(--font-mono);
  color: var(--blue-electric);
  font-size: 1.4rem;
  text-shadow: 0 0 10px var(--blue-electric);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--blue-electric);
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-electric);
  transition: width 0.3s;
  box-shadow: 0 0 6px var(--blue-electric);
}

.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
}

/* Main Content */
main { position: relative; z-index: 1; }

.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-body {
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-title .accent { color: var(--blue-electric); }

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Hero Section — full viewport immersive */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  background: url('/images/scrolling_bg_8k.png?v=6') center center / cover no-repeat fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 .gradient-text {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}

.hero .tagline .cursor {
  animation: blink 1s step-end infinite;
  color: var(--blue-electric);
}

.hero .tagline-sub {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-electric);
  border: 1px solid var(--blue-electric);
}

.btn-secondary:hover {
  background: rgba(0, 191, 255, 0.1);
  box-shadow: var(--shadow-glow);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(0, 191, 255, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Status Indicators */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.status-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.status-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--blue-electric);
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.3);
}

.status-card .value.ok { color: #00ff88; text-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }
.status-card .value.warn { color: #ffaa00; text-shadow: 0 0 8px rgba(255, 170, 0, 0.3); }
.status-card .value.error { color: #ff4444; text-shadow: 0 0 8px rgba(255, 68, 68, 0.3); }

/* Products */
.product-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.product-card:hover {
  border-color: rgba(0, 191, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.product-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.product-info p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-electric);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--blue-electric); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom .powered {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Page Header */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blue-electric);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.legal-content li { margin-bottom: 0.5rem; }

/* Password Gate */
.password-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.password-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.password-box h2 { margin-bottom: 0.5rem; }

.password-box p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.password-box input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-family: var(--font-mono);
}

.password-box input:focus {
  outline: none;
  border-color: var(--blue-electric);
}

/* Status Dashboard */
.status-section { margin-bottom: 3rem; }

.status-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(0, 191, 255, 0.5); }
  50% { text-shadow: 0 0 40px rgba(0, 191, 255, 0.8), 0 0 60px rgba(0, 191, 255, 0.3); }
}

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

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .product-card { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; }
  .form-card { padding: 1.5rem; }
}
