:root {
  --logo-navy: #1b224b;
  --logo-navy-deep: #111938;
  --logo-blue: #1269ae;
  --logo-blue-strong: #0c4f8a;
  --paper: #eef3fb;
  --soft-blue: #e3edf9;
  --surface: #ffffff;
  --ink: #1d2a49;
  --ink-soft: #405987;
  --line: rgba(27, 34, 75, 0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 16px 34px rgba(17, 31, 58, 0.12);
  --shadow-hero: 0 24px 56px rgba(7, 14, 30, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f4f8ff 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 19px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 25, 56, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  text-decoration: none;
  color: #f1f5fb;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: auto;
  height: 60px;
  display: block;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 4px 8px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-main {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1;
}

.brand-sub {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  color: rgba(241, 245, 251, 0.76);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: rgba(241, 245, 251, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  border-bottom: 1px solid transparent;
  padding: 8px 2px;
  transition: color 220ms ease, border-color 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #7dc0f5;
  border-bottom-color: #7dc0f5;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(18, 105, 174, 0.48);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% -20%, rgba(46, 149, 231, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(17, 25, 56, 0.98), rgba(18, 60, 104, 0.92));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 11px
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #f2f6ff;
  padding: 2.5rem 0 3rem;
}

.hero-comparison-image {
  width: min(980px, 95vw);
  display: block;
  margin: 1.1rem auto 0;
  border-radius: 14px;
  border: 1px solid rgba(17, 44, 81, 0.22);
  box-shadow: var(--shadow-soft);
  background: #ffffff;
}

.chart-disclaimer {
  margin: 0.8rem auto 0;
  width: min(980px, 95vw);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: left;
  color: var(--ink-soft);
}

.overview-chart-block {
  margin-top: 1rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-width: 224px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn-primary {
  color: #f3f8ff;
  background: linear-gradient(180deg, #2a82cb, var(--logo-blue-strong));
  box-shadow: var(--shadow-hero);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
}

.btn-secondary {
  color: #f2f6ff;
  border: 1px solid rgba(242, 246, 255, 0.52);
  background: rgba(255, 255, 255, 0.07);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.section {
  padding: 4.4rem 0;
}

.section-light {
  background: rgba(255, 255, 255, 0.88);
}

.section-soft-blue {
  background: rgba(227, 237, 249, 0.85);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  border-top: 4px solid var(--logo-blue);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.kpi-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.kpi-value {
  margin-top: 0.35rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header-left {
  text-align: left;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--logo-blue-strong);
}

.section-header h2 {
  margin-top: 0.58rem;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  color: var(--ink);
}

.fund-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.fund-summary,
.fund-table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.fund-summary {
  padding: 1.25rem 1.3rem 1.38rem;
}

.summary-list {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.summary-list div {
  border-top: 1px solid var(--line);
  padding-top: 0.66rem;
}

.summary-list dt {
  font-weight: 700;
  color: var(--ink);
}

.summary-list dd {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.fund-table-wrap {
  overflow: auto;
}

.fund-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.fund-table th,
.fund-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.fund-table th {
  width: 48%;
  background: rgba(227, 237, 249, 0.78);
  font-weight: 700;
  color: var(--ink);
}

.fund-table td {
  color: var(--ink-soft);
}

.pillar-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card,
.doc-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.32rem 1.14rem;
}

.pillar-card h3,
.doc-card h3 {
  color: #1e3f72;
  font-size: 1.48rem;
}

.pillar-card p,
.doc-card p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.doc-card a {
  display: inline-block;
  margin-top: 0.72rem;
  text-decoration: none;
  color: var(--logo-blue-strong);
  font-weight: 700;
  border-bottom: 1px solid rgba(12, 79, 138, 0.28);
}

.doc-card a:hover,
.doc-card a:focus-visible {
  color: #08406f;
  border-bottom-color: rgba(8, 64, 111, 0.5);
}

.site-footer {
  background: linear-gradient(180deg, #141e42, #0f1838);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-inner {
  text-align: center;
  color: #edf3ff;
  padding: 1.72rem 0 2rem;
}

.footer-inner a {
  color: #9fd3fb;
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
}

.fine-print {
  margin-top: 0.24rem;
  font-size: 0.92rem;
  color: rgba(237, 243, 255, 0.82);
}

.chat-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 20px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f2f7ff;
  background: linear-gradient(180deg, #2a82cb, var(--logo-blue-strong));
  box-shadow: 0 16px 30px rgba(8, 20, 42, 0.35);
  cursor: pointer;
}

.chat-toggle:hover,
.chat-toggle:focus-visible {
  transform: translateY(-1px);
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 60;
  width: min(420px, calc(100vw - 24px));
  max-height: min(650px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(17, 43, 81, 0.22);
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(7, 17, 34, 0.32);
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-header {
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, var(--logo-navy), var(--logo-blue-strong));
  color: #f3f8ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-header h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
}

.chat-header p {
  font-size: 0.9rem;
  color: rgba(243, 248, 255, 0.85);
}

.chat-close {
  border: 1px solid rgba(243, 248, 255, 0.35);
  background: transparent;
  color: #f3f8ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.84rem;
  cursor: pointer;
}

.chat-close:hover,
.chat-close:focus-visible {
  background: rgba(243, 248, 255, 0.14);
}

.chat-messages {
  padding: 0.9rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f3f8ff;
}

.chat-message {
  max-width: 92%;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.chat-message.bot {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(17, 42, 78, 0.15);
  color: #203c6b;
}

.chat-message.user {
  align-self: flex-end;
  background: #173f75;
  color: #f6faff;
}

.chat-message.bot a {
  color: #0f4f8a;
  font-weight: 700;
}

.chat-chips {
  padding: 0.75rem 0.75rem 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
}

.chat-chip {
  border: 1px solid rgba(17, 44, 81, 0.22);
  background: #e9f2fc;
  color: #23416f;
  font-size: 0.83rem;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.chat-chip:hover,
.chat-chip:focus-visible {
  background: #d7e7fa;
}

.chat-form {
  padding: 0.7rem 0.75rem 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: #ffffff;
}

.chat-form input {
  min-height: 44px;
  border: 1px solid rgba(17, 44, 81, 0.26);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 0.95rem;
}

.chat-form button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f2f7ff;
  background: linear-gradient(180deg, #2a82cb, var(--logo-blue-strong));
  cursor: pointer;
}

.chat-note {
  margin: 0;
  padding: 0 0.75rem 0.8rem;
  font-size: 0.82rem;
  color: #476291;
  background: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fund-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body {
    font-size: 18px;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 82px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.55rem 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 12px;
    padding-bottom: 0.36rem;
  }

  .brand-logo {
    height: 52px;
  }

  .hero-inner {
    text-align: left;
    padding: 1.8rem 0 2.4rem;
  }

  .hero-comparison-image {
    margin-left: 0;
    margin-right: 0;
    width: min(880px, 100%);
  }

  .chart-disclaimer {
    width: min(880px, 100%);
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .pillar-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1140px, 94vw);
  }

  .section {
    padding: 3.6rem 0;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 48px;
  }

  .btn {
    width: 100%;
  }

  .chart-disclaimer {
    font-size: 0.7rem;
  }

  .chat-toggle {
    right: 10px;
    bottom: 10px;
  }

  .chat-panel {
    right: 10px;
    bottom: 74px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 96px);
  }

  .fund-table {
    min-width: 520px;
  }

  .fund-table th {
    width: 36%;
  }
}
