/* ── BAGHEERA LABS — SHARED STYLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #080c10;
  --bg2:     #0d1117;
  --bg3:     #111820;
  --border:  rgba(255,255,255,0.07);
  --text:    #e8edf2;
  --muted:   #7a8a99;
  --accent:  #0e9aba;
  --accent2: #0ea8d0;
  --danger:  #ff4d6d;
  --fh: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(8,12,16,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
nav.scrolled { padding: 0.7rem 3rem; }

.nav-logo img { height: 28px; filter: brightness(10) saturate(0); opacity: 0.9; display: block; }
.nav-logo { text-decoration: none; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  letter-spacing: 0.07em;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: #17b8d9 !important; transform: translateY(-1px); color: var(--bg) !important; }

/* MOBILE NAV */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── AMBIENT BG ── */
.ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0;
  animation: ambientFade 1.2s 0.5s forwards;
}
@keyframes ambientFade { to { opacity: 1; } }

.ambient-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,154,186,0.14) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.ambient-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,168,208,0.08) 0%, transparent 70%);
  bottom: 100px; left: 5%;
}

/* GRID BG */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,154,186,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,154,186,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 20%, transparent 100%);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  padding: 9rem 3rem 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.page-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }

.page-title {
  font-family: var(--fh);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ── SHARED SECTION ── */
section { position: relative; padding: 6rem 3rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section-label::before { content: ''; display: block; width: 18px; height: 1px; background: var(--accent); }

.section-title {
  font-family: var(--fh);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 660px;
  line-height: 1.85;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--fb);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.9rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #17b8d9; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: var(--fb);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.9rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.card:hover { border-color: rgba(14,154,186,0.35); transform: translateY(-3px); }

.card-num {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card-body {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  border: 1px solid;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
.badge-critical { color: var(--danger); border-color: var(--danger); background: rgba(255,77,109,0.07); }
.badge-high { color: #ff8c00; border-color: #ff8c00; background: rgba(255,140,0,0.07); }
.badge-medium { color: #ffd60a; border-color: #ffd60a; background: rgba(255,214,10,0.07); }
.badge-accent { color: var(--accent); border-color: var(--accent); background: rgba(14,154,186,0.08); }
.badge-neutral { color: var(--muted); border-color: var(--border); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo img { height: 20px; filter: brightness(10) saturate(0); opacity: 0.6; }
.footer-links { display: flex; gap: 1.75rem; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.7rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,12,16,0.97);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 190;
  }
  .nav-links.open a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  section { padding: 4rem 1.5rem; }
  .page-hero { padding: 7rem 1.5rem 4rem; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
