:root {
  --bg: #0d0d0f;
  --panel: #151519;
  --panel-2: #1e1111;
  --red: #ff2a20;
  --red-dark: #9d1210;
  --white: #f6f2ea;
  --muted: #a8a0a0;
  --line: rgba(246, 242, 234, 0.14);
  --green: #c6f006;
  --amber: #ffb84d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 42, 32, 0.22), transparent 34%),
    linear-gradient(135deg, #0b0b0c, #140b0b 48%, #080809);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro video,
.intro-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro video {
  object-fit: cover;
}

.intro-shade {
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.24) 42%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65));
}

.skip {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(246, 242, 234, 0.24);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-weight: 900;
}

.intro-actions {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 16px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.35s ease;
}

.intro.ready .intro-actions {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.intro-actions img {
  width: 94px;
  height: 94px;
  border: 1px solid rgba(246, 242, 234, 0.22);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 22px 70px rgba(255, 42, 32, 0.34);
}

.intro-actions p {
  margin: 0;
  color: var(--muted);
  font: 900 12px "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
}

.intro-actions button,
.hero-actions a,
.cta {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  cursor: pointer;
  font-weight: 950;
}

.intro-actions button {
  min-height: 48px;
  padding: 0 24px;
}

.site {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.84);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
}

nav {
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

nav a {
  padding: 10px 13px;
  border-radius: 999px;
}

nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 72px 0 50px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--red);
  font: 900 12px "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(58px, 8vw, 118px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
}

.hero-actions .outline {
  border: 1px solid var(--line);
  color: var(--white);
  background: transparent;
}

.quote-card,
.route-strip,
.panel,
.docs {
  border: 1px solid var(--line);
  background: rgba(16, 16, 19, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.quote-card {
  overflow: hidden;
  border-radius: 26px;
}

.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--red);
  font: 900 12px "Courier New", ui-monospace, monospace;
}

.swap-box {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.swap-box div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.swap-box span,
dt,
.route-strip span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font: 900 11px "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
}

.swap-box strong {
  display: block;
  margin-bottom: 16px;
  font-size: 22px;
}

.swap-box b {
  color: var(--white);
  font-size: 28px;
}

.swap-box button {
  justify-self: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: #09090a;
  font-size: 20px;
}

.quote-card dl,
.token-card dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.quote-card dl div,
.token-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

dt,
dd {
  margin: 0;
}

dd {
  font-weight: 950;
  text-transform: uppercase;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 28px;
  border-radius: 24px;
  overflow: hidden;
}

.route-strip div {
  min-height: 190px;
  padding: 24px;
}

.route-strip div + div {
  border-left: 1px solid var(--line);
}

.route-strip strong {
  display: block;
  margin-bottom: 18px;
  font-size: 25px;
  text-transform: uppercase;
}

.route-strip p,
.docs p {
  color: var(--muted);
  line-height: 1.68;
}

.terminal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-bottom: 28px;
}

.panel,
.docs {
  border-radius: 24px;
  padding: 24px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--red);
  font: 900 12px "Courier New", ui-monospace, monospace;
}

.table {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 0.7fr;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row.head {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font: 900 11px "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
}

.green {
  color: var(--green);
}

.warn {
  color: var(--amber);
}

.token-card h2,
.docs h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.92;
  text-transform: uppercase;
}

.docs {
  margin-bottom: 56px;
}

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

.docs-grid article {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.docs-grid h3 {
  font-size: 20px;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  color: var(--muted);
  font: 900 12px "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .hero,
  .terminal {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .quote-card {
    max-width: 520px;
  }

  .route-strip,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .route-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    border-radius: 24px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  nav a {
    padding: 8px 10px;
  }

  h1 {
    font-size: 54px;
  }

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

  footer {
    flex-direction: column;
  }
}
