:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #f3f5f1;
  --ink: #101311;
  --muted: #626a64;
  --faint: #8c948e;
  --line: rgba(16, 19, 17, 0.1);
  --line-strong: rgba(16, 19, 17, 0.16);
  --accent: #16a34a;
  --accent-dark: #12813c;
  --accent-soft: rgba(22, 163, 74, 0.1);
  --shadow: 0 24px 70px -38px rgba(16, 19, 17, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -15%, rgba(22, 163, 74, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 42px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1.03rem;
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex: 0 0 auto;
}

.brand span {
  white-space: nowrap;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 560;
  transition: color 150ms ease;
}

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

.spacer {
  flex: 1 1 auto;
}

.ghost {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 720;
  box-shadow: 0 10px 28px -24px rgba(16, 19, 17, 0.5);
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.ghost:hover {
  color: var(--accent-dark);
  border-color: rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 42px) 10px;
  text-align: center;
}

.hero {
  width: min(760px, 100%);
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.2vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 820;
}

.sub {
  max-width: 58ch;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.sub strong {
  color: var(--ink);
  font-weight: 760;
  box-shadow: inset 0 -0.42em 0 var(--accent-soft);
}

.app-card {
  width: min(568px, 100%);
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)),
    var(--surface);
  box-shadow: var(--shadow);
}

.route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.leg {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  text-align: left;
}

.label {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.asset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin-top: 9px;
  font-size: 1.12rem;
  font-weight: 820;
}

.asset img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.switch {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px -26px rgba(16, 19, 17, 0.55);
  transition: background 150ms ease, color 150ms ease, transform 180ms ease, border-color 150ms ease;
}

.switch span {
  font-size: 1.14rem;
  line-height: 1;
}

.switch:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(22, 163, 74, 0.36);
  transform: rotate(180deg);
}

.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  border-radius: 15px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 820;
  box-shadow: 0 16px 34px -22px rgba(22, 163, 74, 0.72);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -22px rgba(22, 163, 74, 0.82);
}

.foot {
  flex: 0 0 auto;
  padding: 14px 24px 22px;
  color: var(--faint);
  font-size: 0.86rem;
  font-weight: 620;
  text-align: center;
}

@media (max-width: 720px) {
  .topbar {
    padding: 15px 18px;
    gap: 12px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .stage {
    padding: 8px 18px 6px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.1rem);
    line-height: 1.04;
  }

  .sub {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.46;
  }

  .app-card {
    margin-top: 26px;
    padding: 16px;
    border-radius: 20px;
  }

  .route {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .switch {
    justify-self: center;
    width: 40px;
    height: 40px;
  }

  .switch span {
    transform: rotate(90deg);
  }

  .leg {
    padding: 13px 14px;
  }

  .primary {
    min-height: 52px;
    margin-top: 14px;
  }

  .foot {
    padding-bottom: 16px;
  }
}

@media (max-height: 700px) {
  .topbar {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .stage {
    padding-top: 4px;
  }

  h1 {
    font-size: clamp(2.25rem, 5.2vw, 3.8rem);
  }

  .sub {
    margin-top: 10px;
  }

  .app-card {
    margin-top: 20px;
    padding: 16px;
  }

  .foot {
    padding-top: 8px;
    padding-bottom: 12px;
  }
}
