/* ============================================================
   SOLSTICE STUDIO — Midnight Blue Enterprise Design System
   Deep Midnight Navy: #061128 | Card Navy: #0C1F45
   Steel Ice Accent: #8FB1D6 | Crisp White Ink: #F8FAFC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --bg: #061128;
  --surface: #0A1B3D;
  --card: #0E234D;
  --card-hover: #132C5E;
  --steel: #8FB1D6;
  --steel-muted: #647F9E;
  --ink: #F8FAFC;
  --text: #CBD5E1;
  --text-muted: #94A3B8;
  --border: rgba(143, 177, 214, 0.16);
  --border-strong: rgba(143, 177, 214, 0.34);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(2, 8, 22, 0.35);
  --shadow-md: 0 16px 36px -12px rgba(2, 8, 22, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Subtle Big-Tech Scroll Reveal (Zero Blinking/Beeping) --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Sticky Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 17, 40, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand img.logo-mark {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand img.brand-wordmark {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

/* --- Language Switcher (ID / EN / JP) --- */
.lang-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.active {
  background: var(--steel);
  color: var(--bg);
}

/* --- Hero Section --- */
.hero {
  padding: 76px 0 68px;
  background: radial-gradient(circle at 82% 18%, rgba(30, 64, 128, 0.35) 0%, rgba(6, 17, 40, 0) 58%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(143, 177, 214, 0.1);
  border: 1px solid var(--border-strong);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.15rem, 4vw, 3.05rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-role {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--steel);
  background: rgba(143, 177, 214, 0.08);
  transform: translateY(-1px);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease);
}

.social-pill:hover {
  border-color: var(--steel);
  color: var(--ink);
  background: var(--card);
  transform: translateY(-1px);
}

.social-pill svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* --- Hero Right Card (Executive Telemetry Card) --- */
.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.hero-card-header img {
  height: 44px;
  object-fit: contain;
}

.hero-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--steel);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.stat-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pipeline-step span:first-child {
  font-weight: 600;
  color: var(--ink);
}

.pipeline-step span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--steel);
}

/* --- Sections --- */
section {
  padding: 68px 0;
}

section.alt-bg {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 34px;
}

.section-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 0.98rem;
}

/* --- Capabilities Grid --- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), background-color 0.25s ease, border-color 0.25s ease;
}

.cap-card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.cap-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 10px;
}

.cap-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--steel);
}

/* --- Featured Project Ultron Card --- */
.project-feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.project-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--steel);
  background: rgba(143, 177, 214, 0.1);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.project-feature h3 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.project-feature p {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.project-metrics-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.metric-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.metric-row span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.metric-row strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-left img {
  height: 32px;
  object-fit: contain;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid,
  .cards-3,
  .project-feature {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* ============================================================
   PROJECT ULTRON — Case Study Interactive Components
   ============================================================ */

.progress-track {
  position: fixed;
  top: 78px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(143, 177, 214, 0.12);
  z-index: 95;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--steel-muted), var(--ink));
  transition: width 0.15s ease-out;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-card .stat-val {
  font-size: 1.75rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.chart-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.chart-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.chart-box {
  position: relative;
  height: 290px;
  width: 100%;
}

.chart-box.tall {
  height: 340px;
}

/* --- Raw vs Clean Inspector Toggle --- */
.inspector-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.inspector-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.tab-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.mode-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: var(--steel);
  color: var(--bg);
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.kv-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
}

.kv-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--steel);
  margin-bottom: 5px;
}

.kv-val {
  font-size: 0.86rem;
  color: var(--ink);
  word-break: break-word;
}

/* --- Callout / Proof Box --- */
.proof-box {
  background: rgba(143, 177, 214, 0.08);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--steel);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--text);
}

.proof-box strong {
  color: var(--ink);
}

/* --- K-Means Cluster Explorer --- */
.cluster-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.cluster-pill {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.cluster-pill:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
}

.cluster-pill.active {
  background: var(--card-hover);
  border-color: var(--ink);
}

.cluster-pill .cp-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.cluster-pill .cp-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--steel);
}

.cluster-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.quote-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 0.86rem;
  color: var(--text);
  margin-top: 10px;
}

/* --- Clean Data Table --- */
.data-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

table.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

table.clean-table th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--steel);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-strong);
}

table.clean-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

table.clean-table tr:last-child td {
  border-bottom: none;
}

/* --- Recommendations List --- */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.rec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.rec-card h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.rec-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

@media (max-width: 900px) {
  .kpi-strip,
  .cards-2,
  .cards-4,
  .cluster-tabs,
  .rec-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   AMBIENT VIDEO BACKDROP & BESPOKE GLASSMORPHIC POLISH
   ============================================================ */

.hero {
  position: relative;
  background: transparent;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  opacity: 0.65;
  filter: saturate(0.95) contrast(1.06);
  pointer-events: none;
}

.video-scrim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(6, 17, 40, 0.42) 0%,
    rgba(6, 17, 40, 0.56) 50%,
    rgba(6, 17, 40, 0.72) 100%
  );
  pointer-events: none;
}

section.alt-bg {
  background: rgba(10, 27, 61, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

footer {
  background: rgba(6, 17, 40, 0.75) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Elevated Glassmorphic Cards (Non-Regular Architectural Depth) */
.hero-card,
.kpi-card,
.cap-card,
.chart-card,
.project-feature,
.inspector-shell,
.rec-card {
  background: rgba(14, 35, 77, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(143, 177, 214, 0.32);
}

/* Bento Asymmetric Grid for Ultron Charts */
.bento-asym {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.bento-asym-rev {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .bento-asym,
  .bento-asym-rev {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   1-CSS 3-STYLE THEME SYSTEM & SOLSTICE FONT LOADER
   Themes: midnight (default) | obsidian | arctic
   ============================================================ */

/* Theme 2: Obsidian Studio (Matte Black + Crisp Slate-Cyan) */
html[data-theme="obsidian"] {
  --bg: #080A0F;
  --surface: #0F131C;
  --card: rgba(17, 24, 39, 0.78);
  --card-hover: rgba(24, 34, 54, 0.9);
  --steel: #38BDF8;
  --steel-muted: #0284C7;
  --ink: #F8FAFC;
  --text: #CBD5E1;
  --text-muted: #94A3B8;
  --border: rgba(56, 189, 248, 0.16);
  --border-strong: rgba(56, 189, 248, 0.35);
}

html[data-theme="obsidian"] .navbar {
  background: rgba(8, 10, 15, 0.88);
}

html[data-theme="obsidian"] .video-scrim {
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.52) 0%, rgba(8, 10, 15, 0.68) 50%, rgba(8, 10, 15, 0.84) 100%);
}

html[data-theme="obsidian"] section.alt-bg {
  background: rgba(15, 19, 28, 0.54);
}

/* Theme 3: Arctic Editorial (Clean Light Mode + Deep Navy Ink) */
html[data-theme="arctic"] {
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --card: rgba(255, 255, 255, 0.88);
  --card-hover: rgba(255, 255, 255, 0.98);
  --steel: #3B5978;
  --steel-muted: #5F758E;
  --ink: #0A1D42;
  --text: #1E293B;
  --text-muted: #475569;
  --border: rgba(10, 29, 66, 0.12);
  --border-strong: rgba(10, 29, 66, 0.25);
  --shadow-sm: 0 2px 8px rgba(10, 29, 66, 0.05);
  --shadow-md: 0 12px 30px -10px rgba(10, 29, 66, 0.12);
}

html[data-theme="arctic"] .navbar {
  background: rgba(244, 247, 251, 0.9);
}

html[data-theme="arctic"] .video-scrim {
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.78) 0%, rgba(244, 247, 251, 0.86) 50%, rgba(244, 247, 251, 0.94) 100%);
}

html[data-theme="arctic"] .bg-video {
  opacity: 0.28;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6);
}

html[data-theme="arctic"] section.alt-bg {
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme="arctic"] footer {
  background: rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="arctic"] .btn-primary {
  background: #0A1D42;
  color: #FFFFFF;
  border-color: #0A1D42;
}

html[data-theme="arctic"] .btn-primary:hover {
  background: #142B59;
}

html[data-theme="arctic"] .lang-btn.active,
html[data-theme="arctic"] .theme-btn.active {
  background: #0A1D42;
  color: #FFFFFF;
}

/* --- Theme Switcher Pill --- */
.switcher-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.theme-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-btn:hover {
  color: var(--ink);
}

.theme-btn.active {
  background: var(--steel);
  color: var(--bg);
}

/* --- Branded Solstice Font Transition Loader --- */
.solstice-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #061128;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.solstice-loader.is-loading {
  opacity: 1;
  pointer-events: all;
}

.loader-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.loader-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.loader-font {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.loader-bar-track {
  width: 190px;
  height: 3px;
  background: rgba(143, 177, 214, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: #F8FAFC;
  border-radius: 999px;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.solstice-loader.is-loading .loader-bar-fill {
  width: 100%;
}

@media (max-width: 900px) {
  .theme-btn {
    padding: 4px 7px;
    font-size: 0.68rem;
  }
}
