/* ── BLT DESIGN SYSTEM ── */
:root {
  --black: #000000;
  --surface: #0a0a0a;
  --card: #111111;
  --border: #1f1f1f;
  --border-light: #2a2a2a;
  --text: #ffffff;
  --text-body: #a0a0a0;
  --text-muted: #555555;
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --green-glow: rgba(34,197,94,0.35);
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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='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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-color: var(--border);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  margin-right: 3rem;
  flex-shrink: 0;
}
.nav-logo span { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex: 1;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > .nav-trigger {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-links > li > a:hover,
.nav-links > li > .nav-trigger:hover,
.nav-links > li.open > .nav-trigger {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-links > li > a.active { color: var(--text); }
.nav-chevron { width: 10px; height: 10px; transition: transform 0.2s; }
.nav-chevron path { stroke: currentColor; }
li.open .nav-chevron { transform: rotate(180deg); }

/* Dropdown Panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
/* Invisible bridge covers the gap between trigger and dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
li.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-body);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.12s, background 0.12s;
}
.nav-dropdown a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-dropdown a .dd-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Nav right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.nav-cta {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  background: var(--text);
  color: var(--black);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  display: inline-block;
}
.nav-cta:hover { opacity: 0.85; }
.nav-ghost {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  display: inline-block;
}
.nav-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  z-index: 210;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 24px; }
.hamburger.open span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* ── MOBILE TAKEOVER ── */
.mobile-takeover {
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: var(--black);
  z-index: 190;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
}
.mobile-takeover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-takeover-inner { padding: 0.5rem 1.25rem 3rem; }
.mobile-section { border-bottom: 1px solid var(--border); }
.mobile-link,
.mobile-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0.5rem;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  text-align: left;
}
.mobile-link:hover,
.mobile-accordion-trigger:hover { color: var(--text); }
.mobile-link.active { color: var(--text); }
.accordion-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
  color: var(--text-muted);
  flex-shrink: 0;
}
.accordion-chevron path { stroke: currentColor; }
.mobile-section.open .accordion-chevron { transform: rotate(180deg); }
.mobile-sub-links {
  display: none;
  padding: 0 0 0.75rem 0;
}
.mobile-section.open .mobile-sub-links { display: block; }
.mobile-sub-links a {
  display: block;
  padding: 0.55rem 0.5rem 0.55rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
  border-left: 1px solid var(--border);
  margin-left: 0.5rem;
}
.mobile-sub-links a:hover { color: var(--green); }
.mobile-cta-area {
  padding: 1.5rem 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-cta-area .nav-cta,
.mobile-cta-area .nav-ghost {
  width: 100%;
  text-align: center;
  padding: 0.85rem;
  font-size: 0.95rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.footer-logo span { color: var(--green); }
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #2a2a2a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ── PAGE HEADER ── */
.page-hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 100%, black 40%, transparent 100%);
}
.page-hero-orb {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.page-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--green);
  flex-shrink: 0;
}
.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 8rem);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.page-accent { color: var(--green); }
.page-subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-body);
  max-width: 560px;
  line-height: 1.75;
}

/* ── SECTION BASE ── */
section { padding: 6rem 2.5rem; }
.divider { height: 1px; background: var(--border); margin: 0 2.5rem; }

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 14px;
  height: 1px;
  background: var(--text-muted);
  flex-shrink: 0;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  text-transform: uppercase;
  line-height: 0.93;
  letter-spacing: -0.01em;
}
.section-title .accent { color: var(--green); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.4s; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  background: var(--green);
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { background: #16a34a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.2); }
.btn-ghost {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: #555; }

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.7rem 0;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: ticker 30s linear infinite; }
.ticker-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.ticker-item::before { content: '◆'; color: var(--green); font-size: 0.38rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── MOCK UI ── */
.mock-window { border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #0d0d0d;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot.r { background: #ef4444; }
.mock-dot.y { background: #f59e0b; }
.mock-dot.g { background: var(--green); }
.mock-url { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--text-muted); margin-left: 0.5rem; }

/* ── BADGES ── */
.badge { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; padding: 0.2rem 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; display: inline-block; }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-amber { background: rgba(245,158,11,0.15); color: var(--amber); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-blue { background: var(--blue-dim); color: var(--blue); }
.badge-muted { background: rgba(255,255,255,0.04); color: var(--text-muted); }

/* ── INSIGHT CARDS ── */
.insight-card { border: 1px solid var(--border); padding: 1.1rem 1.25rem; background: #0d0d0d; position: relative; overflow: hidden; }
.insight-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; }
.insight-card.warning::before { background: var(--amber); }
.insight-card.info::before { background: var(--blue); }
.insight-card.critical::before { background: var(--red); }
.insight-card.success::before { background: var(--green); }
.insight-type { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.4rem; }
.insight-card.warning .insight-type { color: var(--amber); }
.insight-card.info .insight-type { color: var(--blue); }
.insight-card.critical .insight-type { color: var(--red); }
.insight-card.success .insight-type { color: var(--green); }
.insight-title { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--text); }
.insight-body { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 9rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.cta-headline { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(2.8rem, 7vw, 6rem); text-transform: uppercase; line-height: 0.9; margin-bottom: 1.5rem; }
.cta-headline .accent { color: var(--green); }
.cta-sub { font-size: 1rem; color: var(--text-body); max-width: 400px; margin: 0 auto 2.5rem; line-height: 1.7; }
.cta-form { display: flex; max-width: 420px; margin: 0 auto; }
.cta-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-right: none;
  color: var(--text);
  padding: 0.85rem 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.cta-input::placeholder { color: var(--text-muted); }
.cta-input:focus { border-color: var(--green); }
.cta-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.4rem;
  background: var(--green);
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-btn:hover { background: #16a34a; }
.cta-note { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--text-muted); margin-top: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ── PULSE ── */
@keyframes pulse { 0%,100%{opacity:1;}50%{opacity:0.3;} }
.pulse-dot { display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);animation:pulse 2s infinite; }

/* ── SCAN LINE ── */
.scanline { position: relative; overflow: hidden; }
.scanline::after { content:'';position:absolute;top:-100%;left:0;right:0;height:40%;background:linear-gradient(transparent,rgba(34,197,94,0.012),transparent);animation:scan 7s linear infinite;pointer-events:none; }
@keyframes scan { 0%{top:-40%;}100%{top:140%;} }

/* ── FADE UP ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(28px);}to{opacity:1;transform:translateY(0);} }

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
══════════════════════════════════════ */
@media (max-width: 900px) {
  section { padding: 4rem 1.25rem; }
  .divider { margin: 0 1.25rem; }
  .nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-right .nav-ghost,
  .nav-right .nav-cta { display: none; }
  .hamburger { display: flex; }

  .page-hero { padding: 6rem 1.25rem 3.5rem; min-height: auto; }
  .page-title { font-size: clamp(2.8rem, 10vw, 5rem); }
  .page-subtitle { font-size: 0.95rem; margin-top: 1rem; }

  .section-title { font-size: clamp(2rem, 8vw, 3.5rem); }

  footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 1.25rem;
  }
  .footer-links { gap: 1.25rem; }
  .footer-copy { text-align: left; }

  .cta-section { padding: 5rem 1.25rem; }
  .cta-form { flex-direction: column; max-width: 100%; }
  .cta-input { border-right: 1px solid var(--border-light); border-bottom: none; }
  .cta-sub { font-size: 0.9rem; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 480px)
══════════════════════════════════════ */
@media (max-width: 480px) {
  .page-title { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .section-title { font-size: clamp(1.8rem, 9vw, 2.8rem); }
  .cta-headline { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .ticker-item { margin: 0 1.5rem; font-size: 0.68rem; }
}

/* ── FOOTER GRID ── */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--text); }

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