:root {
  --bg: #0f1117;
  --bg-alt: #161920;
  --surface: #1e2130;
  --surface-2: #262a3a;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --text: #f0f0f5;
  --text-muted: #8b8fa3;
  --text-dim: #5a5e73;
  --positive: #22c55e;
  --negative: #ef4444;
  --border: rgba(255,255,255,0.06);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15,17,23,0.8);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 80%);
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* HERO CARDS */
.hero-right { position: relative; }
.hero-card-stack { position: relative; height: 340px; }
.hero-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
}
.hero-card-back {
  width: 88%;
  height: 88%;
  top: 0;
  right: 0;
  transform: rotate(2deg) translateY(20px);
  opacity: 0.5;
}
.hero-card-front {
  width: 88%;
  height: 88%;
  bottom: 0;
  left: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,166,35,0.1);
  background: linear-gradient(135deg, #1e2130 0%, #161920 100%);
}
.card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.card-dot.green { background: var(--positive); }
.card-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.card-value-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.card-main-value { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.card-change { font-size: 13px; font-weight: 500; }
.card-change.positive { color: var(--positive); }
.card-change.negative { color: var(--negative); }
.card-sparkline { height: 40px; }
.card-sparkline svg { width: 100%; height: 100%; }
.card-live {
  margin-left: auto;
  background: var(--positive);
  color: #0f1117;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.card-bars { display: flex; flex-direction: column; gap: 10px; }
.card-bar-group { display: grid; grid-template-columns: 50px 1fr 36px; align-items: center; gap: 10px; }
.card-bar-label { font-size: 11px; color: var(--text-muted); }
.card-bar-track { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.card-bar-fill { height: 100%; background: var(--text-dim); border-radius: 2px; }
.card-bar-fill.accent { background: var(--accent); }
.card-bar-fill.muted { background: var(--text-dim); }
.card-bar-pct { font-size: 11px; color: var(--text-muted); text-align: right; }

/* HOLDINGS */
.holdings { padding: 80px 48px; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.holdings-inner { max-width: 900px; margin: 0 auto; }
.holdings-header { text-align: center; margin-bottom: 48px; }
.holdings-title { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.holdings-sub { color: var(--text-muted); font-size: 16px; }
.holdings-table { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.holdings-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 12px; }
.holdings-row:last-child { border-bottom: none; }
.holdings-row-head { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; padding: 12px 24px; background: var(--bg-alt); }
.holdings-asset { display: flex; align-items: center; gap: 12px; }
.holdings-coin {
  width: 32px; height: 32px; border-radius: 8px; background: var(--accent-dim);
  color: var(--accent); font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; letter-spacing: 0.02em;
}
.holdings-coin.blue { background: rgba(59,130,246,0.1); color: #60a5fa; }
.holdings-coin.amber { background: rgba(245,166,35,0.1); color: #f5a623; }
.holdings-coin.green { background: rgba(34,197,94,0.1); color: #22c55e; }
.holdings-coin.muted { background: rgba(139,143,163,0.1); color: var(--text-muted); }
.holdings-asset span { font-size: 14px; font-weight: 500; color: var(--text); }
.holdings-type {
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 6px; display: inline-block;
}
.holdings-type.crypto { background: rgba(34,197,94,0.1); color: #22c55e; }
.holdings-type.stock { background: rgba(96,165,250,0.1); color: #60a5fa; }
.holdings-type.etf { background: rgba(245,166,35,0.1); color: #f5a623; }
.holdings-type.bond { background: rgba(139,143,163,0.1); color: var(--text-muted); }
.holdings-value { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 600; }
.holdings-change { font-size: 13px; font-weight: 500; }
.holdings-change.positive { color: var(--positive); }
.holdings-change.negative { color: var(--negative); }
.holdings-change.muted { color: var(--text-muted); }
.holdings-bar-wrap { display: flex; align-items: center; gap: 10px; }
.holdings-bar { height: 4px; background: var(--accent); border-radius: 2px; min-width: 4px; }
.holdings-bar.blue { background: #60a5fa; }
.holdings-bar.amber { background: #f5a623; }
.holdings-bar.green { background: #22c55e; }
.holdings-bar.muted { background: var(--text-dim); }
.holdings-bar-wrap span { font-size: 11px; color: var(--text-muted); }
.holdings-note { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-dim); }

/* FEATURES */
.features { padding: 100px 48px; }
.features-header { text-align: center; margin-bottom: 64px; }
.features-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(245,166,35,0.2); transform: translateY(-2px); }
.feature-icon { margin-bottom: 20px; }
.feature-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* PLATFORMS */
.platforms { padding: 80px 48px; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.platforms-inner { max-width: 900px; margin: 0 auto; }
.platforms-header { text-align: center; margin-bottom: 48px; }
.platforms-title { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.platforms-sub { color: var(--text-muted); font-size: 16px; }
.platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}
.platform-card:hover { border-color: rgba(245,166,35,0.2); }
.platform-info h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.platform-info p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* CLOSING */
.closing {
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(245,166,35,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.closing-content { position: relative; z-index: 1; }
.closing-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.closing-sub { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; }
.footer-copy { font-size: 12px; color: var(--text-dim); }

/* DASHBOARD */
.dashboard {
  min-height: 100vh;
  padding: 100px 48px 60px;
  display: flex;
  flex-direction: column;
}
.dashboard-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.summary-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.summary-value {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.summary-value.positive { color: var(--positive); }
.summary-value.negative { color: var(--negative); }
.alloc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dashboard-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 120px;
}
.form-group label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input,
.form-select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b8fa3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.form-submit {
  background: var(--accent);
  color: #0f1117;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.form-submit:hover { opacity: 0.85; }
.btn-refresh {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
}
.btn-refresh:hover { border-color: var(--accent); color: var(--text); }
.holdings-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.holdings-pnl { display: flex; flex-direction: column; gap: 2px; }
.holdings-pct { font-size: 11px; color: var(--text-muted); }
.btn-delete {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.btn-delete:hover { border-color: var(--negative); color: var(--negative); }
.delete-form { display: flex; align-items: center; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: 1fr; }
  .holdings-row { grid-template-columns: 2fr 1fr 1fr; }
  .holdings-row-head span:nth-child(n+4),
  .holdings-row span:nth-child(4),
  .holdings-row span:nth-child(5) { display: none; }
  .holdings-row-head span:nth-child(4) { display: none; }
}
@media (max-width: 600px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .holdings { padding: 60px 24px; }
  .features { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .platforms { padding: 60px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 20px 24px; flex-direction: column; gap: 8px; align-items: flex-start; }
  .hero-stats { gap: 16px; }
  .hero-stat-value { font-size: 24px; }
}