:root {
  --home-bg: #08090d;
  --home-surface: rgba(17, 20, 27, 0.86);
  --home-surface-2: rgba(20, 25, 34, 0.76);
  --home-line: rgba(132, 146, 166, 0.22);
  --home-text: #edf2f7;
  --home-muted: #93a4b7;
  --home-faint: #5f6d7a;
  --home-blue: #67b7ff;
  --home-teal: #28d7b7;
  --home-gold: #f6c85f;
  --home-red: #ff6b6b;
  --home-green: #4ade80;
}

body {
  background:
    linear-gradient(180deg, #08090d 0%, #0b1014 48%, #090b10 100%);
  color: var(--home-text);
}

body h1,
body h2,
body h3 {
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(103, 183, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 183, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 78%);
}

.home-shell {
  overflow: hidden;
}

.home-shell a {
  color: inherit;
}

.home-hero {
  position: relative;
  min-height: 680px;
  padding: 54px 20px 64px;
  border-bottom: 1px solid var(--home-line);
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--home-bg));
  pointer-events: none;
}

.market-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.market-tape {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto 34px;
  border: 1px solid var(--home-line);
  background: rgba(8, 10, 14, 0.62);
  overflow: hidden;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.market-tape__track {
  display: flex;
  width: max-content;
  animation: homeTape 28s linear infinite;
}

.market-tape__group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  white-space: nowrap;
  color: var(--home-muted);
  font-size: 12px;
}

.market-tape__group b {
  color: var(--home-text);
  font-weight: 800;
}

.market-tape__group span {
  color: var(--home-teal);
  font-variant-numeric: tabular-nums;
}

.market-tape__group i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--home-line);
  display: inline-block;
}

@keyframes homeTape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(400px, 0.88fr) minmax(0, 1.12fr);
  gap: 26px;
  align-items: center;
}

.hero-content {
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero-copy {
  max-width: 760px;
  padding: 4px 0 0;
}

.eyebrow,
.section-kicker,
.card-kicker {
  color: var(--home-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--home-text);
  max-width: 820px;
}

.hero-copy p {
  max-width: 660px;
  color: #b6c4d3;
  font-size: 17px;
  line-height: 1.78;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-btn:hover {
  transform: translateY(-2px);
}

.home-btn.primary {
  color: #041013;
  background: linear-gradient(135deg, var(--home-teal), var(--home-blue));
}

.home-btn.secondary {
  color: var(--home-text);
  background: rgba(20, 25, 34, 0.72);
  border-color: var(--home-line);
}

.hero-note {
  margin-top: 22px;
  color: var(--home-faint);
  font-size: 12px;
}

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

.signal-tile {
  position: relative;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-surface);
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.55s ease, border-color 0.18s ease;
}

.signal-tile.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.signal-tile:hover {
  border-color: rgba(103, 183, 255, 0.72);
}

.signal-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tile-color, var(--home-blue));
}

.signal-tile label {
  display: block;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.signal-tile strong {
  display: block;
  color: var(--home-text);
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.signal-tile span {
  display: block;
  margin-top: 12px;
  color: var(--home-faint);
  font-size: 12px;
  line-height: 1.45;
}

.signal-tile.primary {
  min-height: 132px;
  --tile-color: var(--home-teal);
}

.signal-tile.primary strong {
  font-size: 42px;
}

.home-band {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 54px 0 0;
}

.market-command {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.market-brief,
.wheel-panel,
.flow-panel {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-surface);
  backdrop-filter: blur(14px);
}

.market-brief {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.brief-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 12px;
}

.brief-pill.hot {
  color: #071011;
  background: var(--home-gold);
  border-color: transparent;
  font-weight: 900;
}

.market-brief h2,
.wheel-panel h2,
.section-head h2 {
  margin: 0;
  color: var(--home-text);
  font-size: 28px;
  line-height: 1.22;
}

.market-brief p {
  margin: 18px 0 24px;
  color: #bdc9d6;
  font-size: 15px;
  line-height: 1.86;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.wheel-panel {
  position: relative;
  padding: 26px 18px 22px;
  overflow: hidden;
}

.hero-wheel-panel {
  min-height: 520px;
  padding: 28px 18px 18px;
}

.wheel-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(103, 183, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: panelSweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes panelSweep {
  0%, 34% { transform: translateX(-100%); opacity: 0; }
  46% { opacity: 1; }
  66%, 100% { transform: translateX(100%); opacity: 0; }
}

.wheel-heading {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding: 0 8px 6px;
}

.wheel-heading p {
  margin: 0;
  color: var(--home-faint);
  font-size: 12px;
}

#wheel-wrap {
  position: relative;
}

#wheel {
  width: min(520px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
}

#wheel-detail {
  min-height: 56px;
  text-align: center;
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.7;
  padding: 0 20px;
}

.wheel-detail-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.wheel-detail-title i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #484f58;
  display: inline-block;
}

.wheel-stock-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  line-height: 1.35;
}

.wheel-stock-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(132, 146, 166, 0.18);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.42);
  color: #8b949e;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wheel-stock-chip b {
  color: #dbe4ee;
  font-weight: 700;
}

.section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 10px 0 0;
}

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

.flow-panel {
  min-height: 164px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.flow-panel::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 52px;
  height: 1px;
  background: var(--home-line);
}

.flow-time {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  color: var(--home-text);
  font-variant-numeric: tabular-nums;
}

.flow-title {
  margin-top: 26px;
  color: var(--home-text);
  font-size: 14px;
  font-weight: 800;
}

.flow-desc {
  margin-top: 7px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.55;
}

.tool-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-card,
.guide-card {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-surface-2);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tool-card:hover,
.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 215, 183, 0.66);
  background: rgba(24, 31, 42, 0.92);
}

.tool-card b,
.guide-card b {
  color: var(--home-text);
  font-size: 16px;
  line-height: 1.35;
}

.tool-card p,
.guide-card p {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.65;
}

.tool-card small,
.guide-card small {
  margin-top: auto;
  padding-top: 20px;
  color: var(--home-teal);
  font-size: 12px;
  font-weight: 800;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--home-line);
  padding-top: 44px;
}

.about-panel h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 8px 0 0;
}

.about-copy p {
  margin: 0 0 16px;
  color: #b8c5d2;
  font-size: 15px;
  line-height: 1.82;
}

.home-reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.58s ease, opacity 0.58s ease;
}

.home-reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

footer {
  background: #08090d;
}

@media (max-width: 980px) {
  .home-hero {
    min-height: auto;
    padding: 36px 16px 46px;
  }

  .hero-inner,
  .market-command,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .hero-wheel-panel {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

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

@media (max-width: 620px) {
  .market-tape,
  .hero-inner,
  .home-band {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy {
    padding: 6px 0 16px;
  }

  .hero-wheel-panel {
    padding: 18px 6px 12px;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 1.72;
  }

  .signal-stack,
  .flow-grid,
  .tool-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .signal-tile,
  .signal-tile.primary {
    min-height: 116px;
  }

  .signal-tile.primary strong {
    font-size: 42px;
  }

  .market-brief {
    min-height: auto;
    padding: 20px;
  }

  .market-brief h2,
  .wheel-panel h2,
  .section-head h2 {
    font-size: 23px;
  }

  .wheel-heading {
    display: block;
  }

  #wheel-detail {
    padding: 0 8px;
  }

  .wheel-stock-list {
    gap: 5px;
  }

  .wheel-stock-chip {
    padding: 3px 7px;
    font-size: 11px;
  }

  .flow-panel {
    min-height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
