@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700;900&display=swap');

:root {
  --gd-dark-blue: #040066;
  --gd-dark-blue-digital: #03004D;
  --gd-light-blue: #00d4ff;
  --gd-blue: #0000ff;
  --grey-50: #f7f8f9;
  --grey-100: #e5e5e5;
  --grey-300: #c7c7c7;
  --grey-700: #4c4c4c;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --font: "Noto Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--grey-50);
}

.gd-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero / Brand Stage ---------- */
.gd-hero {
  position: relative;
  background: var(--gd-dark-blue);
  overflow: hidden;
  padding: 40px 24px 56px;
}

/* Key Visual: radial "circle + ring" motif, bled off two edges, per B26-B29 */
.gd-hero::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -18%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gd-light-blue) 0%, var(--gd-dark-blue) 72%);
  opacity: 0.9;
}
.gd-hero::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -18%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.55);
}

.gd-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.gd-wordmark {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 28px;
  color: var(--gd-white, #fff);
}
.gd-mark-g, .gd-mark-d {
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gd-mark-g { border-right: none; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gd-mark-d { border-left: none; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gd-mark-plus { color: #fff; font-weight: 900; font-size: 16px; margin: 0 -2px; z-index: 1; }
.gd-wordmark-text {
  margin-left: 10px;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: 0.2px;
}

.gd-hero-title {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 0 14px;
}
.gd-hero-subtitle {
  color: #cfe6ff;
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

/* ---------- Main content ---------- */
.gd-main {
  max-width: 1180px;
  width: 100%;
  margin: -28px auto 0;
  padding: 0 24px 48px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.filter-bar {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 15px 0 rgba(17, 12, 46, 0.12);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.filter-control {
  min-width: 200px;
  flex: 1 1 200px;
}
.filter-control label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.gd-button-ghost {
  background: transparent;
  border: 1px solid var(--grey-300);
  color: var(--gd-dark-blue);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  padding: 9px 16px;
  cursor: pointer;
  height: 38px;
}
.gd-button-ghost:hover { border-color: var(--gd-dark-blue); background: var(--grey-50); }

/* ---------- KPI row ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-tile {
  background: var(--gd-dark-blue);
  border-radius: 10px;
  padding: 18px 20px;
  color: #fff;
}
.kpi-value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.kpi-label { font-size: 12px; color: #b9c6ff; margin-top: 6px; }

/* ---------- Tabs ---------- */
.gd-tabs .tab-container {
  border-bottom: none !important;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.gd-tab {
  font-family: var(--font) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 10px 18px !important;
  margin-right: 0 !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.gd-tab:hover {
  background: rgba(4, 0, 102, 0.06) !important;
  color: var(--gd-dark-blue) !important;
}
.gd-tab--selected {
  color: #fff !important;
  background: var(--gd-dark-blue) !important;
  box-shadow: 0 4px 10px rgba(4, 0, 102, 0.25);
}
.gd-tab--selected:hover {
  background: var(--gd-dark-blue) !important;
  color: #fff !important;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 860px) {
  .chart-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

.chart-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--grey-100);
  padding: 18px 20px 8px;
}
.chart-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
.chart-subtitle { font-size: 12px; color: var(--text-secondary); margin: 0 0 8px; line-height: 1.4; }

/* ---------- Vertical comparison tab ---------- */
.vc-note { margin-top: 16px; margin-bottom: 4px; }
.vc-section-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 28px 0 0; }
.chart-grid--single { grid-template-columns: 1fr; }
.kpi-value--text { font-size: 15px; line-height: 1.3; }

/* ---------- Dropdown brand touch-up ---------- */
.gd-dropdown .Select-control,
.gd-dropdown .select-control { border-radius: 6px; }
.gd-dropdown .VirtualizedSelectFocusedOption,
.gd-dropdown .Select--single > .Select-control .Select-value,
.gd-dropdown .Select.is-focused > .Select-control { border-color: var(--gd-dark-blue) !important; }

/* ---------- Hero topline / guide button ---------- */
.gd-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.gd-hero-topline .gd-wordmark { margin-bottom: 0; }
.gd-button-ghost--light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.gd-button-ghost--light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- User guide modal ---------- */
.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.guide-overlay--hidden { display: none; }
.guide-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.guide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--grey-100);
}
.guide-modal-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--gd-dark-blue); }
.guide-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
}
.guide-close-btn:hover { color: var(--gd-dark-blue); }
.guide-modal-body { padding: 20px 24px 28px; overflow-y: auto; }
.guide-lead { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 20px; }
.guide-section { margin-bottom: 22px; }
.guide-section-title { font-size: 15px; font-weight: 700; color: var(--gd-dark-blue); margin: 0 0 6px; }
.guide-section-intro { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 10px; }
.guide-chart-list { display: flex; flex-direction: column; gap: 4px; }
.guide-chart { font-size: 13px; line-height: 1.5; }
.guide-chart-title { font-weight: 700; color: var(--text-primary); }
.guide-chart-desc { color: var(--text-secondary); }

/* ---------- Lead gate ---------- */
.lead-gate-overlay { align-items: center; z-index: 200; }
.lead-gate-modal { max-width: 420px; }
.lead-gate-body { padding: 32px 28px; text-align: center; }
.lead-gate-title { font-size: 19px; font-weight: 700; margin: 0 0 8px; color: var(--gd-dark-blue); }
.lead-gate-subtitle { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 20px; }
.lead-gate-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  margin-bottom: 8px;
}
.lead-gate-input:focus { outline: none; border-color: var(--gd-dark-blue); }
.lead-gate-error { font-size: 12px; color: #c0271e; min-height: 16px; margin-bottom: 8px; text-align: left; }
.lead-gate-submit {
  width: 100%;
  background: var(--gd-dark-blue) !important;
  color: #fff !important;
  border-color: var(--gd-dark-blue) !important;
  height: 42px;
  margin-bottom: 0;
}
.lead-gate-submit:hover { background: var(--gd-dark-blue-digital) !important; }

/* ---------- Footer ---------- */
.gd-footer {
  background: var(--gd-dark-blue);
  color: #cfe6ff;
  text-align: center;
  padding: 22px 16px;
  font-size: 12px;
}
.gd-footer p { margin: 2px 0; }
.gd-footer-note { color: #8fa7e0; }
