:root {
  color-scheme: light dark;
  --ink: #102a43;
  --muted: #63736d;
  --bg: #f7f5f0;
  --surface: #fffefa;
  --surface-soft: #fcfaf5;
  --line: #dce5e0;
  --navy: #0b1418;
  --blue: #7aa7f8;
  --sage: #88cdb2;
  --gold: #f2c879;
  --rose: #e7a3b5;
  --mint: #83ddb3;
  --emerald: #1f7a62;
  --shadow: 0 24px 70px rgba(11, 20, 24, 0.12);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f0e7;
  --muted: #a7b4ae;
  --bg: #0b1418;
  --surface: #13211e;
  --surface-soft: #172622;
  --line: #30443d;
  --navy: #08111f;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(131, 221, 179, 0.20), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(122, 167, 248, 0.14), transparent 28rem),
    var(--bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.05em;
  font-size: 21px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 12px 26px rgba(31, 122, 98, 0.18);
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(7, 26, 51, 0.12);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  border: 0;
  color: #102a43;
  background: linear-gradient(135deg, var(--mint), #d7f4c8);
  box-shadow: 0 16px 30px rgba(31, 122, 98, 0.2);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(11, 20, 24, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover { transform: translateY(-1px); }

.button.dark {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.hero {
  padding: 72px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  color: var(--emerald);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.055em; line-height: 1.02; }
h1 { font-size: clamp(44px, 7vw, 78px); }
h2 { font-size: clamp(34px, 4.7vw, 54px); }
h3 { font-size: 22px; }

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero p { font-size: 19px; max-width: 660px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.product-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-soft) 84%, transparent));
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -36% 42%;
  height: 150px;
  background: radial-gradient(circle, rgba(134, 217, 174, 0.18), transparent 68%);
  pointer-events: none;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.mini-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  border-radius: 20px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
  border: 1px solid var(--line);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.bars { display: grid; gap: 13px; margin-top: 24px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 900; color: var(--muted); }
.track { height: 12px; border-radius: 999px; background: rgba(7, 26, 51, 0.08); overflow: hidden; }
.fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--sage)); }
.fill.gold { background: linear-gradient(90deg, var(--sage), var(--gold)); }
.fill.rose { background: linear-gradient(90deg, var(--gold), var(--rose)); }

.visual-stack {
  display: grid;
  gap: 16px;
}

.chart-card {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 16px 46px rgba(7, 26, 51, 0.08);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.chart-head strong {
  display: block;
  font-size: 15px;
}

.chart-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.portfolio-mock {
  transform: rotate(0.001deg);
}

.app-chart {
  margin-top: 2px;
  padding: 18px;
}

.app-chart .gain {
  padding: 7px 10px;
  border-radius: 999px;
  color: #1f7a62;
  background: rgba(136, 205, 178, 0.18);
  border: 1px solid rgba(136, 205, 178, 0.26);
}

.app-chart svg {
  display: block;
  width: 100%;
  height: 156px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(16, 32, 51, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, 0.045) 1px, transparent 1px);
  background-size: 100% 25%, 20% 100%;
}

.app-chart .area { fill: url(#lineFill); }

.app-chart .dividend-area { fill: url(#dividendFill); }

.app-chart .report-area { fill: url(#reportFill); }

.app-chart .dash-area { fill: url(#dashFill); }

.app-chart .line {
  fill: none;
  stroke: var(--sage);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 16px rgba(31, 122, 98, 0.20));
}

.app-chart .blue-line {
  stroke: #1769ff;
  filter: drop-shadow(0 10px 18px rgba(23, 105, 255, 0.20));
}

.dashboard-section {
  padding-top: 16px;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 28px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: var(--shadow);
}

.dash-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 1000;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.dashboard-left,
.dashboard-right {
  display: grid;
  gap: 14px;
}

.dash-overview,
.holding-tile,
.range-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(11, 20, 24, 0.05);
}

.dash-overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(160px, 0.6fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(131, 221, 179, 0.14), transparent 18rem),
    color-mix(in srgb, var(--surface) 88%, transparent);
}

.dash-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #1769ff;
  background: rgba(122, 167, 248, 0.18);
  font-size: 28px;
}

.dash-overview span {
  color: #1769ff;
  display: block;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-overview strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.07em;
}

.dash-stats {
  display: grid;
  gap: 8px;
}

.dash-stats b {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(136, 205, 178, 0.18);
  border: 1px solid rgba(136, 205, 178, 0.26);
}

.dash-stats b.blue {
  background: rgba(122, 167, 248, 0.18);
  border-color: rgba(122, 167, 248, 0.26);
}

.dash-stats em {
  color: var(--emerald);
  font-style: normal;
}

.dash-stats .blue em {
  color: #1769ff;
}

.holding-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.holding-tile > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #248a3d;
  background: rgba(136, 205, 178, 0.18);
  font-size: 22px;
  font-weight: 900;
}

.holding-tile.down > span {
  color: #d70015;
  background: rgba(231, 163, 181, 0.22);
}

.holding-tile.up > span {
  color: #ff3b1f;
  background: rgba(232, 153, 141, 0.18);
}

.holding-tile strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.05em;
}

.holding-tile small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.holding-tile > b {
  font-size: 18px;
  text-align: right;
}

.dash-chart {
  margin: 0;
  border-radius: 26px;
  min-height: 330px;
}

.dash-chart svg {
  height: 210px;
}

.range-card {
  padding: 22px;
}

.range-card h3 {
  margin-bottom: 6px;
}

.range-card p {
  margin: 0 0 18px;
  font-size: 14px;
}

.range-row {
  display: grid;
  grid-template-columns: 74px minmax(120px, 1fr) 44px;
  gap: 12px;
  align-items: center;
  margin-top: 13px;
  font-size: 13px;
  font-weight: 900;
}

.range-track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a8c6fb, #1769ff, #5856d6);
}

.range-track i {
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  border: 4px solid #1769ff;
  border-radius: 999px;
  background: var(--surface);
}

.range-row span {
  padding: 5px 8px;
  border-radius: 10px;
  color: #32598f;
  background: rgba(136, 205, 178, 0.16);
}

.report-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.logo.small {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.report-metrics {
  margin-bottom: 14px;
}

.report-chart {
  box-shadow: none;
  margin-bottom: 14px;
}

.report-chart svg {
  height: 130px;
}

.report-bars {
  display: grid;
  gap: 12px;
}

.sparkline {
  height: 118px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(7, 26, 51, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 26, 51, 0.045) 1px, transparent 1px);
  background-size: 100% 33%, 18% 100%;
}

.sparkline i {
  flex: 1;
  min-width: 8px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--sage), var(--blue));
  opacity: 0.92;
}

.donut {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  margin: 4px auto 18px;
  background: conic-gradient(var(--blue) 0 42%, var(--sage) 42% 71%, var(--gold) 71% 88%, var(--rose) 88% 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 18px 38px rgba(7, 26, 51, 0.12);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
}

.donut span {
  position: absolute;
  inset: 38px;
  z-index: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--ink);
  font-size: 23px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.donut small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.allocation-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(122, 167, 248, 0.11), transparent 14rem),
    color-mix(in srgb, var(--surface) 86%, transparent);
}

.legend {
  display: grid;
  gap: 9px;
}

.legend div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.legend b {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
}

.report-preview {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-soft) 70%, transparent));
  border: 1px solid var(--line);
}

.report-preview .line {
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 26, 51, 0.09);
  margin-top: 10px;
}

.report-preview .line.short { width: 58%; }

.sections { padding: 48px 0; }

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

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

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

.card {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(7, 26, 51, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 134, 247, 0.26);
  box-shadow: 0 20px 48px rgba(7, 26, 51, 0.1);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(74, 134, 247, 0.12);
  color: var(--blue);
  font-weight: 1000;
  margin-bottom: 18px;
}

.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature-list li { color: var(--muted); line-height: 1.5; }
.feature-list li::before { content: "✓"; color: #1f7a62; font-weight: 1000; margin-right: 8px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: start;
}

.quote {
  padding: 28px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(134, 217, 174, 0.22), transparent 20rem),
    linear-gradient(135deg, #0b1418, #13211e);
  box-shadow: var(--shadow);
}

.quote p { color: rgba(255,255,255,0.78); }

.faq { display: grid; gap: 12px; }
details {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
}

details p { margin-bottom: 0; font-size: 15px; }

.cta {
  margin-top: 42px;
  margin-bottom: 22px;
  padding: 38px;
  border-radius: 34px;
  color: white;
  background:
    radial-gradient(circle at 12% 10%, rgba(134, 217, 174, 0.24), transparent 24rem),
    linear-gradient(135deg, #0b1418, #172622);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta p { color: rgba(255,255,255,0.74); }

.cta::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -100px;
  border-radius: 999px;
  background: rgba(134, 217, 174, 0.13);
}

.cta > * {
  position: relative;
  z-index: 1;
}

.footer {
  padding: 36px 0 44px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: space-between;
}

.footer a { font-weight: 800; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f0e7;
    --muted: #a7b4ae;
    --bg: #0b1418;
    --surface: #13211e;
    --surface-soft: #172622;
    --line: #30443d;
  }
  .product-card, .card, .chart-card, details, .pill { background: color-mix(in srgb, var(--surface) 82%, transparent); }
  .metric { background: rgba(255,255,255,0.045); }
  .donut::after { background: var(--surface); }
  .report-preview { background: color-mix(in srgb, var(--surface) 90%, transparent); }
}

@media (max-width: 860px) {
  .wrap { width: min(100% - 32px, 1120px); }
  .nav-inner { min-height: 64px; }
  .links a:not(.button) { display: none; }
  .links { gap: 10px; }
  .theme-toggle { display: none; }
  .hero { padding: 44px 0 30px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 26px; }
  .dashboard-preview { grid-template-columns: 1fr; padding: 14px; border-radius: 24px; }
  .dash-overview { grid-template-columns: auto minmax(0, 1fr); }
  .dash-stats { grid-column: 1 / -1; }
  .holding-tile { grid-template-columns: auto minmax(0, 1fr); }
  .holding-tile > b { grid-column: 2; text-align: left; font-size: 16px; }
  .dash-chart { min-height: auto; }
  .dash-chart svg { height: 170px; }
  .range-row { grid-template-columns: 66px minmax(90px, 1fr) 42px; gap: 8px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .product-card, .card, .cta { border-radius: 24px; padding: 20px; }
  .cta { margin-top: 28px; margin-bottom: 18px; }
  p, .hero p { font-size: 16px; line-height: 1.55; }
  .sections { padding: 34px 0; }
}
