/* ==========================================================================
   UTB — design system & landing page
   Brand:   UTB light blue #3D99D3 (57, 62, 89) · UTB blue #393E59 · White
   Surfaces: light-mode blues
   Brand colors live in the :root variables below — re-skin from one place.
   NOTE: the --gold* / --navy vars are kept by name for compatibility but now
   hold blue values so the whole site re-skins from this one block.
   ========================================================================== */

:root {
  /* Brand — steel blue accent (legacy --gold* names) */
  --gold: #3D99D3;
  --gold-rgb: 57, 62, 89;
  --gold-2: #5a97c9;
  --gold-deep: #3a6d97;
  --gold-grad: linear-gradient(135deg, #3D99D3, #393E59);
  --navy: #393E59; /* dark utb blue */
  --navy-2: #013a63;
  --ink: #ffffff; /* text on the blue accent */
  --heading: #393E59; /* strong headings/text — dark utb blue */

  /* Surfaces (light-mode blues) */
  --bg: #ffffff;
  --bg-2: #f1f5fa;
  --surface: #f7fafd;
  --surface-2: #eaf1f8;
  --surface-3: #dbe6f1;
  --border: rgba(0, 33, 71, 0.22);
  --border-2: rgba(0, 33, 71, 0.34);

  /* Text */
  --text: #14273d;
  --text-muted: #4a5c73;
  --text-dim: #7688a0;

  /* Shape & depth */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 33, 71, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }
a { color: var(--gold); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-2); }
svg { vertical-align: middle; }
::selection { background: rgba(var(--gold-rgb), 0.3); color: var(--heading); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reusable icon (uses the inline <symbol> sprite) */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.section { position: relative; padding: 92px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 1rem 0 0.6rem;
}
.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
}
.section-head .lead { margin-bottom: 0; }

.hl { color: var(--gold); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1.05rem; }

.btn-gold {
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(var(--gold-rgb), 0.65);
}
.btn-gold:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(var(--gold-rgb), 0.8);
}

.btn-ghost {
  background: rgba(0, 33, 71, 0.05);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: rgba(0, 33, 71, 0.09);
  color: var(--heading);
  border-color: rgba(var(--gold-rgb), 0.5);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.utb-nav {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
  padding: 0.85rem 0;
}
.utb-nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border);
}
.utb-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--heading);
}
.utb-nav .brand-mark { width: auto; height: 34px; }
.utb-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.4rem 0.9rem !important;
  border-radius: 8px;
}
.utb-nav .nav-link:hover { color: var(--heading); }
.utb-nav .nav-link.active { color: var(--gold); }
.utb-nav .navbar-toggler {
  border: 1px solid var(--border-2);
  padding: 0.35rem 0.5rem;
}
.utb-nav .navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .utb-nav .navbar-collapse {
    background: var(--surface);
    margin-top: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
  }
  .utb-nav .nav-link { padding: 0.6rem 0.4rem !important; }
  .utb-nav .nav-cta {
    margin-top: 0.8rem;
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Decorative background glows
   -------------------------------------------------------------------------- */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.glow-gold { background: radial-gradient(circle, rgba(var(--gold-rgb), 0.16), transparent 60%); }
.glow-navy { background: radial-gradient(circle, rgba(70, 130, 180, 0.2), transparent 62%); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: 132px 0 88px; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  margin-bottom: 1.1rem;
}
.hero .sub {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-trust {
  margin-top: 2.3rem;
  display: flex;
  gap: 0.7rem 1.6rem;
  flex-wrap: wrap;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-trust .icon { width: 18px; height: 18px; color: var(--gold); }

/* Code card */
.code-card {
  background: linear-gradient(180deg, #013057, #002147);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.code-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.6), transparent);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.code-dots { display: flex; gap: 0.4rem; }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2c303b; display: block; }
.code-label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}
.code-label .m { color: var(--gold); font-weight: 600; }
.code-card pre {
  margin: 0;
  padding: 1.25rem 1.35rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  overflow-x: auto;
  color: #cdd3df;
}
.code-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.code-foot .ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37d39b;
  box-shadow: 0 0 10px #37d39b;
}
.tok-c { color: #6b7280; font-style: italic; }
.tok-k { color: var(--gold); font-weight: 600; }
.tok-u { color: #e8eaed; }
.tok-p { color: #9db2ff; }
.tok-s { color: #e6c98a; }
.tok-n { color: #7ee0c0; }

/* --------------------------------------------------------------------------
   "What we connect" flow
   -------------------------------------------------------------------------- */
.flow {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  justify-content: center;
}
.flow-col { flex: 1 1 0; min-width: 0; }
.flow-chev {
  display: flex;
  align-items: center;
  color: var(--gold);
  flex: 0 0 auto;
}
.flow-chev .icon { width: 30px; height: 30px; }

.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: 100%;
}
.flow-card > h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-top: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.chip:first-of-type { margin-top: 0; }
.chip .icon { width: 20px; height: 20px; color: var(--gold); }

.flow-core {
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.13), rgba(var(--gold-rgb), 0.03));
  border: 1px solid rgba(var(--gold-rgb), 0.32);
  border-radius: var(--radius);
  padding: 1.7rem 1.3rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.core-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 12px 30px -8px rgba(var(--gold-rgb), 0.6);
}
.core-badge .icon { width: 30px; height: 30px; stroke-width: 1.9; }
.flow-core h3 { font-size: 1.5rem; letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.flow-core p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.flow-tags { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.flow-tags .tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  color: var(--gold);
}

@media (max-width: 900px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-chev { justify-content: center; transform: rotate(90deg); padding: 0.2rem 0; }
}

/* --------------------------------------------------------------------------
   Feature cards (pillars)
   -------------------------------------------------------------------------- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.4);
  background: var(--surface-2);
}
.feature-ic {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.28rem; }
.feature-card p { color: var(--text-muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Payment rails grid
   -------------------------------------------------------------------------- */
.rail {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 100%;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.rail:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.rail .ic {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(70, 130, 180, 0.12);
  border: 1px solid var(--border);
  color: var(--gold);
}
.rail b { display: block; color: var(--heading); font-weight: 600; }
.rail span { color: var(--text-muted); font-size: 0.86rem; }

/* --------------------------------------------------------------------------
   Currency marquee (ornamental)
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  width: 100%;
  /* Fade the edges so coins slide in/out of view softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  /* Right-to-left drift; two copies make 0 -> -50% seamless */
  animation: marquee-slide 60s linear infinite;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.coin {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  /* Margin (not gap) keeps each cell a uniform width for a seamless -50% loop */
  margin-right: 2.75rem;
  border-radius: var(--radius-sm);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  background: radial-gradient(circle at 32% 26%, rgba(var(--gold-rgb), 0.16), rgba(var(--gold-rgb), 0.04));
  border: 1px solid rgba(var(--gold-rgb), 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* --------------------------------------------------------------------------
   Stats strip (home + About fast facts)
   -------------------------------------------------------------------------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3.5rem;
}
.stat { text-align: center; }
.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat .lbl { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #013a63);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.22), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band .lead { max-width: 560px; margin: 0 auto 1.8rem; color: #d7dae3; }
.cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  margin-bottom: 0.9rem;
}
.footer .brand-mark { width: auto; height: 30px; }
.footer .tagline { color: var(--text-muted); max-width: 300px; font-size: 0.92rem; }
.footer h5 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  display: block;
  padding: 0.32rem 0;
  font-weight: 500;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (progressive enhancement — content shows without JS)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation: none !important; }
}

/* ==========================================================================
   Legacy "coming soon" placeholder styles (used by coming-soon.html)
   ========================================================================== */
body.coming-soon {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(var(--gold-rgb), 0.1), transparent 60%),
    linear-gradient(160deg, #e9f0f7, var(--bg));
}
.cs-wrap { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.cs-content { max-width: 680px; }
.cs-brand {
  font-weight: 700;
  letter-spacing: 0.35em;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}
.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.7);
  animation: cs-pulse 2s infinite;
}
@keyframes cs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(var(--gold-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0); }
}
.cs-title { font-size: clamp(2.25rem, 6vw, 3.75rem); margin: 0 0 1rem; }
.cs-lead { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--text-muted); margin: 0 auto 2rem; max-width: 540px; }
.cs-actions .btn { border-radius: 999px; padding: 0.65rem 1.6rem; font-weight: 600; }
.cs-footer { padding: 1.5rem; color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.cs-footer p { margin: 0; }

/* ==========================================================================
   Brand lockup (UTB logo + "Atomic by United Texas Bank, N.A.")
   ========================================================================== */
.utb-nav .brand-mark { width: auto; height: 38px; }
.footer .brand-mark { width: auto; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

/* ==========================================================================
   Atom — hero imagery + accents
   ========================================================================== */
.eyebrow-ic { width: 15px; height: 15px; }

.atom { pointer-events: none; }
.atom .orbit-ring { fill: none; stroke: rgba(var(--gold-rgb), 0.45); stroke-width: 1.4; }
.atom .electron { fill: var(--gold-2); filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.9)); }
.atom .nucleus { fill: var(--gold); filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.8)); }
.atom .nucleus-glow {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  animation: atom-pulse 3.2s ease-in-out infinite;
}
@keyframes atom-pulse {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.18); }
}

.hero-atom {
  position: absolute;
  top: 16px;
  right: -40px;
  width: min(540px, 56vw);
  aspect-ratio: 1;
  opacity: 0.6;
  z-index: 0;
}
@media (max-width: 991.98px) {
  .hero-atom { opacity: 0.3; right: -22%; top: -20px; width: 460px; }
}

/* ==========================================================================
   Documentation page
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 66px; /* clears the fixed navbar */
}

.docs-sidebar {
  position: sticky;
  top: 66px;
  align-self: start;
  height: calc(100vh - 66px);
  overflow-y: auto;
  padding: 1.6rem 0.9rem 3rem;
  border-right: 1px solid var(--border);
}
.docs-sidebar::-webkit-scrollbar { width: 8px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

.side-group { margin-top: 1.5rem; }
.side-group:first-child { margin-top: 0; }
.side-group > .side-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-2);
  padding: 0 0.65rem;
  margin-bottom: 0.5rem;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}
.side-link:hover { background: var(--surface); color: var(--heading); }
.side-link.active { background: rgba(var(--gold-rgb), 0.1); color: var(--gold); }
.side-link .mm {
  font-family: "Space Grotesk", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  width: 38px;
  flex: 0 0 auto;
  text-align: right;
}

.docs-main { padding: 2.2rem 2.6rem 6rem; min-width: 0; }
.docs-section { scroll-margin-top: 84px; padding-bottom: 2.6rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--border); }
.docs-section:last-child { border-bottom: none; }
.docs-section > h2 { font-size: 1.9rem; margin-bottom: 0.8rem; }
.docs-section h3 { font-size: 1.12rem; margin: 1.6rem 0 0.6rem; }
.docs-section h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); font-family: "Space Grotesk", sans-serif; margin: 1.3rem 0 0.5rem; }
.docs-section p { color: var(--text-muted); }
.docs-section a.inline { color: var(--gold); }

.kv { color: var(--text-muted); }
.kv code, code.c {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08rem 0.4rem;
  color: var(--gold);
}

.callout {
  display: flex;
  gap: 0.7rem;
  background: rgba(var(--gold-rgb), 0.07);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.callout .icon { color: var(--gold); width: 20px; height: 20px; margin-top: 2px; }
.callout-warn {
  background: rgba(255, 152, 0, 0.08);
  border-color: rgba(255, 152, 0, 0.35);
}
.callout-warn .icon { color: #FF9800; }

/* method + status badges */
.method, .status {
  font-family: "Space Grotesk", monospace;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 6px;
  text-transform: uppercase;
}
.method { font-size: 0.72rem; padding: 0.22rem 0.55rem; }
.status { font-size: 0.78rem; padding: 0.12rem 0.45rem; font-family: ui-monospace, monospace; }
.m-get, .status-2 { color: #0e7a53; background: rgba(14, 122, 83, 0.1); border: 1px solid rgba(14, 122, 83, 0.3); }
.m-post { color: #2b6cb0; background: rgba(43, 108, 176, 0.12); border: 1px solid rgba(43, 108, 176, 0.32); }
.m-patch { color: #3b56c9; background: rgba(59, 86, 201, 0.1); border: 1px solid rgba(59, 86, 201, 0.3); }
.m-delete, .status-5 { color: #cf2f38; background: rgba(207, 47, 56, 0.1); border: 1px solid rgba(207, 47, 56, 0.3); }
.m-put { color: #b56a10; background: rgba(181, 106, 16, 0.1); border: 1px solid rgba(181, 106, 16, 0.3); }
.status-4 { color: #b56a10; background: rgba(181, 106, 16, 0.12); border: 1px solid rgba(181, 106, 16, 0.3); }
.status-3 { color: #3b56c9; background: rgba(59, 86, 201, 0.1); }

/* endpoint */
.endpoint { scroll-margin-top: 84px; margin: 0 0 3.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.endpoint:last-child { border-bottom: 0; padding-bottom: 1.8rem; margin-bottom: 0; }
.endpoint-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.6rem;
}
.endpoint-head .path { font-family: ui-monospace, monospace; font-size: 0.95rem; color: var(--heading); word-break: break-word; }
.endpoint-head .path .pp { color: var(--gold); }
.endpoint .summary { font-weight: 700; color: var(--heading); font-size: 1.35rem; margin: 0 0 0.6rem; }
.endpoint .desc { color: var(--text-muted); margin-bottom: 0.4rem; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.88rem; }
.tbl th {
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.tbl td { padding: 0.6rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-muted); }
.tbl .pname { font-family: ui-monospace, monospace; color: var(--heading); font-weight: 500; }
.tbl .req { color: #cf2f38; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tbl .opt { color: var(--text-dim); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.type-pill { font-family: ui-monospace, monospace; font-size: 0.78rem; color: #3b56c9; background: rgba(59, 86, 201, 0.1); padding: 0.05rem 0.4rem; border-radius: 5px; border: 1px solid rgba(59, 86, 201, 0.25); white-space: nowrap; }
.type-pill a, a.type-link { color: #3b56c9; }
.meta-line { margin-top: 0.35rem; font-size: 0.78rem; color: var(--text-dim); font-family: ui-monospace, monospace; }
.meta-line .enum-val { color: var(--gold); }

/* lifecycle status tags (x-status: in-development | outdated) */
.tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.tag-dev { color: #0e7a53; background: rgba(14, 122, 83, 0.12); border: 1px solid rgba(14, 122, 83, 0.38); }
.tag-outdated { color: #b56a10; background: rgba(181, 106, 16, 0.12); border: 1px solid rgba(181, 106, 16, 0.38); }
.status-note {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.3;
}
.status-note .icon { width: 15px; height: 15px; flex-shrink: 0; }
.note-dev { color: #0e7a53; }
.note-outdated { color: #b56a10; }
.tbl tr.row-in-development td { background: rgba(55, 211, 155, 0.04); }
.tbl tr.row-outdated td { background: rgba(255, 184, 107, 0.04); }
.tbl tr.row-outdated .pname { text-decoration: line-through; text-decoration-color: rgba(255, 184, 107, 0.5); }

/* response rows */
.resp-row { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.resp-row:last-child { border-bottom: none; }
.resp-row .rd { color: var(--text-muted); }

/* code block (examples) */
.code-block { background: linear-gradient(180deg, #013057, #002147); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 0.7rem 0; }
.code-block .cb-head { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); font-family: ui-monospace, monospace; font-size: 0.76rem; color: var(--text-muted); }
.code-block pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.65; color: #cdd3df; }
.copy-btn { background: none; border: 1px solid var(--border-2); color: var(--text-muted); border-radius: 6px; padding: 0.14rem 0.55rem; font-size: 0.72rem; cursor: pointer; font-family: "Inter", sans-serif; }
.copy-btn:hover { color: #fff; border-color: rgba(var(--gold-rgb), 0.5); }

details.headers-d { border: 1px solid var(--border); border-radius: 10px; margin: 0.5rem 0 1rem; background: var(--surface); }
details.headers-d > summary { cursor: pointer; padding: 0.6rem 0.9rem; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
details.headers-d > summary::-webkit-details-marker { display: none; }
details.headers-d > summary::before { content: "+"; color: var(--gold); font-family: ui-monospace, monospace; }
details.headers-d[open] > summary::before { content: "\2212"; }
details.headers-d[open] > summary { color: var(--heading); border-bottom: 1px solid var(--border); }
details.headers-d .tbl { margin: 0; }
details.headers-d .tbl td:last-child, details.headers-d .tbl th:last-child { padding-right: 0.9rem; }
details.headers-d .tbl td:first-child, details.headers-d .tbl th:first-child { padding-left: 0.9rem; }

/* collapsible endpoint sections (parameters / request body / responses) */
details.section-d {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin: 0.6rem 0 1rem;
}
details.section-d > summary.section-d-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--gold);
}
details.section-d > summary.section-d-head::-webkit-details-marker { display: none; }
details.section-d > summary.section-d-head::before {
  content: "+";
  color: var(--gold);
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  line-height: 1;
  width: 1ch;
  flex: 0 0 auto;
}
details.section-d[open] > summary.section-d-head::before { content: "\2212"; }
details.section-d[open] > summary.section-d-head { border-bottom: 1px solid var(--border); }
details.section-d > summary.section-d-head:hover { color: var(--gold-deep); }
.section-d-title { flex: 1 1 auto; }
.section-d-count {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}
.section-d-body { padding: 1rem 1.1rem 0.4rem; }
.section-d-body > *:first-child { margin-top: 0; }
.section-d-body .tbl { margin-top: 0; }

/* models */
.model {
  scroll-margin-top: 84px;
  margin-bottom: 1.1rem;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(var(--gold-rgb), 0.5);
  border-bottom: 3px solid rgba(var(--gold-rgb), 0.5);
  border-radius: 10px;
}
.model:target { 
  border-left-color: var(--gold); 
  border-bottom-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.25);
 }
.model > h3 { font-family: ui-monospace, monospace; font-size: 1rem; color: var(--heading); margin-bottom: 0.3rem; }
.model > h3 .badge-type { font-family: "Space Grotesk", sans-serif; font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-left: 0.5rem; }

/* collapsible schema groups */
details.model-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 0.9rem;
  scroll-margin-top: 84px;
}
details.model-group > summary.model-group-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--heading);
}
details.model-group > summary.model-group-head::-webkit-details-marker { display: none; }
details.model-group > summary.model-group-head::before {
  content: "+";
  color: var(--gold);
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  line-height: 1;
  width: 1ch;
  flex: 0 0 auto;
}
details.model-group[open] > summary.model-group-head::before { content: "\2212"; }
details.model-group[open] > summary.model-group-head { border-bottom: 1px solid var(--border); }
.model-group-title { flex: 1 1 auto; }
.model-group-count {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}
.model-group-body { padding: 1.1rem 1.1rem 0.2rem; }
.model-group-body .model:last-child { margin-bottom: 1rem; }

/* sidebar schema groups */
details.side-model-group > summary.side-model-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}
details.side-model-group > summary.side-model-head::-webkit-details-marker { display: none; }
details.side-model-group > summary.side-model-head::before {
  content: "\203A";
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}
details.side-model-group[open] > summary.side-model-head::before { transform: rotate(90deg); }
details.side-model-group > summary.side-model-head:hover { background: var(--surface); color: var(--heading); }
details.side-model-group > summary.side-model-head .mm-count {
  margin-left: auto;
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
}
details.side-model-group .side-link {
  padding-left: 1.7rem;
  font-size: 0.8rem;
  font-weight: 450;
  color: var(--text-dim);
}
details.side-model-group .side-link:hover { color: var(--heading); }
details.side-model-group .side-link.active { color: var(--gold); }

@media (max-width: 991.98px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    margin: 0 1rem;
  }
  .docs-main { padding: 1.6rem 1.1rem 4rem; }
}

/* ==========================================================================
   Generic content pages (About, Contact) — shared header
   ========================================================================== */
.page-hero { position: relative; padding: 128px 0 40px; overflow: hidden; text-align: center; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 1rem 0 0.7rem; }
.page-hero .lead { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* ---- About ---- */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
}
.about-card .ic {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.about-card h2 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.about-card p { color: var(--text-muted); margin: 0; line-height: 1.75; }

/* ---- Contact ---- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.35rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(var(--gold-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.7rem; }
.form-note.sent { color: #37d39b; }

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.2s ease;
}
.contact-card:hover { border-color: rgba(var(--gold-rgb), 0.4); }
.contact-card .ic {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  color: var(--gold);
}
.contact-card .ct-label { display: block; font-size: 0.82rem; color: var(--text-muted); }
.contact-card > div { min-width: 0; }
.contact-card .ct-num { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--heading); display: inline-block; margin-top: 0.1rem; }
a.ct-num:hover { color: var(--gold); }

/* ==========================================================================
   System status page
   ========================================================================== */
.status-page { padding: 104px 0 80px; }
.status-banner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(120deg, rgba(55, 211, 155, 0.12), rgba(55, 211, 155, 0.03));
  border: 1px solid rgba(55, 211, 155, 0.3);
  border-radius: 16px;
  padding: 1.5rem 1.7rem;
}
.status-banner .sb-ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(55, 211, 155, 0.18); color: #20bd83; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.status-banner h1 { font-size: 1.55rem; margin: 0; color: var(--heading); }
.status-banner .sb-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
.status-banner .sb-spacer { flex: 1 1 auto; }

.status-legend { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; margin: 1.3rem 0.2rem 0; font-size: 0.82rem; color: var(--text-muted); }
.status-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.op { background: #20bd83; }
.dot.deg { background: #ffb86b; }
.dot.part { background: #ff9f45; }
.dot.maj { background: #ff8086; }
.dot.maint { background: #9db2ff; }

.comp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.2rem 1.3rem; margin-top: 1.3rem; }
.comp-row { padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.comp-row:last-child { border-bottom: none; }
.comp-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.comp-name { font-weight: 600; color: var(--heading); }
.comp-state { font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.comp-state.op { color: #20bd83; }
.comp-state.deg { color: #ffb86b; }
.comp-state.maj { color: #ff8086; }
.uptime { display: flex; gap: 2px; margin-top: 0.75rem; height: 30px; }
.uptime i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: #20bd83; opacity: 0.8; }
.uptime i.deg { background: #ffb86b; opacity: 1; }
.uptime i.down { background: #ff8086; opacity: 1; }
.uptime-meta { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--text-dim); margin-top: 0.45rem; }

.incident-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.2rem 1.3rem; margin-top: 1rem; }
.incident-day { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.incident-day:last-child { border-bottom: none; }
.incident-date { font-weight: 600; color: var(--heading); font-size: 0.92rem; }
.incident-none { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.3rem; display: flex; align-items: center; gap: 0.5rem; }

/* Status page — visual upgrades */
.status-page { position: relative; overflow: hidden; }
.status-page > .container { position: relative; z-index: 1; }
.status-banner .sb-ic { animation: status-pulse 2.8s ease-out infinite; }
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 211, 155, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(55, 211, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 211, 155, 0); }
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 1rem 1.15rem;
  transition: border-color 0.2s ease;
}
.metric:hover { border-color: rgba(var(--gold-rgb), 0.35); }
.metric .mv {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
}
.metric .mv .unit { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; margin-left: 2px; }
.metric .ml {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  margin-top: 0.3rem;
}
@media (max-width: 767.98px) { .status-metrics { grid-template-columns: repeat(2, 1fr); } }

.uptime i { transition: transform 0.12s ease, opacity 0.12s ease; }
.uptime i:hover { transform: scaleY(1.28); opacity: 1; }

.status-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 0; flex-wrap: wrap; }
.status-section-head h2 { font-size: 1.3rem; margin: 0; }
.status-section-head .sub { color: var(--text-dim); font-size: 0.85rem; }
.maint-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ==========================================================================
   Ticker band (home) — scrolling strip of assets & rails
   ========================================================================== */
.ticker-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 0.95rem 0;
  position: relative;
}
.ticker-band::before, .ticker-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 1;
  pointer-events: none;
}
.ticker-band::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker-band::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.ticker { display: flex; width: max-content; animation: ticker-scroll 40s linear infinite; }
.ticker-half { display: flex; align-items: center; gap: 3rem; padding-right: 3rem; }
.ticker-half span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker-half .tick-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  flex: 0 0 auto;
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
}

/* ==========================================================================
   Transfer lifecycle (home)
   ========================================================================== */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  position: relative;
}
.lifecycle::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.4) 18%, rgba(var(--gold-rgb), 0.4) 82%, transparent);
}
.life-step { text-align: center; position: relative; z-index: 1; }
.life-ic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  color: var(--gold);
  box-shadow: 0 0 0 7px var(--bg);
}
.life-ic .icon { width: 22px; height: 22px; }
.life-step h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.life-step p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.7rem; }
.life-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  border-radius: 6px;
  padding: 0.16rem 0.55rem;
}
@media (max-width: 991.98px) {
  .lifecycle { grid-template-columns: 1fr; gap: 0; }
  .lifecycle::before { display: none; }
  .life-step {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.1rem;
    text-align: left;
    padding-bottom: 1.6rem;
  }
  .life-ic { grid-row: 1 / 3; margin: 0; box-shadow: none; }
  .life-step .life-code { grid-column: 2; justify-self: start; }
  .life-step:not(:last-child) .life-ic { position: relative; }
  .life-step:not(:last-child)::after {
    content: "";
    grid-column: 1;
    position: absolute;
    left: 24.5px;
    top: 54px;
    bottom: 4px;
    width: 1px;
    background: rgba(var(--gold-rgb), 0.25);
  }
  .life-step { position: relative; }
  .life-step h3 { margin-top: 0.2rem; }
}

/* ==========================================================================
   "Start building" steps (home)
   ========================================================================== */
.build-step {
  display: flex;
  gap: 1.15rem;
  padding: 1.35rem 0;
  border-bottom: 1px dashed var(--border-2);
}
.build-step:first-child { padding-top: 0.3rem; }
.build-step:last-child { border-bottom: none; }
.step-num {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-grad);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px -8px rgba(var(--gold-rgb), 0.55);
}
.build-step h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.build-step p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 0; }
.build-step p a { font-weight: 500; }

/* ==========================================================================
   FAQ (home) — styled <details> accordion
   ========================================================================== */
.faq { max-width: 780px; margin: 0 auto; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s ease;
}
details.faq-item[open] { border-color: rgba(var(--gold-rgb), 0.35); background: var(--surface-2); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  font-weight: 600;
  color: var(--heading);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1;
  flex: 0 0 auto;
}
details.faq-item[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 1.35rem 1.2rem; color: var(--text-muted); font-size: 0.95rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   About page — story, values, products, timeline
   ========================================================================== */
.stats.compact .num { font-size: 1.7rem; }
.stats.compact .lbl { font-size: 0.84rem; }

.pull-quote {
  background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.1), rgba(var(--gold-rgb), 0.02));
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pull-quote blockquote {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--heading);
  margin: 0;
}
.pull-quote blockquote .hl { color: var(--gold); }
.pull-quote cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.story-copy p { color: var(--text-muted); line-height: 1.8; }
.story-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 1.1rem; }

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.value-card:hover { transform: translateY(-3px); border-color: rgba(var(--gold-rgb), 0.35); }
.value-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  color: var(--gold);
  margin-bottom: 1rem;
}
.value-card .ic .icon { width: 20px; height: 20px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: rgba(var(--gold-rgb), 0.4); transform: translateY(-3px); }
.product-card .badge-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.product-card .p-ic {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(var(--gold-rgb), 0.55);
}
.product-card .p-kind {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.product-card h3 { font-size: 1.45rem; margin: 0; }
.product-card > p { color: var(--text-muted); }
.product-card ul { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.product-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.32rem 0;
}
.product-card li .icon { width: 17px; height: 17px; color: var(--gold); margin-top: 3px; }
.product-card .card-cta { margin-top: auto; }

.timeline { max-width: 720px; margin: 0 auto; }
.timeline-item {
  position: relative;
  padding: 0 0 2.2rem 2.4rem;
  border-left: 1px solid var(--border-2);
  margin-left: 0.5rem;
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0.2rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--gold);
  box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.5);
}
.tl-tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.timeline-item h3 { font-size: 1.15rem; margin: 0.3rem 0 0.35rem; }
.timeline-item p { color: var(--text-muted); font-size: 0.93rem; margin: 0; max-width: 560px; }

/* ==========================================================================
   Contact page — channels, select field, office card
   ========================================================================== */
.channel-card {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  height: 100%;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.channel-card:hover {
  border-color: rgba(var(--gold-rgb), 0.45);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.channel-card .ic {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  color: var(--gold);
}
.channel-card b { display: block; color: var(--heading); font-weight: 600; }
.channel-card span { color: var(--text-muted); font-size: 0.87rem; }
.channel-card .go {
  margin-left: auto;
  align-self: center;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.channel-card:hover .go { opacity: 1; transform: none; }
.channel-card .go .icon { width: 18px; height: 18px; }

.field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.7rem 2.4rem 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a7b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}
.field select:focus {
  outline: none;
  border-color: rgba(var(--gold-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.12);
}

.office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 0.9rem;
}
.office-card h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}
.office-card address {
  font-style: normal;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}
.office-card address b { color: var(--heading); font-weight: 600; }

.quick-links { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.quick-links a:hover { color: var(--gold); border-color: rgba(var(--gold-rgb), 0.45); }
.quick-links .icon { width: 15px; height: 15px; }

/* ==========================================================================
   404 — atom backdrop + helper links
   ========================================================================== */
.cs-wrap { position: relative; overflow: hidden; }
.cs-content { position: relative; z-index: 1; }
.err-atom {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  opacity: 0.22;
  pointer-events: none;
}
.cs-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Light-theme overrides — keep intentionally dark panels legible
   ========================================================================== */
/* Code panels stay dark oxford blue; force their chrome + text light */
.code-label, .code-foot,
.code-block .cb-head, .copy-btn { color: #9fb0c4; }
.code-head, .code-foot,
.code-block .cb-head { border-color: rgba(255, 255, 255, 0.1); }
.code-dots i { background: rgba(255, 255, 255, 0.18); }

/* CTA band keeps its dark blue gradient — keep text/controls readable */
.cta-band h2 { color: #fff; }
.cta-band .btn-ghost {
  color: #fff;
  background: var(--navy-2);
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-band .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Bootstrap navbar-dark toggler icon is white — swap to an oxford-blue glyph */
.utb-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23002147' stroke-width='2.2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
