/* Albatross — shared design tokens & components */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg-0: #050811;
  --bg-1: #0a0e1a;
  --bg-2: #0f1421;
  --surface: #141a2e;
  --surface-2: #1a2138;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-0: #f8fafc;
  --text-1: #cbd5e1;
  --text-2: #94a3b8;
  --text-3: #64748b;

  --accent: #f97415;      /* primary orange */
  --accent-2: #ff9f1a;    /* amber */
  --accent-3: #facc15;    /* yellow */
  --accent-soft: rgba(249, 116, 21, 0.12);

  --status-critical: #dc2626;
  --status-elevated: #f87171;
  --status-ok: #4ade80;

  --grid: rgba(255, 255, 255, 0.04);
  --shadow-glow: 0 0 60px rgba(249, 116, 21, 0.18);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

.font-display { font-family: 'Inter Tight', system-ui, sans-serif; letter-spacing: -0.02em; }
.font-mono-tight { font-family: 'Inter Tight', system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* Hero background — radial + grid */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(249, 116, 21, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(255, 159, 26, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(250, 204, 21, 0.06), transparent 70%);
}
.grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}
.noise {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Navigation */
.nav-shell {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav-shell.scrolled {
  background: rgba(5, 8, 17, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-link {
  color: var(--text-2); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em;
  transition: color 0.2s ease; position: relative;
}
.nav-link:hover { color: var(--text-0); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.01em; transition: all 0.2s ease; cursor: pointer; border: 1px solid transparent;
  font-family: 'Inter Tight', system-ui, sans-serif; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #0a0e1a;
  box-shadow: 0 8px 24px -8px rgba(249, 116, 21, 0.5);
}
.btn-primary:hover {
  background: var(--accent-2); transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(249, 116, 21, 0.6);
}
.btn-ghost {
  background: transparent; color: var(--text-0); border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.25); }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 0.95rem; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter Tight', system-ui, sans-serif; font-size: 0.75rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2);
  padding: 0.4rem 0.75rem; border: 1px solid rgba(255, 159, 26, 0.25);
  border-radius: 999px; background: rgba(255, 159, 26, 0.06);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(249,116,21,0.18); animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(249,116,21,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(249,116,21,0.04); }
}

/* Headings */
h1.display, h2.display {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
}
h1.display { font-size: clamp(2.5rem, 6vw, 5rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.text-gradient {
  background: linear-gradient(120deg, #ffffff 0%, #fde68a 40%, var(--accent) 75%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border); border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: relative; overflow: hidden;
}
.card:hover { border-color: rgba(249,116,21,0.35); transform: translateY(-3px); }
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(249,116,21,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover::before { opacity: 1; }

/* Capability icon block */
.icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(249,116,21,0.15), rgba(255,159,26,0.05));
  border: 1px solid rgba(249,116,21,0.25); color: var(--accent-2);
}

/* Status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Inter Tight', system-ui, sans-serif; font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid;
}
.status-pill .ind { width: 6px; height: 6px; border-radius: 50%; }
.status-critical { color: #fecaca; background: rgba(220,38,38,0.10); border-color: rgba(220,38,38,0.4); }
.status-critical .ind { background: var(--status-critical); box-shadow: 0 0 0 3px rgba(220,38,38,0.18); animation: pulseDot 1.4s infinite; }
.status-elevated { color: #fed7aa; background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.35); }
.status-elevated .ind { background: var(--status-elevated); }
.status-ok { color: #bbf7d0; background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.35); }
.status-ok .ind { background: var(--status-ok); }

/* Section helpers */
.section { position: relative; padding: 7rem 0; }
.section-sm { position: relative; padding: 4.5rem 0; }
.divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* Stats */
.stat-num {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800; font-size: clamp(2.2rem, 3.5vw, 3rem);
  letter-spacing: -0.03em; line-height: 1; color: var(--text-0);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
  font-family: 'Inter Tight', system-ui, sans-serif;
}

/* Live console mock */
.console {
  background: linear-gradient(180deg, rgba(20,26,46,0.7), rgba(10,14,26,0.7));
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}
.console-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.console-dots span:nth-child(1) { background: #ef4444; }
.console-dots span:nth-child(2) { background: #facc15; }
.console-dots span:nth-child(3) { background: #4ade80; }

.console-tag {
  font-family: 'Inter Tight', system-ui, sans-serif; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3);
}

.scan-line {
  position: relative; overflow: hidden;
}
.scan-line::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,116,21,0.6), transparent);
  top: 0; animation: scan 4s linear infinite;
}
@keyframes scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Region map dots */
.region {
  position: relative; padding: 1.75rem; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border: 1px solid var(--border); transition: all 0.25s ease;
}
.region:hover { border-color: rgba(249,116,21,0.35); transform: translateY(-3px); }
.region .code {
  font-family: 'Inter Tight', monospace; font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-2);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--bg-0); padding: 4rem 0 2rem; color: var(--text-2); }
footer a { color: var(--text-2); transition: color 0.2s ease; }
footer a:hover { color: var(--text-0); }

/* Misc */
.container-wide { max-width: 1280px; margin-inline: auto; padding-inline: 1.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--text-2);
  padding: 0.3rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}

/* Form */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-family: 'Inter Tight', sans-serif; }
.input, .textarea, .select {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.8rem 1rem; color: var(--text-0);
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: rgba(249,116,21,0.5); background: rgba(255,255,255,0.04);
}
.textarea { min-height: 140px; resize: vertical; }

/* Legal pages */
.prose-legal h2 { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; color: var(--text-0); letter-spacing: -0.01em; }
.prose-legal h3 { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--text-0); }
.prose-legal p { color: var(--text-1); margin-bottom: 1rem; }
.prose-legal ul { color: var(--text-1); padding-left: 1.25rem; margin-bottom: 1rem; }
.prose-legal li { margin-bottom: 0.35rem; }

/* Hide scrollbar inside marquee */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.marquee-track { display: flex; gap: 3rem; animation: marquee 35s linear infinite; width: max-content; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
