/* ============================================================
   LogBit XDR — Design System v2
   Cinematic dark · enterprise-grade · atmospheric depth
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* ── Accent (tweakable) ── */
  --accent:      #4f9eff;
  --accent-rgb:  79, 158, 255;
  --accent-soft: rgba(79,158,255,0.08);
  --accent-line: rgba(79,158,255,0.22);
  --accent-glow: rgba(79,158,255,0.35);
  --accent-ink:  #020c1a;

  /* ── Surfaces ── */
  --bg:          #03050a;
  --bg-up:       #060a12;
  --surface:     rgba(255,255,255,0.025);
  --surface-up:  rgba(255,255,255,0.045);
  --surface-xl:  rgba(255,255,255,0.065);
  --line:        rgba(255,255,255,0.055);
  --line-up:     rgba(255,255,255,0.10);
  --line-soft:   rgba(255,255,255,0.028);

  /* ── Text ── */
  --fg:       #ecf0f8;
  --fg-mute:  #7e8fa5;
  --fg-dim:   #485262;
  --fg-faint: #2a3240;

  /* ── Status ── */
  --good: #34d399;
  --warn: #fbbf24;
  --bad:  #f87171;

  /* ── Typography ── */
  --font-sans:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* ── Rhythm ── */
  --pad:       1rem;
  --section-y: clamp(80px, 9vw, 130px);
  --max-w:     1260px;
  --radius:    10px;
  --radius-lg: 16px;

  /* ── Motion ── */
  --ease:  cubic-bezier(0.22, 0.8, 0.22, 1);
  --ease2: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Density */
[data-density="compact"] { --section-y: clamp(56px, 6vw, 88px); }
[data-density="airy"]    { --section-y: clamp(100px, 12vw, 180px); }

/* Typography variants */
[data-typo="grotesk"] { --font-sans: 'Space Grotesk', sans-serif; --font-display: 'Space Grotesk', sans-serif; }
[data-typo="jakarta"] { --font-sans: 'Plus Jakarta Sans', sans-serif; --font-display: 'Plus Jakarta Sans', sans-serif; }
[data-typo="plex"]    { --font-sans: 'IBM Plex Sans', sans-serif; --font-display: 'IBM Plex Sans', sans-serif; --font-mono: 'IBM Plex Mono', monospace; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--fg); }

/* ── Layout ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section       { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: calc(var(--section-y) * 0.55) 0; }

/* ── Atmospheric grain (subtle) ── */
body::after {
  content: '';
  position: fixed;
  inset: 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.022;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(3,5,10,0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-right: 20px;
}
.nav-links {
  display: flex; gap: 0; flex: 1;
}
.nav-link {
  padding: 0 14px;
  height: 60px;
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 500;
  color: var(--fg-mute);
  letter-spacing: -0.005em;
  transition: color 0.15s;
  position: relative;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active {
  color: var(--fg);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  inset: auto 14px 0 14px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.nav-cta {
  display: flex; gap: 8px; align-items: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-glow), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px -4px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  border: 1px solid var(--line-up);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}
.btn-quiet { color: var(--fg-mute); padding: 10px 12px; }
.btn-quiet:hover { color: var(--fg); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Glass card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.card:hover {
  background: var(--surface-up);
  border-color: var(--line-up);
}
.card-flush {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

/* ── Grid pattern ── */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
}
[data-grid="off"] .grid-bg { display: none; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow), 0 0 4px var(--accent);
  flex-shrink: 0;
}

/* ── Typography ── */
.display {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 0.95;
  font-family: var(--font-display);
}
.h-section {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.0;
  font-family: var(--font-display);
}
.h-card {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
  font-family: var(--font-display);
}
.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--fg-mute);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 58ch;
}
.mono { font-family: var(--font-mono); }

/* ── Chip / tag ── */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--line-up);
  border-radius: 100px;
  color: var(--fg-mute);
  background: rgba(255,255,255,0.02);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: blink 2.5s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ── Marquee ── */
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; gap: 60px; animation: marquee 42s linear infinite; width: max-content; align-items: center; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.logo-text        { font-size: 18px; color: var(--fg-faint); font-weight: 600; white-space: nowrap; letter-spacing: 0.01em; transition: color 0.3s; }
.logo-text:hover  { color: var(--fg-dim); }
.logo-serif       { font-family: var(--font-serif); font-style: italic; font-size: 22px; letter-spacing: -0.02em; }
.logo-wide        { font-family: var(--font-mono); letter-spacing: 0.15em; font-size: 15px; font-weight: 500; }
.logo-mono        { font-family: var(--font-mono); font-size: 16px; }
.logo-geo         { font-weight: 800; letter-spacing: 0.03em; }
.logo-tight       { font-weight: 800; letter-spacing: -0.05em; font-size: 21px; }

/* ── Divider ── */
.rule { height: 1px; background: linear-gradient(to right, transparent, var(--line-up) 30%, var(--line-up) 70%, transparent); border: 0; }

/* ── Section header ── */
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; max-width: 680px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 52px; gap: 40px; flex-wrap: wrap; }
.section-head-row .section-head { margin: 0; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4,1fr); gap: 48px; }
.footer-col h5 { font-size: 11px; font-weight: 600; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--fg-mute); transition: color 0.15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); letter-spacing: 0.05em; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col:first-child { grid-column: 1/-1; }
}
