/* ============================================================
   ZeroDay — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ── */
:root {
  --bg:         #080b10;
  --bg-2:       #0d1117;
  --bg-3:       #111620;
  --surface:    rgba(255,255,255,0.04);
  --surface-2:  rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.08);
  --border-2:   rgba(255,255,255,0.14);

  --accent:     #00d4ff;
  --accent-2:   #0099cc;
  --accent-glow:rgba(0,212,255,0.18);
  --green:      #00e5a0;
  --green-glow: rgba(0,229,160,0.15);
  --red:        #ff4d6d;
  --amber:      #ffb830;

  --text-1:     #f0f4ff;
  --text-2:     #8b96b0;
  --text-3:     #5a6480;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
  --glow:       0 0 40px rgba(0,212,255,0.12), 0 0 80px rgba(0,212,255,0.06);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-2); }

/* ── Utility ── */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  padding: 5px 14px; border-radius: 100px;
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  margin-bottom: 18px;
}
.tag.green  { color: var(--green); background: rgba(0,229,160,0.08); border-color: rgba(0,229,160,0.2); }
.tag.amber  { color: var(--amber); background: rgba(255,184,48,0.08); border-color: rgba(255,184,48,0.2); }

.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; font-family: var(--font-body);
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #050810;
  box-shadow: 0 0 24px rgba(0,212,255,0.35);
}
.btn-primary:hover { background: #22deff; transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,212,255,0.5); }
.btn-secondary {
  background: var(--surface-2); color: var(--text-1);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid rgba(0,212,255,0.35);
}
.btn-outline:hover { background: rgba(0,212,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; border-radius: 14px; }

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── Grid background ── */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

/* ── Glow orbs ── */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: 0.15;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: 50%; transform: translateX(-50%); }
.orb-2 { width: 400px; height: 400px; background: #0050ff; top: 20%; right: -100px; opacity: 0.1; }
.orb-3 { width: 350px; height: 350px; background: var(--green); bottom: 10%; left: -100px; opacity: 0.08; }

/* ── Nav ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  background: rgba(8,11,16,0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(8,11,16,0.92); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  color: var(--text-1);
}
.nav-logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #0066cc);
  display: grid; place-items: center;
  box-shadow: 0 0 16px rgba(0,212,255,0.4);
}
.nav-logo-icon svg { width: 18px; height: 18px; fill: #050810; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-2);
  padding: 7px 14px; border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-1); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 8px 18px; font-size: 0.875rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--transition); }
.nav-mobile { display: none; position: fixed; inset: 64px 0 0 0; z-index: 999; background: var(--bg-2); padding: 24px; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.1rem; font-weight: 500; color: var(--text-2); padding: 14px 16px; border-radius: var(--radius); transition: var(--transition); border: 1px solid transparent; }
.nav-mobile a:hover { color: var(--text-1); background: var(--surface-2); border-color: var(--border-2); }
.nav-mobile .btn { margin-top: 8px; justify-content: center; }

/* ── Footer ── */
footer {
  padding: 60px 0 30px; border-top: 1px solid var(--border);
  position: relative;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.875rem; margin-top: 12px; max-width: 280px; }
.footer-col h5 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--text-2); margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }
.footer-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 6px; box-shadow: 0 0 8px var(--green); }

/* ── Cards ── */
.glass-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: blur(12px);
  transition: var(--transition);
}
.glass-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── Animations ── */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50%       { opacity: 0.6; box-shadow: 0 0 20px var(--green), 0 0 40px rgba(0,229,160,0.3); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
.fade-up   { animation: fadeUp 0.6s ease both; }
.fade-in   { animation: fadeIn 0.5s ease both; }
.anim-d1   { animation-delay: 0.1s; }
.anim-d2   { animation-delay: 0.2s; }
.anim-d3   { animation-delay: 0.3s; }
.anim-d4   { animation-delay: 0.4s; }
.anim-d5   { animation-delay: 0.5s; }

/* ── Section headers ── */
.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header.centered p { max-width: 560px; margin: 16px auto 0; }
.section-header p { margin-top: 14px; font-size: 1.05rem; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 0; }

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
