:root { --blue: #1e8bff; --cyan: #4fd8ff; --deep: #0047ff; --txt: #dce9ff; --dim: #7f93b5; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: #000; color: var(--txt); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; overflow-x: hidden; }
#waves { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
header, main, footer { position: relative; z-index: 1; }
a { color: var(--cyan); text-decoration: none; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 16px 5vw; background: linear-gradient(#000d, #0000); backdrop-filter: blur(8px); }
.brand { font-weight: 800; font-size: 20px; color: #fff; letter-spacing: .5px; line-height: 1; display: inline-flex; align-items: center; }
.brand img { width: 32px; height: 32px; border-radius: 22.5%; margin-right: 10px; }
.brand span { font-size: 1.4em; line-height: 1; margin-left: 1px; color: var(--blue); text-shadow: 0 0 12px var(--blue); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--dim); font-size: 15px; }
.nav nav a:hover { color: #fff; }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-left: auto; padding: 0 8px; background: none; border: 1px solid #1e8bff44; border-radius: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 360px); justify-content: center; align-items: center; gap: 40px; padding: 4vh 7vw 4vh calc(7vw + 28px); }
.kicker { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; color: var(--cyan); margin-bottom: 18px; }
h1 { font-size: clamp(34px, 4.8vw, 66px); line-height: 1.02; font-weight: 800; letter-spacing: -2px; color: #fff; }
h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 800; letter-spacing: -1px; color: #fff; text-align: center; margin-bottom: 48px; }
/* inline-block + text-fill: Safari drops gradient (background-clip) text that wraps or gets repainted. */
.glow { display: inline-block; max-width: 100%; /* let long phrases wrap inside the box on phones instead of pushing the page sideways */ padding-bottom: .16em; margin-bottom: -.16em; /* room for g/y descenders: the gradient only paints inside the box, and tight line-heights cut them off */ -webkit-text-fill-color: transparent; background: linear-gradient(90deg, var(--cyan), var(--blue) 25%, #7a5cff 50%, var(--blue) 75%, var(--cyan)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px #1e8bff88); animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.lead { font-size: 20px; color: var(--dim); max-width: 560px; margin: 26px 0 34px -28px; background: #020814dd; border: 1px solid #1e8bff44; border-radius: 16px; padding: 24px 30px; box-shadow: 0 0 40px #1e8bff22; }
.hero-lead { font-size: 17px; line-height: 1.55; padding: 20px 26px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
/* The hero's three buttons share one width: the widest label sets it. */
.hero .cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.hero .cta .btn { text-align: center; white-space: nowrap; padding-left: 18px; padding-right: 18px; }
.btn { padding: 15px 28px; border-radius: 14px; font-weight: 700; transition: .2s; }
.btn.primary { background: linear-gradient(135deg, var(--deep), var(--blue)); color: #fff; box-shadow: 0 0 30px #1e8bff77, inset 0 0 0 1px #4fd8ff66; }
.btn.primary:hover { box-shadow: 0 0 50px #1e8bffcc, inset 0 0 0 1px var(--cyan); transform: translateY(-2px); }
.btn.ghost { border: 1px solid #1e8bff66; color: var(--txt); }
.btn.ghost:hover { border-color: var(--cyan); color: #fff; }
.fine { font-size: 13px; color: #5d6f8f; margin-top: 18px; }
.menu-icons { display: flex; gap: 28px; align-items: flex-end; margin: -14px 0 30px; }
.menu-icons figure { margin: 0; text-align: center; }
.menu-icons img { display: block; margin: 0 auto; }
.menu-icons .star-btn { align-self: center; position: relative; top: 5px; }
.menu-icons figcaption { margin-top: 6px; color: var(--dim); font-size: 13px; }

.shot { position: relative; display: grid; place-items: center; }
.shot img { position: relative; width: 100%; max-width: 360px; height: auto; border-radius: 30px 30px 18px 18px; box-shadow: 0 0 0 1px #1e8bff44, 0 30px 80px #000, 0 0 90px #1e8bff55; animation: float 7s ease-in-out infinite; }
.ring { position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #1e8bff00 0 18px, #1e8bff22 19px, #1e8bff00 21px); mask: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); animation: pulse 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .6; } }

.showcase { padding: 6vh 7vw 0; text-align: center; scroll-margin-top: 60px; }
.showcase .lead { max-width: 760px; margin: 18px auto 0; }
.demo { display: block; width: min(800px, 92vw); height: auto; margin: 48px auto 0; border-radius: 18px; box-shadow: 0 0 0 1px #1e8bff44, 0 30px 80px #000, 0 0 90px #1e8bff55; }
.pair { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 48px; margin-top: 48px; }
.pair figure { margin: 0; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 20px; width: min(386px, 86vw); }
/* An invisible line the height of a figcaption, so the card's bottom lines up with the tear-off screenshot's bottom. */
.stack::after { content: "\00a0"; font-size: 15px; margin-top: -4px; visibility: hidden; }
.callout { flex: 1; text-align: left; background: #020814dd; border: 1px solid #1e8bff44; border-radius: 18px; padding: 26px 28px; box-shadow: 0 0 40px #1e8bff22; }
.callout h3 { font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -0.5px; color: #fff; margin: 0 0 14px; }
.callout p { color: var(--dim); font-size: 16px; margin: 0 0 12px; }
.callout ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--txt); font-size: 15px; }
.pair img, .pair video { display: block; width: min(386px, 86vw); height: auto; border-radius: 18px; box-shadow: 0 0 0 1px #1e8bff44, 0 30px 80px #000, 0 0 90px #1e8bff55; }
/* Crops a full 848×1268 screenshot down to the 720×1144 panel at (64, 68), like the pre-cropped Stars shots. */
.pair .crop { display: block; width: min(386px, 86vw); aspect-ratio: 720 / 1384; overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 1px #1e8bff44, 0 30px 80px #000, 0 0 90px #1e8bff55; }
.pair .crop img { width: 117.778%; max-width: none; margin: -9.444% 0 0 -8.889%; border-radius: 0; box-shadow: none; }
.pair figcaption { margin-top: 16px; color: var(--dim); font-size: 15px; }
.trio { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin: 40px auto 0; padding: 0; list-style: none; max-width: 1180px; }
.trio figure { margin: 0; }
.trio img, .trio video { display: block; width: min(340px, 86vw); height: auto; border-radius: 16px; box-shadow: 0 0 0 1px #1e8bff44, 0 20px 60px #000, 0 0 60px #1e8bff44; }
.trio figcaption { margin-top: 14px; color: var(--dim); font-size: 15px; }
.trio figcaption b { color: var(--txt); }
.click-hint { display: block; margin-top: 6px; font-size: 14px; color: var(--cyan); }
.how-title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; color: #fff; margin: 64px 0 0; }
.roots-title { position: relative; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -1px; margin-top: 88px; padding-top: 52px; }
.roots-title::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(560px, 80%); height: 1px; background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), var(--blue), transparent); box-shadow: 0 0 18px #1e8bff; }
.eyebrow { display: block; width: fit-content; margin: 0 auto 16px; padding: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); background: #1e8bff14; border: 1px solid #4fd8ff55; border-radius: 999px; box-shadow: 0 0 20px #1e8bff33; }
.roots { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 48px; margin-top: 36px; }
.roots figure { margin: 0; }
.roots img { display: block; margin: 0 auto; width: 167px; height: 317px; border-radius: 20% / 10.5%; filter: drop-shadow(0 0 30px #1e8bff55); }
.roots .crop { display: block; margin: 0 auto; width: 167px; height: 314px; overflow: hidden; border-radius: 20% / 10.5%; filter: drop-shadow(0 0 30px #1e8bff55); }
.roots .crop img { filter: none; transform: scale(1.022, 1.009); }
.roots .crop.noscale img { transform: none; }
.roots figcaption { margin-top: 14px; color: var(--dim); font-size: 15px; }
.features, .build, .releases { padding: 6vh 7vw; scroll-margin-top: 60px; }
.releases { text-align: center; }
.release-table { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: collapse; text-align: left; background: #020814dd; border: 1px solid #1e8bff44; border-radius: 16px; overflow: hidden; box-shadow: 0 0 40px #1e8bff22; font-size: 15px; }
.release-table th, .release-table td { padding: 14px 20px; }
.release-table th { color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.release-table tbody tr { border-top: 1px solid #1e8bff22; }
.release-table tbody tr:hover { background: #1e8bff11; }
.release-loading { text-align: center; color: var(--dim); }
.version-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid #1e8bff66; font-weight: 700; }
.version-badge:hover { border-color: var(--cyan); color: #fff; }
.build .lead { max-width: 640px; margin: 0 auto 34px; }
.showcase .lead.modern-lead { max-width: 1150px; }
.showcase .lead.roots-lead { max-width: 600px; }
.showcase .grid.modern-grid { margin: 40px auto 0; text-align: left; }
.modern-grid p { font-size: 15px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 22px; max-width: 1150px; margin: 0 auto; }
.grid article { background: #020814dd; border: 1px solid #1e8bff44; border-radius: 16px; padding: 24px 30px; box-shadow: 0 0 40px #1e8bff22; transition: .25s; }
#lyrics .grid article { padding-top: 17px; }
#modern .grid article { padding-top: 17px; }
#stars .grid article { padding-top: 17px; }
.star { display: inline-block; vertical-align: middle; }
.star-plus { font-size: 20px; margin-left: 8px; vertical-align: middle; }
.grid code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--cyan); }
.grid article:hover { border-color: #4fd8ff88; box-shadow: 0 0 40px #1e8bff33; transform: translateY(-4px); }
.ico { font-size: 30px; margin-bottom: 12px; }
h3 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.grid p { color: var(--dim); font-size: 15px; }
.build { text-align: center; }
pre { display: inline-block; text-align: left; background: #020814dd; border: 1px solid #1e8bff44; border-radius: 16px; padding: 24px 30px; font: 15px/1.8 ui-monospace, "SF Mono", Menlo, monospace; color: var(--cyan); box-shadow: 0 0 40px #1e8bff22; max-width: 100%; overflow-x: auto; }
footer { text-align: center; padding: 8vh 7vw 6vh; border-top: 1px solid #1e8bff22; background: #000c; }
footer p:first-child { font-weight: 700; color: #fff; }
.slogan { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -1px; margin: 0 0 28px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-left: 7vw; }
  .lead { margin-left: auto; margin-right: auto; } .cta { justify-content: center; }
  .hero .cta { max-width: 360px; margin-left: auto; margin-right: auto; }
  .burger { display: flex; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 5vw 16px; background: #020814f2; border-bottom: 1px solid #1e8bff44; backdrop-filter: blur(12px); }
  .nav.open nav { display: flex; }
  .nav nav a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid #1e8bff1a; }
  .nav nav a:last-child { border-bottom: 0; }
  .release-table th, .release-table td { padding: 10px 10px; font-size: 13px; }
  .release-table .col-size { display: none; }
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .hero { overflow-x: clip; }
  .release-table th, .release-table td { padding: 8px 5px; font-size: 12px; }
  .release-table th { letter-spacing: .5px; font-size: 10px; }
  .version-badge { padding: 2px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, .shot img, .ring, .glow { animation: none !important; } }
.nw { white-space: nowrap; }
/* Lift text above image/video box-shadows (videos composite on their own layer and paint over later siblings). */
figcaption, .lead, .callout, pre, h2, h3, .fine, .click-hint { position: relative; z-index: 2; }

/* iPhone section */
.ios .ios-cta { justify-content: center; margin-top: 28px; }
.ios .fine { margin-top: 14px; }
.ios .trio.phones { margin-top: 36px; }
.ios .trio.phones img { width: min(300px, 86vw); border-radius: 36px; }
.ios .trio.duo-small { align-items: flex-end; }
.ios .trio.duo-small figure:first-child img { border-radius: 0 36px 36px 0; }
.ios .trio.duo-small figure:last-child img { border-radius: 0 0 36px 36px; }
.ios .pair.duo img { width: min(640px, 92vw); border-radius: 28px; }
