:root{
  --bg: #07080b;
  --bg2: #0b0e16;
  --panel: rgba(255,255,255,.055);
  --panel2: rgba(255,255,255,.085);
  --text: #f3f7ff;
  --muted: rgba(243,247,255,.70);
  --border: rgba(255,255,255,.12);
  --link: #8ad0ff;
  --accent: #b8ff3d;
  --accent2: #4ea3ff;
  --danger: #ff3d6b;
  --shadow: rgba(0,0,0,.50);
  --radius: 12px;
  --max: 1120px;
  --font-body: "Sora", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #fbfbf6;
    --bg2: #f1f4ff;
    --panel: rgba(255,255,255,.76);
    --panel2: rgba(255,255,255,.92);
    --text: #0a0f1f;
    --muted: rgba(10,15,31,.70);
    --border: rgba(10,15,31,.12);
    --link: #0b63c7;
    --accent: #2b7a1f;
    --accent2: #0b63c7;
    --danger: #d61a44;
    --shadow: rgba(0,0,0,.12);
  }
  .topbar{
    background: rgba(10,12,18,.45);
    border-color: rgba(255,255,255,.18);
  }
  .topbar .brand a,
  .topbar .brand-link span{color:#f3f7ff}
  .topbar .nav a{color: rgba(243,247,255,.78)}
  .topbar .nav a:hover{color:#ffffff}
  .masthead{color:#f3f7ff}
  .masthead .kicker{color: rgba(243,247,255,.70)}
  .masthead .hero-copy{
    background: rgba(0,0,0,.32);
    border-color: rgba(255,255,255,.18);
  }
  .masthead .hero-copy p{color: rgba(243,247,255,.78)}
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font-body);
  font-size: 16px;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(184,255,61,.14), transparent 58%),
    radial-gradient(1000px 650px at 95% 0%, rgba(78,163,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.72)),
    url("/apps/assets/stars_sky.jpg");
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: scroll, scroll, scroll, fixed;
  color: var(--text);
  line-height:1.6;
}

a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}

.wrap{max-width:var(--max); margin:0 auto; padding:26px 18px 68px}

main{display:block}

.masthead{
  position:relative;
  overflow:hidden;
  margin-left: calc(50% - 50vw + 18px);
  margin-right: calc(50% - 50vw + 18px);
  border-radius: 26px;
  padding: 22px 22px 18px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.45);
}
.masthead::before{
  content:"";
  position:absolute;
  inset:-52px;
  background-image: url("/apps/assets/stars_sky.jpg");
  background-size: cover;
  background-position: 70% 30%;
  filter: none;
  transform: none;
  opacity:1;
  pointer-events:none;
}
.masthead::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(1000px 560px at 55% 0%, rgba(184,255,61,.14), transparent 60%),
    radial-gradient(900px 520px at 0% 90%, rgba(78,163,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.82)),
    url("/apps/assets/noise.svg");
  background-size: cover, cover, cover, 240px 240px;
  mix-blend-mode: normal;
  opacity:.58;
  pointer-events:none;
}
.masthead > *{position:relative}

.masthead-shot{
  position:absolute;
  inset:-90px;
  background-image: var(--shot, none);
  background-size: cover;
  background-position: 65% 35%;
  /* Keep the wallpaper crisp; use the app screenshot only as a subtle tint. */
  filter: none;
  opacity: 0;
  transform: none;
  pointer-events:none;
  mask-image: linear-gradient(to left, #000 20%, transparent 65%);
}

.hero-copy{
  padding: 18px 18px 16px;
  max-width: 540px;
  line-height: 1.55;
  border-radius: 18px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.below{
  margin-top: 18px;
  margin-left: calc(50% - 50vw + 18px);
  margin-right: calc(50% - 50vw + 18px);
  background: #ffffff;
  color: #0a0f1f;
  border-radius: 18px;
  border: 1px solid rgba(10,15,31,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.16);
}
.below-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 24px 72px;
}
.below a{color:#0b63c7}
.below .section h2{color: rgba(10,15,31,.60)}
.below .card{
  background: #ffffff;
  border: 1px solid rgba(10,15,31,.08);
  box-shadow: 0 8px 16px rgba(10,15,31,.07);
}
.below .feature.card{
  background: #f4f6fb;
  border: 1px solid rgba(10,15,31,.10);
  box-shadow: none;
}
.below .shot{
  background: #f4f6fb;
  border-color: rgba(10,15,31,.10);
}
.below .shot:hover{border-color: rgba(10,15,31,.18)}
.below .app p{color: rgba(10,15,31,.70)}
.below .kicker{color: rgba(10,15,31,.55)}
.below .btn.subtle{
  color: rgba(10,15,31,.72);
  background: rgba(10,15,31,.04);
}
.below .btn.subtle:hover{color:#0a0f1f}
.below .btn.outline{
  color:#0a0f1f;
  border-color: rgba(10,15,31,.18);
  background: transparent;
}
.below .btn.outline:hover{background: rgba(10,15,31,.05)}
.below .pill{
  color:#0a0f1f;
  background: rgba(10,15,31,.04);
  border-color: rgba(10,15,31,.14);
}
.below .whatsnew{
  background: #f6f7fb;
  border-color: rgba(10,15,31,.10);
}
.below .shot{
  background: #ffffff;
  border-color: rgba(10,15,31,.12);
  box-shadow: 0 12px 24px rgba(10,15,31,.08);
}
.below .app-pill{
  color:#0a0f1f;
  background: #f6f7fb;
  border-color: rgba(10,15,31,.12);
}
.below .app-pill img{border-color: rgba(10,15,31,.14)}
.below .whatsnew summary::after{color: rgba(10,15,31,.55)}
.below .link-chip{
  color:#0a0f1f;
  background:#f6f7fb;
  border-color: rgba(10,15,31,.12);
}
.below .link-chip:hover{background: rgba(10,15,31,.05)}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:10px 0 20px;
  padding:8px 14px;
  border-radius:999px;
  background: rgba(10,12,18,.45);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 10px;
  z-index: 10;
}

.brand{
  font-weight:760;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
}
.brand a{color:var(--text)}
.brand a:hover{text-decoration:none}
.brand-link{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--text);
}
.brand-link span{
  font-weight:760;
  font-family: var(--font-display);
  letter-spacing: .02em;
}
.brand-icon{
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
}
.nav{display:flex; gap:14px; flex-wrap:wrap}
.nav a{color:var(--muted)}
.nav a:hover{color:var(--text); text-decoration:none}

.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:18px;
  top:18px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius:12px;
  background: var(--panel2);
  border:1px solid var(--border);
  color: var(--text);
  z-index: 999;
}

.card{
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: 0 14px 36px var(--shadow);
}

.hero{padding:0}
.hero h1{
  margin:0 0 6px;
  font-size:36px;
  line-height:1.06;
  letter-spacing:-.1px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
}
.hero p{margin:0; color:var(--muted)}
.hero .meta{margin-top:14px}

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:center;
}
.hero-title{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:10px;
}
.hero-right{
  display:flex;
  align-items:center;
  justify-content:center;
}
.hub-hero{
  display:flex;
  align-items:center;
  justify-content:center;
}
.hub-hero-stack{
  position:relative;
  width: min(380px, 100%);
  height: 520px;
}
.hub-hero-shot{
  position:absolute;
  width:76%;
  height:auto;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  transform-origin: center;
}
.hub-hero-shot.shot-1{left:-26px; top:64px; transform: rotate(-6deg); opacity:.78}
.hub-hero-shot.shot-2{left:18px; top:6px; transform: rotate(.4deg); z-index:2}
.hub-hero-shot.shot-3{left:78px; top:96px; transform: rotate(6deg); opacity:.75}

.kicker{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.section{padding:18px 22px}
.section h2{
  margin:0 0 12px;
  font-size:12px;
  letter-spacing:.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section h3{margin:16px 0 6px; font-size:15px; color:var(--muted)}
.section p{margin:8px 0}
.section ul{margin:8px 0 0; padding-left:18px}
.section li{margin:4px 0}

.lede{
  font-size:16.5px;
}

.actions{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.btn:hover{background: rgba(255,255,255,.10); text-decoration:none}
.btn.primary{
  border-color: rgba(184,255,61,.45);
  background: linear-gradient(180deg, rgba(184,255,61,.22), rgba(184,255,61,.10));
}
.btn.outline{
  background: transparent;
  box-shadow: none;
  border-color: rgba(255,255,255,.32);
}
.btn.outline:hover{background: rgba(255,255,255,.08)}
.btn.subtle{
  color:var(--muted);
  background: rgba(255,255,255,.04);
  box-shadow:none;
}
.btn.subtle:hover{color:var(--text)}
.btn:focus-visible{
  outline: 2px solid rgba(184,255,61,.60);
  outline-offset: 2px;
}

.appstore-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}
.appstore-link:hover{transform: translateY(-1px); text-decoration:none}
.appstore-badge{height:44px; width:auto; display:block}
.app-card .appstore-badge{height:48px}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.02em;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);
  color:var(--text);
}

.shots{
  display:grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap:14px;
  overflow-x:auto;
  padding:4px 2px 10px;
  scroll-snap-type:x mandatory;
}
.shot{
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
  transform: translateZ(0);
  scroll-snap-align:center;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
.shot img{display:block; width:100%; height:auto}
.shot:hover{border-color: rgba(255,255,255,.22)}
.shot button{
  all: unset;
  display:block;
  cursor: zoom-in;
}
.shot button:focus-visible{
  outline: 2px solid rgba(184,255,61,.60);
  outline-offset: 2px;
}

.whatsnew{
  border-radius:12px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  padding:14px 14px;
}
.whatsnew + .whatsnew{margin-top:10px}
.whatsnew summary{
  cursor:pointer;
  list-style:none;
  font-weight:600;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.whatsnew summary::-webkit-details-marker{display:none}
.whatsnew summary::after{
  content:"▾";
  font-size:16px;
  color:var(--muted);
  transition: transform .18s ease;
}
.whatsnew[open] summary::after{transform: rotate(180deg)}
.whatsnew[open] summary{margin-bottom:8px}

.link-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.link-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  letter-spacing:.02em;
}
.link-chip:hover{
  background: rgba(255,255,255,.10);
  text-decoration:none;
}

.apps{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:20px;
}

.app{
  padding:24px 24px 22px;
}
.app-card{
  position:relative;
}
.app-card > *{position:relative; z-index:2; pointer-events:none}
.card-link{
  position:absolute;
  inset:0;
  z-index:1;
  border-radius: var(--radius);
  pointer-events:auto;
}
.app-card .appstore-link{position:relative; z-index:3; pointer-events:auto}
.app-card .appstore-link *{pointer-events:auto}
.app-head{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.app h3{
  margin:0 0 6px;
  font-size:17px;
  font-family: var(--font-display);
  letter-spacing:.02em;
}
.app p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.app .meta{margin-top:10px; display:flex; gap:12px; flex-wrap:wrap}

.app-icon{
  width:64px;
  height:64px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.24);
}
.app-icon.large{
  width:72px;
  height:72px;
  border-radius:14px;
}

.device{
  width: min(340px, 100%);
  aspect-ratio: 1470 / 3000;
  position: relative;
  transform: rotate(1.5deg);
  transition: transform .18s ease, filter .18s ease;
  filter: drop-shadow(0 28px 70px rgba(0,0,0,.55));
}
.device:hover{
  transform: translateY(-3px) rotate(.2deg);
  filter: drop-shadow(0 34px 86px rgba(0,0,0,.65));
}
.device-screen{
  position:absolute;
  /* Tuned for Apple iPhone 16 Pro Max portrait bezel PNG (1470x3000).
     Measured screen bbox: x=61..1409, y=40..2960 */
  inset: 2% 5% 2% 5%;
  border-radius: 50px;
  overflow:hidden;
  background:#000;
}
.device-screen img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.device-frame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;
  pointer-events:none;
}

.features{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}
.feature{
  padding:14px;
}
.feature-text{
  color: inherit;
  font-size:14px;
}

.app-strip{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:4px 0 2px;
}
.app-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  color:var(--text);
  text-decoration:none;
}
.app-pill img{
  width:28px;
  height:28px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.2);
}
.app-pill:hover{background: rgba(255,255,255,.10); text-decoration:none}
.muted{color:var(--muted)}

.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background: rgba(0,0,0,.70);
  z-index: 999;
}
.modal[aria-hidden="false"]{display:flex}
.modal-card{
  max-width: min(980px, 100%);
  max-height: min(92vh, 100%);
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(10,12,18,.92);
  box-shadow: 0 28px 90px rgba(0,0,0,.65);
  position:relative;
}
.modal-card img{
  display:block;
  max-width:100%;
  max-height:92vh;
  height:auto;
}
.modal-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.45);
  color:#fff;
  font-size:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.modal-nav:hover{background: rgba(0,0,0,.65)}
.modal-nav.prev{left:12px}
.modal-nav.next{right:12px}
.modal-nav:focus-visible{
  outline: 2px solid rgba(184,255,61,.60);
  outline-offset: 2px;
}
.modal-close{
  position:fixed;
  top:16px;
  right:16px;
  border-radius:999px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor:pointer;
}
.modal-close:hover{background: rgba(0,0,0,.60)}
.modal-close:focus-visible{
  outline: 2px solid rgba(184,255,61,.60);
  outline-offset: 2px;
}

footer.footer{
  margin-top:22px;
  color:var(--muted);
  font-size:13px;
  padding:18px 8px 0;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text); text-decoration:none}
.footer-links{display:flex; gap:8px; flex-wrap:wrap}

@media (max-width: 820px){
  .hero-grid{grid-template-columns: 1fr; gap:14px}
  .hero-right{justify-content:flex-start}
  .device{width:min(360px, 100%)}
  .masthead{
    margin-left: 0;
    margin-right: 0;
  }
  .below{
    margin-left: 0;
    margin-right: 0;
  }
  .shots{grid-auto-columns: minmax(200px, 72vw)}
  .hub-hero-stack{width: min(320px, 78vw); height: 420px}
}

@media (min-width: 980px){
  .hero-right{justify-content:flex-end}
}

@media (prefers-reduced-motion: no-preference){
  .card{
    animation: rise .45s ease both;
  }
  @keyframes rise{
    from{opacity:0; transform: translateY(10px)}
    to{opacity:1; transform: translateY(0)}
  }
}
