:root {
  --ink: #07192f;
  --ink-soft: #2b405a;
  --green: #1d63c7;
  --green-bright: #4aa3ff;
  --gold: #f4c95d;
  --paper: #f6f8f6;
  --line: #dbe5df;
  --white: #ffffff;
  --danger: #c43939;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(219, 229, 223, 0.88);
  background: rgba(246, 248, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand img,
.site-footer img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  padding: 10px 0;
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
}

.header-action,
.primary-button {
  background: var(--green-bright);
  color: #062015;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(720px, 86vh, 900px);
  overflow: hidden;
  background: #07140f;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 15, 0.96) 0%, rgba(7, 20, 15, 0.78) 42%, rgba(7, 20, 15, 0.25) 100%),
    linear-gradient(0deg, rgba(7, 20, 15, 0.70) 0%, rgba(7, 20, 15, 0.05) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 86px);
  padding: 64px 0 88px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 5.4vw, 5.2rem);
  line-height: 0.97;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

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

.income-strip span {
  padding: 9px 12px;
  border: 1px solid rgba(74, 163, 255, 0.36);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(6, 32, 21, 0.64);
  font-size: 0.86rem;
  font-weight: 800;
}

.ticker-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-item {
  padding: 26px clamp(18px, 4vw, 42px);
  background: var(--white);
}

.ticker-item strong {
  display: block;
  color: var(--green);
  font-size: 2.1rem;
  line-height: 1;
}

.ticker-item span {
  color: var(--ink-soft);
  font-weight: 700;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1.28fr);
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto 44px;
}

.section-heading h2,
.portfolio-content h2,
.retirement-section h2 {
  max-width: 860px;
}

.compact {
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 28px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.method-grid article,
.retirement-cards article,
.allocation-panel,
.watchlist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.method-grid article {
  min-height: 270px;
  padding: 26px;
}

.method-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
}

.method-grid p,
.portfolio-content p,
.retirement-cards p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.portfolio-section {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
  background: #07192f;
  color: var(--white);
}

.portfolio-content {
  max-width: 720px;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.allocation-panel {
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.allocation-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 9px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.allocation-row:first-child {
  margin-top: 0;
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-bright), var(--gold));
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

.quote-widget {
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tradingview-widget-container,
.tradingview-widget-container__widget {
  width: 100%;
  min-height: 680px;
}

.watchlist {
  align-self: start;
  overflow: hidden;
}

.watch-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.watch-tabs button {
  min-height: 48px;
  border: 0;
  background: #eef4f0;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.watch-tabs button.active {
  background: var(--green);
  color: var(--white);
}

.asset-list {
  display: grid;
}

.asset-row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.asset-row:last-child {
  border-bottom: 0;
}

.asset-row strong {
  font-size: 0.98rem;
}

.asset-row small {
  color: #61746b;
  font-weight: 700;
}

.asset-tag {
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef4f0;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.hidden {
  display: none;
}

.retirement-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(320px, 1.16fr);
  gap: 34px;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
  background: #edf3ef;
}

.retirement-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.retirement-cards article {
  padding: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: 250px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.site-footer small {
  color: #61746b;
  font-weight: 700;
}

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

  .method-grid,
  .retirement-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-layout,
  .retirement-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .watchlist {
    align-self: stretch;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 8px 16px;
  }

  .brand img {
    width: 176px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 20, 15, 0.97) 0%, rgba(7, 20, 15, 0.88) 64%, rgba(7, 20, 15, 0.48) 100%),
      linear-gradient(0deg, rgba(7, 20, 15, 0.78) 0%, rgba(7, 20, 15, 0.08) 45%);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 48px 0 72px;
  }

  h1 {
    max-width: 14ch;
    font-size: 2.2rem;
    line-height: 1.04;
  }

  .hero-copy {
    max-width: 34ch;
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 230px;
  }

  .primary-button,
  .secondary-button {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .income-strip {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    max-width: 230px;
  }

  .ticker-band,
  .section-heading,
  .method-grid,
  .portfolio-section,
  .retirement-cards {
    grid-template-columns: 1fr;
  }

  .method-grid article {
    min-height: auto;
  }

  .quote-widget,
  .tradingview-widget-container,
  .tradingview-widget-container__widget {
    min-height: 620px;
  }

  .asset-row {
    grid-template-columns: 72px 1fr;
  }

  .asset-tag {
    grid-column: 2;
    width: fit-content;
  }
}
