/* NRRW — coming soon
   Reference composition: 1440 × 864. All positions derive from that grid. */

:root {
  --bg:        #1A1A1A;
  --accent:    #C7D9EA;   /* button fill / "narrowed" */
  --note:      #6F6F6F;   /* mockup uses #555; nudged up for legibility */
  --panel-w:   320px;
  --radius:    10px;
  --hero-w:    319px;     /* logo width; everything else scales off this */
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: #FEFEFE;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- stage ---------- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ---------- app screenshots ---------- */

.panel {
  position: absolute;
  width: var(--panel-w);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
  pointer-events: none;
}

.panel img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
}

/* Left panel: top edge visible at 163/864, bleeds off the bottom.
   Slides outward as the viewport narrows so it never crowds the hero. */
.panel--left {
  left: min(140px, 50% - 580px);
  top: 18.9vh;
  bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.panel--left img { object-position: top; }

/* Right panel: cropped at the top, bottom edge visible at 663/864. */
.panel--right {
  right: min(140px, 50% - 580px);
  top: 0;
  height: 76.7vh;
  border-radius: 0 0 var(--radius) var(--radius);
}
.panel--right img {
  position: absolute;
  bottom: 0;
  object-position: bottom;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 24px 0;   /* nudges the block ~12px below centre, as in the mockup */
}

.logo    { width: var(--hero-w); height: auto; }

.tagline {
  width: calc(var(--hero-w) * 0.9185);
  height: auto;
  margin-top: calc(var(--hero-w) * 0.113);
}

.cta {
  margin-top: calc(var(--hero-w) * 0.188);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  height: 40px;
  padding: 0 26px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1px;
  text-decoration: none;
}

/* only applies once .cta becomes an <a> */
a.cta { transition: transform .2s ease, background-color .2s ease; }
a.cta:hover  { background: #D7E5F2; transform: translateY(-1px); }
a.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.note {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--note);
}

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero > *, .panel { animation: rise .8s cubic-bezier(.2, .7, .3, 1) both; }
  .panel--left  { animation: fade 1.1s ease both; }
  .panel--right { animation: fade 1.1s ease .1s both; }
  .logo    { animation-delay: .05s; }
  .tagline { animation-delay: .15s; }
  .cta     { animation-delay: .28s; }
  .note    { animation-delay: .36s; }
}

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

/* ---------- narrow screens ---------- */

@media (max-width: 860px) {
  :root { --hero-w: min(319px, 68vw); }

  .stage {
    align-items: center;
    padding-bottom: clamp(190px, 40vh, 480px);   /* room for the screenshot */
  }

  .panel--right { display: none; }

  .panel--left {
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 0;
    width: min(320px, 78vw);
    height: clamp(190px, 40vh, 480px);
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

/* Landscape phones / very short windows: drop the screenshot entirely */
@media (max-width: 860px) and (max-height: 560px) {
  .stage { padding-bottom: 0; }
  .panel--left { display: none; }
}
