:root {
  color-scheme: dark;
  --background: #0c0f12;
  --surface: #151a1f;
  --surface-soft: #1b2127;
  --surface-strong: #222a31;
  --border: #303a43;
  --text: #f3f6f7;
  --muted: #a8b1b8;
  --accent: #45c4a0;
  --accent-2: #f0b84a;
  --danger: #ff7d7d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(69, 196, 160, 0.14), transparent 26rem),
    radial-gradient(circle at top right, rgba(240, 184, 74, 0.11), transparent 24rem),
    linear-gradient(180deg, #10151a 0%, var(--background) 42%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header,
main,
footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

main a {
  color: var(--accent);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(69, 196, 160, 0.62);
  border-radius: 8px;
  background: rgba(69, 196, 160, 0.13);
  color: var(--accent);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--surface-strong);
  color: var(--text);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 7vw, 5.2rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-grid,
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.top-ticker {
  width: 100%;
  min-height: 58px;
  margin: 0 0 18px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-copy,
.profile-hero > div,
.hero-panel,
.contact-panel,
.panel,
.ticker-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(21, 26, 31, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.hero-copy,
.profile-hero > div {
  min-height: 340px;
  padding: clamp(24px, 5vw, 44px);
}

.hero-panel,
.contact-panel {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
}

.hero-panel h2 {
  font-size: clamp(2.4rem, 7vw, 4rem);
}

.mini-stats {
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mini-stats strong {
  font-size: 0.95rem;
  line-height: 1.4;
}

.mini-stats a {
  color: var(--text);
  text-decoration: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button-link,
.ghost-link,
.text-link {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.button-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
}

.button-link {
  border: 1px solid rgba(69, 196, 160, 0.72);
  background: rgba(69, 196, 160, 0.14);
}

.ghost-link {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
}

.ticker-section {
  min-height: 74px;
  margin-bottom: 18px;
  overflow: hidden;
}

.opportunity-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
}

.opportunity-panel h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.opportunity-panel p {
  max-width: 820px;
}

.dashboard-layout,
.about-layout {
  display: grid;
  gap: 18px;
}

.dashboard-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.about-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.main-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.span-2 {
  grid-column: span 2;
}

.panel {
  background: rgba(21, 26, 31, 0.88);
}

.market-panel,
.profile-panel,
.compact-panel {
  padding: 22px;
}

.market-panel {
  min-height: 640px;
}

.cards-only {
  align-items: start;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(240, 184, 74, 0.42);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.82rem;
  white-space: nowrap;
}

.compact-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.chart-frame {
  height: 550px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
}

.chart-frame .tradingview-widget-container {
  height: 100%;
}

.side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.compact-panel h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  min-height: 52px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.usage-grid div {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.usage-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.usage-grid strong {
  font-size: 1.45rem;
}

.usage-note {
  margin-top: 12px;
  font-size: 0.88rem;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.link-list a:hover {
  border-color: rgba(69, 196, 160, 0.82);
  background: rgba(69, 196, 160, 0.08);
}

.note-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.opportunity-inline {
  border-color: rgba(69, 196, 160, 0.45);
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-item p {
  margin-bottom: 0;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.skill-grid li {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.88rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .profile-hero,
  .dashboard-layout,
  .about-layout,
  .opportunity-panel {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .hero-copy,
  .profile-hero > div {
    min-height: auto;
  }

  .market-panel {
    min-height: auto;
  }

  .chart-frame {
    height: 520px;
  }
}

@media (max-width: 540px) {
  .site-header,
  main,
  footer {
    width: min(100% - 22px, 1200px);
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .hero-copy,
  .profile-hero > div,
  .hero-panel,
  .contact-panel,
  .opportunity-panel,
  .market-panel,
  .compact-panel,
  .profile-panel {
    padding: 16px;
  }

  .focus-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-frame {
    height: 500px;
  }
}
