/* ============ Tokens ============ */
:root {
  --surface-page: #070707;
  --surface-primary: #171717;
  --surface-raised: #1e1e1e;
  --surface-sunken: #0f0f0f;
  --border-default: #1e1e1e;
  --border-strong: #343434;
  --border-card: #272727;
  --brand: #8a05ff;
  --success: #00b112;
  --error: #ec221f;
  --text-primary: #ffffff;
  --text-secondary: #878787;
  --text-inverse: #070707;

  --font-body: 'Manrope', sans-serif;
  --font-num: 'Space Grotesk', sans-serif;
  --font-display: 'DM Sans', sans-serif;
  --font-logo: 'Funnel Display', sans-serif;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  overflow-x: clip;
}

img { display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
h1, h2, h3 { font-weight: 500; }

.text-gradient {
  background: linear-gradient(90deg, var(--brand) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
}

/* ============ Header (geometry copied from kaveos.com production) ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 350;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--border-strong);
}

.header__inner {
  height: 64px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo { display: flex; align-items: center; }
.header__logo img { width: 94px; height: 32px; display: block; }

.header__cta {
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 20px;
}

.header__actions { display: flex; align-items: center; gap: 12px; }

/* Locale switcher (copied from kaveos.com production) */
.locale { position: relative; }

.locale__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.locale__trigger:hover { border-color: var(--text-secondary); }

.locale__globe { color: var(--text-secondary); }
.locale__code { letter-spacing: 0.02em; }

.locale__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  background: var(--surface-raised);
  border-radius: 14px;
  padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.48);
  list-style: none;
  display: none;
  z-index: 10;
}
.locale--open .locale__dropdown { display: block; }

.locale__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  cursor: pointer;
}
.locale__option:hover { background: #272727; }
.locale__option--active { color: var(--text-secondary); }
.locale__option .locale__check { display: none; }
.locale__option--active .locale__check { display: inline; }

body { padding-top: 65px; }

/* ============ Hero ============ */
.hero { position: relative; }

.hero__canvas {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  height: 650px;
}

.hero__glow {
  position: absolute;
  left: calc(50% + 225px);
  top: 202px;
  width: 300px;
  height: 300px;
  pointer-events: none;
}
.hero__glow img { position: absolute; inset: -240px; width: 780px; height: 780px; max-width: none; }

.hero__content {
  position: absolute;
  left: calc(50% - 604px);
  top: 147px;
  width: 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hero__title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 14;
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -1px;
}

.hero__subtitle {
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--text-secondary);
}

.hero__cta {
  padding: 16px;
  border-radius: 100px;
  font-size: 20px;
  line-height: 28px;
}

/* --- Hero widget --- */
.widget {
  position: absolute;
  left: 50%;
  top: 147px;
  width: 656px;
  height: 316px;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  background: linear-gradient(180deg, #18002e 0%, var(--surface-page) 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget__header { display: flex; align-items: flex-start; gap: 12px; }

.widget__avatar {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.widget__avatar img { width: 100%; height: 100%; object-fit: cover; }

.widget__question {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
}

.widget__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #39200d;
  color: #ff8427;
  font-size: 14px;
  line-height: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}
.widget__badge-icon { width: 16px; height: 16px; }

.widget__body { display: flex; align-items: center; gap: 16px; flex: 1; min-height: 0; }

.widget__left {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget__chance { display: flex; flex-direction: column; gap: 8px; }
.widget__chance-label { font-size: 14px; line-height: 16px; color: var(--text-secondary); }
.widget__chance-row { display: flex; align-items: center; gap: 32px; }
.widget__chance-item { display: flex; align-items: center; gap: 8px; }
.widget__dot { width: 12px; height: 12px; }
.widget__chance-name { font-size: 16px; line-height: 24px; }
.widget__chance-val { font-family: var(--font-num); font-size: 16px; line-height: 24px; }
.widget__chance-val--yes { color: var(--success); }
.widget__chance-val--no { color: var(--error); }

/* Chart */
.chart { position: relative; width: 100%; height: 148px; overflow: hidden; }

.chart__grid {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 148px;
  display: flex;
  flex-direction: column;
}

.chart__rows {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 12px;
}

.chart__row { display: flex; align-items: center; gap: 8px; }
.chart__line { flex: 1; height: 1px; background: var(--border-default); }
.chart__pct {
  width: 56px;
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 14px;
  color: var(--text-secondary);
  text-align: right;
}

.chart__times {
  display: flex;
  gap: 8px;
  overflow: hidden;
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 14px;
  color: var(--text-secondary);
  text-align: center;
}
.chart__times span { width: 80px; flex-shrink: 0; }

.chart__vec { position: absolute; }
.chart__live { left: 0; top: 0; width: 81.82%; height: 148px; }
.chart__green-dot-outer { left: calc(81.82% - 12px); top: 28px; width: 24px; height: 24px; }
.chart__green-dot-inner { left: calc(81.82% - 6px); top: 34px; width: 12px; height: 12px; }
.chart__red-dot-outer { left: calc(81.82% - 12px); top: 78px; width: 24px; height: 24px; }
.chart__red-dot-inner { left: calc(81.82% - 6px); top: 84px; width: 12px; height: 12px; }

/* Widget right column */
.widget__right {
  width: 256px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget__actions { display: flex; flex-direction: column; gap: 12px; }

.widget__vote { display: flex; gap: 8px; }

.btn-vote {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
}
.btn-vote--yes { background: rgba(0, 177, 18, 0.2); color: var(--success); }
.btn-vote--no { background: rgba(236, 34, 31, 0.2); color: var(--error); }

.widget__ratio { display: flex; flex-direction: column; gap: 4px; }
.widget__ratio-bar {
  height: 4px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--success) 64.423%, var(--error) 68.75%);
}
.widget__ratio-labels {
  display: flex;
  gap: 16px;
  font-size: 12px;
  line-height: 14px;
  color: var(--text-secondary);
}
.widget__ratio-labels span { flex: 1; }
.widget__ratio-labels span:last-child { text-align: right; }

/* Predictors card */
.predictors {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.predictors__title { font-size: 12px; line-height: 14px; }

/* Shared column tracks so rows stay aligned whatever the PnL length */
.predictors__table {
  display: grid;
  grid-template-columns: 1fr max-content max-content;
  row-gap: 8px;
  font-size: 12px;
  line-height: 14px;
}

.predictors__head,
.predictors__row {
  display: contents;
}

.predictors__head { color: var(--text-secondary); }
.predictors__row span { transition: opacity 0.2s; }
.predictors__trader { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.predictors__side { min-width: 48px; margin-left: 32px; }
.predictors__pnl { min-width: 48px; margin-left: 12px; text-align: right; font-family: var(--font-num); white-space: nowrap; }
.predictors__head .predictors__pnl { font-family: var(--font-body); }
.predictors__divider { grid-column: 1 / -1; height: 1px; background: var(--border-default); }
.predictors--yes { color: var(--success); }
.predictors--no { color: var(--error); }

/* ============ Stats ============ */
.stats { height: 304px; display: flex; align-items: center; }

.stats__row {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.stats__item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.stats__num { font-family: var(--font-num); font-size: 32px; line-height: 32px; }
.stats__label { font-size: 16px; line-height: 24px; color: var(--text-secondary); }

.stats__sep {
  align-self: stretch;
  width: 2px;
  background: linear-gradient(180deg, rgba(135, 135, 135, 0.1) 0%, #ffffff 49.722%, rgba(135, 135, 135, 0.1) 100%);
}

/* ============ Three steps ============ */
.steps { padding: 120px 24px; }

.steps__title {
  max-width: 1232px;
  margin: 0 auto 64px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -1px;
}

.steps__cards {
  max-width: 1232px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps__row { display: flex; gap: 8px; align-items: stretch; }

.step-card {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  box-shadow: inset 0 0 0 1px var(--border-card);
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  transition: box-shadow 0.35s ease;
}

@media (hover: hover) {
  .step-card:hover {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.22),
      0 0 28px rgba(255, 255, 255, 0.08),
      0 0 64px rgba(255, 255, 255, 0.05);
  }
}

.step-card--wide {
  flex-direction: row;
  gap: 64px;
  align-items: flex-start;
}

.step-card__glow { position: absolute; width: 270px; height: 270px; pointer-events: none; }
.step-card__glow img { position: absolute; inset: -55.56%; width: 211.12%; height: 211.12%; max-width: none; }
.step-card__glow--pick { left: -135px; bottom: -136px; }
.step-card__glow--call { left: -136px; bottom: -119px; }
.step-card__glow--reward { left: 476px; top: 96px; }

.step-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.step-card__text--call { max-width: 384px; }

.step-card__title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 14;
  font-size: 40px;
  line-height: 40px;
  letter-spacing: -1px;
}

.step-card__desc {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: var(--text-secondary);
}

.step-card__demo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

/* Category tabs */
.tabs {
  position: relative;
  display: flex;
  align-items: center;
  width: 580px;
  max-width: 100%;
  overflow: hidden;
}

.tabs__strip {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.5s ease;
}

.tab {
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 100px;
  background: var(--surface-raised);
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tab--active { background: var(--brand); }
.tab__icon { width: 20px; height: 20px; }

.tabs__shadow {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  height: 40px;
  background: linear-gradient(270deg, var(--surface-page) 0%, rgba(30, 30, 30, 0) 106.25%);
}

/* Stacked deck */
.deck {
  position: relative;
  width: 548px;
  max-width: 100%;
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deck__back { position: absolute; height: 80px; border-radius: 20px; }
.deck__back--2 { left: 48px; top: 52px; width: 452px; background: var(--surface-primary); }
.deck__back--1 { left: 24px; top: 40px; width: 500px; background: var(--surface-raised); }

/* Prediction item card */
.prediction-item {
  position: relative;
  width: 100%;
  background: var(--surface-primary);
  border-radius: 20px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prediction-item--resolved { gap: 8px; }

.prediction-item__header { display: flex; align-items: flex-start; gap: 8px; }
.prediction-item__header--center { align-items: center; }

.prediction-item__avatar {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}
.prediction-item__avatar img { width: 100%; height: 100%; object-fit: cover; }

.prediction-item__coin { width: 48px; height: 48px; flex-shrink: 0; }

.prediction-item__question {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 24px;
}
.deck .prediction-item__question { transition: opacity 0.25s; }
.deck .prediction-item__avatar img { transition: opacity 0.25s; }

.prediction-item__footer { display: flex; align-items: center; gap: 4px; width: 100%; }

.prediction-item__users { width: 16px; height: 16px; }
.prediction-item__count { flex: 1; min-width: 0; font-size: 12px; line-height: 14px; }

.live-status { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 14px; }
.live-status__dot { width: 14px; height: 14px; }

.resolved-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 16px;
  flex-shrink: 0;
}
.resolved-status__icon { width: 16px; height: 16px; }

.prediction-item__date { flex: 1; min-width: 0; font-size: 12px; line-height: 14px; color: var(--text-secondary); }
.prediction-item__profit { font-family: var(--font-num); font-size: 24px; line-height: 24px; color: var(--success); }

/* Trade widget (Make your call) */
.trade {
  position: relative;
  width: 100%;
  background: var(--surface-primary);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trade__amount {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface-raised);
}

.trade__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  flex-shrink: 0;
}
.trade__stepper { width: 48px; height: 48px; }
/* "Get rewarded" hover reveal: resolved badge slides in, profit pops */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .prediction-item--resolved .resolved-status {
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .prediction-item--resolved .prediction-item__profit {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
    transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
  }
  .step-card:hover .prediction-item--resolved .resolved-status {
    opacity: 1;
    transform: translateX(0);
  }
  .step-card:hover .prediction-item--resolved .prediction-item__profit {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.trade__stepper--pulse { animation: stepper-pulse 0.55s ease; }
@keyframes stepper-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  35% { transform: scale(1.14); box-shadow: 0 0 16px 2px rgba(255, 255, 255, 0.35); }
  70% { transform: scale(0.96); box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.15); }
}
.trade__stepper img[src*="minus"] { width: 15.5px; height: 1.5px; }
.trade__stepper img[src*="plus"] { width: 15.5px; height: 15.5px; }

.trade__value {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.trade__label { font-size: 12px; line-height: 14px; color: var(--text-secondary); }
.trade__sum { font-family: var(--font-num); font-size: 24px; line-height: 24px; }

.trade__win { display: flex; align-items: center; gap: 8px; }
.trade__win-label { flex: 1; font-size: 16px; line-height: 24px; }
.trade__win-sum { font-family: var(--font-num); font-size: 32px; line-height: 32px; color: var(--success); }

.trade__buttons { display: flex; gap: 8px; }

.btn-trade {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}
.btn-trade--yes { background: var(--success); color: #fff; }
.btn-trade--no { background: rgba(236, 34, 31, 0.2); color: var(--error); }

/* Switcher (Get rewarded) */
.switcher {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 100px;
  background: rgba(241, 241, 241, 0.2);
}

.switcher__seg {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  border-radius: 100px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}
.switcher__seg--active { background: #ffffff; color: var(--text-inverse); }

/* Resolved card footer meta */
.prediction-item__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.resolved-status--footer { display: none; }

/* ============ Markets ============ */
.markets { padding: 120px 24px; }

.markets__title {
  max-width: 1232px;
  margin: 0 auto 64px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -1px;
  text-align: center;
}

.markets__tabs {
  max-width: 1232px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.markets__grid {
  max-width: 1232px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.markets__row { display: flex; gap: 12px; align-items: stretch; }

.market-card {
  flex: 1;
  min-width: 0;
  background: var(--surface-primary);
  border-radius: 20px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-card__header { display: flex; align-items: flex-start; gap: 8px; }

.market-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.market-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.market-card__coins {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}
.market-card__coins img { position: absolute; width: 37.5%; height: 37.5%; border-radius: 50px; }
.market-card__coins img:nth-child(1) { left: 12.5%; top: 12.5%; }
.market-card__coins img:nth-child(2) { left: 50%; top: 12.5%; }
.market-card__coins img:nth-child(3) { left: 12.5%; top: 50%; }
.market-card__coins img:nth-child(4) { left: 50%; top: 50%; }

.market-card__question { flex: 1; min-width: 0; font-size: 16px; line-height: 24px; }

.market-card__body { display: flex; flex-direction: column; gap: 12px; }

.market-card__prob { display: flex; flex-direction: column; gap: 4px; }
.market-card__bar { height: 4px; border-radius: 6px; width: 100%; }
.market-card__labels {
  display: flex;
  gap: 16px;
  font-size: 12px;
  line-height: 14px;
  color: var(--text-secondary);
}
.market-card__labels span { flex: 1; }
.market-card__labels span:last-child { text-align: right; }

.market-card__buttons { display: flex; gap: 8px; }

.market-card__footer { display: flex; align-items: center; gap: 4px; }
.market-card__users { width: 16px; height: 16px; }
.market-card__count { flex: 1; min-width: 0; font-size: 12px; line-height: 14px; }

.markets__cta-wrap { display: flex; justify-content: center; margin-top: 32px; }
.markets__cta {
  padding: 16px;
  border-radius: 100px;
  font-size: 20px;
  line-height: 28px;
}

/* ============ Practice / Real ============ */
.practice { padding: 120px 24px; }

.practice__title {
  max-width: 1232px;
  margin: 0 auto 32px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -1px;
  text-align: center;
}

.practice__subtitle {
  max-width: 692px;
  margin: 0 auto 64px;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--text-secondary);
  text-align: center;
}

.practice__cards {
  max-width: 1232px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.practice-card {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  background: var(--surface-sunken);
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.practice-card__glow {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: #2f384c;
  filter: blur(75px);
  opacity: 0.4;
  pointer-events: none;
}
.practice-card__glow img { display: none; }
.practice-card__glow--tl { left: -110px; top: -56px; }
.practice-card__glow--br { right: -125px; bottom: -48px; }

.practice-card__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 40px;
  letter-spacing: -1px;
}

.practice-card__list {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.practice-card__list li { display: flex; align-items: center; gap: 8px; }
.practice-card__list img { width: 24px; height: 24px; flex-shrink: 0; }
.practice-card__list span { font-weight: 400; font-size: 20px; line-height: 28px; }
.practice-card--muted .practice-card__list span { color: var(--text-secondary); }

/* ============ Rewards (100x) ============ */
.rewards {
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.rewards__heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.rewards__big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -1px;
  white-space: nowrap;
}

.rewards__multiplier {
  font-family: var(--font-num);
  font-weight: 700;
  font-variation-settings: normal;
}

.rewards__sub {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 40px;
  letter-spacing: -1px;
}

.rewards__text {
  max-width: 692px;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--text-secondary);
  text-align: center;
}

.rewards__cta {
  padding: 16px;
  border-radius: 100px;
  font-size: 20px;
  line-height: 28px;
}

/* ============ Features ============ */
.features { padding: 120px 24px; }

.features__title {
  max-width: 1232px;
  margin: 0 auto 64px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -1px;
}

.features__grid {
  max-width: 1232px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features__row { display: flex; gap: 8px; align-items: stretch; }

.feature-card {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  min-height: 208px;
  box-shadow: inset 0 0 0 1px var(--border-card);
  border-radius: 24px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.feature-card__glow {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: #2f384c;
  filter: blur(75px);
  pointer-events: none;
}
.feature-card__glow--tl { left: -135px; top: -135px; }
.feature-card__glow--br { left: 270px; top: 73px; }

.feature-card__tile {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__tile img { width: 24px; height: 24px; }

.feature-card__text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 14;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: -1px;
}

.feature-card__desc { font-size: 20px; line-height: 24px; color: var(--text-secondary); }

/* ============ FAQ ============ */
.faq {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px;
  display: flex;
}

.faq__title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 14;
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.faq__list {
  width: 891px;
  max-width: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface-sunken);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.faq-item__question {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
  width: 100%;
}

.faq-item__question span {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 14;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.faq-item__chevron { width: 32px; height: 32px; padding: 12px 8px; box-sizing: border-box; flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item--open .faq-item__chevron { transform: rotate(180deg); }

.faq-item__answer {
  display: none;
  margin-top: 24px;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--text-secondary);
}
.faq-item--open .faq-item__answer { display: block; }

/* Wide optical size for display headings (matches Figma rendering) */
.steps__title,
.practice-card__title,
.features__title {
  font-variation-settings: 'opsz' 14;
}

/* Figma applies this gradient across the whole heading line, so white lands beyond the span */
.practice__title .text-gradient {
  background-image: linear-gradient(90deg, var(--brand) 0%, #ffffff 208%);
}

/* ==========================================================
   Responsive — tablet (below 1280 design width)
   ========================================================== */
@media (max-width: 1279px) {
  .hero__canvas { height: auto; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 48px 24px; }
  .hero__glow { display: none; }
  .hero__content { position: static; width: 100%; max-width: 656px; align-items: center; text-align: center; }
  .widget { position: static; width: 100%; max-width: 656px; }

  .hero__title,
  .steps__title,
  .markets__title,
  .practice__title,
  .features__title,
  .rewards__big,
  .faq__title {
    font-size: clamp(40px, 6.25vw, 80px);
    line-height: 1;
  }

  .steps { padding: 120px 24px; }
  .steps__title, .steps__cards { padding: 0; }

  .step-card--wide { flex-direction: column; gap: 24px; align-items: stretch; }
  .step-card--wide .step-card__text { max-width: 540px; }
  .steps__row { flex-direction: column; }

  .features__row { flex-direction: column; }
  .feature-card__glow--br { left: auto; right: -135px; top: auto; bottom: -135px; }

  .markets__row { flex-direction: column; }

  .practice__cards { flex-direction: column; }

  .faq { flex-direction: column; gap: 40px; align-items: stretch; }
  .faq__list { margin: 0 auto; }
}

/* ==========================================================
   Responsive — mobile (Figma frame 375)
   ========================================================== */
@media (max-width: 767px) {
  /* Header (production mobile) */
  .header__inner { height: 51px; padding: 8px 16px; }
  .header__cta { height: 32px; }
  .locale__trigger { height: 37px; padding: 0 12px; }
  body { padding-top: 52px; }

  /* Sections rhythm */
  .hero__canvas { padding: 48px 12px; }
  .stats,
  .steps,
  .markets,
  .practice,
  .rewards,
  .features,
  .faq { padding: 48px 12px; }

  .br-lg { display: none; }

  /* Hero: text, then widget, then CTA (Figma mobile order) */
  .hero__canvas { gap: 24px; }
  .hero__content { display: contents; }
  .hero__title { order: 1; }
  .hero__subtitle { order: 2; text-align: center; }
  .widget { order: 3; margin-top: 8px; }
  .hero__cta { order: 4; margin-top: 8px; }

  /* Mobile optical sizing follows the Figma mobile frame */
  .steps__title,
  .features__title { font-variation-settings: normal; }
  .markets__title,
  .practice__title { font-variation-settings: 'opsz' 14; }

  .rewards { gap: 24px; }
  .rewards__text { margin-top: 8px; }

  .markets__tabs::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 40px;
    background: linear-gradient(270deg, var(--surface-page) 0%, rgba(30, 30, 30, 0) 100%);
    pointer-events: none;
  }

  /* Type scale */
  .hero__title,
  .steps__title,
  .markets__title,
  .practice__title,
  .features__title,
  .faq__title {
    font-size: 40px;
    line-height: 40px;
    letter-spacing: -1px;
    text-align: center;
  }

  .hero__content { gap: 24px; }
  .hero__subtitle { font-size: 16px; line-height: 24px; font-weight: 500; }
  .hero__cta,
  .markets__cta,
  .rewards__cta {
    padding: 12px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 24px;
  }

  /* Hero widget: compact — header + chance + chart only */
  .widget { height: 316px; padding: 16px 12px 12px; }
  .widget__badge { display: none; }
  .widget__right { display: none; }
  .widget__question { font-weight: 500; font-size: 16px; line-height: 24px; }

  /* Stats: vertical list with horizontal dividers */
  .stats { height: auto; }
  .stats__row { flex-direction: column; gap: 24px; }
  .stats__sep {
    align-self: center;
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, rgba(135, 135, 135, 0.1) 0%, #ffffff 49.722%, rgba(135, 135, 135, 0.1) 100%);
  }

  /* Steps */
  .steps__title { margin-bottom: 40px; }
  .steps__cards { gap: 16px; }
  .steps__row { gap: 16px; }
  .step-card { border-radius: 24px; padding: 24px 16px; gap: 24px; }
  .step-card--wide { padding-bottom: 40px; }
  .step-card__title { font-size: 24px; line-height: 24px; }
  .step-card__desc { font-size: 16px; line-height: 24px; font-weight: 500; }
  .step-card__glow--reward { left: auto; right: -135px; top: auto; bottom: -135px; }

  .tabs { width: 100%; }
  .deck { width: 100%; }
  .deck__back--2 { left: 28px; top: 68px; width: calc(100% - 57px); }
  .deck__back--1 { left: 12px; top: 60px; width: calc(100% - 25px); }

  .trade { border-radius: 24px; }
  .trade__win-sum { font-size: 16px; line-height: 24px; }
  .btn-trade { border-radius: 16px; }

  /* Resolved card: status moves into footer */
  .prediction-item--resolved .prediction-item__header .resolved-status { display: none; }
  .resolved-status--footer { display: flex; }

  /* Markets: 3 unique cards, single column */
  .markets__title { margin-bottom: 40px; }
  .markets__tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .markets__tabs::-webkit-scrollbar { display: none; }
  .markets__row:nth-child(2) { display: none; }
  .markets__cta-wrap { margin-top: 32px; }

  /* Practice */
  .practice__title { margin-bottom: 24px; }
  .practice__subtitle { font-size: 16px; line-height: 24px; font-weight: 500; margin-bottom: 32px; }
  .practice-card { border-radius: 32px; padding: 24px 16px; }
  .practice-card__title { font-size: 24px; line-height: 24px; }
  .practice-card__list { gap: 16px; }
  .practice-card__list span { font-size: 16px; line-height: 24px; font-weight: 500; }
  .practice-card__glow--tl { left: -110px; top: -146px; }

  /* Rewards */
  .rewards__big { font-size: 40px; line-height: 40px; }
  .rewards__sub { font-size: 24px; line-height: 24px; }
  .rewards__text { font-size: 16px; line-height: 24px; font-weight: 500; }

  /* Features */
  .features__title { margin-bottom: 40px; }
  .feature-card { min-height: 0; }
  .feature-card__title { font-size: 24px; line-height: 24px; }
  .feature-card__desc { font-size: 16px; line-height: 24px; }

  /* FAQ */
  .faq-item { border-radius: 24px; padding: 24px 16px; }
  .faq-item__question span { font-size: 24px; line-height: 24px; }
  .faq-item__answer { margin-top: 16px; font-size: 16px; line-height: 24px; font-weight: 500; }
}
