:root {
  color-scheme: light;
  --blue: #1687ff;
  --blue-dark: #0b62d6;
  --blue-soft: #eaf4ff;
  --green: #18b981;
  --orange: #f59e0b;
  --ink: #111827;
  --secondary: #64748b;
  --tertiary: #94a3b8;
  --line: #e5e7eb;
  --page: #f7f9fc;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 36px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(22, 135, 255, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 650;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 68px);
  display: grid;
  place-items: center;
  background: #101827;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  opacity: 0.48;
  transform: scale(1.08);
  filter: saturate(1.02);
}

.hero-media img {
  width: min(31vw, 360px);
  min-width: 220px;
  border-radius: 36px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.hero-media img:nth-child(2) {
  transform: translateY(38px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 24, 0.62);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  padding: 76px 0 88px;
  color: #fff;
  text-align: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.hero-brand img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.hero h1 {
  margin: 26px auto 18px;
  max-width: 780px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 500;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 800;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 36px rgba(22, 135, 255, 0.32);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-title {
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4.8vw, 46px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-lead {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--secondary);
  font-size: 17px;
}

.download-section {
  padding-bottom: 28px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(22, 135, 255, 0.15);
  border-radius: 30px;
  background: linear-gradient(135deg, #fff, #eef7ff);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.download-panel h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.14;
}

.download-meta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 750;
}

.download-meta strong {
  color: var(--ink);
}

.download-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-note {
  margin: 14px 0 0;
  color: var(--secondary);
  font-size: 14px;
}

.download-package-list {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-package-list:empty {
  display: none;
}

.download-package-list.compact {
  width: min(520px, 100%);
}

.download-package {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(22, 135, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.download-package span {
  color: var(--secondary);
  font-weight: 700;
}

.download-card {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 26px;
  background: #101827;
  color: #fff;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
}

.download-card img {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(22, 135, 255, 0.28);
}

.download-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.download-card span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.download-card small {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.52);
}

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

.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--secondary);
}

.showcase {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 46px;
  align-items: center;
}

.phone-stack {
  position: relative;
  min-height: 790px;
}

.phone {
  position: absolute;
  width: min(68%, 320px);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.phone.main {
  left: 8%;
  top: 0;
  z-index: 2;
}

.phone.side {
  right: 2%;
  top: 82px;
  z-index: 1;
  opacity: 0.84;
}

.flow-list {
  display: grid;
  gap: 14px;
}

.flow-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

.flow-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.flow-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.flow-item p {
  margin: 0;
  color: var(--secondary);
}

.target-band {
  background: #111827;
  color: #fff;
}

.target-band .section-lead,
.target-band .target-card p {
  color: rgba(255, 255, 255, 0.72);
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.target-card {
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.target-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.target-card p {
  margin: 0;
  font-size: 13px;
}

.beta-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 68px);
  display: grid;
  place-items: center;
  background: #101827;
}

.beta-hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  opacity: 0.5;
  transform: scale(1.08);
}

.beta-hero-media img {
  width: min(30vw, 340px);
  min-width: 220px;
  border-radius: 36px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.beta-hero-media img:nth-child(2) {
  transform: translateY(42px);
}

.beta-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 24, 0.64);
}

.beta-hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  padding: 76px 0 88px;
  color: #fff;
  text-align: center;
}

.beta-hero-content h1 {
  margin: 26px auto 18px;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

.beta-hero-content p {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 550;
}

.beta-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 28px;
}

.beta-metric,
.beta-task-card,
.signup-form {
  border: 1px solid rgba(22, 135, 255, 0.14);
  background: var(--card);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.beta-metric {
  padding: 22px;
  border-radius: 22px;
}

.beta-metric strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.beta-metric span {
  display: block;
  margin-top: 8px;
  color: var(--secondary);
  font-weight: 650;
}

.beta-grid-section {
  padding-top: 54px;
}

.beta-task-grid,
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.beta-task-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
}

.beta-task-card span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
}

.beta-task-card h3 {
  margin: 16px 0 12px;
  font-size: 24px;
}

.beta-task-card ul {
  margin: 0;
  padding-left: 20px;
  color: #334155;
}

.beta-task-card li + li {
  margin-top: 8px;
}

.install-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.install-card strong {
  display: block;
  font-size: 24px;
}

.install-card p {
  margin: 10px 0 18px;
  color: rgba(255, 255, 255, 0.72);
}

.signup-section {
  padding-bottom: 96px;
}

.signup-form {
  padding: clamp(22px, 4vw, 38px);
  border-radius: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.form-field.full {
  margin-top: 18px;
}

.form-field span {
  font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.form-field textarea {
  padding-top: 12px;
  resize: vertical;
  line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(22, 135, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(22, 135, 255, 0.12);
}

.choice-group {
  margin: 18px 0 0;
  padding: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.choice-group legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.choice-group label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.signup-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.signup-actions p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
}

.signup-actions a,
.signup-result a {
  color: var(--blue-dark);
  font-weight: 800;
}

.signup-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.signup-result {
  margin-top: 16px;
  color: var(--secondary);
  font-weight: 700;
}

.signup-result.success,
.signup-result.error {
  padding: 12px 14px;
  border-radius: 16px;
}

.signup-result.success {
  background: rgba(24, 185, 129, 0.12);
  color: #087a52;
}

.signup-result.error {
  background: rgba(245, 158, 11, 0.14);
  color: #8a5200;
}

.legal-page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 88px;
}

.legal-page.wide {
  width: min(1040px, calc(100% - 36px));
}

.legal-kicker {
  margin: 8px 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.legal-page h1 {
  margin: 16px 0 8px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.12;
}

.legal-meta {
  margin: 0 0 30px;
  color: var(--secondary);
}

.legal-intro {
  margin-bottom: 18px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(22, 135, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.legal-intro p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.legal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(22, 135, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
}

.legal-toc {
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 750;
}

.legal-toc a:hover,
.legal-actions a:hover,
.legal-card a:hover {
  color: var(--blue);
}

.legal-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 22px;
}

.legal-section:first-child h2 {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #334155;
}

.legal-card a {
  color: var(--blue-dark);
  font-weight: 750;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-section {
  scroll-margin-top: 92px;
}

.legal-section + .legal-section {
  margin-top: 30px;
  padding-top: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.legal-callout {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  background: var(--blue-soft);
  color: #234160;
  font-size: 15px;
  font-weight: 650;
}

.legal-table-wrap {
  width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.legal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #f8fafc;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.legal-table td {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.sdk-list {
  display: grid;
  gap: 14px;
}

.sdk-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.sdk-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sdk-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.25;
}

.sdk-card-head p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

.sdk-tag {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.sdk-meta {
  margin: 0;
  display: grid;
  gap: 10px;
}

.sdk-meta div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
}

.sdk-meta dt {
  color: var(--tertiary);
  font-size: 13px;
  font-weight: 850;
}

.sdk-meta dd {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}

.invite-page {
  overflow: hidden;
}

.browser-open-tip {
  position: fixed;
  top: 82px;
  right: 14px;
  z-index: 60;
  width: min(250px, calc(100vw - 28px));
  padding: 12px 14px;
  border: 1px solid rgba(22, 135, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.browser-open-tip::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 24px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(22, 135, 255, 0.18);
  border-top: 1px solid rgba(22, 135, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
}

.browser-open-tip strong,
.browser-open-tip span {
  position: relative;
  display: block;
}

.browser-open-tip strong {
  color: var(--ink);
  font-size: 14px;
}

.browser-open-tip span {
  margin-top: 3px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.45;
}

.invite-hero {
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
  padding: 74px 0 86px;
}

.invite-copy .hero-brand {
  background: var(--blue-soft);
  border-color: rgba(22, 135, 255, 0.16);
  color: var(--blue-dark);
}

.invite-copy h1 {
  margin: 26px 0 16px;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.invite-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--secondary);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 550;
}

.invite-code-card {
  margin-top: 28px;
  width: min(440px, 100%);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  border: 1px solid rgba(22, 135, 255, 0.2);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.invite-code-card span {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 750;
}

.invite-code-card strong {
  grid-column: 1;
  color: var(--ink);
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1;
  letter-spacing: 0;
  word-break: break-all;
}

.invite-code-card button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.invite-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button.secondary.light {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.light-note {
  color: var(--tertiary);
}

.invite-phone {
  position: relative;
  min-height: 560px;
}

.invite-phone::before {
  content: "";
  position: absolute;
  inset: 48px 0 44px;
  border-radius: 38px;
  background: linear-gradient(135deg, var(--blue-soft), #e8fff6);
  transform: rotate(-5deg);
}

.invite-phone img {
  position: relative;
  width: min(78%, 340px);
  margin: 0 auto;
  display: block;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.invite-steps {
  padding-top: 20px;
}

.site-footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--secondary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .nav {
    height: 62px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 62px);
  }

  .hero-media {
    justify-content: flex-start;
    transform: scale(1.18) translateX(-8%);
  }

  .hero-media img {
    min-width: 250px;
  }

  .hero-media img:nth-child(3) {
    display: none;
  }

  .hero-content {
    text-align: left;
  }

  .beta-hero {
    min-height: calc(100svh - 62px);
  }

  .beta-hero-media {
    justify-content: flex-start;
    transform: scale(1.18) translateX(-8%);
  }

  .beta-hero-media img {
    min-width: 250px;
  }

  .beta-hero-media img:nth-child(3) {
    display: none;
  }

  .beta-hero-content {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .feature-grid,
  .showcase,
  .target-grid,
  .invite-hero,
  .download-panel,
  .beta-summary,
  .beta-task-grid,
  .install-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .phone-stack {
    min-height: 620px;
  }

  .invite-hero {
    padding: 52px 0 42px;
  }

  .invite-phone {
    min-height: 420px;
  }

  .download-card {
    min-height: 190px;
  }

  .sdk-card-head,
  .sdk-meta div {
    grid-template-columns: 1fr;
  }

  .sdk-card-head {
    display: grid;
  }

  .sdk-tag {
    width: fit-content;
  }

  .browser-open-tip {
    top: 72px;
  }

  .phone {
    width: 68%;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .button {
    width: 100%;
  }

  .choice-group {
    display: grid;
  }

  .choice-group label {
    border-radius: 14px;
  }

  .phone-stack {
    min-height: 560px;
  }

  .invite-code-card {
    grid-template-columns: 1fr;
  }

  .invite-code-card button {
    grid-row: auto;
    grid-column: auto;
  }

  .legal-page {
    width: min(100% - 24px, 920px);
    padding-top: 34px;
  }

  .legal-card,
  .legal-intro {
    border-radius: 18px;
  }

  .legal-actions a,
  .legal-toc a {
    width: 100%;
  }

  .invite-phone {
    min-height: 360px;
  }

  .phone.main {
    left: 0;
  }

  .phone.side {
    right: 0;
  }
}
