/* 91POAPP Official Site — 91-s.lol */
:root {
  --bg-deep: #08080f;
  --bg-card: #12121c;
  --bg-elevated: #1a1a28;
  --orange: #ff7a18;
  --orange-light: #ff9a3c;
  --orange-glow: rgba(255, 122, 24, 0.35);
  --purple: #7c5cff;
  --blue: #3d8bff;
  --gradient-cta: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(160deg, #0d0d18 0%, #15102a 45%, #1a0f08 100%);
  --text-primary: #f2f2f7;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b82;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 60px;
  --sticky-ads-h: 0px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max-w: 1120px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 15px;
  overflow-x: hidden;
}

body.has-sticky-ads {
  --sticky-ads-h: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 18px;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8, 8, 15, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand span em {
  color: var(--orange);
  font-style: normal;
}

.nav-desktop {
  display: none;
  gap: 6px;
}

.nav-desktop a {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-primary);
  background: rgba(255, 122, 24, 0.12);
}

.btn-download-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--gradient-cta);
  color: #fff !important;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.3);
}

.btn-download-nav:hover { opacity: 0.9; color: #fff !important; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(12, 12, 20, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  z-index: 999;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
}

.nav-mobile a:hover { background: rgba(255,122,24,0.1); color: var(--text-primary); }

/* ── Sticky Ads Bar ── */
.sticky-ads-bar {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 998;
  background: rgba(10, 10, 18, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
}

.sticky-ads-bar.visible { display: block; }

.sticky-ads-bar .ads-wrap {
  margin: 0;
}

/* ── Ads Component ── */
.ads-section {
  padding: calc(var(--nav-h) + 8px) 0 4px;
}

.ads-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0;
}

.ads-wrap > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

.ads-wrap img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

.ads-wrap a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.ads-wrap img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.ads-wrap figcaption,
.ads-wrap .caption {
  height: 15px;
  font-size: 11px;
  color: #888;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 28px 0 48px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 122, 24, 0.12);
  border: 1px solid rgba(255, 122, 24, 0.3);
  border-radius: 50px;
  font-size: 12px;
  color: var(--orange-light);
  margin-bottom: 16px;
}

.hero-badge::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--orange) 0%, #ffb347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-link {
  display: inline-flex;
  margin-top: 4px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-tags span {
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient-cta);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 6px 28px rgba(124, 92, 255, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover { color: #fff; opacity: 0.92; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 240px;
  border-radius: 28px;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,122,24,0.15);
  overflow: hidden;
}

.phone-mockup img {
  width: 100%;
  border-radius: 25px;
}

/* ── Stats ── */
.stats-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  color: var(--orange);
  line-height: 1.2;
}

.stat-item span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Sections ── */
.section {
  padding: 56px 0;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 640px;
}

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(255, 122, 24, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 122, 24, 0.1);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Content + Image Blocks (3:7 ratio) ── */
.content-layout {
  display: grid;
  gap: 40px;
}

.content-text {
  flex: 7;
}

.content-text h2 {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.35;
}

.content-text h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--orange-light);
}

.content-text p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 14px;
}

.content-text ul {
  list-style: none;
  margin: 12px 0 20px;
}

.content-text ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.content-text ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.content-images {
  flex: 3;
  display: grid;
  gap: 16px;
}

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.screenshot-card img {
  width: 100%;
}

.screenshot-card figcaption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Showcase Row ── */
.showcase-row {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

.showcase-item {
  display: grid;
  gap: 20px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
}

.showcase-item.reverse .showcase-img { order: -1; }

.showcase-img {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 280px;
  margin: 0 auto;
  border: 2px solid rgba(255,122,24,0.15);
}

.showcase-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.showcase-body p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ── FAQ ── */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--orange);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.faq-item.open .faq-answer { display: block; }

/* ── CTA Banner ── */
.cta-banner {
  padding: 48px 0;
  background: linear-gradient(135deg, rgba(255,122,24,0.08) 0%, rgba(124,92,255,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

/* ── Download Zone ── */
#download-zone {
  scroll-margin-top: calc(var(--nav-h) + 80px);
}

.download-zone {
  background: var(--bg-card);
  border: 1px solid rgba(255, 122, 24, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}

.download-zone h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-zone p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── Prose SEO Cards ── */
.prose-grid {
  display: grid;
  gap: 16px;
}

.prose-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.prose-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--orange-light);
}

.prose-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.prose-section {
  padding-bottom: 56px;
}

.prose-wide {
  max-width: 100%;
}

.prose-wide h2 {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  margin-bottom: 16px;
}

.prose-wide h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--orange-light);
}

.prose-wide p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 14px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: calc(var(--nav-h) + 20px) 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 8px; }

/* ── Page Content ── */
.page-hero {
  padding: 24px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.page-hero h1 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 14px;
}

.legal-content {
  padding-bottom: 60px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--orange-light);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

/* ── Error Pages ── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
}

.error-code {
  font-size: clamp(72px, 18vw, 120px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 14px;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand img {
  width: 44px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .prose-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-item { grid-template-columns: 1fr 1.4fr; padding: 28px; }
  .showcase-item.reverse { grid-template-columns: 1.4fr 1fr; }
  .showcase-item.reverse .showcase-img { order: 0; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 767px) {
  .btn-download-nav { display: none; }
  .nav-mobile a[href*="download-zone"] { display: none; }
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .content-layout { grid-template-columns: 7fr 3fr; align-items: start; }
  .content-layout.images-left { grid-template-columns: 3fr 7fr; }
  .content-layout.images-left .content-images { order: -1; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .phone-mockup { width: 280px; }
}

@media (min-width: 1024px) {
  .section { padding: 72px 0; }
}
