@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-VariableFont.ttf") format("truetype-variations"),
       url("assets/fonts/NunitoSans-VariableFont.ttf") format("truetype");
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-Italic-VariableFont.ttf") format("truetype-variations");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --rw-blue: #0a6cff;
  --rw-cyan: #38bdf8;
  --rw-cyan-bright: #5fd0ff;
  --rw-violet: #6d5cff;
  --rw-deep: #050a1c;
  --rw-white: #ffffff;
  --rw-mist: rgba(255,255,255,0.66);
  --rw-mist-dim: rgba(255,255,255,0.42);
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--rw-deep); }

.rw-final {
  font-family: var(--font);
  color: var(--rw-white);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- Cosmic background ---------- */
.rw-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 90% at 50% -10%, #123a8f 0%, #0a1f5c 32%, #07112f 64%, var(--rw-deep) 100%);
}
.rw-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 30% at 18% 22%, rgba(56,189,248,0.28), transparent 70%),
    radial-gradient(34% 34% at 86% 30%, rgba(109,92,255,0.30), transparent 70%),
    radial-gradient(50% 40% at 50% 116%, rgba(10,108,255,0.40), transparent 70%);
  pointer-events: none;
}

.rw-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.rw-stars span {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: var(--o, .7);
}
.rw-stars .big {
  width: 3px; height: 3px;
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.9);
}

@keyframes rw-tw { 0%,100% { opacity: var(--o,.7); } 50% { opacity: .15; } }
@media (prefers-reduced-motion: no-preference) {
  .rw-stars span { animation: rw-tw var(--d,4s) ease-in-out infinite; animation-delay: var(--delay,0s); }
}

/* sparkle */
.rw-sparkle {
  position: fixed;
  color: #cfe6ff;
  filter: drop-shadow(0 0 8px rgba(95,208,255,0.8));
  pointer-events: none;
  z-index: 1;
}

/* ---------- App icon ---------- */
.rw-icon {
  display: block;
  filter: drop-shadow(0 24px 50px rgba(10,108,255,0.55)) drop-shadow(0 6px 16px rgba(0,0,0,0.35));
}
@keyframes rw-float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: no-preference) {
  .rw-float { animation: rw-float 5.5s ease-in-out infinite; }
}

/* ---------- Wordmark ---------- */
.rw-brandrow { display: flex; align-items: center; gap: 14px; }
.rw-wordmark {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: 24px;
  color: #fff;
}
.rw-wordmark .words { color: var(--rw-cyan-bright); }

/* ---------- Top bar ---------- */
.rw-topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 56px);
}
.rw-topbar .links { display: flex; gap: 28px; align-items: center; }
.rw-topbar .links a {
  font-size: 15px; font-weight: 700; color: var(--rw-mist);
  text-decoration: none; transition: color 150ms;
}
.rw-topbar .links a:hover { color: #fff; }

/* ---------- Hero ---------- */
.rw-hero {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(18px, 2.6vw, 26px);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 90px);
}

/* ---------- Eyebrow ---------- */
.rw-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rw-cyan-bright);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(95,208,255,0.35);
}

/* ---------- Headline ---------- */
.rw-h1 {
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(40px, 7vw, 74px);
}
.rw-grad {
  background: linear-gradient(180deg, #ffffff 0%, #bfe0ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: block;
}
.rw-accent {
  background: linear-gradient(100deg, var(--rw-cyan-bright), var(--rw-violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: block;
}

/* ---------- Sub-paragraph ---------- */
.rw-sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--rw-mist);
  font-weight: 500;
  margin: 0;
  max-width: 34ch;
}

/* ---------- Store buttons ---------- */
.rw-stores { display: flex; gap: 14px; flex-wrap: wrap; }
.rw-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: #0a0c12;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  min-width: 184px;
  transition: transform 150ms cubic-bezier(.4,0,.2,1), border-color 150ms, box-shadow 150ms;
}
.rw-store:hover {
  transform: translateY(-2px);
  border-color: rgba(95,208,255,0.6);
  box-shadow: 0 12px 30px rgba(10,108,255,0.35);
}
.rw-store svg { width: 26px; height: 26px; flex: none; }
.rw-store .lbl { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.rw-store .lbl .small { font-size: 11px; font-weight: 600; color: var(--rw-mist); letter-spacing: 0.02em; }
.rw-store .lbl .big { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Letter tiles ---------- */
.rw-tile {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(160deg, var(--rw-cyan) 0%, var(--rw-blue) 55%, #0a4fe0 100%);
  border-radius: 16px;
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.55),
    inset 0 -6px 10px rgba(3,40,120,0.55),
    0 10px 22px rgba(7,48,140,0.45);
  text-shadow: 0 2px 3px rgba(4,30,90,0.5);
  position: absolute;
}

/* ---------- Showcase ---------- */
.rw-showcase {
  position: relative;
  margin-top: clamp(28px, 5vw, 60px);
}
.float-tiles { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Phone mockup ---------- */
.rw-phone {
  position: relative;
  width: 300px;
  height: 612px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1a2350, #0a1130);
  padding: 11px;
  box-shadow:
    0 2px 0 1px rgba(255,255,255,0.10) inset,
    0 40px 80px rgba(3,12,40,0.6),
    0 0 0 2px rgba(120,160,255,0.18);
}
.rw-phone .notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #050720; border-radius: 999px;
  z-index: 10; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.rw-phone .notch::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.10);
}
.rw-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: #050720;
  display: flex; flex-direction: column;
  z-index: 1;
}
.rw-screen::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 32%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #050720 0%, rgba(5, 7, 32, 0.72) 55%, transparent 100%);
}
.rw-screen-bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.15);
  transform-origin: top center;
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}
.rw-screen .statusbar {
  flex-shrink: 0;
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px 6px; font-size: 13px; font-weight: 800; color: #fff;
}
.rw-screen .statusbar .ico { display: flex; gap: 5px; align-items: center; }
.rw-screen-shot {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.rw-screen-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: top center;
}

/* ---------- Footer ---------- */
.rw-footer {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  border-top: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, transparent, rgba(3,7,20,0.6));
}
.rw-footer .copy { font-size: 13px; color: var(--rw-mist-dim); font-weight: 600; }
.rw-footer nav { display: flex; gap: 26px; }
.rw-footer nav a {
  font-size: 14px; font-weight: 700; color: var(--rw-mist);
  text-decoration: none; transition: color 150ms;
}
.rw-footer nav a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .float-tiles { display: none; }
}
@media (max-width: 640px) {
  .rw-topbar .links { display: none; }
  .rw-stores { flex-direction: column; width: 100%; max-width: 320px; }
  .rw-store { width: 100%; }
  .rw-footer { flex-direction: column; gap: 14px; text-align: center; }
  .rw-footer nav { flex-wrap: wrap; justify-content: center; gap: 18px; }
  .rw-phone { width: 260px; height: 530px; }
}

/* ---------- Focus styles for accessibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rw-cyan-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
