/* Quanzhou Runwu Technology — Google Play Developer Site */

:root {
  --play-green: #01875f;
  --play-green-dark: #016b4c;
  --play-green-light: #1aaf8a;
  --ink: #0d1117;
  --ink-soft: #161b22;
  --surface: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent-warm: #f0883e;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-glow: 0 0 80px rgba(1, 135, 95, 0.15);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-muted-custom {
  color: var(--text-muted) !important;
}

/* Navbar */
.navbar-runwu {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0;
  transition: background 0.3s ease;
}

.navbar-runwu.scrolled {
  background: rgba(13, 17, 23, 0.95);
}

.navbar-runwu .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.navbar-runwu .nav-link:hover,
.navbar-runwu .nav-link.active {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--play-green), var(--play-green-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* Hero */
.rwapp-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.rwapp-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(1, 135, 95, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(240, 136, 62, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(1, 135, 95, 0.12), transparent),
    var(--ink);
  z-index: 0;
}

.rwapp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
  z-index: 1;
  pointer-events: none;
}

.rwapp-content {
  position: relative;
  z-index: 2;
}

.rwapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(1, 135, 95, 0.15);
  border: 1px solid rgba(1, 135, 95, 0.35);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--play-green-light);
  margin-bottom: 1.5rem;
}

.rwapp-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.rwapp-title .highlight {
  background: linear-gradient(120deg, var(--play-green-light), #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rwapp-lead {
  font-size: 1.125rem;
  max-width: 32rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn-play {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--play-green);
  --bs-btn-border-color: var(--play-green);
  --bs-btn-hover-bg: var(--play-green-dark);
  --bs-btn-hover-border-color: var(--play-green-dark);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-light-custom {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline-light-custom:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.rwapp-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0;
}

/* Framed rwapp image: rounded, moderate size, soft depth */
.rwapp-visual-frame {
  position: relative;
  width: 100%;
  max-width: min(300px, 88vw);
  margin-inline: auto;
  padding: 10px;
  border-radius: 1.75rem;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(56, 64, 74, 0.55) 0%,
    rgba(30, 35, 42, 0.95) 45%,
    rgba(18, 22, 28, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 56px -16px rgba(0, 0, 0, 0.65),
    0 0 100px -24px rgba(1, 135, 95, 0.22);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.rwapp-visual-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 36px 72px -20px rgba(0, 0, 0, 0.7),
    0 0 120px -20px rgba(1, 135, 95, 0.28);
}

.rwapp-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-mockup-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .rwapp-visual-frame {
    transition: none;
  }

  .rwapp-visual-frame:hover {
    transform: none;
  }
}

.phone-frame {
  background: linear-gradient(145deg, #2d333b, #1c2128);
  border-radius: 2.25rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-soft) 100%);
  border-radius: 1.75rem;
  aspect-ratio: 9/18;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.phone-screen .ri-google-play-fill {
  font-size: 3rem;
  color: var(--play-green-light);
  margin-bottom: 0.75rem;
}

.rwapp-lottie {
  width: 120%;
  max-width: 280px;
  aspect-ratio: 1;
  pointer-events: none;
  top: 8% !important;
}

.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 20%;
  left: -8%;
  animation-delay: -2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--ink-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* Stats */
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.25s, transform 0.25s;
}

.stat-card:hover {
  border-color: rgba(1, 135, 95, 0.35);
  transform: translateY(-2px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--play-green-light);
}

/* App cards */
.app-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.app-card:hover {
  border-color: rgba(1, 135, 95, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
}

.app-card-body {
  padding: 1.5rem;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--play-green-light);
  background: rgba(1, 135, 95, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

/* Feature list */
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(1, 135, 95, 0.15);
  color: var(--play-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(1, 135, 95, 0.25), rgba(1, 107, 76, 0.15));
  border: 1px solid rgba(1, 135, 95, 0.3);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
}

/* Contact */
.form-control-custom {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.form-control-custom:focus {
  background: var(--surface);
  border-color: var(--play-green);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(1, 135, 95, 0.2);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 2rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--play-green-light);
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-btn:hover {
  color: var(--play-green-light);
  border-color: rgba(1, 135, 95, 0.4);
  background: rgba(1, 135, 95, 0.1);
}

/* Play badge style text */
.play-badge-img {
  height: 48px;
  opacity: 0.9;
}

@media (max-width: 991.98px) {
  .rwapp-section {
    min-height: auto;
    padding-top: 6rem;
  }

  .floating-card {
    display: none;
  }

  .rwapp-visual {
    margin-top: 1.5rem;
  }

  .rwapp-visual-frame {
    max-width: min(280px, 90vw);
  }
}
