/* ==========================================================================
   U31 OFFICIAL PORTAL — MASTER DESIGN TOKENS & BASE SYSTEM
   Theme: Imperial Metropolis Night Skyline & Liquid 24K Bullion Vault
   ========================================================================== */

:root {
  --bg-obsidian: #070709;
  --bg-metropolis: #100F14;
  --surface-vault: #17151C;
  --surface-elevated: #201D27;
  --surface-glass: rgba(16, 15, 20, 0.88);

  --gold-24k: #FACC15;
  --gold-champagne: #FEF08A;
  --gold-bullion: #EAB308;
  --gold-amber: #D97706;
  --gold-bronze: #854D0E;

  --cyan-metric: #22D3EE;
  --cyan-deep: #0E7490;
  --cyan-tint: rgba(34, 211, 238, 0.12);

  --emerald-ok: #34D399;
  --crimson-warn: #F87171;

  --text-primary: #FAFAFA;
  --text-secondary: #D4D4DC;
  --text-muted: #9E9EAE;
  --ink-on-gold: #120E05;

  --border-gold-subtle: rgba(250, 204, 21, 0.24);
  --border-gold-medium: rgba(250, 204, 21, 0.44);
  --border-gold-strong: rgba(250, 204, 21, 0.72);
  --border-cyan-subtle: rgba(34, 211, 238, 0.36);

  --grad-bullion-btn: linear-gradient(135deg, #FEF08A 0%, #FACC15 48%, #D97706 100%);
  --grad-beveled-gold: linear-gradient(180deg, #FEF9C3 0%, #FACC15 46%, #CA8A04 86%, #854D0E 100%);
  --grad-vault-card: linear-gradient(160deg, #1C1924 0%, #100E15 100%);
  --grad-gold-ribbon: linear-gradient(90deg, rgba(180, 83, 9, 0.25) 0%, #FACC15 15%, #FEF08A 50%, #EAB308 85%, rgba(180, 83, 9, 0.25) 100%);

  --shadow-gold-glow: 0 10px 32px rgba(250, 204, 21, 0.22);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.55);

  --font-heading: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w: 1260px;
  --gutter: 32px;
  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(980px 460px at 50% -6%, rgba(250, 204, 21, 0.13), transparent 68%),
    radial-gradient(rgba(250, 204, 21, 0.065) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-champagne);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold-24k);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan-metric);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.05rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.12rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.14rem, 1.7vw, 1.38rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(52px, 6.5vw, 84px) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-metropolis) 0%, var(--bg-obsidian) 100%);
  border-top: 1px solid rgba(250, 204, 21, 0.14);
  border-bottom: 1px solid rgba(250, 204, 21, 0.14);
}

.gold-gradient-text {
  background: var(--grad-beveled-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cyan-text {
  color: var(--cyan-metric);
  font-family: var(--font-mono);
  font-weight: 700;
}

.sec-header {
  margin-bottom: clamp(28px, 4vw, 42px);
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid var(--border-gold-medium);
  color: var(--gold-champagne);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sec-title-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.sec-title-bar::before {
  content: '';
  width: 6px;
  height: 30px;
  border-radius: 4px;
  background: var(--grad-bullion-btn);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.55);
  flex-shrink: 0;
}

.sec-desc {
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.skyline-divider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
