:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f0f4fa;
  --text: #1a2332;
  --muted: #5c6b82;
  --border: rgba(26, 35, 50, 0.12);
  --primary: #2563eb;
  --primary-2: #3b82f6;
  --shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans",
    sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 20% 0%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(900px 450px at 90% 20%, rgba(59, 130, 246, 0.05), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  color: var(--text);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  text-decoration: none;
}

.nav-link.is-active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 240px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--panel-2);
}

.btn:active {
  transform: translateY(0px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, var(--primary));
}

.btn-ghost {
  background: transparent;
}

.hero {
  padding: 64px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--panel);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page {
  padding: 34px 0 44px;
}

.page-title {
  margin: 10px 0 18px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.01em;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 14px 0;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.dl {
  margin: 0;
}

.dl-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.dl-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(26, 35, 50, 0.35);
  backdrop-filter: blur(6px);
}

.modal {
  width: min(640px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(26, 35, 50, 0.18);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-weight: 800;
}

.modal-body {
  padding: 6px 14px 14px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}

@media (max-width: 720px) {
  .brand {
    min-width: auto;
  }
  .header-actions {
    min-width: auto;
  }
  .brand-sub {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .dl-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
