:root {
  --bg: #0b0e0c;
  --panel: #111611;
  --panel-2: #171d17;
  --panel-3: #1d241d;
  --ink: #f3f4ea;
  --muted: #a4ad9e;
  --line: rgba(216, 255, 88, 0.18);
  --line-soft: rgba(243, 244, 234, 0.1);
  --lime: #d8ff58;
  --lime-dim: #aacf35;
  --orange: #ff8a3d;
  --blue: #61b9ff;
  --violet: #c5a5ff;
  --sand: #e3d59a;
  --danger: #ff665c;
  --radius: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: var(--font-display);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #10140f;
  background: var(--lime);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 7px max(24px, calc((100vw - 1320px) / 2));
  color: #b8c2b2;
  background: #070907;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topline span:last-child {
  color: #7e8a79;
  text-align: right;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  background: rgba(11, 14, 12, 0.9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0b0e0c;
  background: var(--lime);
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: #889481;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
}

.main-nav a {
  position: relative;
  color: #b9c2b4;
  transition: color 160ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.item-action,
.filter-pill,
.drawer-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  color: var(--lime);
  background: rgba(216, 255, 88, 0.05);
  border-color: rgba(216, 255, 88, 0.35);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  color: #0e120d;
  background: var(--lime);
}

.button-primary:hover {
  background: #e2ff80;
}

.button-small {
  min-height: 42px;
  padding-inline: 15px;
  color: #10140f;
  background: #eef0e6;
  font-size: 13px;
}

.button-small svg,
.button-primary svg {
  width: 17px;
  height: 17px;
}

.button-wide {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 710px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 14, 12, 0.96) 0%, rgba(11, 14, 12, 0.84) 44%, rgba(11, 14, 12, 0.38) 100%),
    linear-gradient(0deg, rgba(11, 14, 12, 0.95) 0%, transparent 35%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: 1;
  top: 34px;
  right: 34px;
  width: 88px;
  height: 88px;
  border-top: 1px solid rgba(216, 255, 88, 0.46);
  border-right: 1px solid rgba(216, 255, 88, 0.46);
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("./assets/hero.jpg") center / cover no-repeat;
  filter: saturate(0.68) contrast(1.12);
  transform: scale(1.015);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 1320px;
  min-height: 710px;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding: 80px 24px 88px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, 0.88fr);
}

.eyebrow,
.section-index,
.terminal-head span,
.result-kicker,
.drawer-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dfe7d8;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(216, 255, 88, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 25px 0 24px;
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.hero h1 > span,
.hero h1 > em {
  display: block;
}

.hero h1 > span {
  color: var(--lime);
  font-size: 0.68em;
  font-style: normal;
  letter-spacing: -0.045em;
}

.hero h1 > em {
  color: #eef1e6;
  font-style: normal;
  font-weight: 300;
}

.hero-copy > p {
  max-width: 630px;
  margin: 0;
  color: #b8c2b2;
  font-size: clamp(16px, 1.4vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d4ddd0;
  border-bottom: 1px solid #596154;
  font-size: 14px;
  padding-bottom: 4px;
}

.text-link:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: #7f8a7c;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.hero-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-footnote span::before {
  width: 16px;
  height: 1px;
  background: #525a4f;
  content: "";
}

.market-terminal {
  padding: 21px;
  background: rgba(12, 16, 12, 0.86);
  border: 1px solid rgba(216, 255, 88, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.terminal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.terminal-head div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.terminal-head span {
  color: var(--lime);
}

.terminal-head strong {
  font-size: 23px;
}

.terminal-badge,
.sample-badge {
  padding: 5px 8px;
  color: var(--lime);
  background: rgba(216, 255, 88, 0.1);
  border: 1px solid rgba(216, 255, 88, 0.24);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.terminal-chart {
  position: relative;
  height: 160px;
  margin: 24px 0 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.chart-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(216, 255, 88, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 255, 88, 0.08) 1px, transparent 1px);
  background-size: 45px 38px;
}

.terminal-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.chart-area {
  fill: url("#chart-fill");
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: var(--lime);
  vector-effect: non-scaling-stroke;
}

.terminal-stats {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  grid-template-columns: repeat(2, 1fr);
}

.terminal-stats div {
  padding: 14px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.terminal-stats dt {
  color: #7e897b;
  font-size: 11px;
}

.terminal-stats dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.terminal-note {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  color: #98a392;
  font-size: 11px;
}

.terminal-note span {
  min-width: max-content;
  color: var(--orange);
  font-family: var(--font-mono);
}

.ticker {
  overflow: hidden;
  padding: 13px 0;
  color: #18200f;
  background: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 22px;
  animation: ticker 30s linear infinite;
}

.ticker-track i {
  opacity: 0.5;
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  max-width: 1320px;
  padding: 110px 24px;
  margin: 0 auto;
}

.section-heading {
  display: grid;
  align-items: end;
  gap: 32px;
  margin-bottom: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
}

.section-index {
  display: block;
  margin-bottom: 13px;
  color: var(--lime);
  text-transform: uppercase;
}

.section-heading h2,
.protocol-intro h2,
.faq-intro h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(38px, 4.3vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-heading > p,
.protocol-intro > p,
.faq-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.quote-section {
  padding-bottom: 80px;
}

.quote-shell {
  display: grid;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  grid-template-columns: 1.05fr 0.95fr;
}

.quote-form {
  padding: clamp(24px, 4vw, 48px);
  border-right: 1px solid var(--line-soft);
}

.quote-form fieldset {
  padding: 0;
  margin: 0 0 28px;
  border: 0;
}

.quote-form legend,
.form-row label span,
.drawer-form label > span {
  display: block;
  margin-bottom: 10px;
  color: #8d9989;
  font-size: 12px;
}

.segmented {
  display: grid;
  padding: 4px;
  background: #090c09;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  grid-template-columns: repeat(3, 1fr);
}

.segmented label {
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  padding: 11px 8px;
  color: #929d8e;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.segmented input:checked + span {
  color: #11150e;
  background: var(--lime);
  font-weight: 700;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  grid-template-columns: 1fr 1fr;
}

select,
input,
textarea {
  width: 100%;
  color: var(--ink);
  background: #0c100c;
  border: 1px solid #30392e;
  border-radius: 7px;
  outline: 0;
}

select,
input {
  height: 46px;
  padding: 0 13px;
}

input[type="radio"] {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
}

textarea {
  padding: 12px 13px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 88, 0.08);
}

.quote-result {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 50px);
  background:
    linear-gradient(140deg, rgba(216, 255, 88, 0.06), transparent 55%),
    #0d110d;
}

.quote-result.has-result {
  background:
    linear-gradient(140deg, rgba(216, 255, 88, 0.12), transparent 65%),
    #0d110d;
}

.result-kicker {
  color: var(--lime);
}

.quote-result h3 {
  margin: 16px 0 12px;
  font-size: 27px;
}

.quote-result p {
  color: var(--muted);
  font-size: 14px;
}

.result-code {
  padding: 18px;
  margin-top: 22px;
  color: #cbd4c6;
  background: #080b08;
  border-left: 2px solid var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  cursor: copy;
}

.market-section {
  padding-top: 70px;
  border-top: 1px solid var(--line-soft);
}

.market-heading {
  align-items: end;
  margin-bottom: 32px;
}

.market-heading h2 {
  font-size: clamp(48px, 6vw, 86px);
}

.market-counter {
  justify-self: end;
  color: #8e998b;
  font-family: var(--font-mono);
  font-size: 12px;
}

.market-counter span {
  margin-right: 6px;
  color: var(--lime);
  font-size: 32px;
}

.market-toolbar {
  display: grid;
  align-items: center;
  gap: 14px;
  margin-bottom: 23px;
  grid-template-columns: minmax(260px, 1.3fr) minmax(350px, 1fr) auto;
}

.search-field {
  display: flex;
  height: 49px;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.search-field svg {
  flex: 0 0 auto;
  color: #7d8879;
}

.search-field input {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.filter-pills {
  display: flex;
  gap: 6px;
}

.filter-pill {
  min-height: 37px;
  padding: 0 13px;
  color: #8f9a8b;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 12px;
}

.filter-pill:hover,
.filter-pill.is-active {
  color: #12160f;
  background: var(--lime);
  border-color: var(--lime);
}

.toolbar-sort {
  width: 49px;
  height: 49px;
}

.toolbar-sort.is-flipped svg {
  transform: scaleY(-1);
}

.market-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.market-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 80% 6%, var(--card-glow), transparent 35%),
    var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.market-card:hover {
  border-color: var(--card-color);
  transform: translateY(-4px);
}

.market-card-lime {
  --card-color: var(--lime);
  --card-glow: rgba(216, 255, 88, 0.16);
}

.market-card-orange {
  --card-color: var(--orange);
  --card-glow: rgba(255, 138, 61, 0.15);
}

.market-card-blue {
  --card-color: var(--blue);
  --card-glow: rgba(97, 185, 255, 0.15);
}

.market-card-steel {
  --card-color: #b8c8c7;
  --card-glow: rgba(184, 200, 199, 0.12);
}

.market-card-violet {
  --card-color: var(--violet);
  --card-glow: rgba(197, 165, 255, 0.13);
}

.market-card-sand {
  --card-color: var(--sand);
  --card-glow: rgba(227, 213, 154, 0.13);
}

.market-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-type {
  color: var(--card-color);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample-badge {
  color: #aab5a5;
  background: transparent;
  border-color: var(--line-soft);
}

.item-signal {
  display: flex;
  height: 82px;
  align-items: end;
  gap: 7px;
  margin: 26px 0 20px;
  opacity: 0.72;
}

.item-signal span {
  width: 10%;
  background: var(--card-color);
}

.item-signal span:nth-child(1) {
  height: 24%;
}

.item-signal span:nth-child(2) {
  height: 42%;
}

.item-signal span:nth-child(3) {
  height: 31%;
}

.item-signal span:nth-child(4) {
  height: 71%;
}

.item-signal span:nth-child(5) {
  height: 92%;
}

.market-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.24;
}

.market-card > p {
  margin: 0;
  color: #8f9a8b;
  font-size: 13px;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.item-meta span {
  padding: 5px 8px;
  color: #aeb8aa;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  font-size: 10px;
}

.market-card-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
}

.price-label {
  display: block;
  color: #737e70;
  font-size: 10px;
}

.market-card-foot strong {
  display: block;
  margin-top: 2px;
  font-size: 24px;
}

.item-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--card-color);
  font-size: 12px;
}

.item-action svg {
  width: 16px;
  height: 16px;
}

.empty-state {
  padding: 70px 20px;
  color: var(--muted);
  border: 1px dashed var(--line-soft);
  text-align: center;
}

.market-disclaimer {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  margin-top: 20px;
  color: #8e998a;
  background: rgba(255, 138, 61, 0.05);
  border: 1px solid rgba(255, 138, 61, 0.18);
  font-size: 12px;
}

.market-disclaimer strong {
  min-width: max-content;
  color: var(--orange);
}

.protocol-section {
  display: grid;
  max-width: none;
  gap: clamp(50px, 8vw, 130px);
  padding-inline: max(24px, calc((100vw - 1320px) / 2));
  background:
    linear-gradient(110deg, rgba(216, 255, 88, 0.06), transparent 46%),
    #101510;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
}

.protocol-intro {
  align-self: start;
}

.protocol-intro h2 {
  margin-bottom: 22px;
}

.protocol-intro .text-link {
  margin-top: 24px;
}

.protocol-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.protocol-list li {
  display: grid;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  grid-template-columns: 50px 1fr;
}

.protocol-list li > span {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
}

.protocol-list h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.protocol-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.guide-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.guide-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.guide-card:hover {
  background: var(--panel-2);
  border-color: rgba(216, 255, 88, 0.35);
}

.guide-card-large {
  display: flex;
  min-height: 514px;
  flex-direction: column;
  justify-content: space-between;
  grid-row: span 2;
  background:
    linear-gradient(160deg, rgba(216, 255, 88, 0.13), transparent 52%),
    var(--panel);
}

.guide-number {
  color: #53604f;
  font-family: var(--font-mono);
  font-size: 12px;
}

.guide-card-large .guide-number {
  color: var(--lime);
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
}

.guide-tag {
  display: block;
  margin: 30px 0 12px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.guide-card h3 {
  max-width: 620px;
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.guide-card-large h3 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.12;
}

.guide-card p {
  max-width: 520px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.guide-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}

.faq-section {
  display: grid;
  gap: clamp(50px, 8vw, 130px);
  border-top: 1px solid var(--line-soft);
  grid-template-columns: minmax(260px, 0.7fr) minmax(480px, 1.3fr);
}

.faq-intro {
  position: sticky;
  top: 110px;
  align-self: start;
}

.faq-intro h2 {
  margin-bottom: 20px;
}

.faq-list {
  border-top: 1px solid var(--line-soft);
}

.faq-list details {
  border-bottom: 1px solid var(--line-soft);
}

.faq-list summary {
  position: relative;
  padding: 24px 46px 24px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 23px;
  right: 4px;
  color: var(--lime);
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 720px;
  padding: 0 36px 24px 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  display: flex;
  max-width: 1272px;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  padding: 70px 48px;
  margin: 0 auto 80px;
  color: #13180f;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.25), transparent 45%),
    var(--lime);
  border-radius: var(--radius);
}

.final-cta .section-index {
  color: #53601f;
}

.final-cta h2 {
  max-width: 820px;
  font-size: clamp(36px, 4.5vw, 66px);
}

.final-cta .button {
  min-width: 180px;
  color: var(--lime);
  background: #11150e;
}

.site-footer {
  display: grid;
  gap: 60px;
  padding: 55px max(24px, calc((100vw - 1320px) / 2));
  background: #070907;
  border-top: 1px solid var(--line-soft);
  grid-template-columns: 1.2fr 1fr;
}

.footer-brand > p {
  max-width: 480px;
  margin: 20px 0 0;
  color: #758074;
  font-size: 13px;
}

.footer-links {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, 1fr);
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 7px;
  color: #d7ded2;
  font-size: 12px;
}

.footer-links a {
  color: #788276;
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-legal {
  padding-top: 22px;
  margin: 0;
  color: #555f53;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  grid-column: 1 / -1;
}

.drawer-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.trade-drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(470px, 100vw);
  height: 100vh;
  padding: 32px;
  overflow-y: auto;
  background:
    linear-gradient(145deg, rgba(216, 255, 88, 0.07), transparent 34%),
    #101510;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.4);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.trade-drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}

.drawer-kicker {
  color: var(--lime);
}

.trade-drawer h2 {
  padding-right: 42px;
  margin: 16px 0 12px;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.drawer-copy {
  color: var(--muted);
  font-size: 13px;
}

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 28px;
}

.drawer-form label {
  display: block;
}

.drawer-form textarea {
  min-height: 105px;
}

.drawer-form .check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #a1ab9e;
  font-size: 12px;
}

.drawer-form .check-line input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--lime);
}

.drawer-result {
  padding: 18px;
  margin-top: 22px;
  background: rgba(216, 255, 88, 0.06);
  border: 1px solid rgba(216, 255, 88, 0.2);
}

.drawer-result span {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
}

.drawer-result strong {
  display: block;
  margin-top: 7px;
}

.drawer-result p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 95;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  color: #11150e;
  background: var(--lime);
  border-radius: 7px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

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

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero-grid {
    gap: 40px;
    grid-template-columns: 1fr 390px;
  }

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

  .market-toolbar {
    grid-template-columns: 1fr auto;
  }

  .filter-pills {
    order: 3;
    grid-column: 1 / -1;
  }

  .protocol-section {
    gap: 50px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topline span:last-child {
    display: none;
  }

  .site-header {
    min-height: 66px;
    padding-inline: 18px;
  }

  .header-actions .button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding: 74px 20px 54px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(58px, 14vw, 92px);
  }

  .market-terminal {
    max-width: 600px;
  }

  .section {
    padding: 82px 20px;
  }

  .section-heading,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    max-width: 620px;
  }

  .quote-shell {
    grid-template-columns: 1fr;
  }

  .quote-form {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .quote-result {
    min-height: 300px;
  }

  .market-counter {
    justify-self: start;
  }

  .faq-intro {
    position: static;
  }

  .protocol-section {
    padding-inline: 20px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 48px 26px;
    margin-inline: 20px;
  }

  .site-footer {
    gap: 40px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-copy small {
    display: none;
  }

  .header-actions .icon-button {
    display: none;
  }

  .hero-grid {
    gap: 34px;
    padding-top: 62px;
  }

  .hero h1 {
    margin: 20px 0;
    font-size: clamp(52px, 16vw, 78px);
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .market-terminal {
    padding: 16px;
  }

  .terminal-stats div {
    padding: 11px;
  }

  .section {
    padding: 68px 16px;
  }

  .section-heading h2,
  .protocol-intro h2,
  .faq-intro h2,
  .final-cta h2 {
    font-size: 39px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .market-toolbar {
    grid-template-columns: 1fr auto;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .filter-pills {
    flex-wrap: wrap;
    order: initial;
  }

  .toolbar-sort {
    grid-column: 2;
    grid-row: 2;
  }

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

  .market-card {
    min-height: 360px;
  }

  .market-disclaimer {
    flex-direction: column;
  }

  .protocol-section {
    padding: 68px 16px;
  }

  .protocol-list li {
    gap: 12px;
    grid-template-columns: 36px 1fr;
  }

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

  .guide-card-large {
    min-height: 420px;
    grid-row: auto;
  }

  .guide-card {
    min-height: 230px;
  }

  .final-cta {
    margin: 0 16px 60px;
  }

  .final-cta .button {
    width: 100%;
  }

  .footer-links {
    gap: 20px;
  }

  .trade-drawer {
    padding: 26px 20px;
  }
}

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