/* RushFlick marketing site — dark cinematic + orange gradient CTAs (brand reference) */

:root {
  --bg-deep: #050505;
  --bg-elevated: #0a0a0c;
  --radial-glow: #1a1025;
  --card: rgba(18, 12, 28, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-a: #ff7e5f;
  --accent-b: #ff4b2b;
  --accent-hot-a: #ff4d00;
  --accent-hot-b: #ffcc00;
  --gold: #f5d142;
  --text: #f8fafc;
  --muted: #94a3b8;
  --header-h: 4.25rem;
  --radius: 1rem;
  --radius-pill: 999px;
  --shadow-glow: 0 0 28px rgba(255, 77, 0, 0.35);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rf-enter,
  .rf-card-enter {
    animation: none !important;
  }

  .site-header,
  .glass-card,
  .tag-hd,
  .modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .glass-card {
    background: rgba(22, 16, 34, 0.96);
  }

  .tag-hd {
    background: rgba(38, 38, 44, 0.96);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, var(--radial-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 77, 0, 0.06), transparent 45%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(67, 56, 202, 0.12), transparent 40%);
  background-attachment: fixed;
  padding-top: var(--header-h);
}

/* fixed 背景在移动端滚动时 GPU 压力大，改为随滚动 */
@media (max-width: 899px) {
  body {
    background-attachment: scroll;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent-b);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

/* 轻量入场动画（替代 AOS：无额外请求、无滚动监听） */
@keyframes rf-enter-kf {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rf-enter {
    animation: rf-enter-kf 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .rf-enter-delay-1 {
    animation-delay: 0.07s;
  }

  .rf-enter-delay-2 {
    animation-delay: 0.22s;
  }

  .rf-enter-delay-3 {
    animation-delay: 0.28s;
  }

  .feature-grid > .rf-card-enter {
    animation: rf-enter-kf 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .feature-grid > .rf-card-enter:nth-child(1) {
    animation-delay: 0.05s;
  }

  .feature-grid > .rf-card-enter:nth-child(2) {
    animation-delay: 0.11s;
  }

  .feature-grid > .rf-card-enter:nth-child(3) {
    animation-delay: 0.17s;
  }

  .feature-grid > .rf-card-enter:nth-child(4) {
    animation-delay: 0.23s;
  }
}

/* ----- Header (sticky) ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.88);
  border-bottom-color: rgba(255, 126, 95, 0.15);
}

@media (max-width: 767px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 5, 5, 0.94);
  }

  .site-header.is-scrolled {
    background: rgba(5, 5, 5, 0.97);
  }
}

.header-inner {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.92;
}

.brand-icon {
  border-radius: 22%;
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 126, 95, 0.35);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--card-border);
  background: rgba(8, 6, 12, 0.95);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 4px 20px rgba(255, 75, 43, 0.35);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--card-border);
  background: rgba(255, 255, 255, 0.04);
}

.btn-compact {
  padding-inline: 1rem;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.25rem;
}

.btn-glow:hover {
  box-shadow: var(--shadow-glow), 0 4px 24px rgba(255, 77, 0, 0.25);
}

.icon-left {
  flex-shrink: 0;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% 20% auto;
  height: 60%;
  background: radial-gradient(closest-side, rgba(255, 77, 0, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-speed-lines {
  position: absolute;
  right: 0;
  top: 20%;
  width: 40%;
  height: 40%;
  opacity: 0.15;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 8px,
    rgba(255, 204, 0, 0.4) 8px,
    rgba(255, 204, 0, 0.4) 9px
  );
  mask-image: linear-gradient(to left, black, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-a);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-hot-a), var(--accent-hot-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gold-star {
  flex-shrink: 0;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(320px, 85vw);
}

@media (min-width: 900px) {
  .hero-visual {
    justify-self: end;
    width: min(340px, 100%);
  }
}

.phone-frame {
  position: relative;
  padding: 0.55rem;
  border-radius: 2.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(30, 20, 40, 0.9));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.35rem;
  background: #000;
  border-radius: 0 0 0.75rem 0.75rem;
  z-index: 2;
}

.phone-screen {
  border-radius: 1.85rem;
  overflow: hidden;
  background: #000;
  aspect-ratio: 351 / 760;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.floating-tag {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-new {
  left: -4%;
  bottom: 28%;
  color: #1a1508;
  background: linear-gradient(180deg, #fff6c2, var(--gold));
  box-shadow: 0 8px 24px rgba(245, 209, 66, 0.25);
}

.tag-hd {
  right: -2%;
  top: 38%;
  color: var(--text);
  background: rgba(30, 30, 35, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
  .tag-hd {
    backdrop-filter: none;
    background: rgba(38, 38, 44, 0.95);
  }
}

/* Screenshot gallery under hero — grid + device chrome (App Store–style) */
.hero-shots {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--card-border);
}

.hero-shots-eyebrow {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-shots-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  justify-items: center;
}

@media (min-width: 700px) {
  .hero-shots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
    align-items: start;
    gap: clamp(1rem, 2.2vw, 1.75rem);
  }
}

.shot-card {
  width: 100%;
  max-width: min(268px, 88vw);
  margin: 0;
}

@media (min-width: 700px) {
  .shot-card {
    max-width: none;
  }
}

.shot-frame {
  position: relative;
  padding: 0.45rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(28, 18, 38, 0.92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
  border: 1px solid transparent;
}

.shot-card:hover .shot-frame {
  border-color: rgba(255, 126, 95, 0.22);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 126, 95, 0.2), 0 0 28px rgba(255, 77, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shot-notch {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 1.05rem;
  background: #000;
  border-radius: 0 0 0.55rem 0.55rem;
  z-index: 2;
}

.shot-screen {
  border-radius: 1.12rem;
  overflow: hidden;
  background: #000;
  aspect-ratio: 351 / 760;
}

.shot-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ----- Features ----- */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.glass-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(255, 126, 95, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 24px rgba(255, 77, 0, 0.08);
}

@media (max-width: 767px) {
  .glass-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(22, 16, 34, 0.94);
  }
}

.feature-icon-wrap {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  color: var(--accent-a);
  background: rgba(255, 126, 95, 0.1);
  border: 1px solid rgba(255, 126, 95, 0.2);
}

.feature-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ----- Download ----- */
.download-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(26, 16, 37, 0.8), rgba(10, 10, 12, 0.95));
  border: 1px solid rgba(255, 126, 95, 0.18);
  box-shadow: 0 0 40px rgba(255, 77, 0, 0.08);
}

@media (min-width: 768px) {
  .download-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.download-copy {
  max-width: 28rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ----- Footer ----- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--card-border);
  background: var(--bg-elevated);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand img {
  border-radius: 20%;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-a);
}

/* ----- Modal ----- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

@media (max-width: 767px) {
  .modal-backdrop {
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.85);
  }
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 201;
  transform: translate(-50%, -50%);
  width: min(400px, 100% - 2rem);
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(165deg, #1a1224, #0d0d10);
  border: 1px solid rgba(255, 126, 95, 0.25);
  box-shadow: var(--shadow-glow), 0 24px 48px rgba(0, 0, 0, 0.5);
}

.modal[hidden] {
  display: none;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.modal-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal .btn-primary {
  width: 100%;
}
