/* ===========================================================
   SpaceRaven Marketing Site
   Bold, mobile-first, premium. Electric blue + lime on white.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0a0e17;
  --ink-soft: #4a5165;
  --paper: #ffffff;
  --paper-dim: #f4f6fb;
  --line: #e6e9f2;

  --blue: #2b4bff;
  --blue-deep: #1526a8;
  --blue-ink: #0c1442;
  --lime: #d4ff3f;
  --lime-deep: #a8d000;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-lift: 0 20px 50px -18px rgba(10, 14, 23, 0.35);
  --shadow-soft: 0 10px 30px -14px rgba(10, 14, 23, 0.18);

  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

p { line-height: 1.6; color: var(--ink-soft); margin: 0; }

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(43, 75, 255, 0.08);
  padding: 7px 14px;
  border-radius: 100px;
}
.eyebrow.on-dark {
  color: var(--lime);
  background: rgba(212, 255, 63, 0.12);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}
.eyebrow.on-dark .dot { background: var(--lime); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--blue-ink); transform: translateY(-2px); }

.btn-lime {
  background: var(--lime);
  color: var(--blue-ink);
  box-shadow: 0 10px 30px -12px rgba(212, 255, 63, 0.6);
}
.btn-lime:hover { background: #c3f221; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost.on-dark {
  color: var(--paper);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost.on-dark:hover { border-color: var(--lime); }

/* Store badges */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, background 0.18s ease;
}
.store-badge:hover { transform: translateY(-3px); background: var(--blue-ink); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-badge .store-text small {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 500;
}
.store-badge .store-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line);
}
.brand-mark img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(212,255,63,0.35), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(43,75,255,0.12), transparent 60%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 700;
  margin-top: 18px;
}
.hero-copy .tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  color: var(--blue-ink);
  margin-top: 14px;
}
.hero-copy .sub {
  margin-top: 16px;
  font-size: 17px;
  max-width: 480px;
}
.hero-copy .store-row { margin-top: 32px; }

.hero-meta {
  margin-top: 22px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-meta svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone {
  position: relative;
  width: 300px;
  height: 612px;
  border-radius: 46px;
  background: var(--ink);
  padding: 12px;
  box-shadow:
    var(--shadow-lift),
    0 0 0 1px rgba(10,14,23,0.06);
  transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--paper-dim);
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: var(--ink);
  border-radius: 14px;
  z-index: 5;
}
.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-float-card {
  position: absolute;
  z-index: 2;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
}
.hero-float-card svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); }
.float-1 { top: 6%; left: -4%; animation: float 5s ease-in-out infinite 0.4s; }
.float-2 { bottom: 10%; right: -6%; animation: float 5.5s ease-in-out infinite 0.9s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(0.5deg); }
}
.float-1, .float-2 { animation-name: floatCard; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .sub { margin-left: auto; margin-right: auto; }
  .hero-copy .store-row { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .float-1 { left: -2%; }
  .float-2 { right: -2%; }
}
@media (max-width: 420px) {
  .phone { width: 260px; height: 530px; }
  .hero-float-card { display: none; }
}

/* ---------- Marquee / trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--paper-dim);
}
.trust-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.trust-item svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

/* ---------- Section headers ---------- */

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 46px);
  margin-top: 16px;
}
.section-head p {
  margin-top: 14px;
  font-size: 17px;
}
.section-pad { padding: 100px 0; }
@media (max-width: 700px) {
  .section-pad { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
}

/* ---------- Feature blocks (alternating) ---------- */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-block + .feature-block { margin-top: 120px; }
.feature-block.reverse .feature-copy { order: 2; }
.feature-block.reverse .feature-visual { order: 1; }

.feature-copy h3 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-top: 16px;
}
.feature-copy > p {
  margin-top: 14px;
  font-size: 16.5px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.chip {
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 100px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--ink);
}

.feature-visual {
  position: relative;
  background: linear-gradient(160deg, var(--blue-ink) 0%, var(--blue-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 34px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.feature-visual.light {
  background: var(--paper-dim);
  border: 1px solid var(--line);
}
.feature-visual::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(212,255,63,0.25), transparent 70%);
  top: -60px; right: -60px;
  border-radius: 50%;
}

/* Small device frame for real in-app screenshots inside feature visuals */
.mini-phone {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 458px;
  border-radius: 34px;
  background: var(--ink);
  padding: 9px;
  box-shadow: var(--shadow-lift);
}
.mini-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--paper-dim);
  position: relative;
}
.mini-phone-notch {
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 17px;
  background: var(--ink);
  border-radius: 10px;
  z-index: 5;
}
.mini-phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 900px) {
  .feature-block, .feature-block.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-block.reverse .feature-copy,
  .feature-block.reverse .feature-visual { order: unset; }
  .feature-block + .feature-block { margin-top: 64px; }
}

/* ---- Mini UI card components used inside feature visuals ---- */

.ui-card {
  width: 100%;
  max-width: 320px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(6px);
}
.ui-card + .ui-card { margin-top: 12px; }
.ui-card.solid {
  background: var(--paper);
  border-color: var(--line);
}
.ui-stack { display: flex; flex-direction: column; width: 100%; }

.ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
}
.ui-row .swatch {
  width: 34px; height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}
.ui-row .txt { flex: 1; min-width: 0; }
.ui-row .txt strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: #fff;
  font-weight: 600;
}
.ui-card.solid .ui-row .txt strong { color: var(--ink); }
.ui-row .txt span {
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
}
.ui-card.solid .ui-row .txt span { color: var(--ink-soft); }
.ui-row .pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}
.pill-blue { background: rgba(43,75,255,0.18); color: #9fb0ff; }
.pill-shield { background: rgba(212,255,63,0.18); color: var(--lime); }
.ui-card.solid .pill-blue { background: rgba(43,75,255,0.1); color: var(--blue-deep); }
.ui-card.solid .pill-shield { background: rgba(168,208,0,0.12); color: var(--lime-deep); }

/* ---------- Icon feature grid (Smart Cleanup categories) ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.cat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.cat-card .ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--paper-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.cat-card .ico svg { width: 21px; height: 21px; color: var(--blue); }
.cat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.cat-card p { font-size: 13px; margin-top: 5px; }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { padding: 16px 14px; }
}

/* ---------- Protection grid ---------- */

.protect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.protect-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.protect-card .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(43,75,255,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.protect-card .ico svg { width: 19px; height: 19px; color: var(--blue-deep); }
.protect-card strong { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; display: block; }
.protect-card p { font-size: 12.5px; margin-top: 3px; }

@media (max-width: 900px) { .protect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .protect-grid { grid-template-columns: 1fr; } }

/* ---------- Privacy section ---------- */

.privacy-section {
  background: var(--ink);
  color: #fff;
  border-radius: 40px;
  margin: 0 24px;
  padding: 90px 40px;
  position: relative;
  overflow: hidden;
}
.privacy-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(212,255,63,0.18), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(43,75,255,0.3), transparent 60%);
  pointer-events: none;
}
.privacy-section .wrap { position: relative; max-width: 1000px; }
.privacy-section .section-head h2,
.privacy-section .section-head p { color: #fff; }
.privacy-section .section-head p { color: rgba(255,255,255,0.65); }

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.privacy-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}
.privacy-card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(212,255,63,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.privacy-card .ico svg { width: 22px; height: 22px; color: var(--lime); }
.privacy-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.privacy-card p { font-size: 13.5px; margin-top: 6px; color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
  .privacy-section { border-radius: 28px; padding: 60px 26px; margin: 0 14px; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .privacy-grid { grid-template-columns: 1fr; }
}

/* ---------- Final download CTA ---------- */

.cta-final {
  text-align: center;
  padding: 110px 0 100px;
}
.cta-final h2 {
  font-size: clamp(36px, 6vw, 60px);
  max-width: 720px;
  margin: 18px auto 0;
}
.cta-final p {
  max-width: 480px;
  margin: 16px auto 0;
  font-size: 17px;
}
.cta-final .store-row {
  justify-content: center;
  margin-top: 34px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  background: var(--paper-dim);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { max-width: 280px; font-size: 14px; }
.footer-maker { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); opacity: 0.75; }
.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .footer-top { flex-direction: column; gap: 30px; }
  .footer-cols { gap: 36px; }
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 64px 0 20px;
}
.legal-hero .eyebrow { margin-bottom: 16px; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.legal-hero p.updated { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

.legal-body {
  padding: 40px 0 100px;
}
.legal-body .wrap { max-width: 780px; }
.legal-body h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-top: 12px; font-size: 15.5px; }
.legal-body ul { margin: 14px 0; padding-left: 22px; }
.legal-body li { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 6px; }
.legal-body strong { color: var(--ink); }
.legal-note {
  margin-top: 40px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.legal-note p { font-size: 14px; }

/* Android app isn't published yet. Hidden, not removed, so it's a
   one-line flip back on when Google Play goes live. !important because
   this class is dropped onto elements in different contexts (store
   badges, footer links) with varying inherited specificity. */
.store-pending { display: none !important; }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-lg { margin-top: 60px; }

@media (max-width: 700px) {
  .privacy-grid.protect-grid,
  .protect-grid { grid-template-columns: 1fr 1fr; }
}
