/* =========================================================
   海阁社区 — 动漫 / 漫画 / 小说 社区 App 产品页
   style.css
   ========================================================= */

:root {
  --brand: #e8102a;
  --brand-deep: #c00b21;
  --brand-soft: #ffe7ea;

  --ink: #12101c;
  --ink-2: #3b3949;
  --muted: #7a778c;
  --bg: #f6f7fb;
  --tint: #eef0f8;
  --card: #ffffff;
  --line: #e5e6f0;

  --pink: #ff4d6d;
  --violet: #7c5cff;
  --sky: #2fb9f8;
  --amber: #ffb020;

  --dark: #100d18;
  --dark-2: #181327;

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-sm: 0 2px 12px rgba(19, 16, 35, 0.05);
  --shadow-md: 0 22px 50px -30px rgba(19, 16, 35, 0.45);
  --shadow-phone: 0 48px 90px -46px rgba(6, 4, 18, 0.85);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }

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

section[id] { scroll-margin-top: 90px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-brand {
  background: linear-gradient(135deg, #ff2f4a, var(--brand) 55%, var(--brand-deep));
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(232, 16, 42, 0.75);
}
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -16px rgba(232, 16, 42, 0.85);
}
.btn-brand:active { transform: translateY(0); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
}
.btn-light:hover {
  background: #1a1526;
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14.5px; border-radius: 11px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header.is-stuck {
  background: rgba(16, 13, 24, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: transparent;
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: #fff;
}
.brand-icon { border-radius: 10px; }
.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 42px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 78px 0 104px;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 46% at 78% 18%, rgba(232, 16, 42, 0.42), transparent 66%),
    radial-gradient(38% 42% at 60% 88%, rgba(124, 92, 255, 0.32), transparent 70%),
    radial-gradient(34% 40% at 8% 6%, rgba(47, 185, 248, 0.16), transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.05);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5a70;
  box-shadow: 0 0 0 4px rgba(255, 90, 112, 0.22);
}

.hero h1 {
  margin: 24px 0 4px;
  font-size: clamp(48px, 6.4vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(120deg, #ffffff 30%, #ffb6c2 78%, #ff7d92);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.lead {
  margin-top: 18px;
  max-width: 32em;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.74);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-badges li {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.hero-badges strong { color: #fff; font-size: 15px; margin-right: 4px; }

/* ---------- 手机外壳 ---------- */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

.phone {
  position: relative;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(160deg, #322a44, #0c0a14 62%, #241d33);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.phone::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 6px;
  border-radius: 999px;
  background: #05040a;
  z-index: 2;
}
.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: #0a0812;
  aspect-ratio: 9 / 16;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-main {
  position: relative;
  z-index: 3;
  width: min(292px, 78vw);
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.phone-side {
  position: absolute;
  width: 190px;
  z-index: 1;
  opacity: 0.94;
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 64%, transparent 99%);
}
.phone-side .phone-screen { aspect-ratio: 9 / 13.5; }
.phone-left {
  left: 50%;
  margin-left: -252px;
  top: 96px;
  transform: rotate(-8deg);
  animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.phone-right {
  left: 50%;
  margin-left: 78px;
  top: 96px;
  transform: rotate(8deg);
  animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 跑马灯（静态） ---------- */
.marquee {
  background: var(--brand);
  color: #fff;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 15px 24px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.marquee .sep { opacity: 0.45; }

/* ---------- 通用区块 ---------- */
.section { padding: 104px 0; }
.section-tint { background: var(--tint); }

.section-head { max-width: 660px; margin-bottom: 52px; }
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.kicker--light { color: #ff8095; }

.section-head h2,
.split-copy h2,
.download h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.028em;
  line-height: 1.32;
}
.sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
}
.sub--light { color: rgba(255, 255, 255, 0.62); }

/* ---------- 四大板块 ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.module {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.module::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}
.module:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.module:hover::before { opacity: 0.6; }

.module-pink::before { background: radial-gradient(circle, var(--pink), transparent 66%); }
.module-amber::before { background: radial-gradient(circle, var(--amber), transparent 66%); }
.module-violet::before { background: radial-gradient(circle, var(--violet), transparent 66%); }
.module-sky::before { background: radial-gradient(circle, var(--sky), transparent 66%); }

.module-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  color: #fff;
}
.module-icon svg { width: 24px; height: 24px; }
.module-pink .module-icon { background: linear-gradient(135deg, #ff7a95, var(--pink)); }
.module-amber .module-icon { background: linear-gradient(135deg, #ffcd66, var(--amber)); }
.module-violet .module-icon { background: linear-gradient(135deg, #a08cff, var(--violet)); }
.module-sky .module-icon { background: linear-gradient(135deg, #7dd8ff, var(--sky)); }

.module h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 9px;
}
.module p {
  position: relative;
  font-size: 14.4px;
  line-height: 1.8;
  color: var(--ink-2);
}
.module-tag {
  position: relative;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 左右分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 64px;
}
.split--reverse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

.split-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-frame { width: min(288px, 76vw); }
.phone-frame--dark {
  box-shadow: 0 50px 90px -46px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.float-pill {
  position: absolute;
  z-index: 4;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.float-pill--a { top: 42px; right: -8px; }
.float-pill--b { bottom: 62px; left: -14px; color: var(--brand-deep); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}
.tag-row li {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.tag-row li:first-child {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tag-row--ghost { margin-top: 10px; }
.tag-row--ghost li:first-child {
  background: rgba(232, 16, 42, 0.08);
  border-color: rgba(232, 16, 42, 0.25);
  color: var(--brand-deep);
}

.callout {
  margin-top: 30px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  font-size: 14.2px;
  line-height: 1.85;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.callout strong { color: var(--ink); }

/* ---------- 积分（深色） ---------- */
.section-dark {
  background: var(--dark-2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  top: -24%;
  left: -12%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 16, 42, 0.3), transparent 66%);
  pointer-events: none;
}
.section-dark .split { position: relative; }

.point-list {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.point-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.point-list span {
  min-width: 96px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.point-list em {
  font-style: normal;
  font-size: 13.8px;
  color: rgba(255, 255, 255, 0.58);
}

/* ---------- 口碑 ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 26px 26px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote-mark {
  font-size: 46px;
  line-height: 0.6;
  color: rgba(232, 16, 42, 0.22);
  font-weight: 700;
}
.quote p { font-size: 15.5px; line-height: 1.85; color: var(--ink); }
.quote footer {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: var(--muted);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.avatar-pink { background: linear-gradient(135deg, #ff8fa3, var(--pink)); }
.avatar-violet { background: linear-gradient(135deg, #a596ff, var(--violet)); }
.avatar-sky { background: linear-gradient(135deg, #7fd9ff, var(--sky)); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  padding: 21px 50px 21px 2px;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary:hover { color: var(--brand-deep); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.22s ease, border-color 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
  border-color: var(--brand);
}
.faq-body { padding: 0 50px 22px 2px; }
.faq-body p { font-size: 14.8px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 下载 ---------- */
.download {
  position: relative;
  padding: 70px 0;
  background: linear-gradient(115deg, #ff2b45, var(--brand) 46%, #b3081c);
  color: #fff;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 62%);
  pointer-events: none;
}
.download-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.download-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.download-icon {
  border-radius: 16px;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.download h2 { font-size: clamp(24px, 2.8vw, 34px); }
.download-left p {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}
.download-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.download-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 66px 0 30px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.62);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr));
  gap: 36px;
}
.brand--footer { color: #fff; }
.footer-brand p {
  margin-top: 14px;
  max-width: 22em;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.5);
}
.footer-nav h3 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.footer-nav a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: #fff; }
.footer-nav p { font-size: 13.5px; line-height: 1.9; }
.footer-nav strong { color: #fff; letter-spacing: 0.02em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 620px; }
  .hero-stage { min-height: 0; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split,
  .split--reverse { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split-visual { order: 2; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .phone-side { display: none; }
  .hero-stage { min-height: 0; padding: 10px 0 4px; }
  .phone-main { width: min(280px, 74vw); }
}

@media (max-width: 768px) {
  .section { padding: 74px 0; }
  .hero { padding: 48px 0 76px; }
  .header-inner { height: 66px; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #17131f;
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a {
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
  }
  .nav a::after { display: none; }
  .nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .hero-actions .btn { flex: 1 1 44%; padding: 0 16px; }
  .module-grid { grid-template-columns: 1fr; }
  .module { padding: 24px 22px; }
  .section-head { margin-bottom: 38px; }
  .float-pill--a { right: 0; top: 24px; }
  .float-pill--b { left: 0; bottom: 34px; }
  .marquee-track { justify-content: flex-start; font-size: 12.5px; gap: 6px 14px; }
  .marquee .sep { display: none; }
  .download { padding: 56px 0; }
  .download-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .download-left { align-items: flex-start; }
  .download-right .btn { width: 100%; }
  .faq summary { font-size: 15.5px; padding-right: 40px; }
  .faq-body { padding-right: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .btn { min-height: 50px; padding: 0 22px; font-size: 15px; }
  .hero-badges li { font-size: 12.5px; padding: 7px 12px; }
  .download-left { gap: 14px; }
  .download-icon { width: 52px; height: 52px; }
}