:root {
  --bg: #F6F7F8;
  --surface: #FFFFFF;
  --surface-soft: #FAFBFC;
  --ink: #111418;
  --muted: #5C6673;
  --faint: #8A94A3;
  --line: rgba(17, 20, 24, 0.10);
  --line-strong: rgba(17, 20, 24, 0.16);
  --accent: #2E8FE6;
  --accent-dark: #1E78C8;
  --accent-soft: rgba(46, 143, 230, 0.11);
  --shadow: 0 28px 70px -38px rgba(17, 20, 24, 0.45);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(680px 360px at 50% -12%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
}

.brand img {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 540;
  white-space: nowrap;
  transition: color 160ms ease;
}

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

.spacer {
  flex: 1 1 auto;
}

.ghost {
  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.68);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 680;
  white-space: nowrap;
  box-shadow: 0 10px 28px -24px rgba(17, 20, 24, 0.7);
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ghost:hover {
  border-color: rgba(46, 143, 230, 0.42);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 10px clamp(18px, 4vw, 42px);
}

.hero {
  width: min(620px, 100%);
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
}

.sub {
  max-width: 48ch;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.sub strong {
  color: var(--ink);
  font-weight: 760;
}

.app-card {
  width: min(560px, 100%);
  margin: 34px auto 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

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

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

.label {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 780;
}

.chip img {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(17, 20, 24, 0.06);
}

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

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

.switch:hover {
  border-color: rgba(46, 143, 230, 0.42);
  background: var(--accent-soft);
  color: var(--accent-dark);
  transform: rotate(180deg);
}

.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  border-radius: 16px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 780;
  box-shadow: 0 20px 44px -28px rgba(46, 143, 230, 0.9);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 22px 50px -28px rgba(46, 143, 230, 0.95);
}

.foot {
  flex: none;
  padding: 16px 24px 24px;
  color: var(--faint);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 680px) {
  body {
    overflow: hidden;
  }

  .topbar {
    gap: 10px;
    padding: 15px 16px;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 0.95rem;
  }

  .ghost {
    display: none;
  }

  .stage {
    align-items: start;
    justify-items: start;
    padding: 42px 18px 8px;
  }

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

  h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.05rem);
  }

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

  .app-card {
    margin-top: 28px;
    padding: 16px;
    border-radius: 22px;
  }

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

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

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

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

  .foot {
    padding: 10px 18px 16px;
  }
}

@media (max-height: 720px) and (min-width: 681px) {
  .topbar {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .app-card {
    margin-top: 24px;
  }

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