:root {
  --bg: #07090f;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #2b9bff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(10, 132, 255, 0.28), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(120, 70, 240, 0.22), transparent 60%),
    radial-gradient(900px 700px at 80% 110%, rgba(0, 160, 190, 0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }

/* Images scale with their width and keep their shape; the width and height
   attributes in the HTML only reserve space while they load. */
img { max-width: 100%; height: auto; }
a:hover { text-decoration: underline; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(#1a2140, #080a17);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  box-shadow: 0 0 24px rgba(10, 132, 255, 0.45);
}
nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
nav a[aria-current="page"] { color: var(--text); }

.hero { padding: 48px 0 24px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 60px); line-height: 1.08; margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #6ed6ff, #0a84ff 50%, #9e6bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 20px; margin: 0; }

h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 0 0 6px; }
.muted { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  margin: 14px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card p { margin: 6px 0 0; color: #d2d2d7; }
.card ul, .card ol { margin: 8px 0 0; padding-left: 22px; color: #d2d2d7; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.grid .card { margin: 0; }

details.card summary { cursor: pointer; font-weight: 600; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details.card[open] summary::after { content: "–"; }

.button {
  display: inline-block; margin-top: 14px; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: white; font-weight: 600;
}
.button:hover { text-decoration: none; filter: brightness(1.1); }

footer.site { color: var(--muted); font-size: 14px; padding: 48px 0 40px; border-top: 1px solid var(--border); margin-top: 56px; }
footer.site a { color: var(--muted); }

.footer-links { margin: 0 0 10px; }
.footer-links a { color: var(--text); }

/* MARK: - Landing page */

.landing { overflow-x: hidden; }

/* Slowly drifting glows behind the page, like the app's ambient backdrop. */
.glows { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glows span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.35;
  animation: drift 26s ease-in-out infinite alternate;
}
.glows span:nth-child(1) { background: #0a84ff; top: -25vmax; left: -15vmax; }
.glows span:nth-child(2) { background: #7a46f0; top: -10vmax; right: -25vmax; animation-duration: 32s; animation-delay: -8s; }
.glows span:nth-child(3) { background: #00a0be; bottom: -30vmax; left: 20vmax; animation-duration: 38s; animation-delay: -15s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8vmax, 6vmax) scale(1.15); }
}

.landing-hero { text-align: center; padding: 40px 0 10px; }

/* The logo draws its ribbon, then the arrowhead pops in. */
.hero-logo {
  width: 132px; height: 132px; margin: 0 auto 28px; border-radius: 30px;
  background: linear-gradient(#1a2140, #080a17); border: 1px solid var(--border);
  display: grid; place-items: center;
  box-shadow: 0 0 60px rgba(10, 132, 255, 0.5);
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both, glow 4s ease-in-out 1.5s infinite alternate;
}
.hero-logo .ribbon { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.3s cubic-bezier(.6,0,.2,1) 0.35s forwards; }
.hero-logo .arrow { transform-origin: 82px 133px; transform: scale(0); animation: pop 0.45s cubic-bezier(.3,1.6,.5,1) 1.45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes glow { to { box-shadow: 0 0 90px rgba(10, 132, 255, 0.75), 0 0 30px rgba(122, 70, 240, 0.4); } }

.landing-hero h1 {
  font-size: clamp(44px, 8vw, 84px); line-height: 1.03; letter-spacing: -0.03em; margin: 0 0 18px;
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) 0.25s both;
}
.landing-hero h1 .grad {
  background: linear-gradient(90deg, #6ed6ff, #0a84ff, #9e6bff, #6ed6ff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.landing-hero .lede {
  color: var(--muted); font-size: clamp(18px, 2.4vw, 22px); max-width: 640px; margin: 0 auto;
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) 0.45s both;
}
.actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: rise 0.9s cubic-bezier(.2,.8,.2,1) 0.6s both; }
.button.secondary { background: rgba(255,255,255,0.08); border: 1px solid var(--border); color: var(--text); }
.platforms { margin-top: 22px; color: var(--muted); font-size: 15px; letter-spacing: 0.02em; animation: rise 0.9s cubic-bezier(.2,.8,.2,1) 0.75s both; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Apple TV screen with an iPhone floating in front. */
.stage { position: relative; max-width: 1000px; margin: 56px auto 0; padding: 0 24px 60px; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) 0.85s both; }
.screen {
  display: block; width: 100%; border-radius: 18px; border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 40px 120px rgba(10, 60, 160, 0.45), 0 20px 50px rgba(0,0,0,0.6);
  background: #000;
}
.phone {
  position: absolute; width: 23%; right: 0; bottom: 0; border-radius: 30px;
  border: 6px solid #101014; outline: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 30px 80px rgba(110, 60, 220, 0.5), 0 15px 40px rgba(0,0,0,0.6);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-16px); } }

.section-title { text-align: center; font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.02em; margin: 90px 0 8px; }
.section-lede { text-align: center; color: var(--muted); margin: 0 auto 30px; max-width: 600px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { margin: 0; transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.feature:hover { transform: translateY(-6px); border-color: rgba(110, 214, 255, 0.45); background: rgba(255,255,255,0.09); }
.feature .symbol {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(110,214,255,0.25), rgba(122,70,240,0.25)); border: 1px solid var(--border);
}

.gallery { display: flex; gap: clamp(10px, 2.5vw, 22px); justify-content: center; align-items: flex-end; }
/* Three phones always fit side by side, from a narrow phone screen up to a wide window. */
.gallery figure { margin: 0; width: min(230px, 29vw); text-align: center; }
.gallery img { width: 100%; border-radius: clamp(14px, 3.5vw, 28px); border: clamp(3px, 0.6vw, 5px) solid #101014; outline: 1px solid rgba(255,255,255,0.22); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.gallery figure:nth-child(2) img { transform: translateY(-24px); }
.gallery figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }

.callout { text-align: center; padding: 40px 28px; }
.callout h2 { margin: 0 0 8px; font-size: clamp(26px, 3.5vw, 34px); }
.callout p { max-width: 560px; margin: 0 auto; }

/* Sections slide up as they scroll into view. */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.feature.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; transition-duration: 0.3s; }
.features .reveal:nth-child(2), .gallery .reveal:nth-child(2) { transition-delay: 0.1s; }
.features .reveal:nth-child(3), .gallery .reveal:nth-child(3) { transition-delay: 0.2s; }
.features .reveal:nth-child(5) { transition-delay: 0.1s; }
.features .reveal:nth-child(6) { transition-delay: 0.2s; }

@media (max-width: 640px) {
  nav a { margin-left: 14px; }
  .phone { width: 30%; border-width: 4px; border-radius: 18px; }
}

/* Respect Reduce Motion: show everything in place, without movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-logo .ribbon { stroke-dashoffset: 0; }
  .hero-logo .arrow { transform: none; }
}
