@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --ui-scale: 1;
  --bg: #050505;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --card-bg: rgba(255, 255, 255, 0.03);
  --border-gold: rgba(255, 200, 100, 0.15);
  --border: rgba(255, 200, 100, 0.15);
  --border-strong: rgba(245, 193, 93, 0.28);
  --text: #ffffff;
  --muted: #b0b0b0;
  --teal: #f5c15d;
  --teal-strong: #ff9f2f;
  --gold: #f5c15d;
  --gold-strong: #ff9f2f;
  --accent-gold: #f5c15d;
  --accent-gold-strong: #ff9f2f;
  --danger: #ff8f8f;
  --shadow:
    0 0 0 1px rgba(255, 200, 100, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(255, 200, 100, 0.03);
  --shadow-strong:
    0 0 0 1px rgba(255, 200, 100, 0.16),
    0 14px 50px rgba(0, 0, 0, 0.72),
    inset 0 0 28px rgba(255, 200, 100, 0.06);
  --surface-highlight: linear-gradient(180deg, rgba(255, 214, 135, 0.08), rgba(255, 255, 255, 0));
}

@media (min-width: 701px) {
  :root {
    --ui-scale: 0.8;
  }
}

@media (min-width: 461px) and (max-width: 700px) {
  :root {
    --ui-scale: 0.9;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.6 "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 180, 60, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.06), transparent 50%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

a {
  color: inherit;
}

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

.landing-shell {
  position: relative;
  width: min(calc(1280px / var(--ui-scale)), calc((100vw - 32px) / var(--ui-scale)));
  min-height: calc(100vh / var(--ui-scale));
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 0 calc(72px + env(safe-area-inset-bottom));
  transform: scale(var(--ui-scale));
  transform-origin: top left;
  isolation: isolate;
}

.landing-shell::before,
.landing-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(14px);
}

.landing-shell::before {
  top: 110px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 193, 93, 0.12), transparent 70%);
}

.landing-shell::after {
  right: -60px;
  bottom: 120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 159, 47, 0.08), transparent 72%);
}

.landing-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(245, 193, 93, 0.08) 1px, transparent 0),
    linear-gradient(115deg, rgba(255, 200, 100, 0.03), transparent 40%, rgba(255, 200, 100, 0.02) 70%, transparent 100%);
  background-size: 18px 18px, 100% 100%;
  opacity: 0.35;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 88%);
}

.topbar,
.hero,
.card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background:
    var(--surface-highlight),
    var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.hero::before,
.card::before,
.topbar::before,
.join-modal-card::before,
.hero-panel::before,
.metric-card::before,
.community-item::before,
.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 210, 120, 0.08), transparent 32%, transparent 70%, rgba(255, 210, 120, 0.04) 100%);
}

.hero:hover,
.card:hover,
.hero-panel:hover,
.metric-card:hover,
.community-item:hover,
.highlight-card:hover,
.join-modal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 193, 93, 0.24);
  box-shadow: var(--shadow-strong);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: #000000;
  box-shadow: 0 0 24px rgba(66, 95, 255, 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions,
.hero-actions,
.hero-microcopy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease;
}

.ghost-link:hover,
.primary-link:hover {
  transform: scale(1.03);
}

.ghost-link {
  border: 1px solid rgba(255, 200, 100, 0.25);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 200, 100, 0.04);
}

.ghost-link:hover {
  border-color: rgba(245, 193, 93, 0.45);
  background: rgba(245, 193, 93, 0.08);
  box-shadow: 0 10px 30px rgba(245, 193, 93, 0.12);
}

.primary-link {
  border: 1px solid rgba(255, 208, 125, 0.62);
  background: linear-gradient(135deg, #f5c15d, #ff9f2f);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255, 170, 50, 0.35);
}

.primary-link:hover {
  box-shadow: 0 12px 32px rgba(255, 170, 50, 0.5);
}

.primary-link.large,
.ghost-link.large {
  min-height: 50px;
  padding: 0 22px;
}

.primary-link.full-width {
  width: 100%;
  margin-top: 18px;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(3, 10, 14, 0.72);
  backdrop-filter: blur(10px);
}

.join-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.join-modal-card {
  width: min(560px, 100%);
  padding: 26px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(180deg, rgba(255, 220, 160, 0.05), rgba(255, 255, 255, 0)),
    rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(255, 200, 100, 0.15);
  box-shadow: var(--shadow);
}

.join-modal-card .field {
  display: grid;
  gap: 8px;
}

.join-modal-card .field-label {
  color: var(--muted);
  font-size: 13px;
}

.join-modal-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 200, 100, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.join-modal-card input:focus {
  outline: none;
  border-color: rgba(245, 193, 93, 0.65);
  box-shadow: 0 0 0 3px rgba(245, 193, 93, 0.14);
}

.legal-corner-link {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 200, 100, 0.14);
  color: var(--muted);
  text-decoration: none;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.legal-corner-link:hover {
  transform: scale(1.03);
  border-color: rgba(245, 193, 93, 0.45);
  color: var(--text);
  background: rgba(245, 193, 93, 0.08);
  box-shadow: 0 18px 44px rgba(245, 193, 93, 0.12);
}

.landing-footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-bottom: 8px;
}

.social-profile-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 12px 14px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 200, 100, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 200, 100, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.34);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.social-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 210, 120, 0.08), transparent 36%, rgba(255, 210, 120, 0.035));
}

.social-profile:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 193, 93, 0.36);
  background:
    linear-gradient(135deg, rgba(245, 193, 93, 0.095), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 0 1px rgba(255, 200, 100, 0.08),
    0 22px 54px rgba(245, 193, 93, 0.1);
}

.social-avatar,
.social-copy {
  position: relative;
  z-index: 1;
}

.social-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #050505;
  background: linear-gradient(135deg, #f5c15d, #ff9f2f);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(255, 170, 50, 0.22);
}

.social-avatar svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.social-copy strong,
.social-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-copy strong {
  font-size: 14px;
}

.social-copy span {
  color: var(--muted);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.92fr);
  gap: 24px;
  margin-top: 22px;
  padding: 28px;
  border-radius: 20px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 193, 93, 0.16), transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font: 500 12px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #f5c15d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text,
.section-heading p,
.panel-footnote,
.disclosure-copy {
  color: var(--muted);
  line-height: 1.6;
}

.hero-text {
  max-width: 62ch;
  margin-bottom: 24px;
  font-size: 16px;
}

.hero-microcopy {
  margin-top: 18px;
}

.app-note {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 54ch;
}

.hero-microcopy span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 100, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font: 500 12px/1.2 "IBM Plex Mono", monospace;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 20px;
  overflow: hidden;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(180deg, rgba(255, 214, 135, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 193, 93, 0.3);
  box-shadow:
    0 0 0 1px rgba(255, 214, 135, 0.14),
    0 18px 50px rgba(0, 0, 0, 0.72),
    inset 0 0 26px rgba(245, 193, 93, 0.06);
}

.hero-panel h2,
.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.metrics-grid,
.results-layout,
.grid-layout,
.highlight-grid {
  display: grid;
  gap: 16px;
}

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

.metric-card,
.outcome-card,
.community-item,
.highlight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 100, 0.15);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.26s ease,
    background 0.26s ease;
}

.metric-card small,
.community-item small,
.highlight-card p {
  color: var(--muted);
}

.metric-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 500 11px/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-value {
  margin: 14px 0 8px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-mode {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 200, 100, 0.08);
  box-shadow: 0 0 12px rgba(255, 180, 60, 0.25);
  position: relative;
}

.metric-mode::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 180, 60, 0.28);
}

.metric-mode.simulated {
  background: rgba(255, 159, 47, 0.12);
}

.metric-mode.simulated::after {
  background: var(--gold-strong);
}

.results-strip,
.grid-layout {
  margin-top: 22px;
}

.results-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  margin-top: 18px;
}

.section-heading.compact h2 {
  font-size: 26px;
}

.card {
  padding: 22px;
  border-radius: 20px;
}

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

.panel-header h3,
.panel-header h2 {
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font: 500 11px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pill.live {
  color: #1d1300;
  background: linear-gradient(135deg, rgba(245, 193, 93, 0.96), rgba(255, 159, 47, 0.92));
}

.status-pill.simulated {
  color: #1d1300;
  background: rgba(255, 233, 187, 0.88);
}

.outcome-feed,
.community-feed,
.stack-column {
  display: grid;
  gap: 12px;
}

.outcome-card,
.community-item {
  display: grid;
  gap: 8px;
}

.outcome-header,
.community-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.outcome-name,
.community-name {
  font-size: 18px;
  font-weight: 700;
}

.outcome-pnl,
.trade-pnl {
  font: 700 20px/1 "IBM Plex Mono", monospace;
}

.gain {
  color: #d6ef9b;
  text-shadow: 0 0 10px rgba(245, 193, 93, 0.16);
}

.loss {
  color: var(--danger);
}

.panel-footnote {
  margin: 14px 0 0;
  font-size: 13px;
}

.grid-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 200, 100, 0.1);
}

th {
  color: var(--muted);
  font: 500 11px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  color: var(--text);
  font-size: 14px;
}

tbody tr {
  transition: background 0.24s ease;
}

tbody tr:hover {
  background: rgba(245, 193, 93, 0.06);
}

.trade-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 200, 100, 0.16);
  color: var(--muted);
  font: 500 11px/1.2 "IBM Plex Mono", monospace;
}

.highlight-grid {
  margin-top: 10px;
}

.highlight-card h3 {
  margin-bottom: 8px;
}

.topbar svg,
.hero svg,
.card svg,
.join-modal-card svg {
  color: var(--gold);
  background: rgba(255, 200, 100, 0.06);
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 0 12px rgba(255, 180, 60, 0.25);
  transition: transform 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}

.topbar svg:hover,
.hero svg:hover,
.card svg:hover,
.join-modal-card svg:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(255, 180, 60, 0.36);
}

.disclosure-card {
  background:
    linear-gradient(180deg, rgba(255, 216, 144, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.connect-card {
  background:
    linear-gradient(180deg, rgba(255, 216, 144, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.connect-copy {
  margin: 0 0 18px;
  color: var(--muted);
}

.disclosure-copy {
  margin-bottom: 0;
}

.loading,
.empty {
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 200, 100, 0.24);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 540ms ease forwards;
}

.fade-up:nth-child(2) { animation-delay: 40ms; }
.fade-up:nth-child(3) { animation-delay: 80ms; }
.fade-up:nth-child(4) { animation-delay: 120ms; }
.fade-up:nth-child(5) { animation-delay: 160ms; }
.fade-up:nth-child(6) { animation-delay: 200ms; }

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .results-layout,
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .deck-spacer {
    display: none;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .landing-shell {
    width: min(100vw - 20px, 100%);
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }

  .topbar,
  .hero,
  .card {
    padding: 18px;
    border-radius: 20px;
  }

  .legal-corner-link {
    left: 14px;
    bottom: 14px;
  }

  .landing-footer {
    justify-content: stretch;
  }

  .social-profile-row,
  .social-profile {
    width: 100%;
  }

  .social-profile {
    min-width: 0;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions,
  .hero-actions {
    width: 100%;
  }

  .ghost-link,
  .primary-link {
    flex: 1 1 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }

  .section-heading h2,
  .hero-panel h2 {
    font-size: 26px;
  }
}

/* TradingView-style visual refresh: preserves the existing landing content and panels. */
:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-soft: #ffffff;
  --bg-elevated: #ffffff;
  --bg-primary: #f7f8fb;
  --bg-secondary: #ffffff;
  --card-bg: #ffffff;
  --border-gold: #e0e3eb;
  --border: #e0e3eb;
  --border-strong: #cfd3dc;
  --text: #131722;
  --muted: #5d6470;
  --teal: #2962ff;
  --teal-strong: #1e53e5;
  --gold: #2962ff;
  --gold-strong: #1e53e5;
  --accent-gold: #2962ff;
  --accent-gold-strong: #1e53e5;
  --danger: #f23645;
  --shadow: none;
  --shadow-strong: 0 18px 46px rgba(19, 23, 34, 0.08);
  --surface-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
}

body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}

body::before,
body::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(760px, 112vh, 980px);
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.84) 0%, rgba(247, 248, 251, 0.7) 34%, rgba(247, 248, 251, 0.28) 60%, rgba(247, 248, 251, 0.02) 100%),
    linear-gradient(180deg, rgba(247, 248, 251, 0.2) 0%, rgba(247, 248, 251, 0.03) 68%, rgba(247, 248, 251, 0.42) 88%, #f7f8fb 100%),
    url("/frontend/icons/background.png");
  background-position: center top, center top, 72% center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.18) contrast(1.04);
}

body::after {
  z-index: 0;
  background:
    radial-gradient(circle at 82% 42%, rgba(41, 98, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(247, 248, 251, 0) 78%, #f7f8fb 100%);
}

.landing-shell {
  width: min(calc(1240px / var(--ui-scale)), calc((100vw - 48px) / var(--ui-scale)));
  margin-left: max(calc((100vw - 1240px) / (2 * var(--ui-scale))), calc(24px / var(--ui-scale)));
  margin-right: max(calc((100vw - 1240px) / (2 * var(--ui-scale))), calc(24px / var(--ui-scale)));
  padding-top: 0;
  padding-bottom: calc(54px + env(safe-area-inset-bottom));
  z-index: 1;
}

.landing-shell::before,
.landing-shell::after,
.landing-noise,
.hero::after,
.hero::before,
.card::before,
.topbar::before,
.join-modal-card::before,
.hero-panel::before,
.metric-card::before,
.community-item::before,
.highlight-card::before {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 auto;
  min-height: 72px;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar,
.hero,
.card,
.hero-panel,
.metric-card,
.community-item,
.highlight-card,
.join-modal-card {
  overflow: visible;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
}

.topbar {
  background: transparent;
  border: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #2962ff;
  box-shadow: none;
}

.brand-copy strong {
  color: var(--text);
  font-size: 19px;
  letter-spacing: 0;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  align-items: center;
  gap: 8px;
}

.ghost-link,
.primary-link {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 750;
  box-shadow: none;
}

.ghost-link {
  border-color: transparent;
  background: transparent;
  color: #2a2e39;
}

.ghost-link:hover {
  border-color: transparent;
  background: #f0f3fa;
  color: var(--gold);
  box-shadow: none;
}

.primary-link {
  border-color: transparent;
  background: #2962ff;
  color: #ffffff;
}

.primary-link:hover {
  background: #1e53e5;
  box-shadow: none;
}

.primary-link.large,
.ghost-link.large {
  min-height: 48px;
  padding: 0 24px;
}

.hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: 56px;
  min-height: 480px;
  margin-top: 0;
  padding: 42px 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero:hover,
.card:hover,
.hero-panel:hover,
.metric-card:hover,
.community-item:hover,
.highlight-card:hover,
.join-modal-card:hover,
.social-profile:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.hero-copy {
  display: grid;
  align-content: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font: 800 13px/1.25 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.hero h1 {
  max-width: 11.8ch;
  margin-bottom: 22px;
  color: #131722;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(28px, 3.95vw, 47px);
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 30px;
  color: #434651;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.42;
}

.hero-actions {
  align-items: center;
  gap: 12px;
}

.hero-microcopy {
  margin-top: 20px;
  gap: 8px;
}

.hero-microcopy span,
.trade-note,
.status-pill,
.metric-mode {
  border-radius: 999px;
  border-color: #e0e3eb;
  background: #f0f3fa;
  color: var(--muted);
  box-shadow: none;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.hero-panel {
  align-self: center;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.hero-panel h2,
.section-heading h2 {
  color: var(--text);
  letter-spacing: 0;
}

.metrics-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.metric-card,
.community-item,
.highlight-card {
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.metric-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.metric-label,
th {
  color: var(--muted);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 750;
}

.metric-value {
  margin: 8px 0 4px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0;
}

.metric-mode::after {
  background: #2962ff;
  box-shadow: none;
}

.results-strip,
.grid-layout {
  margin-top: 18px;
}

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 760px;
}

.section-heading p,
.hero-text,
.panel-footnote,
.disclosure-copy,
.connect-copy,
.metric-card small,
.community-item small,
.highlight-card p,
.app-note {
  color: var(--muted);
}

.results-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 16px;
}

.grid-layout {
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.82fr);
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: 8px;
}

.feature-card,
.community-card,
.tape-card,
.connect-card,
.disclosure-card {
  background: #ffffff;
}

.highlight-grid,
.community-feed,
.stack-column,
.outcome-feed {
  gap: 10px;
}

.panel-header {
  margin-bottom: 14px;
}

.status-pill.live,
.status-pill.simulated {
  min-height: 28px;
  color: var(--gold);
  background: #f0f3fa;
}

.gain {
  color: #089981;
  text-shadow: none;
}

.loss,
.trade-pnl.loss {
  color: var(--danger);
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

table {
  min-width: 720px;
}

th,
td {
  border-bottom-color: #e9edf5;
}

td {
  color: var(--text);
}

tbody tr:hover {
  background: #f7f8fb;
}

.loading,
.empty {
  border-color: #d1d4dc;
  border-radius: 8px;
  background: #f7f8fb;
}

.social-profile {
  border-radius: 8px;
  border-color: var(--border);
  background: #ffffff;
  box-shadow: none;
}

.social-profile::before {
  display: none;
}

.social-avatar {
  border-radius: 8px;
  color: #ffffff;
  background: #2962ff;
  box-shadow: none;
}

.legal-corner-link {
  left: auto;
  right: 24px;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: 0 12px 32px rgba(19, 23, 34, 0.08);
}

.legal-corner-link:hover {
  border-color: #d1d4dc;
  background: #ffffff;
  color: var(--gold);
  box-shadow: 0 12px 32px rgba(19, 23, 34, 0.08);
}

.modal-backdrop {
  background: rgba(19, 23, 34, 0.48);
}

.join-modal-card {
  border-radius: 8px;
}

.join-modal-card input {
  border-color: #d1d4dc;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

.join-modal-card input:focus {
  border-color: #2962ff;
  box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding-top: 42px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(48px, 12vw, 78px);
  }

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

@media (max-width: 720px) {
  .landing-shell {
    width: min(calc((100vw - 20px) / var(--ui-scale)), calc(100% / var(--ui-scale)));
    margin-left: calc(10px / var(--ui-scale));
    margin-right: calc(10px / var(--ui-scale));
  }

  .topbar {
    min-height: auto;
    padding: 12px 0;
  }

  .topbar-actions,
  .hero-actions {
    align-items: stretch;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: clamp(42px, 15vw, 58px);
  }

  .hero-text {
    font-size: 17px;
  }

  .metrics-grid,
  .results-layout,
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .card,
  .metric-card,
  .community-item,
  .highlight-card {
    padding: 18px;
    border-radius: 8px;
  }
}
