/* ============================================
   ZERO by The Fluxone — Global Stylesheet
   zero.thefluxone.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Barlow+Condensed:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-void:       #0e4a8a;
  --bg-deep:       #1a6ab8;
  --bg-card:       rgba(255, 255, 255, 0.13);
  --bg-glass:      rgba(255, 255, 255, 0.08);
  --cyan:          #7dd3fc;
  --cyan-dim:      rgba(125, 211, 252, 0.22);
  --cyan-glow:     rgba(125, 211, 252, 0.55);
  --green:         #6ee7b7;
  --green-dim:     rgba(110, 231, 183, 0.18);
  --amber:         #fde68a;
  --red:           #fca5a5;
  --red-dim:       rgba(252, 165, 165, 0.18);
  --white:         #ffffff;
  --white-dim:     rgba(255, 255, 255, 0.88);
  --border:        rgba(255, 255, 255, 0.25);
  --border-bright: rgba(255, 255, 255, 0.60);
  --shadow-cyan:   0 0 35px rgba(125, 211, 252, 0.35);
  --shadow-green:  0 0 35px rgba(110, 231, 183, 0.35);
  --font-display:  'Orbitron', monospace;
  --font-body:     'Barlow', sans-serif;
  --font-cond:     'Barlow Condensed', sans-serif;
  --nav-h:         72px;
  --radius:        4px;
  --transition:    all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse at 50% 0%,   rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 25%,  rgba(100, 200, 255, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 60%,  rgba(30, 120, 220, 0.22)  0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(10,  60,  150, 0.30) 0%, transparent 60%);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Starfield canvas */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Grid overlay */
body::before {
  display: none;
}

/* Content above starfield */
.site-content { position: relative; z-index: 1; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: 0.03em; }
h1 { font-size: clamp(1.9rem, 3.8vw, 3.0rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.1em; }

p { font-size: 1.05rem; color: var(--white-dim); max-width: 68ch; line-height: 1.8; }
a { color: #bfdbfe; text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

.label {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.4rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.7);
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(10, 60, 130, 0.85);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.nav-logo-mark::before {
  content: '';
  position: absolute;
  width: 50%; height: 50%;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--cyan-glow);
  animation: pulse-ring 2.5s ease-in-out infinite;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .brand {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--white-dim);
}
.nav-logo-text .project {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  margin-left: clamp(1rem, 2vw, 2rem);
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff !important;
  font-family: var(--font-cond) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition) !important;
  backdrop-filter: blur(8px);
}
.nav-cta:hover {
  background: rgba(255,255,255,0.30) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 45, 110, 0.97);
  padding: 4rem clamp(1.5rem, 6vw, 6rem) 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 32ch;
  margin-top: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.footer-col h5 {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white-dim);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  color: var(--white-dim);
}
.footer-contact-icon {
  width: 18px; height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.42);
  max-width: none;
}

.footer-patent {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.40);
  text-transform: uppercase;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: rgba(255,255,255,0.95);
  color: #0a4080;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: #fff;
  color: #0a4080;
  box-shadow: 0 6px 30px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}

.btn-green {
  background: var(--green);
  color: #0a4080;
  box-shadow: 0 4px 20px rgba(110,231,183,0.35);
}
.btn-green:hover {
  background: #fff;
  color: #0a4080;
  box-shadow: 0 6px 30px rgba(110,231,183,0.5);
  transform: translateY(-2px);
}

/* ── Cards ── */
.card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.16);
}
.card:hover::before { opacity: 1; }

.card-cyan { border-color: rgba(125,211,252,0.35); }
.card-green { border-color: rgba(110,231,183,0.35); }
.card-red   { border-color: rgba(252,165,165,0.35); }

/* ── Section Layouts ── */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ── Stat Display ── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 500;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--white-dim);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

/* ── Glowing Line ── */
.glow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  margin: 3rem 0;
  opacity: 0.5;
}

/* ── Tag / Badge ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 3px;
}
.badge-cyan  { background: rgba(125,211,252,0.18); color: #fff; border: 1px solid rgba(125,211,252,0.4); }
.badge-green { background: rgba(110,231,183,0.18); color: #fff; border: 1px solid rgba(110,231,183,0.4); }
.badge-red   { background: rgba(252,165,165,0.18); color: #fff; border: 1px solid rgba(252,165,165,0.4); }
.badge-amber { background: rgba(253,230,138,0.18); color: #fff; border: 1px solid rgba(253,230,138,0.4); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Animations ── */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  50%  { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0,229,255,0.3); }
  50%       { box-shadow: 0 0 35px rgba(0,229,255,0.6); }
}

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

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

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes counter-glow {
  0%   { text-shadow: 0 0 10px rgba(0,229,255,0.5); }
  50%  { text-shadow: 0 0 30px rgba(0,229,255,0.9), 0 0 60px rgba(0,229,255,0.4); }
  100% { text-shadow: 0 0 10px rgba(0,229,255,0.5); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,60,130,0.98);
    padding: 2rem clamp(1.5rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
    backdrop-filter: blur(20px);
  }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Utilities ── */
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.text-dim { color: var(--white-dim); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
