/*
 * B-Identity Global Infrastructure & Media Asset Repository
 * Design Philosophy: Corporate Tech / Cyber-Security
 * Inspired by: Cloudflare, Okta, Stripe documentation
 *
 * Color System:
 *   --obsidian:   #111827  (primary background)
 *   --surface:    #1a2235  (card / panel surface)
 *   --surface-2:  #232f47  (elevated surface)
 *   --orange:     #FF5B00  (accent / CTA)
 *   --orange-dim: #cc4800  (hover state)
 *   --white:      #FFFFFF
 *   --muted:      #9ca3af  (secondary text)
 *   --border:     #2a3a56  (subtle border)
 *   --green:      #10b981  (status: active)
 *
 * Typography: Space Grotesk (headings) + IBM Plex Mono (code/data) + Inter (body)
 * Layout: Asymmetric, left-anchored navigation, full-width hero bands
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --obsidian:   #111827;
  --surface:    #1a2235;
  --surface-2:  #232f47;
  --orange:     #FF5B00;
  --orange-dim: #cc4800;
  --white:      #FFFFFF;
  --muted:      #9ca3af;
  --border:     #2a3a56;
  --green:      #10b981;
  --red:        #ef4444;
  --blue:       #3b82f6;
  --font-head:  'Space Grotesk', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;
  --max-w:      1200px;
  --nav-h:      68px;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 4px 24px rgba(0,0,0,0.45);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--obsidian);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dim); }

img { max-width: 100%; display: block; }

/* ─── Utility ──────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--muted); }
.text-mono   { font-family: var(--font-mono); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  font-family: var(--font-mono);
}
.badge-green  { background: rgba(16,185,129,.12); color: var(--green); border: 1px solid rgba(16,185,129,.25); }
.badge-orange { background: rgba(255,91,0,.12);   color: var(--orange); border: 1px solid rgba(255,91,0,.25); }
.badge-blue   { background: rgba(59,130,246,.12); color: var(--blue);   border: 1px solid rgba(59,130,246,.25); }
.badge-muted  { background: rgba(156,163,175,.1); color: var(--muted);  border: 1px solid rgba(156,163,175,.2); }

/* ─── Navigation ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(17,24,39,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
  flex-shrink: 0;
}
.nav-logo {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-text strong { font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.nav-brand-text span   { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 6px 12px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--surface-2); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: var(--radius);
  background: var(--orange); color: #fff !important;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(255,91,0,0);
  white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--orange-dim) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,91,0,.4);
}
.nav-cta:active { transform: scale(.97); }
.nav-cta svg { width: 14px; height: 14px; }

/* ─── Mobile nav toggle ─────────────────────────────────────────── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  background: linear-gradient(135deg, #0d1520 0%, #111827 50%, #1a1f2e 100%);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255,91,0,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(59,130,246,.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--orange); letter-spacing: .12em; text-transform: uppercase;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--orange);
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub {
  font-size: 17px; color: var(--muted); max-width: 600px;
  line-height: 1.65; margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  background: var(--orange); color: #fff;
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(255,91,0,.3);
}
.btn-primary:hover { background: var(--orange-dim); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,91,0,.4); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--muted);
  font-weight: 500; font-size: 14px;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--white); background: rgba(255,91,0,.06); }
.hero-meta {
  display: flex; align-items: center; gap: 24px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta-item .label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.hero-meta-item .value { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--white); }

/* ─── Section ──────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-header { margin-bottom: 48px; }
.section-header .eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--orange); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header h2 {
  font-family: var(--font-head); font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  margin-bottom: 12px;
}
.section-header p { color: var(--muted); max-width: 560px; font-size: 15px; }

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: rgba(255,91,0,.3); box-shadow: 0 8px 32px rgba(0,0,0,.4); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,91,0,.1); border: 1px solid rgba(255,91,0,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--orange); }
.card h3 { font-family: var(--font-head); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p  { color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--orange);
}
.card-link:hover { gap: 10px; }

/* ─── Grid layouts ─────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* ─── Table ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--surface-2); }
thead th {
  padding: 14px 20px; text-align: left;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid rgba(42,58,86,.5); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.02); }
tbody td { padding: 14px 20px; color: var(--white); vertical-align: top; }
tbody td.mono { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ─── Code block ───────────────────────────────────────────────── */
.code-block {
  background: #0d1117; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.code-block-header .title { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.code-block-header .dots { display: flex; gap: 6px; }
.code-block-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.code-block pre { padding: 24px; overflow-x: auto; }
.code-block code {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  color: #e2e8f0; white-space: pre;
}
.code-key   { color: #7dd3fc; }
.code-val   { color: #86efac; }
.code-str   { color: #fca5a5; }
.code-com   { color: #6b7280; font-style: italic; }

/* ─── Status bar ───────────────────────────────────────────────── */
.status-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 28px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.status-item { display: flex; align-items: center; gap: 10px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.status-dot.green  { background: var(--green); box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 0 0 rgba(255,91,0,.4); }
.status-dot.blue   { background: var(--blue);   box-shadow: 0 0 0 0 rgba(59,130,246,.4); }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.status-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.status-value { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--white); }

/* ─── Info panel ───────────────────────────────────────────────── */
.info-panel {
  background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.2);
  border-left: 3px solid var(--blue); border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0;
}
.info-panel p { color: #93c5fd; font-size: 14px; line-height: 1.65; }
.warn-panel {
  background: rgba(255,91,0,.06); border: 1px solid rgba(255,91,0,.2);
  border-left: 3px solid var(--orange); border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0;
}
.warn-panel p { color: #fdba74; font-size: 14px; line-height: 1.65; }

/* ─── Page header (inner pages) ────────────────────────────────── */
.page-header {
  padding: 60px 0 48px;
  background: linear-gradient(135deg, #0d1520 0%, #111827 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,91,0,.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.page-header .breadcrumb a { color: var(--muted); }
.page-header .breadcrumb a:hover { color: var(--orange); }
.page-header .breadcrumb span { color: var(--border); }
.page-header h1 {
  font-family: var(--font-head); font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  margin-bottom: 12px;
}
.page-header p { color: var(--muted); max-width: 600px; font-size: 15px; }

/* ─── Footer ───────────────────────────────────────────────────── */
.footer {
  background: #0d1117; border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 14px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.footer-bottom .domain { color: var(--orange); }

/* ─── Contact cards ────────────────────────────────────────────── */
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-card:hover { border-color: rgba(255,91,0,.3); box-shadow: var(--shadow); }
.contact-card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255,91,0,.1); border: 1px solid rgba(255,91,0,.2);
  display: flex; align-items: center; justify-content: center;
}
.contact-card-icon svg { width: 26px; height: 26px; color: var(--orange); }
.contact-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.contact-card p  { color: var(--muted); font-size: 14px; line-height: 1.65; }
.contact-card a.email {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  color: var(--orange); display: inline-flex; align-items: center; gap: 6px;
}

/* ─── Prose (long-form text) ───────────────────────────────────── */
.prose { max-width: 800px; }
.prose h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 40px 0 14px; color: var(--white); }
.prose h3 { font-family: var(--font-head); font-size: 17px; font-weight: 600; margin: 28px 0 10px; color: var(--white); }
.prose p  { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.prose ul { margin: 14px 0 20px 20px; }
.prose ul li { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 8px; }
.prose strong { color: var(--white); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* ─── Spec row ─────────────────────────────────────────────────── */
.spec-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid rgba(42,58,86,.5);
}
.spec-row:last-child { border-bottom: none; }
.spec-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-width: 200px; flex-shrink: 0; padding-top: 2px; }
.spec-value { font-family: var(--font-mono); font-size: 13px; color: var(--white); word-break: break-all; }

/* ─── Verification step ────────────────────────────────────────── */
.step-list { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(42,58,86,.5); }
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,91,0,.1); border: 1px solid rgba(255,91,0,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--orange);
}
.step-body h4 { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-body p  { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(17,24,39,.98); backdrop-filter: blur(16px);
    padding: 16px 24px 24px; border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open a { width: 100%; padding: 10px 14px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 52px 0; }
  .hero-meta { gap: 16px; }
  .spec-row { flex-direction: column; gap: 6px; }
  .spec-label { min-width: auto; }
}
