:root {
  color-scheme: dark;
  --bg: #0b1110;
  --surface: #121b18;
  --surface-light: #192520;
  --text: #f1f5f3;
  --muted: #96aaa0;
  --accent: #b6f36b;
  --accent-hover: #caf88f;
  --border: rgba(197, 226, 207, 0.12);
  --danger: #ff9a9a;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(800px, 100%);
  height: 750px;
  background: radial-gradient(
    ellipse at 70% 30%,
    rgba(118, 181, 68, 0.12),
    transparent 65%
  );
  pointer-events: none;
  content: "";
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 17, 16, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  transform: skew(-8deg);
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 25px;
  font-style: italic;
}

.brand-accent {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover,
.main-nav .active {
  color: var(--text);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #172010;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.button-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.wallet-button {
  min-width: 126px;
  font-size: 14px;
}

.hero {
  display: grid;
  min-height: 740px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 80px;
  padding-block: 80px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(182, 243, 107, 0.4);
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 4.8vw, 66px);
  font-weight: 750;
  letter-spacing: -2px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero-description {
  max-width: 440px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

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

.text-link {
  color: var(--text);
  font-size: 14px;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.note-icon {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--muted);
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.swap-wrapper {
  min-width: 0;
  scroll-margin-top: 110px;
}

.swap-card {
  padding: 25px;
  border: 1px solid rgba(182, 243, 107, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #19231e, #111a16);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(182, 243, 107, 0.035);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}

.card-header .section-kicker {
  margin-bottom: 5px;
  font-size: 9px;
}

.card-header h2 {
  margin: 0;
  font-size: 21px;
}

.demo-badge {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}

.asset-box {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0e1713;
}

.asset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 12px;
}

.asset-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-input-row input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
}

.asset-input-row input::placeholder {
  color: #506157;
}

.token-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-light);
}

.token-picker select {
  max-width: 85px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

select option {
  background: var(--surface);
  color: var(--text);
}

.coin {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.coin-eth {
  background: #667bd1;
}

.coin-usdc {
  background: #2775ca;
}

.coin-btc {
  background: #ce862a;
}

.coin-dai {
  background: #b98b29;
}

.switch-row {
  position: relative;
  z-index: 1;
  display: flex;
  height: 12px;
  align-items: center;
  justify-content: center;
}

.switch-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 4px solid #16201b;
  border-radius: 11px;
  background: #2a3a2e;
  color: var(--accent);
  font-size: 22px;
}

.switch-button:hover {
  background: #3a4c36;
}

.input-error {
  min-height: 19px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.quote-details {
  display: grid;
  gap: 10px;
  margin: 6px 0 22px;
  font-size: 12px;
}

.quote-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quote-details span,
.quote-details label {
  color: var(--muted);
}

.quote-details strong {
  text-align: right;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.quote-details select {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-light);
  color: var(--accent);
  font-size: 12px;
}

.swap-submit {
  width: 100%;
  min-height: 52px;
}

.quote-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.card-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.assets-section {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.assets-inner {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.assets-inner h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asset-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.section {
  padding-block: 90px 0;
}

.section-heading {
  margin-bottom: 35px;
  text-align: center;
}

.section-heading .section-kicker {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.8px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

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

.feature-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 25px;
  place-items: center;
  border-radius: 12px;
  background: rgba(182, 243, 107, 0.09);
  color: var(--accent);
  font-size: 25px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.guide-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  padding: 45px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #19251a, #101914);
}

.guide-intro h2 {
  margin-bottom: 18px;
  font-size: 32px;
  line-height: 1.4;
}

.guide-intro > p:not(.section-kicker) {
  max-width: 310px;
  color: var(--muted);
  font-size: 14px;
}

.step-list {
  display: grid;
  align-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: flex;
  gap: 20px;
}

.step-number {
  color: var(--accent);
  font-size: 21px;
  font-weight: 700;
}

.step-list h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

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

.faq-list {
  max-width: 820px;
  margin-inline: auto;
}

.faq-list details {
  margin-bottom: 12px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.faq-list summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.faq-list summary::marker {
  color: var(--accent);
}

.faq-list details p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.risk-section {
  padding-block: 50px;
}

.risk-section p {
  margin: 0;
  padding: 18px 22px;
  border-left: 2px solid #647945;
  border-radius: 0 8px 8px 0;
  background: rgba(182, 243, 107, 0.035);
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p,
.footer-inner > a:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 40px));
  padding: 15px 20px;
  border: 1px solid rgba(182, 243, 107, 0.3);
  border-radius: 12px;
  background: #223026;
  color: var(--text);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  font-size: 14px;
}

.noscript-message {
  padding: 15px;
  text-align: center;
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 18px;
  }

  .hero {
    gap: 35px;
  }

  .asset-list {
    gap: 20px;
  }

  .guide-panel {
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 74px;
    gap: 12px;
  }

  .brand {
    font-size: 19px;
  }

  .main-nav {
    display: none;
  }

  .wallet-button {
    min-width: 112px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 52px;
  }

  .hero h1 {
    font-size: clamp(40px, 8vw, 58px);
  }

  .hero-description {
    max-width: 540px;
    font-size: 15px;
  }

  .swap-wrapper {
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
  }

  .assets-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-block: 24px;
  }

  .asset-list {
    gap: 16px 22px;
  }

  .asset-list li {
    font-size: 13px;
  }

  .section {
    padding-top: 58px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 25px;
  }

  .feature-icon {
    margin-bottom: 16px;
  }

  .guide-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 26px;
  }

  .guide-intro h2 {
    font-size: 28px;
  }

  .faq-list details {
    padding: 18px;
  }

  .footer-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px 28px;
    padding-block: 26px;
  }

  .footer-inner .brand {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .swap-card {
    padding: 18px;
  }

  .asset-box {
    padding: 14px;
  }

  .asset-input-row input {
    font-size: 25px;
  }

  .hero-actions {
    gap: 16px;
  }

  .hero-actions .button {
    padding-inline: 16px;
  }

  .text-link {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}