:root {
  --bg: #f4f7fb;
  --bg-soft: #e8eef6;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #102033;
  --muted: #5f7083;
  --primary: #1f6fa5;
  --primary-light: #2d89c3;
  --primary-dark: #0f3f63;
  --accent: #7b8ea3;
  --border: rgba(155, 176, 199, 0.26);
  --border-strong: rgba(121, 153, 186, 0.36);
  --shadow: 0 24px 60px -34px rgba(17, 45, 72, 0.36);
  --shadow-soft: 0 18px 42px -30px rgba(17, 45, 72, 0.28);
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 165, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%);
}

main {
  flex: 1;
  width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-light);
}

header {
  position: relative;
  overflow: hidden;
  padding: 34px 16px 110px;
  min-height: 320px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(88, 165, 217, 0.22), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(135deg, #0e3557 0%, #16527f 45%, #1f6fa5 100%);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.container {
  width: min(1180px, calc(100vw - 32px));
  margin: -72px auto 0;
  position: relative;
  z-index: 2;
}

.hero {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  align-items: center;
  min-height: 176px;
}

.hero-split {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 28px;
}

.hero-copy {
  display: grid;
  gap: 4px;
  align-content: start;
}

.hero-panel {
  display: grid;
  gap: 14px;
  justify-self: end;
}

.hero .eyebrow {
  margin: 0;
  min-height: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  margin: 0;
  min-height: 68px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero h2 {
  margin: 0;
  max-width: 760px;
  min-height: 0;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero-typing-line {
  margin: 0;
  min-height: 30px;
  font-size: 1.04rem;
  font-weight: 600;
}

.typed-text {
  color: #dbf1ff;
}

.typed-cursor {
  display: inline-block;
  margin-left: 4px;
  color: #dbf1ff;
  animation: typing-cursor 0.9s infinite;
}

@keyframes typing-cursor {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

.hero-actions,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-pill,
.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.hero-stat {
  padding: 0;
  border: none;
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  font-size: 1.38rem;
  font-weight: 800;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.74);
}

.site-nav {
  margin-bottom: 22px;
}

.site-nav + section,
.site-nav + .grid,
.site-nav + .card {
  margin-top: 42px;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  margin-left: auto;
  margin-bottom: 12px;
  border: 1px solid rgba(214, 224, 234, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--primary-dark);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  flex-wrap: wrap;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(191, 208, 225, 0.42);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-link:hover {
  transform: translateY(-1px);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(45, 137, 195, 0.28);
}

.tab-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: transparent;
  box-shadow: 0 16px 30px -18px rgba(31, 111, 165, 0.72);
}

.tab-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(214, 224, 234, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

.tab-dropdown:hover .dropdown-menu,
.tab-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.dropdown-link:hover {
  color: var(--primary);
  background: rgba(45, 137, 195, 0.08);
}

.card {
  margin-bottom: 20px;
  padding: 8px 0 18px;
  border-radius: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.highlight {
  border: none;
  background: transparent;
}

.grid {
  display: grid;
  gap: 16px;
}

.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.lead {
  margin: 0 0 16px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.badge.success {
  color: #146b56;
  background: rgba(76, 196, 159, 0.14);
}

.badge.muted {
  color: #607184;
  background: rgba(96, 113, 132, 0.1);
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(159, 184, 209, 0.54);
  background: rgba(234, 242, 251, 0.82);
  color: var(--muted);
}

.info-strip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--primary);
  background: rgba(31, 111, 165, 0.1);
}

.profile-summary {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.profile-photo {
  width: 100%;
  max-width: 228px;
  justify-self: center;
  border-radius: 24px;
  border: 1px solid rgba(194, 214, 234, 0.7);
  box-shadow: 0 24px 44px -32px rgba(17, 45, 72, 0.42);
}

.topic-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(216, 228, 241, 0.92);
  background: var(--surface-strong);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.topic-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 137, 195, 0.38);
  box-shadow: 0 24px 50px -36px rgba(17, 45, 72, 0.42);
}

.topic-card h3,
.card h2,
.card h3 {
  margin: 0 0 8px;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

input,
textarea,
button {
  font-family: inherit;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(183, 202, 223, 0.82);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

textarea {
  min-height: 240px;
  resize: none;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(45, 137, 195, 0.5);
  box-shadow: 0 0 0 4px rgba(45, 137, 195, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 16px 28px -18px rgba(31, 111, 165, 0.72);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -20px rgba(31, 111, 165, 0.72);
  filter: saturate(1.05);
  color: #fff;
}

.btn .bx {
  margin-right: 8px;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(191, 208, 225, 0.42);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.social-link .bx {
  font-size: 1.35rem;
}

.social-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 18px 32px -20px rgba(31, 111, 165, 0.62);
}

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

.actions .btn {
  width: 100%;
}

.cards-equal {
  align-items: stretch;
}

.cards-equal .topic-card {
  min-height: 280px;
  height: 100%;
}

.cards-equal .topic-card .actions {
  margin-top: auto;
  padding-top: 18px;
}

.timeline-card {
  overflow: hidden;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 67px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #cfe0f1 0%, #8ab2d1 100%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.timeline-year {
  position: relative;
  padding-top: 2px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-year::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(31, 111, 165, 0.12);
}

.timeline-content {
  min-width: 0;
}

.form-status {
  min-height: 24px;
  margin-top: 2px;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.success {
  color: #0b7a5b;
}

.form-status.error {
  color: #b11d3f;
}

.btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.footer {
  padding: 26px 12px 34px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.investments-page {
  width: min(1560px, calc(100vw - 32px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.investments-layout {
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(360px, 410px) minmax(0, 1fr);
  align-items: stretch;
}

.investments-shell {
  display: grid;
  height: auto;
}

.investments-info {
  position: sticky;
  top: 20px;
  height: 100%;
}

.investments-copy {
  max-width: 760px;
}

.report-embed {
  width: 100%;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid rgba(216, 228, 241, 0.92);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.report-frame {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 18px;
  background: #f8fbfe;
}

.snake-layout {
  margin-top: 42px;
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
}

.snake-layout > .card {
  margin-bottom: 0;
  align-self: start;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.snake-stage {
  display: grid;
  gap: 14px;
}

.game-stage-header {
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.game-stage-spacer {
  display: none;
}

.game-stage-title {
  margin: 0;
  justify-self: start;
  text-align: left;
  font-size: 1.18rem;
  line-height: 1.1;
  white-space: nowrap;
}

.game-stage-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: nowrap;
  min-width: 0;
}

.game-stage-scoreboard {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.game-lives {
  display: flex;
  align-items: center;
  order: -1;
  flex: 0 0 auto;
  gap: 8px;
  margin-right: 6px;
  min-width: 52px;
}

.game-life-icon {
  font-size: 1.3rem;
  line-height: 1;
  color: #ff4f6f;
  filter: drop-shadow(0 2px 6px rgba(255, 79, 111, 0.22));
}

.game-life-icon.empty {
  color: #b8c5d8;
  filter: none;
}

.game-stage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d4e4fb;
  background: #eef4fb;
  color: #144c73;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.snake-board-shell {
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(57, 151, 211, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(232, 242, 252, 0.95) 0%, rgba(214, 231, 247, 0.88) 100%);
  border: 1px solid #cfe0f1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.snake-board {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid #b9d1e6;
  background: #0c1f30;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 40px -28px rgba(10, 42, 74, 0.42);
}

.snake-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.snake-actions .notice {
  flex: 1 1 260px;
}

.snake-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.control-section {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.game-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 92px));
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
}

.control-btn {
  width: 100%;
  min-height: 74px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 800;
  padding: 0;
  background: linear-gradient(180deg, #2f84be 0%, #1f6eaa 100%);
  border: 1px solid rgba(10, 58, 95, 0.18);
  box-shadow:
    0 16px 26px -18px rgba(19, 93, 148, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.control-btn svg {
  display: block;
  width: 48px;
  height: 48px;
  overflow: visible;
  user-select: none;
  pointer-events: none;
}

.control-btn path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-btn.up {
  grid-column: 2;
}

.control-btn.left {
  grid-column: 1;
  grid-row: 2;
}

.control-btn.down {
  grid-column: 2;
  grid-row: 2;
}

.control-btn.right {
  grid-column: 3;
  grid-row: 2;
}

.snake-actions-panel {
  margin-top: auto;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
}

.game-inline-tip {
  color: var(--muted);
  font-weight: 700;
}

.game-inline-tip-panel {
  width: 100%;
  text-align: center;
  font-size: 0.96rem;
  color: #35556f;
}

.snake-actions-panel .notice,
.snake-actions-panel .game-inline-tip-panel {
  width: 100%;
}

.snake-actions-panel .notice {
  flex: 0 0 auto;
  min-height: 0;
  padding: 16px 18px;
}

@media (max-width: 900px) {
  .investments-layout {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .investments-info {
    position: static;
    height: auto;
  }

  .investments-shell {
    height: auto;
  }

  .report-embed {
    height: auto;
    min-height: 0;
  }

  .snake-layout {
    grid-template-columns: 1fr;
  }

  .snake-layout > .card {
    height: auto;
  }

  .game-stage-header {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .game-stage-meta,
  .game-stage-scoreboard {
    justify-content: center;
  }

  .report-embed {
    padding: 14px;
  }

  .report-frame {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  header {
    padding: 28px 16px 96px;
    min-height: 280px;
  }

  .container {
      width: min(100%, calc(100vw - 20px));
      margin-top: -58px;
    }

  .investments-page {
    width: min(100%, calc(100vw - 20px));
    left: 0;
    transform: none;
  }

  .report-embed {
    padding: 8px;
    border-radius: 18px;
  }

  .report-frame {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    border-radius: 14px;
  }

  .hero,
  .hero-split,
  .profile-summary {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero .eyebrow,
  .hero h1,
  .hero h2 {
    min-height: 0;
  }

  .hero-panel {
    justify-self: stretch;
  }

  .hero-actions,
  .hero-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-pill,
  .hero-actions .btn {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .tabs {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(214, 224, 234, 0.92);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
  }

  .tabs.is-open {
    display: flex;
  }

  .tab-link,
  .tab-dropdown > .tab-link {
    width: 100%;
    justify-content: flex-start;
  }

  .tab-dropdown {
    display: grid;
    gap: 8px;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-left: 28px;
  }

  .timeline-year::after {
    left: -27px;
    right: auto;
  }

  .snake-board-shell {
    padding: 12px;
  }

  .game-stage-title {
    font-size: 1.1rem;
  }

  .game-pad {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    width: 100%;
    max-width: 320px;
  }

  .control-btn {
    min-height: 68px;
    font-size: 1.7rem;
  }

  .control-btn svg {
    width: 44px;
    height: 44px;
  }
}
