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

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9ff;
  --bg-tint: #eef4ff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 24px 50px rgba(37, 99, 235, 0.12);
  --shadow-md: 0 14px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --container: 1460px;
  --font: "Segoe UI", Arial, sans-serif;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.07), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(96, 165, 250, 0.12), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 54%, #eef4ff 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
}

.page-shell,
.header-container,
.main-content {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.main-content {
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
  margin-left: auto;
}

.hamburger-menu .bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0b1f58;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.logo-link {
  width: 172px;
  height: 54px;
  display: block;
  background: url("/home/assets/brand/logo-dark.png") left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.divider-line {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.sub-brand-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  color: #1f2937;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #eff6ff;
  color: var(--primary);
}

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

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.mobile-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
  white-space: nowrap;
}

.mobile-login-link:hover {
  background: var(--primary-hover);
}

.header-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.header-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.header-btn,
.primary-btn {
  padding: 11px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
}

.header-btn:hover,
.primary-btn:hover {
  background: var(--primary-hover);
}

.secondary-btn {
  padding: 11px 18px;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.secondary-btn:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

.mobile-mega-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-mega-menu.open {
  display: block;
}

.mobile-mega-menu ul {
  list-style: none;
  padding: 8px 24px 20px;
}

.mobile-mega-menu li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

.alert-banner {
  background: #17368c;
  color: #dbeafe;
  text-align: center;
  font-size: 0.92rem;
  padding: 11px 24px;
}

.alert-banner a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section-label {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.hero-visual,
.stat-card,
.section-card,
.timeline-card,
.feature-card,
.cta-panel,
.visual-card,
.service-card,
.highlight-card,
.info-card,
.contact-summary,
.contact-card,
.form-panel,
.map-panel,
.search-surface,
.article-card,
.topic-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-lg);
}

.cta-panel {
  border-radius: 28px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-panel h3 {
  font-size: 1.6rem;
  color: #0b1f58;
  margin-bottom: 8px;
}

.cta-panel p {
  color: var(--muted);
  max-width: 760px;
}

.body-html-section {
  padding-bottom: 18px;
}

.body-html-surface {
  padding: 28px;
}

.support-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-stage-copy {
  margin-top: 14px;
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 48px 0 30px;
}

.footer-brand-copy {
  color: var(--muted);
  max-width: 320px;
  margin-top: 16px;
}

.footer-title {
  font-size: 0.9rem;
  color: #0b1f58;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 34px;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .right-nav {
    display: none;
  }

  .header-container {
    gap: 14px;
  }

  .logo-group {
    min-width: 0;
    gap: 10px;
  }

  .mobile-header-actions {
    display: inline-flex;
  }

  .hamburger-menu {
    display: inline-flex;
    margin-left: 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .header-container,
  .main-content {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-container {
    min-height: 64px;
    gap: 6px;
  }

  .logo-link {
    width: 110px;
    height: 35px;
  }

  .divider-line {
    height: 16px;
  }

  .sub-brand-text {
    min-width: 0;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-header-actions {
    gap: 6px;
    flex: 0 0 auto;
  }

  .mobile-login-link {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
  }

  .hamburger-menu {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  }

  .hamburger-menu .bar {
    width: 14px;
  }

  .cta-panel,
  .hero-visual,
  .section-card,
  .timeline-card,
  .visual-card,
  .service-card,
  .contact-summary,
  .contact-card,
  .form-panel,
  .map-panel,
  .search-surface,
  .topic-card,
  .article-card,
  .body-html-surface {
    padding: 22px;
  }
}
