/* United Indonesia — Design Tokens from design.md */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-primary:          #DA291C;
  --color-primary-hover:    #C71F14;
  --color-primary-deep:     #A61510;
  --color-on-primary:       #FFFFFF;
  --color-black:            #0B0B0C;
  --color-charcoal:         #141414;
  --color-charcoal-soft:    #1D1D1F;
  --color-ink:              #111111;
  --color-body:             #2A2A2A;
  --color-body-soft:        #5A5A5A;
  --color-white:            #FFFFFF;
  --color-canvas:           #F7F7F5;
  --color-surface:          #FFFFFF;
  --color-surface-muted:    #F1F1EE;
  --color-surface-dark:     #121212;
  --color-surface-dark-el:  #1A1A1A;
  --color-line:             #D9D9D4;
  --color-line-strong:      #B8B8B0;
  --color-on-dark:          #FFFFFF;
  --color-on-dark-soft:     rgba(255,255,255,0.72);
  --color-gold:             #C9A227;
  --color-gold-soft:        #E6D39A;
  --color-success:          #1E7A3B;
  --color-warning:          #B76C00;
  --color-error:            #B42318;

  /* Typography */
  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --spacing-xs:       8px;
  --spacing-sm:       12px;
  --spacing-md:       16px;
  --spacing-lg:       24px;
  --spacing-xl:       32px;
  --spacing-2xl:      48px;
  --section-spacing:  72px;

  /* Radius — sharp editorial, MU-inspired */
  --rounded-none: 0;
  --rounded-sm:   2px;
  --rounded-md:   4px;
  --rounded-lg:   8px;
  --rounded-full: 9999px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-body);
  background: var(--color-canvas);
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-md); }
@media (min-width: 768px) { .container { padding: 0 var(--spacing-xl); } }

/* Typography utilities */
.display-hero {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1.4px;
}
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -1px;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.02;
}
.heading-xl {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
}
.heading-lg  { font-size: 24px; font-weight: 700; line-height: 1.15; }
.heading-md  { font-size: 20px; font-weight: 700; line-height: 1.2; }
.body-lg     { font-size: 18px; line-height: 1.55; }
.body-md     { font-size: 16px; line-height: 1.55; }
.body-sm     { font-size: 14px; line-height: 1.5; }
.caption     { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.label       { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Color utilities */
.text-muted    { color: var(--color-body-soft); }
.text-primary  { color: var(--color-primary); }
.text-gold     { color: var(--color-gold); }
.text-on-dark  { color: var(--color-on-dark); }
.bg-dark       { background: var(--color-surface-dark); color: var(--color-on-dark); }
.bg-black      { background: var(--color-black); color: var(--color-on-dark); }
.bg-primary    { background: var(--color-primary); color: var(--color-on-primary); }

/* Spacing utilities */
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

/* Flex utilities */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.flex-wrap { flex-wrap: wrap; }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--rounded-sm);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-outline-dark {
  background: transparent;
  color: var(--color-on-dark);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-dark:hover { border-color: rgba(255,255,255,0.6); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 12px; }
.btn-link { font-weight: 700; min-height: auto; padding: 0; border: none; }
.btn-link:hover { text-decoration: underline; }

/* Running Text Ticker */
.ticker-bar {
  background: var(--color-gold, #f5c842);
  color: #111;
  padding: 7px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 0;
}
.ticker-label {
  flex-shrink: 0;
  background: #111;
  color: var(--color-gold, #f5c842);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-overflow {
  overflow: hidden;
  flex: 1;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 48px;
}
.ticker-item::after {
  content: '◆';
  margin-left: 48px;
  opacity: 0.4;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Navigation */
.primary-nav {
  background: var(--color-black);
  color: var(--color-on-dark);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-content { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-lg); }
.nav-logo-wrap { display: flex; align-items: center; gap: var(--spacing-sm); flex-shrink: 0; }
.logo-frame {
  width: 42px; height: 42px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--rounded-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px;
  flex-shrink: 0;
}
.logo { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: 0.5px; }
.nav-links {
  display: none;
  align-items: center;
  gap: var(--spacing-lg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-actions { display: flex; align-items: center; gap: var(--spacing-sm); flex-shrink: 0; }
@media (min-width: 960px) { .nav-links { display: flex; } }

/* Section */
.section { padding: var(--section-spacing) 0; }
.section-sm { padding: var(--spacing-2xl) 0; }

/* Card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--rounded-sm);
  overflow: hidden;
}
.card-dark {
  background: var(--color-surface-dark-el);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rounded-sm);
}

/* Divider */
.divider { border: none; border-top: 1px solid var(--color-line); }

/* Placeholder box */
.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--rounded-sm);
  color: var(--color-body-soft);
  font-size: 13px;
  font-weight: 600;
}
.placeholder-box.dark {
  background: var(--color-charcoal);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
}
