/* Visual presentation layer — panels, rails, tiles */

.page-main {
  display: grid;
  gap: 0;
}

.section + .section {
  border-top: none;
}

.section-surface {
  background:
    radial-gradient(circle at 12% 0%, rgba(95, 147, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(237, 244, 255, 0.55) 0%, transparent 100%);
}

.accent-section {
  background: none;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(66, 99, 154, 0.16);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.92) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    var(--shadow-soft);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 121, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 121, 242, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
  opacity: 0.5;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-hero {
  padding: 32px 32px 28px;
}

.panel-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 48%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 147, 255, 0.14), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.panel-hero::after {
  display: none;
}

.panel-hero .hero-copy h1 {
  color: var(--text);
}

.panel-hero .lead {
  color: var(--text-2);
}

.hero-stage {
  margin-bottom: 20px;
}

.hero-frame {
  position: relative;
}

.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(26, 41, 64, 0.55);
  backdrop-filter: blur(8px);
  color: #f4f8ff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-image {
  box-shadow: 0 22px 48px rgba(57, 89, 136, 0.18);
}

.hero-image.card-photo::before {
  background:
    linear-gradient(180deg, transparent 55%, rgba(26, 41, 64, 0.08)),
    linear-gradient(145deg, rgba(222, 235, 255, 0.04), transparent);
}

.hero-flow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(63, 121, 242, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 255, 0.9));
  box-shadow: 0 8px 20px rgba(63, 121, 242, 0.08);
}

.hero-flow-strip > span:not(.hero-flow-arrow) {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-flow-arrow {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(63, 121, 242, 0.2), var(--accent), rgba(63, 121, 242, 0.2));
  flex-shrink: 0;
}

.stat-grid .stat-tile {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(63, 121, 242, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(237, 244, 255, 0.75));
  box-shadow: none;
}

.stat-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.stat-tile strong {
  display: block;
  color: var(--text);
}

.panel-about {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: 28px 36px;
  padding: 28px 32px;
}

.panel-about::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  z-index: 2;
}

.panel-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-side h2 {
  font-size: clamp(24px, 3vw, 36px);
  max-width: none;
  line-height: 1.12;
}

.panel-body > p {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.68;
}

.about-points {
  margin-top: 16px;
}

.about-points li {
  border: 1px solid rgba(63, 121, 242, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.section-panel {
  padding: 34px 32px 36px;
}

.section-head-decor h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-head-decor .eyebrow {
  margin-bottom: 4px;
}

.tile-card.info-card {
  min-height: 0;
}

.tile-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(63, 121, 242, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.88));
}

.tile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(63, 121, 242, 0.35), var(--accent-2));
  opacity: 0.85;
}

.tile-card-accent::before {
  background: linear-gradient(90deg, var(--accent), #7aa8ff);
}

.icon-well {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 15px;
  border: 1px solid rgba(63, 121, 242, 0.16);
  background: linear-gradient(145deg, rgba(95, 147, 255, 0.16), rgba(255, 255, 255, 0.95));
  box-shadow: 0 8px 18px rgba(63, 121, 242, 0.1);
}

.icon-well .card-icon {
  width: 28px;
  height: 28px;
  margin: 0;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.insight-panel {
  padding: 22px 24px;
}

.panel-muted {
  background: linear-gradient(155deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 255, 0.85));
}

.insight-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.insight-tag {
  display: inline-flex;
  align-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-head h3 {
  font-size: 20px;
  max-width: none;
}

.chip-list-elegant {
  gap: 10px;
}

.chip-list-elegant li {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(63, 121, 242, 0.12);
  background: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.chip-list-muted li {
  background: rgba(255, 255, 255, 0.55);
}

.method-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding-top: 8px;
}

.method-rail::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, rgba(63, 121, 242, 0.15), var(--accent), rgba(63, 121, 242, 0.15));
  z-index: 0;
}

.method-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 16px 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(63, 121, 242, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(57, 89, 136, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.method-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(57, 89, 136, 0.1);
}

.method-node-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 16px rgba(63, 121, 242, 0.28);
}

.method-node h3 {
  font-size: 16px;
}

.method-node p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.formats-panel {
  padding: 26px 28px;
}

.formats-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.formats-panel-head h3 {
  margin: 0;
  font-size: 24px;
  max-width: none;
}

.formats-panel-head .section-text {
  margin: 0;
  font-size: 15px;
}

.format-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.format-tiles li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(63, 121, 242, 0.12);
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.format-tiles li:hover {
  border-color: rgba(63, 121, 242, 0.28);
  background: #fff;
}

.format-tile-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.format-tiles strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.25;
}

.format-tiles p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-contact {
  padding: 36px 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(95, 147, 255, 0.12), transparent 40%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.94));
}

.contact-form-elevated {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(63, 121, 242, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(57, 89, 136, 0.08);
}

.faq-list-inset details {
  border: 1px solid rgba(63, 121, 242, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1180px) {
  .method-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-rail::before {
    display: none;
  }

  .panel-about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .panel-hero,
  .section-panel,
  .panel-contact {
    padding: 24px 20px;
  }

  .panel-about {
    padding: 22px 20px;
  }

  .method-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-node {
    border-left: 3px solid var(--accent);
  }

  .insight-grid,
  .format-tiles {
    grid-template-columns: 1fr;
  }

  .hero-flow-strip {
    gap: 8px;
  }

  .hero-flow-arrow {
    display: none;
  }

  .hero-flow-strip > span:not(.hero-flow-arrow) {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}

@media (max-width: 560px) {
  .method-rail,
  .stat-grid,
  .hero-facts-wide {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section-panel,
  .insight-panel,
  .formats-panel,
  .panel-about,
  .panel-contact {
    animation: panel-rise 0.55s ease both;
  }

  .section:nth-of-type(2) .section-panel { animation-delay: 0.04s; }
  .section:nth-of-type(3) .section-panel { animation-delay: 0.08s; }
  .section:nth-of-type(4) .section-panel { animation-delay: 0.12s; }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
