/* ============================================================
   MothPay Inner Pages CSS — Precision Finance v3
   Aesthetic: Sharp · Grid · Terminal · Data-Forward
============================================================ */

/* ========================= Inner Page Hero ========================= */
.page-hero {
  position: relative;
  background: var(--bg-base);
  padding: 160px 0 var(--space-20) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

/* Layer 1: Multi-layer radial gradient halos — tech atmosphere */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Top-right electric blue light source */
    radial-gradient(ellipse 70% 130% at 75% -15%, rgba(0, 102, 255, 0.32) 0%, transparent 60%),
    /* Center-left cyan ambient glow */
    radial-gradient(ellipse 60% 90% at -8% 55%, rgba(0, 229, 255, 0.22) 0%, transparent 65%),
    /* Mid-right purple accent */
    radial-gradient(ellipse 45% 70% at 108% 70%, rgba(100, 60, 255, 0.18) 0%, transparent 60%),
    /* Subtle center base glow */
    radial-gradient(ellipse 80% 60% at 45% 50%, rgba(0, 60, 160, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Layer 2: Blue-tinted pixel grid dots — subtle tech texture */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Horizontal scan lines */
    linear-gradient(rgba(0, 160, 255, 0.06) 1px, transparent 1px),
    /* Vertical scan lines */
    linear-gradient(90deg, rgba(0, 160, 255, 0.06) 1px, transparent 1px),
    /* Intersection dot highlights */
    radial-gradient(circle, rgba(0, 229, 255, 0.14) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 20px 20px;
  pointer-events: none;
  z-index: 0;
  /* Fade out toward bottom to keep footer border clean */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.60) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.60) 50%, transparent 100%);
}

/* Orb lights via pseudo-elements on page-hero-inner — no HTML changes needed */
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Orb 1: Top-right electric blue orb */
.page-hero-inner::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  top: -240px;
  right: -480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.28) 0%, rgba(0, 60, 180, 0.10) 45%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
  z-index: -1;
}

/* Orb 2: Bottom-left cyan orb */
.page-hero-inner::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  bottom: -180px;
  left: -360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, rgba(0, 100, 200, 0.08) 50%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: -1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-50);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: var(--white-50);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--brand-electric-lt);
}

.breadcrumb span {
  color: var(--brand-electric-lt);
}

.breadcrumb-separator {
  color: var(--white-30);
}

/* Hero Content */
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.page-title em {
  font-style: normal;
  color: var(--brand-electric-lt);
}

.page-desc {
  font-size: var(--text-lg);
  color: var(--white-70);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 680px;
}

/* ========================= Feature Blocks (交替图文) ========================= */
.feature-block {
  padding: var(--space-24) 0;
  border-bottom: 1px solid var(--border-light);
}

.feature-block:nth-child(even) {
  background: var(--bg-page);
}

.feature-block.dark {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}

.feature-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.feature-block.reverse .feature-block-inner {
  direction: rtl;
}

.feature-block.reverse .fb-content,
.feature-block.reverse .fb-visual {
  direction: ltr;
}

.fb-content {
  max-width: 500px;
}

.fb-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-electric);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-label::before {
  content: '//';
  color: var(--neon-cyan);
}

.fb-title {
  font-size: clamp(28px, 4vw, 36px);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--ink-500);
  margin-bottom: var(--space-4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dark .fb-title {
  color: var(--ink-500);
}

.fb-desc {
  font-size: var(--text-base);
  color: var(--ink-300);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.dark .fb-desc {
  color: var(--ink-300);
}

.fb-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
}

.fb-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-400);
}

.dark .fb-list-item {
  color: var(--ink-400);
}

.fb-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--brand-electric-muted);
  color: var(--brand-electric);
  flex-shrink: 0;
  margin-top: 2px;
}

.fb-list-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

/* ========================= Visual Mocks ========================= */
.mock-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
}

.mock-window::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-electric-lt) 0%, transparent 100%);
  opacity: 0.5;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-dark);
  background: var(--bg-base);
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-dark-md);
}

.mock-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-50);
  margin-left: 8px;
}

.mock-body {
  padding: var(--space-6);
}

/* ========================= Value Props Grid (图标网格) ========================= */
.value-props {
  padding: var(--space-20) 0;
  background: var(--white);
}

.value-props.dark {
  background: var(--bg-base);
}

.vp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.vp-card {
  padding: var(--space-6);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.dark .vp-card {
  background: var(--bg-surface);
  border-color: var(--border-dark);
}

.vp-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-electric-muted);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-5);
}

.vp-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand-electric);
}

.vp-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--ink-500);
  margin-bottom: var(--space-3);
}

.dark .vp-title {
  color: var(--white);
}

.vp-desc {
  font-size: var(--text-sm);
  color: var(--ink-300);
  line-height: 1.6;
}

.dark .vp-desc {
  color: var(--white-60);
}

/* ========================= Process Steps ========================= */
.steps-section {
  padding: var(--space-20) 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: dashed 1px var(--border-light);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  color: var(--brand-electric);
  font-size: var(--text-lg);
}

.step-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--ink-500);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--ink-300);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ========================= Pricing/Specs ========================= */
.pricing-section {
  padding: var(--space-24) 0;
  background: var(--white);
}

.pricing-card {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  padding: var(--space-10);
  text-align: center;
}

.pricing-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--ink-500);
  margin-bottom: var(--space-4);
}

.pricing-value {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: var(--fw-bold);
  color: var(--brand-electric);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-value span {
  font-size: var(--text-sm);
  color: var(--ink-300);
  font-weight: var(--fw-normal);
}

.pricing-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-400);
}

/* ========================= News/Blog Layout ========================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding: var(--space-12) 0;
}

.news-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--brand-electric-lt);
  box-shadow: 0 10px 30px rgba(11,30,61,0.05);
  transform: translateY(-4px);
}

.news-img {
  width: 100%;
  height: 200px;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-200);
  border-bottom: 1px solid var(--border-light);
}

/* 占位图使用网格图案 */
.news-img.mock-img {
   background-image: 
    linear-gradient(rgba(11,30,61,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,30,61,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.news-content {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.news-tag {
  color: var(--brand-electric);
  text-transform: uppercase;
}

.news-date {
  color: var(--ink-200);
}

.news-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--ink-500);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.news-desc {
  font-size: var(--text-sm);
  color: var(--ink-300);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  flex: 1;
}

.news-link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--brand-electric);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

/* ========================= Form Elements ========================= */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-60);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-dark-md);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-4);
  height: 48px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-electric);
  box-shadow: 0 0 0 2px var(--brand-electric-glow);
}

textarea.form-control {
  height: auto;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  resize: vertical;
  min-height: 100px;
}

/* ========================= Responsive ========================= */
@media (max-width: 992px) {
  .feature-block-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .vp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid::before {
    display: none;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 var(--space-16) 0;
  }
  
  .vp-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================= CTA Banner (inner pages) ========================= */
.cta-banner {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-dark-md);
}

/* Subtle top gradient accent line */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 480px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-electric), transparent);
  pointer-events: none;
}

/* Very soft center glow */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(0,102,255,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.cta-copy {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

.cta-title {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.cta-desc {
  font-size: var(--text-sm);
  color: var(--white-50);
  line-height: var(--lh-relaxed);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
  flex-shrink: 0;
}

.cta-btn-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cta-note {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--white-30);
  letter-spacing: 0.05em;
  text-align: right;
}

@media (max-width: 1024px) {
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }
  .cta-copy { max-width: 100%; }
  .cta-actions { align-items: flex-start; width: 100%; }
  .cta-btn-row { justify-content: flex-start; flex-wrap: wrap; }
  .cta-note { text-align: left; }
}