:root {
  --ink: #07100d;
  --ink-2: #0d1915;
  --surface: #f5f7f1;
  --surface-2: #e8eee5;
  --green: #78f66e;
  --green-2: #2fc65c;
  --blue: #91b7ff;
  --white: #ffffff;
  --text: #14201b;
  --muted: rgba(255,255,255,.66);
  --muted-dark: rgba(20,32,27,.62);
  --line: rgba(255,255,255,.13);
  --line-dark: rgba(20,32,27,.12);
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: Inter, "Aptos", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(7,16,13,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 116px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 700;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--green);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(120,246,110,.22);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #a3ff9c;
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-ghost {
  color: var(--white);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  align-content: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  padding: 32px clamp(16px, 4vw, 54px) 52px;
  background:
    linear-gradient(135deg, rgba(145,183,255,.12), transparent 34%),
    linear-gradient(180deg, #07100d 0%, #0d1915 100%);
}

.hero-grid {
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(210px, .58fr) minmax(320px, .8fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: stretch;
}

.proof-panel,
.loan-console {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.protected-media,
.protected-media img,
.protected-media video {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.proof-panel {
  align-self: center;
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr auto;
}

.proof-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}

.proof-copy {
  padding: 22px;
  background: #020302;
}

.proof-copy span {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-copy strong {
  display: block;
  max-width: 230px;
  font-size: 24px;
  line-height: 1.08;
}

.hero-copy {
  align-self: center;
  padding: clamp(16px, 3vw, 36px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(54px, 6.4vw, 108px);
  line-height: .92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-text {
  max-width: 580px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
}

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

.text-link {
  color: var(--white);
  font-weight: 900;
  border-bottom: 2px solid var(--green);
}

.loan-console {
  align-self: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)),
    #111a17;
}

.console-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.label,
.range-field span,
.console-metrics span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.console-head strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.status-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.asset-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.asset-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.05);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}

.asset-option.active {
  color: var(--ink);
  background: var(--white);
}

.asset-option img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.asset-option[data-asset="XRP"]:not(.active) img {
  filter: brightness(0) invert(1);
}

.range-field {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.range-field b {
  font-size: 24px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.console-metrics div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}

.console-metrics strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
}

.console-btn {
  width: 100%;
}

.fine-print {
  margin: 18px 0 0;
  color: rgba(255,255,255,.48);
  font-size: 12px;
}

.ticker {
  overflow-x: auto;
  padding: 0;
  background: var(--green);
  color: var(--ink);
  scrollbar-width: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 14px 0;
  animation: tickerMove 26s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-weight: 900;
}

.ticker img {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(7,16,13,.1);
  object-fit: contain;
}

.ticker span::after {
  content: "/";
  margin-left: 6px;
  color: rgba(7,16,13,.38);
}

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

.section {
  padding: clamp(70px, 9vw, 122px) clamp(16px, 4vw, 54px);
}

.media-band {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  background: var(--surface);
  color: var(--text);
}

.media-band .eyebrow,
.collateral .eyebrow,
.process .eyebrow,
.questions .eyebrow {
  color: var(--green-2);
}

.media-band p,
.collateral p,
.questions p {
  color: var(--muted-dark);
}

.process p {
  color: rgba(255,255,255,.68);
}

.media-band video {
  width: 100%;
  max-height: 520px;
  display: block;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #000;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(20,32,27,.16);
}

.collateral {
  background: var(--surface-2);
  color: var(--text);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.asset-list {
  display: grid;
  gap: 12px;
}

.asset-list article {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255,255,255,.64);
}

.asset-list img {
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 50%;
  background: var(--white);
  object-fit: contain;
}

.asset-list h3,
.asset-list p {
  margin-bottom: 0;
}

.asset-list span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--green);
  font-weight: 900;
}

.process {
  display: grid;
  grid-template-columns: minmax(240px, .68fr) minmax(0, 1.32fr);
  gap: clamp(24px, 6vw, 78px);
  background: #101a17;
}

.process-copy {
  position: sticky;
  top: 98px;
  align-self: start;
}

.process-rail {
  display: grid;
  gap: 16px;
}

.process-rail article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.075);
}

.process-rail span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.questions {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 72px);
  background: var(--surface);
  color: var(--text);
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-list details {
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--white);
}

.question-list summary {
  cursor: pointer;
  font-weight: 900;
}

.question-list p {
  margin: 12px 0 0;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 34px clamp(16px, 4vw, 54px);
  background: #050806;
  border-top: 1px solid var(--line);
}

.footer-logo { width: 118px; }

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer small {
  color: rgba(255,255,255,.48);
}

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

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  transition: background .2s ease, transform .2s ease;
}

.socials a:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.socials a:hover svg {
  fill: var(--ink);
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .proof-panel {
    min-height: 0;
  }

  .proof-panel img {
    min-height: 220px;
  }
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle { display: grid; }

  .nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .site-header.menu-open .nav { display: grid; }

  .header-actions { justify-self: end; }
  .header-actions .btn-ghost { display: none; }

  .hero-grid,
  .media-band,
  .process,
  .questions {
    grid-template-columns: 1fr;
  }

  .process-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .brand-logo { width: 102px; }
  .btn-small { min-height: 38px; padding: 0 13px; }

  .hero {
    padding: 20px 14px 42px;
  }

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

  .proof-panel {
    grid-template-columns: 1fr;
  }

  .proof-panel img {
    min-height: 300px;
  }

  h1 {
    font-size: 48px;
    line-height: .98;
  }

  .hero-text {
    font-size: 18px;
  }

  .loan-console {
    padding: 18px;
  }

  .console-head,
  .range-field,
  .footer {
    gap: 12px;
  }

  .footer p,
  .footer small {
    line-height: 1.45;
  }

  .socials {
    margin-top: 4px;
  }

  .footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .asset-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 14px;
  }

  .asset-list article {
    grid-template-columns: 48px 1fr;
  }

  .asset-list span {
    grid-column: 2;
    justify-self: start;
  }
}
