:root {
  --bg: #0A0B0E;
  --panel: #12141A;
  --panel-2: #1A1D26;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --accent: #00D4AA;
  --accent-soft: rgba(0, 212, 170, 0.15);
  --border: rgba(0, 212, 170, 0.2);
  --radius: 14px;
  --gap: 1.25rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 1.25rem 2rem;
  background: rgba(18, 20, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-icon {
  width: 1.4em;
  height: 1.4em;
  display: inline-block;
}

.site-header nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); font-weight: 500; }
.site-header nav a.cta {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #0A0B0E;
}

main { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }

.hero { text-align: center; padding: 3rem 1rem 4rem; }
.hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero .accent { color: var(--accent); }
.hero .lede { color: var(--muted); max-width: 720px; margin: 0 auto 1rem; font-size: 1.1rem; }
.hero .lede strong { color: var(--text); }
.hero .lede + .hero-cta { margin-top: 2rem; }

.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.preview { margin-top: 2rem; }
.preview h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.preview-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.preview-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.preview-card--wide { grid-column: 1 / -1; }
.preview-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.preview-card h3 { font-family: 'Sora', sans-serif; font-size: 1.05rem; }
.preview-tag {
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}
.preview-chart {
  width: 100%;
  height: auto;
  display: block;
}
.preview-big {
  font-family: 'Sora', sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.preview-big-unit {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.4rem;
}
.preview-foot { color: var(--muted); font-size: 0.85rem; }

.alloc-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel-2);
}
.alloc-seg { display: block; height: 100%; }
.seg-stocks { background: #00D4AA; }
.seg-bonds  { background: #5B8DEF; }
.seg-re     { background: #F2C94C; }
.seg-cash   { background: #94A3B8; }

.alloc-legend {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.alloc-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alloc-legend li b {
  margin-left: auto;
  color: var(--text);
  font-weight: 600;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}

.features, .download { margin-top: 4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, background .15s ease;
}
.btn.primary { background: var(--accent); color: #0A0B0E; }
.btn.primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: var(--accent-soft); text-decoration: none; }
.btn.is-disabled,
.btn[disabled] {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

.features h2, .download h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.grid article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.grid h3 { font-family: 'Sora', sans-serif; font-size: 1.15rem; margin-bottom: 0.5rem; }
.grid p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.grid article .btn,
.grid article .badge { margin-top: auto; align-self: flex-start; }
.grid code {
  background: var(--panel-2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.site-footer {
  margin-top: 5rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-sep {
  color: var(--muted);
  opacity: 0.6;
}

.footer-attrib {
  margin: 0;
}
