/* ==========================================================================
   意念方块 Mindblock — Homepage (.landing-v2)
   Pure Multica Monochrome Minimal + 2% Blue Accent + Spotlight Gallery
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.hero {
  background: var(--color-canvas);
  padding: 44px 0 60px;
}

.hero-header {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}

.hero-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
}

.hero-line--secondary {
  color: var(--color-ink-secondary);
}

.hero-pill-tail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-punct {
  margin-right: -0.4em;
}

.hero-pause {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 1.26em;
  padding: 0 15px 0 12px;
  border-radius: 11px;
  background: var(--color-action);
  color: var(--color-on-action);
  box-shadow: 0 2px 6px rgba(9, 9, 11, 0.14);
  font-size: 0.84em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-pause svg {
  width: 0.52em;
  height: 0.52em;
  flex-shrink: 0;
  opacity: 0.92;
}

.hero-pause span {
  display: inline-block;
  line-height: 1;
  transform: translateY(-0.02em);
}

.hero-rotator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 1.26em;
  padding: 0 16px 0 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05);
  font-size: 0.84em;
  font-weight: 500;
  line-height: 1;
  color: var(--color-ink);
  white-space: nowrap;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.hero-rotator--action {
  border-color: var(--color-brand-soft-border);
  box-shadow:
    0 1px 2px rgba(9, 9, 11, 0.05),
    0 0 0 3px rgba(0, 112, 227, 0.06);
}

.hero-rotator.is-switching {
  opacity: 0;
  transform: translateY(3px);
}

.hero-rotator img {
  width: 0.8em;
  height: 0.8em;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-rotator span {
  display: inline-block;
  line-height: 1;
  transform: translateY(-0.02em);
}

/* ---------- 2. Spotlight 3-Card Video Gallery (Frosted Sides) ---------- */
.showcase {
  margin-top: 34px;
}

.gallery-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.gallery-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-sunken);
  border: 1px solid var(--color-rule);
}

.gallery-tab {
  padding: 6px 15px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.gallery-tab:hover {
  color: var(--color-ink);
}

.gallery-tab[aria-selected="true"] {
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 1px 3px rgba(9, 9, 11, 0.08);
}

.gallery-frame {
  position: relative;
  padding: 36px 24px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-rule-strong);
  background: var(--color-sunken);
  overflow: hidden;
}

.gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 404px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.gallery-side {
  position: relative;
  display: flex;
  justify-content: center;
}

.gallery-side--prev {
  justify-content: flex-end;
}

.gallery-side--next {
  justify-content: flex-start;
}

/* Frosted-glass blurred side cards to keep 100% visual focus on center video */
.gallery-peek {
  position: relative;
  isolation: isolate;
  width: 264px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid rgba(9, 9, 11, 0.08);
  border-radius: 18px;
  overflow: hidden;
  clip-path: inset(0 round 18px);
  background: var(--color-surface);
  cursor: pointer;
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: blur(6px) saturate(0.75);
  transform: scale(1.08);
  opacity: 0.78;
  transition: filter 0.3s var(--ease-out), opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.gallery-peek::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(251, 251, 251, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  transition: background-color 0.28s ease;
}

.gallery-peek:hover {
  transform: scale(0.95);
  border-color: rgba(9, 9, 11, 0.14);
  box-shadow: 0 14px 32px -18px rgba(9, 9, 11, 0.16);
}

.gallery-peek:hover img {
  filter: blur(3px) saturate(0.9);
  opacity: 0.9;
}

.gallery-peek:hover::after {
  background: rgba(251, 251, 251, 0.24);
}

.gallery-peek-tag {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  transform: translateX(-50%);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(9, 9, 11, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-ink-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.gallery-peek:hover .gallery-peek-tag {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-ink);
}

/* Razor-sharp Center Spotlight Video */
.gallery-center {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(9, 9, 11, 0.09);
  box-shadow:
    0 28px 64px -26px rgba(9, 9, 11, 0.24),
    0 4px 14px -6px rgba(9, 9, 11, 0.08);
}

.gallery-center video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.gallery-center.is-switching video {
  opacity: 0.22;
}

/* Whisper-quiet Icon-only Micro Controls (fade in gently on hover/focus) */
.video-float-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.28;
  transition: opacity 0.22s ease;
}

.gallery-center:hover .video-float-controls,
.gallery-center:focus-within .video-float-controls {
  opacity: 0.92;
}

.video-icon-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(9, 9, 11, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-ink-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.video-icon-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-ink);
}

.video-icon-btn svg {
  width: 13px;
  height: 13px;
}

.gallery-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.gallery-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-rule-strong);
  background: var(--color-surface);
  color: var(--color-ink-secondary);
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.gallery-arrow:hover {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: #d4d4d8;
}

.gallery-caption {
  font-size: 13.5px;
  color: var(--color-ink-secondary);
  text-align: center;
}

.gallery-caption strong {
  font-family: var(--font-numeral);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-brand);
  margin-right: 8px;
}

/* ---------- 3. Quiet Trust Strip ---------- */
.trust-band {
  border-top: 1px solid var(--color-rule);
  background: var(--color-canvas);
}

.trust-row {
  width: min(100% - 40px, var(--container-w));
  margin-inline: auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-item strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.trust-item span {
  font-size: 13px;
  color: var(--color-ink-muted);
}

/* ---------- 4. Ecosystem Grid (5×2 Pure Neutral Hairline Grid) ---------- */
.apps-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--color-rule);
  border-left: 1px solid var(--color-rule);
}

.app-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  transition: background-color 0.16s ease;
}

.app-cell:hover {
  background: var(--color-sunken);
}

.app-cell img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(9, 9, 11, 0.08);
  flex-shrink: 0;
}

.app-cell span {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.apps-footnote {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--color-ink-muted);
}

/* ---------- 5. Pricing ---------- */
.pricing-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.38fr);
  align-items: start;
  gap: 24px;
}

.pricing-plans {
  display: grid;
  gap: 16px;
}

.plan-card {
  padding: 26px;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.plan-card--pro {
  border-color: #e6decb;
  background: linear-gradient(180deg, #fdfbf6 0%, #ffffff 38%);
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan-card h3 {
  font-family: var(--font-numeral), var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
}

.plan-tag {
  font-size: 12.5px;
  color: var(--color-ink-muted);
}

.plan-card--pro .plan-tag {
  color: #8a5a00;
  font-weight: 500;
}

.plan-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-ink-secondary);
}

.plan-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--color-ink);
}

.plan-list li {
  position: relative;
  padding-left: 18px;
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 600;
}

.purchase-options {
  margin: 18px 0 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.purchase-option {
  padding: 13px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-rule-strong);
  background: var(--color-surface);
  text-align: center;
}

.purchase-option--featured {
  border-color: #18181b;
  background: #111114;
  color: #ffffff;
}

.purchase-option dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink-secondary);
}

.purchase-option--featured dt {
  color: rgba(255, 255, 255, 0.78);
}

.purchase-price {
  margin: 6px 0 0;
  font-family: var(--font-numeral);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.purchase-price span {
  font-size: 13px;
  font-weight: 600;
  margin-right: 1px;
}

.purchase-option--featured .purchase-price {
  color: #ffffff;
}

.purchase-sub {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--color-ink-muted);
}

.purchase-option--featured .purchase-sub {
  color: rgba(255, 255, 255, 0.65);
}

.plan-card .text-link {
  margin-top: 16px;
  color: var(--color-ink);
}

.plan-card .text-link:hover {
  color: var(--color-ink-secondary);
}

.pricing-table-wrap {
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow-x: auto;
}

.benefit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.benefit-table caption {
  padding: 18px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
}

.benefit-table th,
.benefit-table td {
  padding: 15px 22px;
  text-align: left;
  border-top: 1px solid var(--color-rule);
}

.benefit-table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink-muted);
  background: var(--color-canvas);
}

.benefit-table tbody th {
  font-weight: 400;
  color: var(--color-ink-secondary);
}

/* Warm Champagne Sandstone Pro Column + Crisp Obsidian Pro Pill */
.benefit-table th:last-child,
.benefit-table td:last-child {
  background: #faf7f0;
  font-weight: 500;
  color: var(--color-ink);
}

.benefit-table thead th:last-child {
  background: #f5f0e4;
}

.pro-col-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-ink-inverse);
  font-family: var(--font-numeral), var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pricing-trial-row {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-ink-secondary);
}

.pricing-notes {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--color-ink-muted);
}

/* ---------- 6. FAQ ---------- */
.faq-header {
  text-align: center;
  margin-bottom: 36px;
}

.faq-stack {
  max-width: 720px;
  margin-inline: auto;
}

/* ---------- 7. Bottom CTA (Progressive Disclosure) ---------- */
.bottom-cta {
  text-align: center;
}

.bottom-cta h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

.bottom-cta .cta-line {
  display: block;
  margin-right: -0.35em;
}

.bottom-cta .cta-line + .cta-line {
  margin-top: 0.08em;
}

.bottom-cta p {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 16px;
  color: var(--color-ink-secondary);
}

.bottom-cta-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta-step {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(16px);
  transition:
    opacity 0.9s var(--ease-out),
    filter 0.95s var(--ease-out),
    transform 0.9s var(--ease-out);
  will-change: opacity, filter, transform;
}

.bottom-cta p.cta-step {
  display: block;
  filter: blur(5px);
  transform: translateY(12px);
}

.bottom-cta-actions.cta-step {
  display: flex;
  filter: blur(4px);
  transform: translateY(12px);
}

.bottom-cta.is-disclosed .cta-step,
.no-js .bottom-cta .cta-step {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition-delay: var(--step-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .cta-step {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (hover: none) {
  .video-float-controls {
    opacity: 0.6;
  }
}

@media (max-width: 1020px) {
  .gallery-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 344px) minmax(0, 1fr);
    gap: 20px;
  }
  .gallery-peek {
    width: 204px;
  }
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 36px 0 44px;
  }
  .gallery-frame {
    padding: 22px 16px 20px;
  }
  .gallery-stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .gallery-side {
    display: none;
  }
  .gallery-center {
    max-width: 350px;
  }
  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 24px;
    gap: 8px;
  }
  .hero-line {
    gap: 4px 7px;
  }
  .hero-rotator {
    padding: 0 12px 0 8px;
    gap: 6px;
  }
  .hero-pause {
    padding: 0 11px 0 9px;
    border-radius: 9px;
    gap: 5px;
  }
  .gallery-tabs {
    border-radius: var(--radius-lg);
  }
  .gallery-tab {
    padding: 6px 11px;
    font-size: 12.5px;
  }
  .purchase-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .purchase-option {
    padding: 10px 6px;
  }
  .purchase-price {
    font-size: 20px;
  }
  .benefit-table th,
  .benefit-table td {
    padding: 13px 12px;
    font-size: 13px;
  }
}
