/* ═══════════════════════════════════════════════════════════
   PATRIOT STRATEGIC METALS — V3 STYLESHEET
   Light theme · White base · Black & Gray system
═══════════════════════════════════════════════════════════ */

/* ── AUTH OVERLAY ─────────────────────────────────────── */
.protected-content {
  display: none;
}
.protected-content.unlocked {
  display: block;
}

.auth-overlay {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: rgba(10, 10, 10, 0.97);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-overlay.hidden {
  display: none;
}

.auth-box {
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.auth-logo { margin-bottom: 28px; }
.auth-logo-img { height: 48px; width: auto; object-fit: contain; display: block; }

.auth-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #888;
  margin-bottom: 10px;
  align-self: flex-start;
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  align-self: flex-start;
}
.auth-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 32px;
  align-self: flex-start;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #555;
}
.auth-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'IBM Plex Mono', monospace;
  color: #0a0a0a;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.auth-field input:focus {
  border-color: #111;
  background: #fff;
}

.auth-error {
  font-size: 11px;
  color: #cc2200;
  letter-spacing: 0.05em;
  min-height: 16px;
  text-align: center;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}
.auth-btn:hover { background: #222; }
.auth-btn:active { transform: scale(0.98); }
.auth-btn span { margin-left: 6px; }

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}
.auth-shake { animation: authShake 0.4s ease; }

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg-base:        #ffffff;
  --bg-surface:     #f5f5f5;
  --bg-card:        #fafafa;
  --bg-card-hover:  #f0f0f0;
  --bg-border:      #e0e0e0;
  --bg-border-hi:   #c0c0c0;

  --accent:         #111111;
  --accent-mid:     #333333;
  --accent-dim:     rgba(17,17,17,0.07);
  --accent-glow:    rgba(17,17,17,0.04);

  --green-live:     #16a34a;
  --green-dim:      rgba(22,163,74,0.08);
  --blue-vault:     #1d4ed8;
  --blue-dim:       rgba(29,78,216,0.08);
  --purple-reserve: #6d28d9;
  --purple-dim:     rgba(109,40,217,0.08);

  --text-primary:   #0a0a0a;
  --text-secondary: #3d3d3d;
  --text-muted:     #888888;

  --nav-h:          68px;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;

  --shadow-card:    0 1px 0 rgba(0,0,0,0.04) inset,
                    0 4px 24px rgba(0,0,0,0.06);
  --shadow-btn:     0 2px 8px rgba(0,0,0,0.18);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before { display: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── UTILITIES ──────────────────────────────────────────── */
.mono { font-family: 'IBM Plex Mono', monospace; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section { padding: 96px 0; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: 'IBM Plex Mono', monospace;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary-dark:hover {
  background: var(--accent-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--bg-border-hi);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-dark:hover {
  border-color: var(--text-primary);
  background: var(--accent-dim);
}
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { opacity: 0.5; }

/* ── REVEAL ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--bg-border);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
/* Hero 벗어나면 흰 배경으로 전환 */
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--bg-border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-icon {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* 로고 이미지가 Patriot/Strategic Metals 2줄 구성 — 여백 없이 단독 배치 */
}
.logo-img {
  height: 54px;
  width: auto;
  max-width: 420px;
  display: block;
  object-fit: contain;
}
.nav-logo-fallback {
  display: flex;
  flex-direction: column;
}
.nav-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}
.nav-tagline {
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links li a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links li a:hover { color: var(--text-primary); background: var(--bg-surface); }
.nav-links li a.active { color: var(--text-primary); font-weight: 700; }
.nav-smap {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}
.nav-cta-btn {
  background: var(--text-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 12px !important;
  letter-spacing: 0.03em;
  transition: background 0.2s !important;
}
.nav-cta-btn:hover { background: var(--accent-mid) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: #0a0a0a;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.5) 100%);
  z-index: 1;
}
/* Hero 2-column split layout */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: 100vh;
}
.hero-content {
  padding: 120px 48px 100px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(255,255,255,0); }
}
.badge-text {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-accent {
  color: #ffffff;
  display: block;
  opacity: 0.55;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.4);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.8s 0.4s ease both;
}
/* Hero buttons — white/outlined for dark hero */
.hero .btn-primary-dark {
  background: #ffffff;
  color: #0a0a0a;
}
.hero .btn-primary-dark:hover {
  background: #e5e5e5;
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}
.hero .btn-outline-dark {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
}
.hero .btn-outline-dark:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}
.hero-stats-bar {
  display: flex;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.5s ease both;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.hstat {
  padding: 20px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
  flex: 1;
  min-width: 120px;
}
.hstat:last-child { border-right: none; }
.hstat:first-child { flex: 0 0 auto; }
.hstat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  font-family: 'IBM Plex Mono', monospace;
}
.hstat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.hstat-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: 'IBM Plex Mono', monospace;
}
/* ── GLOBE WRAPPER ──────────────────────────────────────── */
.hero-globe-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 60px 0 60px 24px;
  animation: fadeUp 1s 0.3s ease both;
}
#globe-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  border-radius: 50%;
  overflow: visible;
  cursor: grab;
  position: relative;
  /* Subtle outer glow */
  filter: drop-shadow(0 0 60px rgba(0, 100, 200, 0.3))
          drop-shadow(0 0 120px rgba(0, 50, 150, 0.15));
}
#globe-container:active { cursor: grabbing; }
#globe-container canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
}

/* Animated scan line over globe */
.hero-globe-wrap::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 24px;
  right: 0;
  bottom: 60px;
  max-width: 580px;
  margin: 0 auto;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 180, 216, 0.04) 48%,
    rgba(0, 180, 216, 0.08) 50%,
    rgba(0, 180, 216, 0.04) 52%,
    transparent 100%
  );
  animation: globeScan 4s ease-in-out infinite;
  z-index: 3;
}
@keyframes globeScan {
  0%   { background-position: 0 -100%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { background-position: 0 200%; opacity: 0; }
}

/* Globe legend */
.globe-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  backdrop-filter: blur(8px);
  animation: fadeUp 1s 0.8s ease both;
  flex-wrap: wrap;
  justify-content: center;
}
.gl-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

/* Globe responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .hero-content { padding: 120px 0 40px; }
  .hero-globe-wrap {
    padding: 0 0 80px;
    height: auto;
  }
  #globe-container { max-width: 360px; }
}
@media (max-width: 600px) {
  #globe-container { max-width: 280px; }
  .globe-legend { gap: 12px; }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeUp 1s 1s ease both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0.3) translateY(20px); }
}
.hero-scroll span { font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 0.15em; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   MATERIALS TICKER
════════════════════════════════════════════════════════════ */
.materials-ticker {
  overflow: hidden;
  background: #111111;
  border-top: 1px solid #222222;
  border-bottom: 1px solid #222222;
  position: relative;
}
.materials-ticker::before,
.materials-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.materials-ticker::before { left: 0;  background: linear-gradient(to right, #111111, transparent); }
.materials-ticker::after  { right: 0; background: linear-gradient(to left,  #111111, transparent); }
.ticker-inner {
  display: flex;
  width: max-content;
  animation: tickerScroll 60s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-right: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
  flex-shrink: 0;
}
.tick-sym {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}
.tick-name {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
}
.tick-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 2px;
}
.status-live    { background: rgba(22,163,74,0.15);  color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.status-vaulted { background: rgba(59,130,246,0.12); color: #93c5fd; border: 1px solid rgba(147,197,253,0.2); }
.status-reserve { background: rgba(139,92,246,0.12); color: #c4b5fd; border: 1px solid rgba(196,181,253,0.2); }

/* ════════════════════════════════════════════════════════════
   MISSION
════════════════════════════════════════════════════════════ */
.mission-section { background: var(--bg-base); border-bottom: 1px solid var(--bg-border); }
.mission-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 760px;
  line-height: 1.8;
  margin-bottom: 56px;
  border-left: 3px solid var(--text-primary);
  padding-left: 20px;
}
.mission-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pillar {
  background: var(--bg-base);
  padding: 36px 28px;
  transition: background 0.2s;
}
.pillar:hover { background: var(--bg-surface); }
.pillar-num {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.pillar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   MATERIAL PORTFOLIO
════════════════════════════════════════════════════════════ */
.materials-section { background: var(--bg-surface); }
.mat-tabs {
  display: flex;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 32px;
  width: fit-content;
  background: var(--bg-base);
}
.mat-tab {
  background: none;
  border: none;
  border-right: 1px solid var(--bg-border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'IBM Plex Mono', monospace;
}
.mat-tab:last-child { border-right: none; }
.mat-tab:hover { background: var(--bg-surface); color: var(--text-secondary); }
.mat-tab.active { background: var(--text-primary); color: #ffffff; }
.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mat-card {
  background: var(--bg-base);
  padding: 0;
  transition: background 0.2s;
  cursor: default;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mat-card:hover { background: var(--bg-card-hover); }
.mat-card:hover .mat-img img {
  transform: scale(1.04);
}
.mat-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}
.mat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.mat-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.mat-symbol {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.mat-status-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  border-radius: 2px;
  margin-top: 4px;
}
.mat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.mat-props { display: flex; flex-direction: column; gap: 5px; }
.mat-prop { display: flex; justify-content: space-between; font-size: 11px; gap: 8px; }
.prop-label { color: var(--text-muted); font-size: 10px; letter-spacing: 0.08em; flex-shrink: 0; }
.mat-prop span:last-child { color: var(--text-secondary); text-align: right; }

/* ════════════════════════════════════════════════════════════
   ALLIED UPSTREAM
════════════════════════════════════════════════════════════ */
.allied-section { background: var(--bg-base); border-top: 1px solid var(--bg-border); border-bottom: 1px solid var(--bg-border); }
.concentration-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
}
.cstat { background: var(--bg-base); padding: 36px 28px; text-align: center; }
.cstat:hover { background: var(--bg-surface); }
.cstat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.cstat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cstat-sub {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-muted);
}
.partner-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.partner-header { margin-bottom: 20px; }
.partner-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.partner-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.partner-tagline { font-size: 0.9rem; color: var(--text-secondary); }
.partner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 720px;
}
.partner-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.pmeta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 140px;
}
.pmeta-label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; }
.pmeta span:last-child { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; }
.partner-divs-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.partner-divisions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.pdiv {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.pdiv-num { font-size: 10px; color: var(--text-muted); }
.pdiv-name { font-size: 0.9rem; color: var(--text-secondary); flex: 1; }
.pdiv-tier {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
}
.tier-t1 { background: rgba(22,163,74,0.1); color: #16a34a; border: 1px solid rgba(22,163,74,0.2); }
.tier-t2 { background: rgba(29,78,216,0.08); color: #1d4ed8; border: 1px solid rgba(29,78,216,0.15); }
.tier-t3 { background: rgba(109,40,217,0.08); color: #6d28d9; border: 1px solid rgba(109,40,217,0.15); }
.tier-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.tier-legend span {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 3px 10px;
  border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════
   YTTRIUM PROFILE
════════════════════════════════════════════════════════════ */
.ree-section { background: var(--bg-surface); }
.yttrium-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.element-box {
  background: var(--bg-base);
  border: 1.5px solid var(--text-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  min-width: 160px;
}
.elem-num { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.elem-sym {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.elem-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.elem-cat { font-size: 9px; color: var(--text-muted); letter-spacing: 0.1em; }
.yttrium-profile-img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--bg-border);
  display: block;
  margin-bottom: 28px;
}
.yttrium-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.yttrium-intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px;
}
.yttrium-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
}
.yapp-card {
  background: var(--bg-base);
  padding: 28px;
  transition: background 0.2s;
}
.yapp-card:hover { background: var(--bg-card-hover); }
.yapp-num { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 0.08em; }
.yapp-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.yapp-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.yapp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.yapp-tags span {
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 3px 9px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 2px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.yttrium-inventory {
  background: var(--bg-base);
  border: 1.5px solid var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 48px;
}
.yi-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.yi-header h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.yi-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  background: rgba(22,163,74,0.08);
  color: var(--green-live);
  border: 1px solid rgba(22,163,74,0.2);
  border-radius: 2px;
  letter-spacing: 0.08em;
}
.yi-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.yi-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-border);
  font-size: 0.9rem;
}
.yi-spec span:first-child { font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; flex-shrink: 0; }
.yi-spec span:last-child { color: var(--text-secondary); }
.pricing-ladder {
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 48px;
}
.pricing-ladder h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.pricing-source { font-size: 10px; color: var(--text-muted); margin-bottom: 24px; letter-spacing: 0.05em; }
.ladder-rows { display: flex; flex-direction: column; gap: 1px; }
.ladder-row {
  display: grid;
  grid-template-columns: 180px 60px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
}
.tier-standard { background: var(--bg-surface); }
.tier-ise { background: rgba(29,78,216,0.04); border: 1px solid rgba(29,78,216,0.1); }
.tier-patriot { background: var(--bg-surface); border: 1.5px solid var(--text-primary); }
.lr-tier { font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; }
.tier-patriot .lr-tier { color: var(--text-primary); font-weight: 700; }
.tier-ise .lr-tier { color: var(--blue-vault); }
.lr-grade { font-size: 1.1rem; font-weight: 800; font-family: 'IBM Plex Mono', monospace; color: var(--text-primary); }
.lr-desc { font-size: 0.85rem; color: var(--text-secondary); }
.lr-price { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); text-align: right; }
.lr-kprice { font-size: 11px; color: var(--text-muted); text-align: right; }
.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-border);
}
.yttrium-cta {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.yttrium-cta p { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.yttrium-cta-sub { font-size: 0.9rem !important; color: var(--text-secondary) !important; font-weight: 400 !important; margin-bottom: 24px !important; }
.yttrium-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   WHY RARE EARTHS
════════════════════════════════════════════════════════════ */
.why-ree-section { background: var(--bg-base); border-top: 1px solid var(--bg-border); }
.imperatives {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 64px;
}
.imperative {
  background: var(--bg-base);
  padding: 28px;
  transition: background 0.2s;
}
.imperative:hover { background: var(--bg-surface); }
.imp-num { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; letter-spacing: 0.08em; }
.imperative h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.imperative p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.demand-chart-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 64px;
}
.demand-chart-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  margin-top: 8px;
}
#ree-demand-chart { margin-top: 20px; }
.chart-source { font-size: 10px; color: var(--text-muted); margin-top: 16px; letter-spacing: 0.05em; }
.chart-note { font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); margin-top: 12px; }
.supply-conc { margin-bottom: 64px; }
.supply-conc h3 { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; }
.supply-conc > p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; max-width: 680px; margin-bottom: 32px; }
.supply-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
}
.sstat { background: var(--bg-base); padding: 28px; }
.sstat:hover { background: var(--bg-surface); }
.sstat-num { font-size: 2.4rem; font-weight: 900; color: var(--text-primary); letter-spacing: -0.04em; margin-bottom: 6px; }
.sstat-label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.sstat p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }
.historical-note {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-left: 3px solid var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.hn-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 12px; }
.historical-note p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; }
.element-matrix h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; }
.element-matrix > p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; max-width: 680px; margin-bottom: 28px; }
.matrix-table-wrap { overflow-x: auto; }
.matrix-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.matrix-table th {
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--text-primary);
  white-space: nowrap;
}
.matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-border);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.6;
}
.matrix-table tr:hover td { background: var(--bg-surface); }
.elem-abbr { font-family: 'IBM Plex Mono', monospace; color: var(--text-primary); font-weight: 700; margin-right: 6px; }
.sector-tag {
  display: inline-block;
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 2px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 2px;
  color: var(--text-muted);
  margin: 2px 2px 2px 0;
}

/* ════════════════════════════════════════════════════════════
   SUPPLY CHAIN
════════════════════════════════════════════════════════════ */
.supply-chain-section { background: var(--bg-surface); }
.chain-steps { display: flex; gap: 0; align-items: flex-start; flex-wrap: wrap; }
.chain-step {
  flex: 1;
  min-width: 200px;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.chain-step:hover { border-color: var(--text-primary); background: var(--bg-card-hover); }
.chain-connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  align-self: center;
  flex-shrink: 0;
}
.conn-line { display: none; }
.chain-num { font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 12px; }
.chain-icon { font-size: 1.3rem; color: var(--text-primary); margin-bottom: 12px; opacity: 0.4; }
.chain-phase { font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.chain-step h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.chain-step p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   CAPABILITIES
════════════════════════════════════════════════════════════ */
.capabilities-section { background: var(--bg-base); border-top: 1px solid var(--bg-border); }
.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
}
.cap-card {
  background: var(--bg-base);
  padding: 28px;
  transition: background 0.2s;
}
.cap-card:hover { background: var(--bg-surface); }
.cap-icon { font-size: 1.3rem; color: var(--text-primary); margin-bottom: 16px; opacity: 0.4; }
.cap-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.cap-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.vault-status {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.vault-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; flex-basis: 100%; margin-bottom: 4px; }
.vault-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-live);
  letter-spacing: 0.1em;
  padding-right: 32px;
  border-right: 1px solid var(--bg-border);
}
.vault-metrics { display: flex; gap: 32px; flex-wrap: wrap; flex: 1; }
.vm { display: flex; flex-direction: column; gap: 4px; }
.vm-val { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vm-key { font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; }

/* ════════════════════════════════════════════════════════════
   GOVERNANCE
════════════════════════════════════════════════════════════ */
.governance-section { background: var(--bg-surface); }
.gov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gov-card { background: var(--bg-base); padding: 28px; transition: background 0.2s; }
.gov-card:hover { background: var(--bg-card-hover); }
.gov-card.managing { border-top: 2px solid var(--text-primary); }
.gov-card.anchor { border-top: 2px solid var(--text-primary); }
.gov-role { font-size: 10px; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.gov-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.gov-person { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.gov-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.gov-meta { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--bg-border); }
.gm { display: flex; justify-content: space-between; font-size: 12px; }
.gm span:first-child { color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em; }
.gm-val { color: var(--text-secondary); font-weight: 600; }
.ownership-50 { color: var(--text-primary) !important; font-size: 1.1rem !important; font-weight: 900 !important; }

/* ════════════════════════════════════════════════════════════
   SMAP
════════════════════════════════════════════════════════════ */
.smap-section { background: var(--bg-base); border-top: 1px solid var(--bg-border); }
.smap-header { margin-bottom: 48px; }
.smap-logo-wrap {
  margin: 20px 0 32px;
}
.smap-logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}
.smap-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.smap-buyers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 64px;
}
.smap-buyer { background: var(--bg-base); padding: 28px; transition: background 0.2s; }
.smap-buyer:hover { background: var(--bg-surface); }
.sb-icon { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 12px; opacity: 0.35; }
.smap-buyer h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.smap-buyer p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65; }
.smap-tiers-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.12em; margin-bottom: 24px; font-family: 'IBM Plex Mono', monospace; }
.smap-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 64px;
}
.smap-tier { background: var(--bg-base); padding: 28px; position: relative; transition: background 0.2s; }
.smap-tier:hover { background: var(--bg-surface); }
.smap-tier.tier-recommended { background: var(--bg-surface); border-top: 2px solid var(--text-primary); }
.tier-rec-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  background: var(--text-primary);
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 12px;
}
.tier-header { margin-bottom: 16px; }
.tier-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
}
.tier-recommended .tier-badge {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}
.bronze  { background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--bg-border); }
.silver  { background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--bg-border-hi); }
.gold    { background: var(--text-primary); color: #ffffff; border-color: var(--text-primary); }
.sovereign { background: var(--bg-surface); color: var(--text-primary); border: 1.5px solid var(--text-primary); }
.tier-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.smap-tier > p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 20px; }
.tier-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.tier-features li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); }
.tier-features li i { color: var(--green-live); font-size: 0.7rem; flex-shrink: 0; }
.tier-vetting { font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; padding-top: 16px; border-top: 1px solid var(--bg-border); }

.smap-access-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: start;
}
.smap-portal, .smap-apply {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.portal-label, .apply-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-family: 'IBM Plex Mono', monospace;
}
.smap-portal h3, .smap-apply h3 { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.smap-portal > p, .smap-apply > p { font-size: 0.87rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.65; }
.portal-form, .apply-form { display: flex; flex-direction: column; gap: 16px; }
.pf-group { display: flex; flex-direction: column; gap: 6px; }
.pf-group label, .af-group label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
}
.pf-group input, .af-group input, .af-group select, .af-group textarea {
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  width: 100%;
}
.pf-group input:focus, .af-group input:focus,
.af-group select:focus, .af-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}
.af-group select { cursor: pointer; }
.portal-token { font-size: 11px; color: var(--green-live); letter-spacing: 0.08em; }
.portal-recover { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; text-decoration: underline; cursor: pointer; }
.portal-note { font-size: 10px; color: var(--text-muted); line-height: 1.65; letter-spacing: 0.04em; margin-top: 12px; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-group { display: flex; flex-direction: column; gap: 6px; }
.af-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.af-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; }
.af-check input[type="checkbox"] { width: auto; padding: 0; accent-color: var(--text-primary); }
.af-consent { background: var(--bg-base); border: 1px solid var(--bg-border); border-radius: var(--radius-sm); padding: 12px; }
.af-consent .af-check { font-size: 0.82rem; align-items: flex-start; }
.af-note { font-size: 10px; color: var(--text-muted); line-height: 1.6; letter-spacing: 0.04em; margin-top: 4px; }
.app-process {
  display: flex;
  margin-top: 28px;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ap-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-base);
  border-right: 1px solid var(--bg-border);
  gap: 4px;
}
.ap-step:last-child { border-right: none; }
.ap-num { font-size: 10px; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; }
.ap-step > span:nth-child(2) { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); }
.ap-sub { font-size: 10px; color: var(--text-muted); line-height: 1.3; }

/* ════════════════════════════════════════════════════════════
   POLICY
════════════════════════════════════════════════════════════ */
.policy-section { background: var(--bg-surface); }
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
}
.policy-card { background: var(--bg-base); padding: 28px; transition: background 0.2s; }
.policy-card:hover { background: var(--bg-card-hover); }
.policy-flag { font-size: 1.8rem; margin-bottom: 10px; }
.policy-juris { font-size: 10px; color: var(--text-muted); letter-spacing: 0.12em; margin-bottom: 10px; }
.policy-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.policy-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.policy-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.policy-tags span {
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 2px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 2px;
  color: var(--text-muted);
}
.policy-posture {
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-left: 3px solid var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 28px;
  margin-bottom: 48px;
}
.policy-posture h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.policy-posture p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; max-width: 720px; }
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.comp-item { background: var(--bg-base); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; transition: background 0.2s; }
.comp-item:hover { background: var(--bg-card-hover); }
.comp-code { font-size: 11px; color: var(--text-primary); font-weight: 700; letter-spacing: 0.08em; }
.comp-item span:last-child { font-size: 0.82rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════ */
.contact-section { background: var(--bg-base); border-top: 1px solid var(--bg-border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-left h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 16px;
}
.contact-left > p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  width: fit-content;
}
.contact-link-btn:hover { background: var(--accent-mid); }
.contact-link-btn.outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--bg-border-hi);
}
.contact-link-btn.outline:hover { border-color: var(--text-primary); background: var(--bg-surface); }
.contact-right { background: var(--bg-surface); border: 1px solid var(--bg-border); border-radius: var(--radius-lg); padding: 36px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.cf-group { display: flex; flex-direction: column; gap: 6px; }
.cf-group label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
.cf-group input, .cf-group select, .cf-group textarea {
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  width: 100%;
}
.cf-group input:focus, .cf-group select:focus, .cf-group textarea:focus { outline: none; border-color: var(--text-primary); }
.contact-success { text-align: center; padding: 48px 24px; }
.contact-success i { font-size: 3rem; color: var(--green-live); margin-bottom: 16px; display: block; }
.contact-success h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.contact-success p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 64px 0 0;
  color: rgba(255,255,255,0.6);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 20px; }
.footer-logo { height: 52px; width: auto; max-width: 200px; filter: brightness(0) invert(1); flex-shrink: 0; object-fit: contain; }
.footer-brand-name { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.05em; color: #ffffff; margin-bottom: 10px; }
.footer-brand-text p { font-size: 0.85rem; color: rgba(255,255,255,0.35); line-height: 1.65; max-width: 420px; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; align-self: end; }
.fm { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 16px; font-size: 14px; }
  .nav-toggle { display: flex; }
  .nav-logo-text { display: none; }
  .smap-access-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 64px 0; }
  .hero-stats-bar { flex-direction: column; }
  .hstat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hstat:last-child { border-bottom: none; }
  .concentration-stats { grid-template-columns: 1fr; }
  .supply-stats { grid-template-columns: 1fr; }
  .yttrium-hero { grid-template-columns: 1fr; gap: 24px; }
  .chain-steps { flex-direction: column; }
  .chain-connector { display: none; }
  .smap-buyers { grid-template-columns: 1fr; }
  .ladder-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .app-process { flex-direction: column; }
  .ap-step { border-right: none; border-bottom: 1px solid var(--bg-border); flex-direction: row; text-align: left; gap: 12px; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .af-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .mat-tabs { width: 100%; }
  .mat-tab { flex: 1; text-align: center; font-size: 11px; padding: 8px 4px; }
}
