:root {
  --bg: #edf5ff;
  --bg-2: #f8fbff;
  --text: #16314f;
  --muted: #5f7491;
  --line: rgba(255, 255, 255, 0.58);
  --glass: rgba(255, 255, 255, 0.45);
  --shadow: 0 24px 60px rgba(54, 92, 143, 0.16);
  --shadow-soft: 0 16px 32px rgba(63, 94, 140, 0.1);
  --primary: #4f8cff;
  --primary-2: #7b9fff;
  --accent: #8be0ff;
  --radius: 28px;
  --radius-sm: 20px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #ffffff 0%, rgba(255,255,255,0.65) 26%, transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow-x: hidden;
}

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

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

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.7;
}

.orb-1 {
  width: 420px;
  height: 420px;
  left: -110px;
  top: 90px;
  background: radial-gradient(circle, rgba(160,205,255,0.85), rgba(160,205,255,0));
}

.orb-2 {
  width: 360px;
  height: 360px;
  right: -60px;
  top: 220px;
  background: radial-gradient(circle, rgba(185,243,255,0.9), rgba(185,243,255,0));
}

.orb-3 {
  width: 440px;
  height: 440px;
  left: 42%;
  bottom: -170px;
  background: radial-gradient(circle, rgba(182,196,255,0.65), rgba(182,196,255,0));
}

.noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .18;
  mix-blend-mode: soft-light;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.58), rgba(255,255,255,0.28));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-soft);
}

.glass-border {
  border: 1px solid var(--line);
}

.inline-glass {
  display: inline-flex;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  width: min(var(--container), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 14px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.hero {
  padding: 72px 0 28px;
  min-height: 36vh;
  display: flex;
  align-items: center;
}

.eyebrow {
  width: max-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.6);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  letter-spacing: -0.04em;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .96;
  max-width: 760px;
}

.hero h1 span {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), #74a5ff 45%, #86dfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 780px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.section {
  padding: 0 0 60px;
}

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
}

.feature-card {
  border-radius: var(--radius);
  padding: 28px;
}

.span-two {
  grid-column: 1 / -1;
}

.card-badge {
  width: max-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}

.card-badge.dark {
  color: #32547f;
}

.feature-card h2,
.feature-card h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.feature-card h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.feature-card h3 {
  font-size: clamp(22px, 3vw, 30px);
}

.muted-text,
.small-note {
  color: var(--muted);
}

.muted-text {
  font-size: 16px;
  line-height: 1.65;
  margin-top: 14px;
}

.small-note {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
}

.status-line {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(79, 140, 255, 0.14);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.info-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.46);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.download-row {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

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

.btn {
  border: none;
  border-radius: 20px;
  padding: 15px 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 32px rgba(88, 128, 255, 0.26);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.75);
}

.btn-install.disabled {
  pointer-events: none;
  opacity: .55;
}

.qr-shell {
  margin-top: 20px;
  min-height: 320px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qr-shell img {
  width: min(100%, 320px);
  height: auto;
}

.qr-placeholder {
  color: var(--muted);
  font-weight: 600;
}

.info-columns {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-columns p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.error-state .status-dot {
  background: #e36e6e;
  box-shadow: 0 0 0 8px rgba(227, 110, 110, 0.14);
}

.success-state .status-dot {
  background: #3aa878;
  box-shadow: 0 0 0 8px rgba(58, 168, 120, 0.14);
}

@media (max-width: 960px) {
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 12px;
    width: min(var(--container), calc(100% - 20px));
    margin-top: 12px;
  }

  .hero {
    padding-top: 54px;
  }

  .feature-card {
    padding: 22px;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

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

  .qr-shell {
    min-height: 260px;
  }
}
