/* Homepage: one screen holding a real pool. The bars are the pool's supply from launch price (left) to ceiling
   (right); the dashed marker is the live price; pills are real trades. Motion only on data. */

.home main { padding: 0; }
.mono-l { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }

.stage { min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); display: flex; flex-direction: column; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.stage-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 34px; position: relative; z-index: 2; }

.mast { margin: 0; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 800; font-size: clamp(74px, 14.5vw, 214px); line-height: 0.8; letter-spacing: -0.06em; display: flex; flex-direction: column; }
.mast span:last-child { color: transparent; -webkit-text-stroke: 2px #3a3a58; }

.side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; padding-top: 10px; }
.readout { display: grid; grid-template-columns: auto auto; gap: 6px 22px; margin: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.readout dt { color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; align-self: center; }
.readout dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.readout a { color: var(--orange); }
.go { display: flex; gap: 8px; }
.go .btn { height: 44px; padding: 0 18px; }

/* the field of bars fills the rest of the screen */
.field { position: relative; flex: 1; min-height: 240px; margin: 26px 16px 0; }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: clamp(2px, 0.5vw, 6px); }
.bars i { flex: 1; height: 2%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #ff6a2a 0%, #c04bd0 45%, #6e45ff 100%); transform-origin: bottom; transform: scaleY(0);
  transition: height 0.8s cubic-bezier(.2, .8, .2, 1), background 0.5s; }
.bars.up i { transform: scaleY(1); transition: height 0.8s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 30ms), background 0.5s; }
.bars i.sold { background: #22223a; }

.marker { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-left: 2px dashed rgba(244, 244, 248, 0.9); opacity: 0; transition: left 1.2s cubic-bezier(.2, .8, .2, 1), opacity 0.6s; z-index: 2; }
.marker.on { opacity: 1; }
.marker span { position: absolute; top: 0; left: 10px; white-space: nowrap; font: 700 12px 'JetBrains Mono', ui-monospace, monospace; background: var(--ink); color: var(--bg); padding: 3px 8px; border-radius: 6px; }
.marker::after { content: ''; position: absolute; left: -7px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(244, 244, 248, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(244, 244, 248, 0); } }

.pills { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pill { position: absolute; bottom: 22%; pointer-events: auto; font: 500 12px 'JetBrains Mono', ui-monospace, monospace; padding: 5px 10px; border-radius: 8px; background: rgba(18, 18, 28, 0.92); border: 1px solid var(--line); white-space: nowrap; animation: floatUp 5.2s ease-out forwards; }
.pill.buy b { color: var(--up); }
.pill.sell b { color: var(--down); }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(18px); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-150px); } }

.axis { display: flex; justify-content: space-between; padding-top: 8px; padding-bottom: 14px; font: 500 11px 'JetBrains Mono', ui-monospace, monospace; color: var(--dim); }

/* launch steps */
.steps-sec { padding-top: 40px; padding-bottom: 64px; }
.steps-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); counter-reset: s; border-top: 1px solid var(--line); }
.flow li { counter-increment: s; padding: 16px 14px 0 0; position: relative; color: var(--dim); }
.flow li::before { content: counter(s, decimal-leading-zero); display: block; font: 700 12px 'JetBrains Mono', ui-monospace, monospace; color: var(--dim); margin-bottom: 10px; transition: color 0.3s; }
.flow li::after { content: ''; position: absolute; left: 0; right: 14px; top: -1px; height: 2px; background: transparent; transition: background 0.3s; }
.flow li b { display: block; color: var(--mute); margin-bottom: 6px; font-size: 15px; transition: color 0.3s; }
.flow li span { font-size: 12px; line-height: 1.45; }
.flow li.done::after, .flow li.run::after { background: var(--grad); }
.flow li.done b, .flow li.run b { color: var(--ink); }
.flow li.run::before { color: var(--orange); }

@media (max-width: 860px) {
  .stage-top { flex-direction: column; gap: 18px; padding-top: 22px; }
  .side { align-items: stretch; width: 100%; }
  .readout { grid-template-columns: repeat(3, auto auto); gap: 6px 10px; font-size: 12px; }
  .readout dd { text-align: left; }
  .go .btn { flex: 1; }
  .field { margin: 18px 8px 0; min-height: 220px; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 18px; }
}
@media (max-width: 480px) { .readout { grid-template-columns: auto auto auto auto; } }
@media (prefers-reduced-motion: reduce) { .marker::after, .pill { animation: none; } }
.stage > .wrap { width: 100%; }
.axis { margin: 0 16px; }
@media (max-width: 860px) { .axis { margin: 0 8px; } }

.what { max-width: 330px; margin: 0; text-align: right; color: var(--mute); font-size: 14px; line-height: 1.5; }
.diff-sec { padding-top: 48px; }
.diff { width: 100%; border-collapse: collapse; font-size: 14px; }
.diff th, .diff td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.diff thead th { font: 500 11px 'JetBrains Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); padding-top: 0; }
.diff tbody th { width: 18%; font-weight: 600; color: var(--ink); }
.diff td:nth-child(2) { width: 34%; color: var(--dim); }
.diff td:nth-child(3) { color: var(--ink); }
.diff thead th:last-child { color: var(--orange); }
@media (max-width: 860px) {
  .what { text-align: left; max-width: none; }
  .diff thead { display: none; }
  .diff, .diff tbody, .diff tr, .diff th, .diff td { display: block; width: auto !important; }
  .diff tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .diff th, .diff td { border: 0; padding: 2px 0; }
  .diff td:nth-child(2)::before { content: 'Usual: '; }
  .diff td:nth-child(3)::before { content: 'DLMM Pad: '; color: var(--orange); }
}
