:root {
  --canvas: #F4F5FB;
  --dot: rgba(71, 85, 105, 0.16);
  --ink: #0F172A;
  --muted: #475569;
  --soft: #64748B;
  --blue: #077AFF;
  --blue-deep: #0561D6;
  --blue-tint: rgba(7, 122, 255, 0.10);
  --magenta: rgba(212, 38, 126, 0.16);
  --glass-hi: rgba(255, 255, 255, 0.80);
  --glass-mid: rgba(255, 255, 255, 0.42);
  --glass-lo: rgba(255, 255, 255, 0.20);
  --glass-edge: rgba(255, 255, 255, 0.78);
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --col: 440px;
  --spring: cubic-bezier(0.34, 1.32, 0.52, 1);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* Canvas: dot grid plus two soft color fields, fixed behind everything */
.canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(7, 122, 255, 0.20), transparent 46%),
    radial-gradient(circle at 92% 72%, var(--magenta), transparent 44%),
    radial-gradient(var(--dot) 1.2px, transparent 1.3px) 0 0 / 22px 22px,
    var(--canvas);
}

/* ---------- The hub ---------- */
.hub {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: 36px 28px;
  gap: 28px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 1.5px #FFFFFF, 0 8px 20px rgba(139, 16, 168, 0.22);
}

.brand span {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro h1 {
  margin: 0;
  font-size: clamp(28px, 8.4vw, 40px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Title is fitted to one line by script; .fit holds it there */
.intro h1.fit {
  white-space: nowrap;
}

.intro h1 em {
  font-style: normal;
  color: var(--blue);
}

.intro p {
  margin: 0;
  font-size: clamp(16px, 4.4vw, 19px);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Liquid-glass button */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 10px 16px 10px 10px;
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(135deg, var(--glass-hi) 0%, var(--glass-mid) 50%, var(--glass-lo) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.55),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.30),
    inset 0 0 0 0.5px rgba(15, 23, 42, 0.04),
    0 14px 36px rgba(31, 111, 219, 0.12),
    0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease;
  cursor: pointer;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn:active {
  transform: scale(0.985);
}

.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.btn .ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  color: var(--blue);
}

.btn .ico svg {
  width: 22px;
  height: 22px;
}

.btn .label {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.btn .chev {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--soft);
}

/* First link is the primary action: same glass, tinted blue */
.btn.primary {
  color: #FFFFFF;
  background: linear-gradient(160deg, #2A93FF 0%, var(--blue) 45%, var(--blue-deep) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.30),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.12),
    0 16px 36px rgba(7, 122, 255, 0.28),
    0 1px 3px rgba(15, 23, 42, 0.08);
}

.btn.primary .ico {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.btn.primary .chev {
  color: rgba(255, 255, 255, 0.85);
}

/* Store buttons: one on a phone or tablet, both side by side on a computer */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-row .btn {
  flex: 1 1 170px;
}

.btn.store .label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.btn.store .label small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--soft);
}

.foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: center;
}

.foot a {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  padding: 8px 4px;
}

.foot a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Tablets and computers: a little larger, centered vertically */
@media (min-width: 640px) {
  :root {
    --col: 480px;
  }

  .hub {
    padding-block: 48px 32px;
  }

  .stack {
    margin-block: auto;
    gap: 32px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand span {
    font-size: 21px;
  }

  .btn {
    min-height: 68px;
  }

  .btn .label {
    font-size: 18px;
  }
}

/* Short landscape phones: tighten vertical rhythm */
@media (max-height: 500px) and (orientation: landscape) {
  .hub {
    padding-block: 20px 16px;
    gap: 20px;
  }

  .stack {
    gap: 20px;
    margin-block: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
