@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #78c6ff;
  --green:  #4caf50;
  --mono:   "IBM Plex Mono", monospace;
  --sans:   "IBM Plex Sans", sans-serif;
}

html, body { height: 100%; }

body {
  font-family: var(--sans);
  color: #e6edf3;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(4,8,20,1.0) 0%, rgba(2,6,18,1.0) 50%, rgba(4,8,20,1.0) 100%);
}

body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(ellipse 70% 28% at 45% 48%, rgba(255,255,255,0.018) 0%, transparent 100%);
}

body::after {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(circle, transparent 55%, rgba(0,0,0,0.55));
  pointer-events: none; z-index: 0;
}

nav {
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 16px; height: 45px;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  background: rgba(8,14,22,0.60);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}

.nav-logo {
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.85);
}

.hero {
  flex: 0 0 auto; position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: clamp(60px, 10vh, 120px) clamp(16px, 4vw, 48px) clamp(40px, 6vh, 80px);
  overflow: hidden; z-index: 2;
}

.hero-kicker {
  font-size: clamp(0.72rem, 1.5vw, 0.88rem);
  font-weight: 700; letter-spacing: 0.20em; text-transform: uppercase;
  color: rgba(120,194,255,0.85);
  margin-bottom: clamp(12px, 2vh, 20px);
}

.hero h1 {
  font-size: clamp(1.6rem, 6vw, 3.8rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.08;
  margin-bottom: clamp(12px, 2vh, 20px);
  text-shadow: 0 2px 40px rgba(77,184,255,0.08);
}

.hero h1 .line2 { display: block; }

.hero h1 em {
  font-style: normal; color: var(--accent);
  text-shadow: 0 0 28px rgba(77,184,255,0.22);
  position: relative; display: inline-block; overflow: hidden;
}

.hero h1 em::after {
  content: "";
  position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: sweep 30s linear 10s infinite;
}

@keyframes sweep {
  0%, 39%, 100% { left: -30%; }
  20%, 38%      { left: 100%; }
}

.sweep-white {
  display: inline;
  animation: textFlash 30s linear 10s infinite;
}

@keyframes textFlash {
  0%,  3%   { color: var(--accent); }
  20%, 55%  { color: #ffffff; }
  56%, 100% { color: var(--accent); }
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2vw, 1.15rem); font-weight: 400;
  color: rgba(255,255,255,0.88); line-height: 1.72;
  max-width: 520px; margin: 0 auto clamp(12px, 2vh, 20px);
  text-shadow: 1px 0 0 rgba(255,255,255,0.05), -1px 0 0 rgba(255,255,255,0.03), 0 1px 4px rgba(0,0,0,0.4);
}

.hero-system-note {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(120,194,255,0.80); margin-top: 18px;
}

.hero-cta {
  display: inline-block; margin-top: 22px; padding: 13px 32px;
  background: linear-gradient(180deg, rgba(38,38,38,0.98) 0%, rgba(28,28,28,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  color: rgba(255,255,255,0.90); font-family: var(--mono);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 18px rgba(255,255,255,0.04);
  transition: background .22s, border-color .22s, color .22s, transform .22s, box-shadow .22s;
}

.hero-cta::after {
  content: ""; position: absolute; inset: -3px; border-radius: 13px;
  box-shadow: 0 0 18px rgba(110,193,255,0.30);
  opacity: 0;
  transition: opacity .22s;
}

.hero-cta:hover {
  background: rgba(77,184,255,0.16);
  border-color: rgba(77,184,255,0.65); color: #b8e0ff;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(77,184,255,0.18);
}

.hero-cta:hover::after { opacity: 1; }

#bb-exit-veil {
  position: fixed; inset: 0; background: #080e16;
  opacity: 0; pointer-events: none;
  transition: opacity 0.70s ease;
  z-index: 9999;
}
#bb-exit-veil.active { opacity: 1; pointer-events: all; }

.site-footer {
  margin-top: auto;
  flex-shrink: 0; padding: 16px clamp(20px, 5vw, 40px);
  text-align: center; font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  background: rgba(8,8,12,1.0); backdrop-filter: blur(8px);
  position: relative; z-index: 3;
}
.site-footer a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  body { overflow: auto; min-height: 100dvh; }
}
@media (min-width: 901px) {
  .site-footer { font-size: 0.88rem; }
}

/* ── About page ─────────────────────────────────────────── */
.about-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px);
}
.about-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}
.about-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.about-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
}
.about-body p {
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.75rem;
}
.about-body p:last-of-type {
  margin-bottom: 3rem;
}
.about-body blockquote {
  margin: 0 0 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(255,255,255,0.18);
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.about-contact {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}
.about-contact a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.about-contact a:hover {
  color: #fff;
}
.about-back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.about-back:hover { color: rgba(255,255,255,0.7); }


/* ── Market badges ──────────────────────────────────────────────────────── */
.market-badges {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.badge--us {
  border: 1px solid #1a3a6a;
  background: #0a1628;
  color: #4a90d9;
}
.badge--us .badge-dot  { background: #4a90d9; }
.badge--my {
  border: 1px solid #7a6000;
  background: #1a1400;
  color: #f0c020;
}
.badge--my .badge-dot  { background: #f0c020; }
.badge--gcc {
  border: 1px solid #1a5a1a;
  background: #0a1a0a;
  color: #4caf50;
}
.badge--gcc .badge-dot { background: #4caf50; }

/* ── Background dot grid (subtle) ──────────────────────────────────────── */
body::before {
  background-image:
    radial-gradient(ellipse 70% 28% at 45% 48%, rgba(255,255,255,0.018) 0%, transparent 100%),
    radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: auto, 32px 32px;
  background-position: center, center;
}

/* ── Badge hover ────────────────────────────────────────────────────────── */
.badge {
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.badge:hover { opacity: 0.75; }

/* ── About page link hover refinement ──────────────────────────────────── */
.about-contact a {
  transition: color 0.2s ease;
}
.about-back {
  transition: color 0.25s ease;
}

/* ── Footer link class ──────────────────────────────────────────────────── */
.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--accent); }

/* ── Research note link ─────────────────────────────────────────────────── */
.research-link {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.research-link:hover {
  color: rgba(255,255,255,0.85);
  text-decoration-color: rgba(255,255,255,0.5);
}
