/* ── 首页专用样式（html1 v2）── */

.page-home {
  --home-bg: #030712;
  --home-surface: #0f172a;
  --home-border: rgba(255, 255, 255, 0.08);
  --home-text: #f8fafc;
  --home-muted: #94a3b8;
  --home-accent: #0ea5e9;
  --home-accent-2: #10b981;
  --home-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #10b981 100%);
}

body.page-home::before,
body.page-home::after {
  display: none;
}

body.page-home {
  background: #f8fafc;
  color: #0f172a;
}

/* Header on homepage — 与 html 首页一致使用 sticky */
.page-home .site-header--home {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  background: rgba(3, 7, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f8fafc;
}

.page-home .site-header--home .brand {
  color: #f8fafc;
}

.page-home .site-header--home .site-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .site-header--home .site-nav a:hover,
.page-home .site-header--home .site-nav a.active {
  color: #ffffff;
}

.page-home .site-header--home .nav-dropdown--nav .nav-dropdown-toggle {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .site-header--home .nav-dropdown--nav .nav-dropdown-toggle:hover,
.page-home .site-header--home .nav-dropdown--nav.open .nav-dropdown-toggle,
.page-home .site-header--home .nav-dropdown--nav .nav-dropdown-toggle.active {
  color: #ffffff;
}

.page-home .site-header--home .nav-toggle {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Hero — 与 html 首页高度一致 */
.page-home .hero {
  padding: 64px 0 48px;
}

.page-home .hero-copy .eyebrow {
  display: inline-block;
  margin-bottom: 20px;
}

.page-home .hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-home .hero-visual {
  position: relative;
}

.page-home .hero-visual .hero-panel {
  margin: 0;
}

/* ── 主题说明 ── */
.home-intro {
  background: #fff;
}

.home-intro__copy .home-section__eyebrow {
  margin-bottom: 16px;
}

.home-intro__copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: #0f172a;
}

.home-intro__copy .lead {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 20px;
}

.home-intro__copy p {
  margin: 0 0 18px;
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.75;
}

.home-intro__copy p:last-child {
  margin-bottom: 0;
}

.home-intro__copy a {
  color: #0ea5e9;
  text-decoration: none;
}

.home-intro__copy a:hover {
  text-decoration: underline;
}

.home-intro__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.15);
  border: 1px solid #e2e8f0;
}

@media (max-width: 1024px) {
  .home-intro .split {
    gap: 40px;
  }
}

/* ── Hero (legacy v2) ── */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  color: var(--home-text);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(3, 7, 18, 0.94) 0%, rgba(3, 7, 18, 0.88) 42%, rgba(3, 7, 18, 0.62) 100%),
    linear-gradient(to top, rgba(3, 7, 18, 0.92) 0%, transparent 45%);
}

.home-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.home-hero__glow--left {
  width: 500px;
  height: 500px;
  top: 10%;
  left: -10%;
  background: rgba(14, 165, 233, 0.15);
}

.home-hero__glow--right {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: 5%;
  background: rgba(16, 185, 129, 0.12);
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: center;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 24px;
}

.home-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: home-pulse 2s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.home-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  background: none;
  -webkit-text-fill-color: var(--home-text);
  color: var(--home-text);
}

.home-hero__title-accent {
  display: block;
  margin-top: 4px;
  background: var(--home-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero__lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--home-muted);
  max-width: 32em;
  margin: 0 0 32px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  gap: 10px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--home-text) !important;
  backdrop-filter: blur(8px);
}

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

.home-hero__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--home-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-platform-pill svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.home-platform-pill:hover {
  color: var(--home-text);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.1);
}

/* Hero visual — 右侧浮动动效卡片 */
.home-hero__visual,
.page-home .hero-visual {
  position: relative;
}

.home-hero__screenshot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 60px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.home-hero__screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.home-ping-card {
  position: absolute;
  top: -20px;
  left: -24px;
  z-index: 2;
  width: 220px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: home-float 4s ease-in-out infinite;
}

@keyframes home-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.home-ping-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.home-ping-card__status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #10b981;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
}

.home-ping-card__game {
  font-size: 0.78rem;
  color: var(--home-muted);
}

.home-ping-card__body {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.home-ping-card__label {
  display: block;
  font-size: 0.72rem;
  color: var(--home-muted);
  margin-bottom: 2px;
}

.home-ping-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--home-text);
  line-height: 1;
}

.home-ping-card__value small {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.7;
}

.home-ping-card__value--good {
  color: #10b981;
}

.home-ping-card__chart {
  height: 40px;
  opacity: 0.8;
}

.home-ping-card__chart svg {
  width: 100%;
  height: 100%;
}

.home-compare-float {
  position: absolute;
  bottom: 24px;
  right: -16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.home-compare-float__item {
  text-align: center;
}

.home-compare-float__item span {
  display: block;
  font-size: 0.7rem;
  color: var(--home-muted);
  margin-bottom: 2px;
}

.home-compare-float__item strong {
  font-size: 1.25rem;
  font-weight: 800;
}

.home-compare-float__item--before strong {
  color: #f87171;
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.5);
}

.home-compare-float__item--after strong {
  color: #10b981;
}

.home-compare-float__arrow {
  font-size: 1.25rem;
  color: var(--home-muted);
  padding: 0 4px;
}

/* ── Stats bar ── */
.home-stats {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: 0 0 0;
}

.home-stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: 20px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
}

.home-stats__list li {
  padding: 28px 24px;
  text-align: center;
  background: #fff;
}

.home-stats__list strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-stats__list span {
  font-size: 0.88rem;
  color: #64748b;
}

/* ── Section shared ── */
.home-section {
  padding: 96px 0;
}

.home-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.home-section__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 12px;
}

.home-section__head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #0f172a;
}

.home-section__head p {
  margin: 0;
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
}

.home-section__cta {
  text-align: center;
  margin: 40px 0 0;
}

/* ── Latency cards ── */
.home-latency {
  background: #fff;
}

.home-latency__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.home-latency-card {
  padding: 28px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.home-latency-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 12px 32px -8px rgba(14, 165, 233, 0.12);
  transform: translateY(-2px);
}

.home-latency-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.home-latency-card__top h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.home-latency-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.home-latency-card__compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.home-latency-card__before,
.home-latency-card__after {
  text-align: center;
  flex: 1;
}

.home-latency-card__label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.home-latency-card__num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.home-latency-card__before .home-latency-card__num {
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.5);
}

.home-latency-card__after .home-latency-card__num {
  color: #0ea5e9;
}

.home-latency-card__num small {
  font-size: 1rem;
  font-weight: 600;
}

.home-latency-card__arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.home-latency-card__arrow svg {
  width: 18px;
  height: 18px;
}

.home-latency-card__bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 12px;
}

.home-latency-card__bar-fill {
  height: 100%;
  width: var(--pct, 80%);
  border-radius: 999px;
  background: var(--home-gradient);
  transition: width 1s ease;
}

.home-latency-card__note {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
}

.home-latency-card__note strong {
  color: #10b981;
}

.home-section__head--center {
  max-width: 720px;
}

/* ── Featured ask ── */
.home-featured-ask {
  background: #fff;
}

.home-featured-ask__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-featured-ask__grid .news-card--qa {
  border-radius: 20px;
}

.home-featured-ask__grid .news-card--qa .news-card-cover {
  aspect-ratio: unset;
  height: 120px;
}

.home-featured-ask__grid .news-card--qa .body {
  padding: 14px 16px 16px;
}

.home-featured-ask__grid .news-card--qa .news-card-date,
.home-featured-ask__grid .news-card--qa .tag,
.home-featured-ask__grid .news-card--qa .news-card-more {
  display: none;
}

.home-featured-ask__grid .news-card--qa h3 {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-featured-ask__grid .news-card--qa .card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
  color: #64748b;
}

.home-featured-ask__cta {
  margin: 40px 0 0;
  text-align: center;
}

@media (max-width: 768px) {
  .home-featured-ask__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-featured-ask__grid .news-card--qa .news-card-cover {
    height: 160px;
  }
}

/* ── Interface preview (legacy — page /interface/ only) ── */
.home-interface {
  background: #fff;
}

/* ── Features ── */
.home-features {
  background: #f8fafc;
}

.home-features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-features__grid--eight .home-feature-card {
  padding: 28px 20px;
}

.home-features__grid--eight .home-feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
}

.home-features__grid--eight .home-feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.home-features__grid--eight .home-feature-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.home-features__grid--eight .home-feature-card p {
  font-size: 0.85rem;
  line-height: 1.55;
}

.home-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(14, 165, 233, 0.12);
}

.home-trust-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.home-trust-bar__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.home-trust-bar__icon svg {
  width: 14px;
  height: 14px;
}

.home-trust-bar__item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.home-trust-bar__item span {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .home-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-trust-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.home-feature-card {
  padding: 36px 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s ease;
}

.home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.25);
}

.home-feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.08));
  color: #0ea5e9;
}

.home-feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.home-feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.home-feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

/* ── 文章卡片 ── */
.home-articles {
  background: #fff;
}

.home-articles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-articles__grid .news-card .body p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 8px 0 0;
  line-height: 1.6;
}

.home-articles__grid .news-card h3 {
  font-size: 1.05rem;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .home-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-articles__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Steps ── */
.home-steps {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.home-steps__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--home-steps-count, 3), 1fr);
  gap: 0;
  position: relative;
}

.home-step {
  position: relative;
  text-align: center;
  padding: 0 20px;
}

.home-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -8px;
  width: calc(100% - 56px);
  margin-left: 56px;
  height: 2px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.35), rgba(16, 185, 129, 0.35));
  transform: translateX(50%);
  pointer-events: none;
}

.home-step__num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--home-gradient);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}

.home-step__body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.home-step__body p {
  margin: 0 auto;
  max-width: 280px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .home-steps__track {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 420px;
    margin: 0 auto;
  }

  .home-step {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-align: left;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .home-step:not(:last-child)::after {
    display: none;
  }

  .home-step__num {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .home-step__body p {
    max-width: none;
  }
}

/* ── Commitment ── */
.home-commitment {
  background: #f8fafc;
}

.home-commitment__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.home-commitment__item {
  text-align: center;
  padding: 24px;
}

.home-commitment__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #fff;
  color: #10b981;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.home-commitment__icon svg {
  width: 28px;
  height: 28px;
}

.home-commitment__item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.home-commitment__item p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .home-commitment__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-commitment__grid {
    grid-template-columns: 1fr;
  }
}

/* ── FAQ v3 ── */
.home-faq {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.home-faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.home-faq__aside .home-section__eyebrow {
  margin-bottom: 12px;
}

.home-faq__aside h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #0f172a;
  text-align: left;
}

.home-faq__aside > p {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.75;
  color: #64748b;
}

.home-faq__quicklinks {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.home-faq__quicklink {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.25s ease;
}

.home-faq__quicklink span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.home-faq__quicklink small {
  font-size: 0.82rem;
  color: #64748b;
}

.home-faq__quicklink:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 10px 24px -12px rgba(14, 165, 233, 0.2);
  transform: translateY(-2px);
}

.home-faq__support {
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.home-faq__support strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #0f172a;
}

.home-faq__support p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
}

.home-faq__list {
  counter-reset: faq;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 8px 24px -12px rgba(14, 165, 233, 0.18);
}

.faq-item[open] {
  border-color: var(--home-accent);
  box-shadow: 0 12px 32px -14px rgba(14, 165, 233, 0.22);
}

.faq-item summary {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #0f172a;
}

.faq-item__q::before {
  counter-increment: faq;
  content: counter(faq, decimal-leading-zero);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  font-size: 0.78rem;
  font-weight: 800;
}

.faq-icon {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--home-accent);
  border-radius: 2px;
  transition: opacity 0.25s ease;
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: calc(50% - 1px);
  left: 0;
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  left: calc(50% - 1px);
  top: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 24px 22px 70px;
}

.faq-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #64748b;
}

.faq-content a {
  color: #0ea5e9;
  text-decoration: none;
}

.faq-content a:hover {
  text-decoration: underline;
}

/* ── CTA v3 ── */
.home-cta-v2 {
  padding: 64px 0 96px;
  background: #fff;
}

.home-cta-v2__container {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -20px rgba(3, 7, 18, 0.35);
  color: #fff;
}

.home-cta-v2__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #030712;
}

.home-cta-v2__mesh {
  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: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}

.home-cta-v2__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: cta-glow-pulse 8s ease-in-out infinite alternate;
}

@keyframes cta-glow-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.8; }
}

.home-cta-v2__glow--left {
  width: 360px;
  height: 360px;
  top: -80px;
  left: -60px;
  background: rgba(14, 165, 233, 0.25);
}

.home-cta-v2__glow--right {
  width: 320px;
  height: 320px;
  bottom: -80px;
  right: -40px;
  background: rgba(16, 185, 129, 0.22);
  animation-delay: -4s;
}

.home-cta-v2__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 60px 48px;
}

.home-cta-v2__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-cta-v2 h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #fff;
}

.home-cta-v2 p.lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 24px;
  max-width: 36em;
  line-height: 1.75;
}

.home-cta-v2__benefits {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.home-cta-v2__benefits li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.home-cta-v2__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
}

.home-cta-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.home-cta-v2__panel {
  padding: 28px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.home-cta-v2__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.home-cta-v2__stat {
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.home-cta-v2__stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
  margin-bottom: 6px;
}

.home-cta-v2__stat span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.4;
}

.home-cta-v2__platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.home-cta-v2__platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-cta-v2__platform svg {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.home-cta-v2__platform:hover {
  color: #fff;
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.12);
  transform: translateY(-2px);
}

.home-cta-v2__footnote {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

@media (max-width: 1024px) {
  .home-faq__layout,
  .home-cta-v2__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-content {
    padding-left: 24px;
  }
}

@media (max-width: 768px) {
  .page-home .hero {
    padding: 64px 0;
  }

  .page-home .hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.5rem);
  }

  .page-home .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .home-cta-v2 {
    padding: 48px 0 72px;
  }

  .home-cta-v2__grid {
    padding: 28px 20px;
  }

  .home-cta-v2__trust {
    grid-template-columns: 1fr;
  }

  .home-cta-v2__actions {
    flex-direction: column;
    gap: 16px;
  }

  .home-cta-v2__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
  }
}


/* ── Responsive ── */
@media (max-width: 1024px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-hero__visual,
  .page-home .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .home-ping-card {
    left: 0;
    top: -16px;
  }

  .home-compare-float {
    right: 0;
    bottom: 16px;
  }

  .home-latency__grid {
    grid-template-columns: 1fr;
  }

  .home-features__grid,
  .home-steps__track {
    grid-template-columns: 1fr;
  }

  .home-faq__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .home-stats {
    margin-top: -24px;
  }

  .home-stats__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-section {
    padding: 64px 0;
  }

  .home-cta__proof {
    grid-template-columns: 1fr;
  }

  .home-cta__main {
    padding: 40px 24px;
  }

  .home-ping-card {
    width: 180px;
    padding: 12px;
  }

  .home-ping-card__value {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .home-stats__list {
    grid-template-columns: 1fr;
  }

  .home-hero__actions {
    flex-direction: column;
  }

  .home-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
