/* === STIGMA OS — THEME CSS === */
:root {
  --bg: #080c14;
  --bg-2: #0b0f1c;
  --bg-3: #0f1520;
  --cyan: #00d4ff;
  --cyan-dim: rgba(0,212,255,0.15);
  --cyan-mid: rgba(0,212,255,0.4);
  --teal: #0b2a2e;
  --text: #c8d8e8;
  --text-dim: rgba(200,216,232,0.5);
  --border: rgba(0,212,255,0.12);
  --font-head: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

::selection { background: var(--cyan); color: var(--bg); }

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.perspective-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      var(--cyan) 79px,
      var(--cyan) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      var(--cyan) 79px,
      var(--cyan) 80px
    );
  background-size: 100% 100%, 80px 80px, 80px 80px;
  opacity: 0.05;
  transform: perspective(600px) rotateX(45deg) translateY(-20%);
  transform-origin: center bottom;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.04; }
  50% { opacity: 0.08; }
}

.neural-svg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.neural-svg-inner {
  width: 100%;
  max-width: 700px;
  height: auto;
  opacity: 0.6;
  animation: neuralPulse 6s ease-in-out infinite;
}

@keyframes neuralPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.75; }
}

.hero-fog {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--cyan);
  opacity: 0.8;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 480px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.stat {
  background: rgba(0,212,255,0.03);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s;
}

.stat:hover { background: rgba(0,212,255,0.08); }

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== SECTION BASE ===== */
section { padding: 0; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-inner.reverse {
  direction: rtl;
}

.section-inner.reverse > * { direction: ltr; }

.section-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  opacity: 0.5;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.section-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-features li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  letter-spacing: 0.03em;
}

.section-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 1rem;
  opacity: 0.7;
}

.section-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== DEFENSE ===== */
.defense-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.defense-svg, .ops-svg, .infra-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  animation: floatIllustration 8s ease-in-out infinite;
}

.ops-svg { animation-delay: -2s; }
.infra-svg { animation-delay: -4s; }

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

/* ===== OPERATIONS ===== */
.operations-section { background: var(--bg); }

/* ===== INFRASTRUCTURE ===== */
.infrastructure-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== PHILOSOPHY ===== */
.philosophy-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 60px;
  text-align: center;
}

.philosophy-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  opacity: 0.6;
  margin-bottom: 36px;
}

.philosophy-quote {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  font-style: normal;
  margin-bottom: 48px;
}

.philosophy-divider {
  width: 60px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.4;
  margin: 0 auto 48px;
}

.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: left;
}

.pillar-icon {
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===== CLOSING ===== */
.closing-section {
  background: var(--bg);
  padding: 0;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 60px;
  text-align: center;
}

.closing-icon {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.closing-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 60px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  opacity: 0.4;
  letter-spacing: 0.08em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 80px 32px 60px;
    gap: 48px;
  }

  .hero-stats { grid-template-columns: 1fr 1fr; }

  .section-inner {
    grid-template-columns: 1fr;
    padding: 60px 32px;
    gap: 40px;
  }

  .section-inner.reverse { direction: ltr; }
  .section-illustration { order: -1; }

  .philosophy-pillars {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .philosophy-inner, .closing-inner {
    padding: 60px 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }

  .site-footer { padding: 40px 32px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-links { gap: 16px; }
}
