:root {
  --bg-1: #0f172a;
  --bg-2: #0b2239;
  --teal-glow: #6ee7d8;
  --blue-glow: #6baeff;
  --text: #eef6ff;
  --muted: #c8d9ee;
  --card-bg: rgba(226, 242, 255, 0.1);
  --card-stroke: rgba(255, 255, 255, 0.25);
  --shadow: 0 16px 44px rgba(2, 8, 23, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 560px at 50% -8%, rgba(107, 174, 255, 0.2), transparent 72%),
    radial-gradient(840px 520px at 84% 8%, rgba(110, 231, 216, 0.16), transparent 72%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, #0a2234 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.45;
  padding: 2.25rem 1.2rem 2rem;
}

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

.bg-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.orb-a {
  width: min(62vw, 560px);
  aspect-ratio: 1 / 1;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.2;
  filter: blur(100px);
  background: radial-gradient(circle at 45% 40%, rgba(175, 223, 255, 0.52) 0%, rgba(91, 170, 255, 0.34) 35%, rgba(10, 24, 52, 0) 74%);
  animation: orbFloatA 12s ease-in-out infinite;
}

.orb-b {
  width: min(44vw, 420px);
  aspect-ratio: 1 / 1;
  right: -120px;
  top: 16%;
  opacity: 0.14;
  filter: blur(90px);
  background: radial-gradient(circle at 48% 40%, rgba(120, 255, 229, 0.45) 0%, rgba(56, 145, 255, 0.22) 43%, rgba(10, 24, 52, 0) 76%);
  animation: orbFloatB 16s ease-in-out infinite;
}

.orb-c {
  width: min(38vw, 360px);
  aspect-ratio: 1 / 1;
  left: -100px;
  bottom: 8%;
  opacity: 0.12;
  filter: blur(80px);
  background: radial-gradient(circle at 52% 46%, rgba(255, 236, 210, 0.25) 0%, rgba(98, 182, 255, 0.18) 38%, rgba(10, 24, 52, 0) 74%);
  animation: orbFloatC 20s ease-in-out infinite;
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28) 0 0.8px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.22) 0 0.8px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
}

@keyframes orbFloatA {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-48%) translateY(18px) scale(1.03); }
}

@keyframes orbFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 14px) scale(1.04); }
}

@keyframes orbFloatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -12px) scale(1.02); }
}

.hero,
.apps,
.footer {
  width: min(1040px, 100%);
}

.hero {
  text-align: center;
  padding: 3.8rem 1rem 2.2rem;
}

.brand {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0.8rem auto 0;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14ch;
  font-weight: 620;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.3rem;
  text-decoration: none;
  font-weight: 560;
  transition: transform 180ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn-primary {
  color: #051a2e;
  background: linear-gradient(135deg, #8ec8ff 0%, #5de5d3 100%);
  box-shadow: 0 8px 28px rgba(93, 188, 255, 0.35);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.btn-testflight {
  color: var(--text);
  border-color: rgba(141, 217, 255, 0.46);
  background: rgba(146, 220, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(141, 217, 255, 0.2) inset;
}

.btn-disabled {
  color: rgba(238, 246, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 12px 32px rgba(94, 212, 255, 0.42);
}

.btn-testflight:hover,
.btn-testflight:focus-visible {
  box-shadow: 0 8px 30px rgba(108, 190, 255, 0.25);
}

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

.card {
  border-radius: var(--radius);
  border: 1px solid var(--card-stroke);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  transition: transform 200ms ease, box-shadow 260ms ease, border-color 220ms ease;
}

.app-icon {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 16px;
  margin: 0 auto 12px;
  box-shadow: 0 8px 22px rgba(4, 12, 33, 0.32);
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(4, 12, 33, 0.5);
  border-color: rgba(196, 235, 255, 0.48);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

h2 {
  margin: 0;
  font-size: 1.18rem;
}

.status {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.24rem 0.54rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

p {
  margin: 0.82rem 0 0;
  color: var(--muted);
}

.hero-note {
  margin-top: 0.68rem;
  font-size: 0.88rem;
}

.card-actions {
  margin-top: 1rem;
}

.legal-links {
  margin-top: 0.86rem;
  display: flex;
  gap: 1rem;
}

.legal-links a,
.footer a {
  color: #d8edff;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted);
}

.footer p {
  margin: 0.38rem 0 0;
}

@media (max-width: 680px) {
  body {
    padding-top: 1.5rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

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

  .orb-a {
    filter: blur(72px);
  }

  .orb-b,
  .orb-c {
    filter: blur(60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-orb {
    animation: none;
  }

  .btn,
  .card {
    transition: none;
  }
}
