/* ============================================
   Section-Specific Layouts
   ============================================ */

/* === Section dividers: gradient border === */

.section-problem,
.section-stats,
.section-statement,
.section-footer-cta,
.footer {
  border-top: none;
  position: relative;
}

.section-problem::before,
.section-stats::before,
.section-statement::before,
.section-footer-cta::before,
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 20%,
    rgba(240, 165, 0, 0.12) 50%,
    var(--color-border) 80%,
    transparent 100%
  );
}

/* === Section 1: Hero === */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, var(--mesh-deep-blue) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, var(--mesh-deep-purple) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(74, 123, 247, 0.08) 0%, transparent 40%);
  background-size: 200% 200%, 200% 200%, 200% 200%;
  animation: meshShift 25s ease-in-out infinite;
  z-index: 0;
  will-change: transform;
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

/* Hero headline: gradient text */
.hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 40%, var(--color-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  margin-bottom: 16px;
  max-width: 55ch;
  line-height: 1.6;
}

.hero-body {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 55ch;
  line-height: 1.7;
}

.hero .btn-group {
  margin-top: 8px;
}

/* === Section 2: The Problem === */

.problem-prose {
  max-width: 680px;
}

.problem-prose h2 {
  margin-bottom: 40px;
}

.problem-prose p {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.problem-prose p:last-of-type {
  margin-bottom: 0;
}

/* === Section 3: Memory-First Architecture === */

.section-architecture .section-header {
  margin-bottom: 48px;
}

.section-architecture h2 {
  margin-bottom: 16px;
}

.section-architecture .section-sub {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.architecture-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.architecture-card .card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-amber);
  filter: drop-shadow(0 0 8px var(--color-amber-glow));
  transition: filter 0.3s ease;
}

.architecture-card:hover .card-icon {
  filter: drop-shadow(0 0 14px var(--color-amber-glow-strong));
}

.architecture-card h3 {
  font-size: 20px;
}

.architecture-card p {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .architecture-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* === Section 4: Eight Products === */

.section-products .section-header {
  margin-bottom: 48px;
}

.section-products h2 {
  margin-bottom: 16px;
}

.section-products .section-sub {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* === Section 5: How It Works === */

.section-how-it-works .section-header {
  margin-bottom: 56px;
}

.section-how-it-works h2 {
  margin-bottom: 16px;
}

.flow-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 500px;
  margin: 0 auto 56px;
}

.flow-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  z-index: 0;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(240, 165, 0, 0.2));
}

.flow-step {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 20px 24px;
}

.flow-step.glass-card {
  margin: 16px 0;
}

.flow-step h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: var(--text-small);
  margin: 0 auto;
}

.flow-label {
  display: block;
  padding: 12px 0;
}

.flow-result {
  padding: 24px;
}

.flow-result h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* Vigilia parallel branch */
.flow-branch {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 680px;
  margin: 32px auto;
}

.flow-branch-main,
.flow-branch-side {
  flex: 1;
  text-align: center;
}

.flow-branch h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.flow-branch p {
  font-size: var(--text-small);
}

.flow-supporting {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}

.flow-supporting p {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .flow-branch {
    flex-direction: column;
  }
}

/* === Section 6: Built, Not Planned === */

.section-stats h2 {
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.stat-item {
  padding: 24px 0;
  border-left: 2px solid rgba(240, 165, 0, 0.1);
  padding-left: 24px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--color-amber);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 40px var(--color-amber-glow-strong), 0 0 80px var(--color-amber-glow);
}

.stat-label {
  display: block;
  font-size: var(--text-small);
  line-height: 1.5;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-amber);
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--color-amber-glow);
}

/* === Section 7: Industry Statement === */

.statement-container {
  max-width: 720px;
}

.statement-container h2 {
  margin-bottom: 40px;
}

.statement-text p {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.statement-closing {
  font-family: var(--font-heading);
  font-size: var(--text-sub) !important;
  color: var(--color-text) !important;
  font-weight: 500;
  line-height: 1.4 !important;
  margin-top: 16px;
}

/* === Section 8: Footer CTA === */

.section-footer-cta {
  text-align: center;
}

.section-footer-cta h2 {
  margin-bottom: 24px;
}

.cta-capacity {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.section-footer-cta .btn-group {
  justify-content: center;
}

/* === Footer === */

.footer {
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand .brand-mark {
  width: 20px;
  height: 20px;
  color: var(--color-amber);
}

.footer-copy {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  transition: color var(--dur-hover) var(--ease-hover);
}

.footer-links a:hover {
  color: var(--color-amber);
}

.footer-trademark {
  font-size: var(--text-label);
  color: var(--color-text-muted);
  width: 100%;
  text-align: center;
  margin-top: 16px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand {
    flex-direction: column;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
