:root {
  --bg: #050812;
  --bg-soft: #0a1120;
  --panel: rgba(14, 22, 39, 0.72);
  --panel-strong: rgba(16, 24, 43, 0.92);
  --text: #f7f9ff;
  --muted: #aab6cc;
  --line: rgba(255,255,255,.11);
  --cyan: #23e5ff;
  --blue: #2477ff;
  --pink: #ff31b9;
  --orange: #ffad2f;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(36,119,255,.20), transparent 38%),
    linear-gradient(180deg, #060a14 0%, #050812 48%, #03050b 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -2;
}

.ambient { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; opacity: .28; }
.ambient-a { width: 420px; height: 420px; top: 26vh; left: -180px; background: var(--cyan); }
.ambient-b { width: 500px; height: 500px; top: 58vh; right: -250px; background: var(--pink); opacity: .18; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { min-height: 94vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 84px 0 72px; }
.app-icon { width: clamp(180px, 28vw, 330px); filter: drop-shadow(0 35px 50px rgba(0, 148, 255, .18)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.signature-card { display: grid; place-items: center; overflow: hidden; }
.signature-card img { width: 100%; height: auto; display: block; }
.signature-card-top { width: min(360px, 72vw); height: 112px; margin-top: -12px; }
.signature-card-top img { transform: scale(.93); filter: invert(1); opacity: .88; }
.eyebrow { margin: 18px 0 10px; color: var(--cyan); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .76rem; }
h1 { margin: 0; font-size: clamp(4rem, 12vw, 8.5rem); letter-spacing: -.065em; line-height: .9; }
.hero-copy { max-width: 610px; margin: 26px auto 0; color: var(--muted); font-size: clamp(1.05rem, 2.1vw, 1.35rem); line-height: 1.6; }

.showcase, .features, .download { padding: 74px 0; }
.section-heading { display: flex; gap: 18px; align-items: baseline; margin-bottom: 28px; }
.section-heading span { color: var(--cyan); font: 700 .77rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }

.image-frame { position: relative; appearance: none; border: 1px solid var(--line); padding: 0; overflow: hidden; color: inherit; background: var(--panel); border-radius: 22px; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.image-frame:hover { transform: translateY(-4px); border-color: rgba(35,229,255,.35); box-shadow: 0 28px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(35,229,255,.08); }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-frame-main {
  display: block;
  width: min(75%, 1100px);
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 2048/1295;
}
.zoom-hint, .gallery-label { position: absolute; left: 14px; bottom: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(5,8,18,.72); backdrop-filter: blur(14px); color: #fff; border-radius: 999px; padding: 7px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; opacity: .85; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.gallery .image-frame { aspect-ratio: 1.45/1; border-radius: 16px; }
.gallery img { object-position: center; }

.feature-intro { display: grid; gap: 10px; margin-bottom: 54px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, rgba(36,119,255,.12), rgba(255,49,185,.06)); }
.feature-intro p { margin: 0; }
.feature-lead { font-size: clamp(1.35rem, 3.6vw, 2.25rem); letter-spacing: -.03em; }
.feature-os { color: var(--muted); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.feature { min-height: 82px; display: flex; align-items: center; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); color: #e9eef9; line-height: 1.38; }
.feature::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-right: 12px; flex: 0 0 auto; background: linear-gradient(135deg, var(--cyan), var(--pink)); box-shadow: 0 0 18px rgba(35,229,255,.7); }

.download-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(28px, 5vw, 52px); border: 1px solid rgba(255,255,255,.14); border-radius: 28px; background: linear-gradient(120deg, rgba(36,119,255,.18), rgba(255,49,185,.14) 55%, rgba(255,173,47,.09)); box-shadow: var(--shadow); }
.download-card h2 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.045em; }
.download-card p:not(.eyebrow) { margin: 0; color: var(--muted); }
.download-button { display: inline-flex; justify-content: center; align-items: center; min-width: 235px; min-height: 58px; padding: 0 24px; border-radius: 999px; color: #04111b; text-decoration: none; font-weight: 800; background: linear-gradient(105deg, var(--cyan), #76f0ff 42%, #ff8fcb 100%); box-shadow: 0 15px 38px rgba(35,229,255,.18); transition: transform .2s ease, box-shadow .2s ease; }
.download-button:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 20px 45px rgba(35,229,255,.27); }

footer { padding: 20px 0 70px; text-align: center; color: #78859b; }
.signature-card-bottom { width: min(420px, 80vw); height: 180px; margin: 0 auto -20px; }
.signature-card-bottom img { filter: invert(1); opacity: .76; }
footer p { margin: 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

.lightbox {
  width: 80vw;
  max-width: 80vw;
  margin: auto;
  border: 1px solid rgba(255,255,255,.16);
  padding: 10px;
  border-radius: 18px;
  background: rgba(4,7,14,.92);
  box-shadow: 0 40px 120px #000;
  box-sizing: border-box;
}
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(10px); }
.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 88vh;
  margin: auto;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: rgba(5,8,18,.76); font-size: 28px; cursor: pointer; z-index: 2; }

@media (max-width: 920px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .download-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {

  .image-frame-main {
    width: min(78%, 500px);
  }

  .section-shell { width: min(100% - 24px, 1180px); }
  .hero { min-height: auto; padding-top: 58px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-label { left: 9px; bottom: 9px; padding: 5px 8px; font-size: .64rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 66px; }
  .download-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


.image-frame-main{
  cursor: default !important;
}


.feature-grid .feature:last-child{
  grid-column: 2;
  justify-content:flex-start;
  text-align:left;
}


@media (max-width: 600px) {
  .lightbox {
    width: 92vw;
    max-width: 92vw;
  }
}


}


/* Stronger animated zoom for screenshot lightbox */
.lightbox {
  opacity: 0;
  transform: scale(.58) translateY(28px);
  transform-origin: center center;
}

.lightbox[open] {
  animation: pulseZoomIn 520ms cubic-bezier(.16, 1, .3, 1) both;
}

.lightbox.is-closing {
  animation: pulseZoomOut 320ms cubic-bezier(.4, 0, 1, 1) both;
}

.lightbox img {
  animation: pulseImageSettle 620ms cubic-bezier(.16, 1, .3, 1) both;
}

.lightbox::backdrop {
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
}

.lightbox[open]::backdrop {
  animation: pulseBackdropIn 420ms ease both;
}

@keyframes pulseZoomIn {
  0% {
    opacity: 0;
    transform: scale(.58) translateY(28px);
    filter: blur(8px);
  }
  55% {
    opacity: 1;
    transform: scale(1.045) translateY(-4px);
    filter: blur(0);
  }
  78% {
    transform: scale(.985) translateY(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes pulseImageSettle {
  0% {
    transform: scale(.92);
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulseZoomOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(.7) translateY(20px);
    filter: blur(5px);
  }
}

@keyframes pulseBackdropIn {
  from {
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0);
  }
  to {
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox img,
  .lightbox::backdrop {
    animation: none !important;
  }

  .lightbox[open] {
    opacity: 1;
    transform: none;
  }
}


/* Keep hero text on one line on desktop */
.hero-copy{
  max-width: none;
  white-space: nowrap;
}

/* Allow wrapping on phones/tablets */
@media (max-width: 900px){
  .hero-copy{
    white-space: normal;
    max-width: 610px;
  }
}


/* Move 'A focused Mac browsing experience' slightly higher */
.showcase .section-heading{
  transform: translateY(-20px);
  margin-bottom: 8px;
}


/* Position the showcase heading roughly midway between hero copy and preview image */
.showcase {
  padding-top: 36px;
}

.showcase .section-heading{
  transform: none;
  margin-top: 34px;
  margin-bottom: 34px;
  justify-content: center;
}
