:root {
  --bg: #0d0f14;
  --surface: #151820;
  --surface-2: #1b1f29;
  --text: #f5f2eb;
  --muted: #a8a8b3;
  --accent: #ff593f;
  --accent-2: #4cc8ff;
  --purple: #a86cff;
  --line: rgba(255, 255, 255, .12);
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 20%, rgba(76, 200, 255, .05), transparent 34%), radial-gradient(circle at 80% 70%, rgba(255, 89, 63, .06), transparent 34%);
  pointer-events: none;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); background: #fff; color: #111; padding: .7rem 1rem; border-radius: .4rem; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  width: min(calc(100% - 48px), var(--max));
  height: 88px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.brand img, .footer-brand img, .download > img { border-radius: 24%; box-shadow: 0 8px 28px rgba(0,0,0,.36); }
.site-header nav { display: flex; gap: 34px; }
.site-header nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .88rem; font-weight: 600; transition: color .2s ease; }
.site-header nav a:hover { color: #fff; }
.header-download { padding: 10px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.hero { position: relative; min-height: 820px; height: 100svh; display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; z-index: -3; animation: hero-in 1.3s cubic-bezier(.2,.8,.2,1) both; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,9,13,.94) 0%, rgba(7,9,13,.76) 35%, rgba(7,9,13,.15) 68%, rgba(7,9,13,.22) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 28%, rgba(0,0,0,.12) 100%); }
.hero-content { width: min(calc(100% - 48px), var(--max)); margin: 72px auto 0; }
.eyebrow, .kicker { margin: 0 0 18px; color: #fff; text-transform: uppercase; font-size: .76rem; font-weight: 800; letter-spacing: .18em; }
.eyebrow { display: flex; align-items: center; gap: 10px; animation: rise .8s .2s both; }
.eyebrow span { width: 34px; height: 2px; background: var(--accent); }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.055em; line-height: .94; text-wrap: balance; }
h1 { max-width: 720px; font-size: clamp(4.4rem, 8.7vw, 8.2rem); animation: rise .85s .28s both; }
h1 em, h2 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px rgba(255,255,255,.72); }
.hero-content > p { max-width: 590px; margin: 30px 0 34px; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.55vw, 1.2rem); animation: rise .85s .36s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .85s .44s both; }
.button { min-width: 184px; display: inline-flex; align-items: center; gap: 12px; padding: 13px 19px; border-radius: 10px; text-decoration: none; font-weight: 760; line-height: 1.06; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-3px); }
.button small { display: block; margin-bottom: 4px; font-size: .62rem; font-weight: 500; }
.button-primary { background: #fff; color: #101117; }
.button-secondary { background: rgba(15,16,21,.52); border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(14px); }
.store-mark { display: grid; place-items: center; width: 27px; height: 27px; color: var(--accent); font-size: 1.1rem; }
.store-mark.apple { color: #fff; font-size: 1.5rem; }
.scroll-cue { position: absolute; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 42px; width: 36px; height: 58px; border: 1px solid rgba(255,255,255,.5); border-radius: 99px; }
.scroll-cue span { position: absolute; top: 11px; left: 50%; width: 4px; height: 4px; transform: translateX(-50%); border-radius: 50%; background: #fff; animation: scroll-dot 1.8s infinite; }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 130px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 50px; margin-bottom: 64px; }
.kicker { color: var(--accent); }
.section-heading .kicker { grid-column: 1 / -1; margin-bottom: -25px; }
h2 { font-size: clamp(3.2rem, 6.4vw, 6.25rem); }
.lead { margin: 0 0 5px; color: var(--muted); font-size: 1.1rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-card { min-height: 340px; position: relative; padding: 38px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); overflow: hidden; transition: border-color .3s ease, transform .3s ease; }
.feature-card:hover { border-color: rgba(255,89,63,.52); transform: translateY(-4px); }
.feature-card-wide { grid-column: 1 / -1; min-height: 390px; background: linear-gradient(112deg, rgba(168,108,255,.16), rgba(255,89,63,.1) 45%, rgba(255,255,255,.02)); }
.feature-number { position: absolute; top: 25px; right: 28px; color: rgba(255,255,255,.32); font-size: .72rem; font-weight: 700; letter-spacing: .15em; }
.feature-icon { width: 62px; height: 62px; margin-bottom: auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--accent); font-size: 1.5rem; font-weight: 800; }
.feature-card h3 { margin: 34px 0 12px; font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1.05; letter-spacing: -.035em; }
.feature-card p { max-width: 680px; margin: 0; color: var(--muted); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.feature-tags span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: rgba(255,255,255,.7); font-size: .72rem; }

.gallery-section { width: 100%; padding-left: max(24px, calc((100vw - var(--max)) / 2)); overflow: hidden; background: #12151c; }
.gallery-heading { width: min(calc(100vw - 48px), var(--max)); padding-right: max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr 360px; align-items: end; gap: 40px; }
.gallery-heading > p { margin: 0 0 7px; color: var(--muted); }
.carousel { margin-top: 58px; }
.carousel-viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-right: 24px; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 22px; width: max-content; }
.screenshot-card { width: clamp(230px, 24vw, 310px); margin: 0; scroll-snap-align: start; opacity: .62; transform: scale(.95); transform-origin: bottom center; transition: opacity .35s ease, transform .35s ease; }
.screenshot-card.is-active { opacity: 1; transform: scale(1); }
.screenshot-card img { width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; border-radius: 28px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 22px 45px rgba(0,0,0,.34); }
.screenshot-card figcaption { display: flex; gap: 10px; margin-top: 15px; color: #ddd; font-size: .85rem; font-weight: 700; }
.screenshot-card figcaption span { color: var(--accent); }
.carousel-controls { width: min(calc(100vw - 48px), var(--max)); padding-right: max(24px, calc((100vw - var(--max)) / 2)); margin-top: 34px; display: flex; align-items: center; gap: 16px; }
.carousel-button { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 1.15rem; transition: background .2s, color .2s; }
.carousel-button:hover { background: #fff; color: #111; }
.carousel-progress { flex: 1; height: 1px; background: rgba(255,255,255,.16); }
.carousel-progress span { display: block; width: 8.333%; height: 2px; background: var(--accent); transition: transform .35s ease; transform-origin: left; }
.carousel-count { min-width: 62px; margin: 0; color: var(--muted); font-size: .8rem; }
.carousel-count strong { color: #fff; font-size: 1.1rem; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-copy { position: sticky; top: 80px; align-self: start; }
.about-copy em { -webkit-text-stroke-color: var(--accent); }
.about-lead { margin: 36px 0 52px; color: #d5d3d0; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; }
.detail-list { border-top: 1px solid var(--line); }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.detail-list span { color: var(--muted); }
.small-copy { margin: 40px 0 0; color: var(--muted); font-size: .9rem; }
.small-copy a { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.download { min-height: 720px; position: relative; padding: 120px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: #13151d; }
.download::before, .download::after { content: ""; position: absolute; width: 350px; height: 350px; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; }
.download::before { left: -90px; top: 10%; background: var(--accent-2); }
.download::after { right: -80px; bottom: 5%; background: var(--accent); }
.download > img { margin-bottom: 31px; }
.download h2 { max-width: 950px; }
.download > p:not(.kicker) { max-width: 570px; margin: 28px auto 30px; color: var(--muted); font-size: 1.05rem; }

footer { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 56px 0 35px; display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 36px; color: var(--muted); font-size: .78rem; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-size: 1rem; }
footer p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes hero-in { from { opacity: .2; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scroll-dot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 28px); } }

@media (max-width: 820px) {
  .site-header { width: calc(100% - 32px); height: 72px; }
  .site-header nav { display: none; }
  .header-download { padding: 8px 14px; }
  .hero { min-height: 760px; align-items: flex-end; padding-bottom: 86px; }
  .hero-art { object-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(7,9,13,.82) 46%, rgba(7,9,13,.12) 100%); }
  .hero-content { width: calc(100% - 32px); margin: 0 auto; }
  h1 { font-size: clamp(3.8rem, 17vw, 6rem); }
  .hero-content > p { margin-top: 22px; }
  .scroll-cue { display: none; }
  .section { width: calc(100% - 32px); padding: 92px 0; }
  .section-heading, .gallery-heading, .about { grid-template-columns: 1fr; gap: 28px; }
  .section-heading .kicker { margin-bottom: -8px; }
  .feature-card, .feature-card-wide { grid-column: 1; min-height: 325px; padding: 28px; }
  .gallery-section { width: 100%; padding-left: 16px; }
  .gallery-heading { width: calc(100vw - 32px); padding-right: 16px; }
  .carousel-controls { width: calc(100vw - 32px); padding-right: 16px; }
  .screenshot-card { width: min(72vw, 285px); }
  .about-copy { position: static; }
  .about-details { margin-top: 0; }
  footer { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 22px; }
  .copyright { margin-top: 8px; }
}

@media (max-width: 480px) {
  .brand img { width: 38px; height: 38px; }
  .header-download { font-size: .7rem; }
  .hero { min-height: 720px; }
  h1 { font-size: 3.55rem; }
  h2 { font-size: 3.05rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .button { min-width: 0; padding: 12px; font-size: .83rem; }
  .store-mark { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .download { min-height: 650px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
