@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg-top: #081117;
  --bg-bottom: #0d2028;
  --surface: rgba(11, 27, 35, 0.82);
  --surface-strong: #102731;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(201, 217, 223, 0.14);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4efe8;
  --muted: #bfd0d6;
  --brand: #f0b76d;
  --brand-strong: #d78639;
  --accent: #4dc3b8;
  --accent-soft: rgba(77, 195, 184, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

body.theme-tenderpro {
  --brand: #ffbc73;
  --brand-strong: #df8732;
  --accent: #65cfff;
  --accent-soft: rgba(101, 207, 255, 0.14);
}

body.theme-analytics {
  --brand: #9fdf9c;
  --brand-strong: #58a354;
  --accent: #f7c37f;
  --accent-soft: rgba(247, 195, 127, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(240, 183, 109, 0.2), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(77, 195, 184, 0.18), transparent 24%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-bottom) 58%, #081117 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(6, 14, 18, 0.5);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(6, 14, 18, 0.88);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, #fff0d8 100%);
  box-shadow: 0 0 26px rgba(240, 183, 109, 0.4);
}

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

.nav-links a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

main {
  padding: 48px 0 68px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-panel,
.hero-aside,
.info-card,
.project-card,
.timeline-card,
.subpage-hero,
.policy-article,
.side-panel,
.empty-state {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel,
.subpage-hero {
  padding: clamp(28px, 5vw, 48px);
}

.hero-panel::after,
.subpage-hero::after,
.project-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-panel::after,
.subpage-hero::after {
  top: -110px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(240, 183, 109, 0.28), transparent 70%);
}

.hero-aside {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 20px rgba(240, 183, 109, 0.42);
}

.hero h1,
.subpage-hero h1 {
  margin: 22px 0 18px;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3.1rem, 10vw, 6.4rem);
}

.subpage-hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.hero h1 small,
.subpage-hero .page-subtitle {
  display: block;
  margin-top: 18px;
  max-width: 18em;
  color: var(--muted);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0;
}

.hero-intro,
.subpage-hero p,
.section-copy,
.stat-copy,
.info-card p,
.project-card p,
.timeline-card span,
.highlight p,
.policy-article p,
.policy-article li,
.side-panel p,
.empty-state p {
  color: var(--muted);
  line-height: 1.9;
}

.action-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, #ffe2bc 100%);
  color: #091115;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: linear-gradient(135deg, #ffca8d 0%, #fff0d8 100%);
}

.card-grid,
.stat-stack,
.highlights,
.timeline {
  display: grid;
  gap: 16px;
}

.stat-card,
.highlight,
.timeline-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-label,
.section-kicker,
.highlight span {
  color: var(--muted);
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat-value,
.timeline-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 1.85rem;
  line-height: 1.1;
}

.section {
  margin-top: 84px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section h2 {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
}

.card-grid,
.project-grid,
.highlights,
.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.info-card,
.project-card {
  padding: 26px;
}

.info-card h3,
.highlight strong,
.side-panel h3,
.empty-state h1 {
  margin: 0 0 10px;
}

.project-card::after {
  right: -50px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(77, 195, 184, 0.2), transparent 72%);
}

.project-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card h3 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1;
}

.subtitle {
  margin-top: 10px;
  color: #ffd59f;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--accent-soft);
  color: #b7fff8;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.link-group,
.footer-links,
.utility-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.link-pill,
.utility-links a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.link-pill:hover,
.link-pill:focus-visible,
.utility-links a:hover,
.utility-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.highlights {
  margin-top: 28px;
}

.highlight {
  background: rgba(255, 255, 255, 0.045);
}

.highlight strong {
  font-size: 1.16rem;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.45fr);
  gap: 24px;
  align-items: start;
}

.policy-article {
  padding: 32px;
}

.policy-article h2 {
  margin: 34px 0 12px;
  font-size: 1.45rem;
}

.policy-article h2:first-of-type {
  margin-top: 26px;
}

.policy-article ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.policy-note {
  padding: 18px 20px;
  border: 1px solid rgba(240, 183, 109, 0.22);
  border-radius: 18px;
  background: rgba(240, 183, 109, 0.1);
  color: #ffe8c8;
}

.side-panel {
  position: sticky;
  top: 108px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.side-panel strong {
  color: var(--text);
}

.footer {
  padding: 0 0 54px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.empty-state {
  margin-top: 84px;
  padding: 42px;
  text-align: center;
}

.empty-state h1 {
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: clamp(2.6rem, 7vw, 4rem);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

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

@media (max-width: 980px) {
  .hero,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .highlights,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .header-inner,
  .project-footer,
  .footer-inner {
    align-items: flex-start;
  }

  .nav-links {
    gap: 8px;
  }

  .card-grid,
  .highlights,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-aside,
  .policy-article,
  .side-panel,
  .empty-state {
    padding: 22px;
  }

  .hero-panel,
  .subpage-hero {
    padding: 24px;
  }

  .button,
  .link-pill,
  .utility-links a {
    width: 100%;
  }

  .action-row,
  .link-group,
  .utility-links {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .site-header,
  .nav-links a,
  .link-pill,
  .utility-links a {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
