/* ============================================================ */
/* 1k2rich.com — v1                                               */
/* design language: pure black, white type, surgical contrast,    */
/* monospace utility, oversized wordmarks, brutalist hierarchy.   */
/* ============================================================ */

:root {
  --bg: #000;
  --fg: #fff;
  --fg-2: #cfcfcf;   /* mid white for body type */
  --fg-3: #6a6a6a;   /* dim white for utility / labels */
  --rule: #1c1c1c;   /* hairline dividers */
  --rule-2: #2a2a2a; /* slightly stronger dividers */
  --accent: #fff;    /* v1: white only. reserved. */

  --serif: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* prevent iOS Safari from auto-scaling text on rotation */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  /* 100vh on iOS Safari includes the URL bar — use dvh for the visible viewport.
     vh fallback for browsers without dvh support. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* respect iPhone notch / dynamic island */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

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

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* utility / monospace label */
.util {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

em {
  font-style: italic;
  color: var(--fg);
}

strike {
  text-decoration-thickness: 1px;
  color: var(--fg-3);
}

/* ============================================================ */
/* TOP BAR                                                        */
/* ============================================================ */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--rule);
  gap: 16px;
}

.top__left, .top__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--fg);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status__dot {
  width: 8px;
  height: 8px;
  background: var(--fg);
  border-radius: 50%;
  animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============================================================ */
/* HERO                                                           */
/* ============================================================ */
.hero {
  padding: clamp(48px, 10vw, 120px) var(--pad) clamp(40px, 7vw, 80px);
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero__kicker {
  margin: 0 0 clamp(28px, 5vw, 56px) 0;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  /* tighter clamp min so 1K/2RICH never overflows narrow phones */
  font-size: clamp(56px, 17vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  /* defense vs any kid of overflow */
  word-break: break-word;
  overflow-wrap: anywhere;
  gap: clamp(8px, 2vw, 24px);
}

.wordmark__sep {
  font-weight: 300;
  color: var(--fg-3);
  font-size: 0.5em;
  align-self: center;
  transform: translateY(-0.05em);
}

.hero__tag {
  margin: clamp(28px, 4vw, 44px) 0 0 0;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.4;
  max-width: 36ch;
  color: var(--fg-2);
}

.hero__tag em {
  font-size: 1.05em;
}

/* ============================================================ */
/* BANKROLL CARD                                                  */
/* ============================================================ */
.bankroll {
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  padding: clamp(20px, 3vw, 32px) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
}

.bankroll__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bankroll__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bankroll__sub {
  color: var(--fg-3);
  font-weight: 400;
}

.bankroll__num--flat {
  color: var(--fg-3);
}

.bankroll__note {
  grid-column: 1 / -1;
  margin: 12px 0 0 0;
}

@media (max-width: 640px) {
  .bankroll { grid-template-columns: 1fr 1fr; }
  .bankroll__note { grid-column: 1 / -1; }
}

/* ============================================================ */
/* CHANNELS                                                       */
/* ============================================================ */
.channels {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad);
  display: flex;
  flex-direction: column;
}

.channel {
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px) 0;
  border-top: 1px solid var(--rule-2);
  transition: background 120ms ease, transform 120ms ease;
}

.channel:last-of-type {
  border-bottom: 1px solid var(--rule-2);
}

.channel:hover {
  background: rgba(255, 255, 255, 0.025);
}

.channel:hover .channel__arrow {
  transform: translateX(6px);
}

.channel__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
}

.channel__label {
  margin-bottom: 6px;
}

.channel__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.01em;
}

.channel__sub {
  color: var(--fg-2);
  font-size: clamp(14px, 1.5vw, 16px);
  margin-top: 4px;
  max-width: 56ch;
}

.channel__arrow {
  font-size: 24px;
  color: var(--fg);
  text-align: right;
  transition: transform 200ms ease;
}

/* placeholder channels — not yet live */
.channel[data-placeholder] {
  cursor: not-allowed;
}

.channel[data-placeholder] .channel__title {
  color: var(--fg-3);
}

.channel[data-placeholder]:hover {
  background: transparent;
}

.channel[data-placeholder]:hover .channel__arrow {
  transform: none;
  color: var(--fg-3);
}

/* ============================================================ */
/* WHAT THIS IS                                                   */
/* ============================================================ */
.what {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad);
  border-top: 1px solid var(--rule);
}

.what__h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 clamp(28px, 4vw, 40px) 0;
}

.what__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.what__grid > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.what__grid p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 38ch;
}

@media (max-width: 640px) {
  .what__grid { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* BUILD PHASE — paper trade history                              */
/* ============================================================ */
.phase {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad);
  border-top: 1px solid var(--rule);
}

.phase__head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.phase__label {
  margin: 0 0 14px 0;
}

.phase__h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 18px 0;
}

.phase__sub {
  margin: 0 0 clamp(24px, 3vw, 32px) 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 64ch;
}

.phase__sub strong {
  color: var(--fg);
  font-weight: 500;
}

.phase__stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(16px, 2vw, 20px) 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}

.phase__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase__stat__val {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.phase__stat__val--up { color: var(--fg); }
.phase__stat__val--down { color: var(--fg-3); }

@media (max-width: 720px) {
  .phase__stats { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
}
@media (max-width: 420px) {
  .phase__stats { grid-template-columns: repeat(2, 1fr); }
}

.trades {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: trade-counter;
}

.trade {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: clamp(16px, 2vw, 22px) 0;
  border-top: 1px solid var(--rule-2);
}

.trade:last-child {
  border-bottom: 1px solid var(--rule-2);
}

.trade__date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trade__day {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--fg);
  letter-spacing: 0.04em;
  line-height: 1;
}

.trade__dt {
  margin-top: 2px;
}

.trade__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.trade__head {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.trade__side {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border: 1px solid var(--fg);
  color: var(--fg);
  line-height: 1;
}

.trade__side--put {
  background: var(--bg);
  color: var(--fg);
}

.trade__side--call {
  background: var(--fg);
  color: var(--bg);
}

.trade__contract {
  color: var(--fg-2);
}

.trade__exit {
  margin-left: auto;
  color: var(--fg-3);
}

.trade__note {
  font-size: clamp(14px, 1.4vw, 15px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 64ch;
}

.trade__pnl {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}

.trade__pnl__val {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1;
}

.trade__pnl__bank {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}

.trade--win .trade__pnl__val {
  color: var(--fg);
}

.trade--loss .trade__pnl__val {
  color: var(--fg-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.trade--worst .trade__pnl__val {
  color: var(--fg-3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--fg);
}

.trade--manual .trade__exit {
  font-style: italic;
}

.phase__after {
  margin: clamp(28px, 4vw, 40px) 0 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--fg-2);
  max-width: 60ch;
}

.ws-nowrap { white-space: nowrap; }

@media (max-width: 680px) {
  .trade {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "date pnl"
      "main main";
    row-gap: 12px;
  }
  .trade__date { grid-area: date; }
  .trade__pnl { grid-area: pnl; }
  .trade__main { grid-area: main; }
  .trade__exit { margin-left: 0; }
}

/* ============================================================ */
/* SOON — roadmap stickers                                        */
/* ============================================================ */
.soon {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad);
  border-top: 1px solid var(--rule);
}

.soon__h {
  margin: 0 0 clamp(20px, 3vw, 28px) 0;
}

.soon__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.soon__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}

.soon__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bg);
  background: var(--fg);
  padding: 2px 8px;
}

/* ============================================================ */
/* FOOTER                                                         */
/* ============================================================ */
.foot {
  margin-top: auto;
  padding: clamp(32px, 5vw, 56px) var(--pad);
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.foot__rule {
  height: 1px;
  background: var(--fg);
  margin: 0 0 clamp(24px, 3vw, 32px) 0;
  opacity: 1;
}

.foot__discl {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--fg-3);
  max-width: 76ch;
  margin: 0 0 clamp(20px, 3vw, 28px) 0;
}

.foot__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================ */
/* RESPONSIVE TWEAKS                                              */
/* ============================================================ */
@media (max-width: 540px) {
  .top__left .util { display: none; }   /* hide est. text on tight screens */
  .wordmark__sep { display: none; }     /* tighten wordmark on small screens */
  .wordmark { gap: 4px; }
}
