/* Homepage visual correction after the dense-layout redesign.
   Keep the same SEO/content surface, but remove the oversized/empty hero feel. */

.hero {
  padding: 56px 0 22px;
}

.hero-dense {
  padding-top: 58px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
  gap: 42px;
  align-items: start;
}

.hero-copy {
  padding-top: 0;
}

h1 {
  max-width: 650px;
  font-size: clamp(44px, 4.9vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.058em;
}

.hero-subtitle {
  max-width: 650px;
  margin-top: 18px;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.56;
}

.hero-actions,
.actions {
  margin-top: 24px;
}

.trust-row {
  max-width: 650px;
  margin-top: 18px;
  gap: 7px;
}

.trust-row span,
.strip-inner span {
  padding: 6px 9px;
  font-size: 12px;
}

.terminal-card {
  border-radius: 16px;
}

.hero-terminal {
  align-self: start;
  min-height: 0;
  max-width: 610px;
  justify-self: end;
}

.terminal-header {
  height: 34px;
}

.terminal-card pre {
  padding: 18px 20px 20px;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
  line-height: 1.58;
}

.strip {
  padding: 18px 0 30px;
}

.strip-inner {
  justify-content: flex-start;
}

.section {
  padding: 54px 0;
}

.compact-section {
  padding: 50px 0;
}

.outcomes-section {
  padding-top: 42px;
  background:
    radial-gradient(circle at 80% 40%, rgba(147, 197, 253, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0));
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.section-heading {
  margin-bottom: 24px;
}

.centered-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.58;
}

h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.outcome-card {
  min-height: 292px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.outcome-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.32);
  background: rgba(15, 23, 42, 0.9);
}

.outcome-card h3 {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 19px;
}

.outcome-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.outcome-card strong {
  display: inline-block;
  margin-top: 16px;
  color: #bfdbfe;
  font-size: 13px;
}

.outcome-visual {
  position: relative;
  height: 108px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(59, 130, 246, 0.08)),
    rgba(2, 6, 23, 0.22);
}

.outcome-visual span {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.16);
  font-size: 28px;
}

.outcome-visual i {
  position: absolute;
  display: block;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.outcome-visual i:nth-child(2) {
  width: 132px;
  height: 132px;
}

.outcome-visual i:nth-child(3) {
  width: 92px;
  height: 92px;
}

.outcome-visual i:nth-child(4) {
  width: 54px;
  height: 54px;
}

.outcome-visual.euro {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.13), rgba(147, 197, 253, 0.08)), rgba(2, 6, 23, 0.22);
}

.outcome-visual.globe {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(20, 184, 166, 0.08)), rgba(2, 6, 23, 0.22);
}

.outcome-visual.proof {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.13), rgba(110, 231, 183, 0.08)), rgba(2, 6, 23, 0.22);
}

.flow-section {
  background:
    radial-gradient(circle at 18% 10%, rgba(110, 231, 183, 0.06), transparent 22rem),
    rgba(15, 23, 42, 0.16);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.visual-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}

.visual-step {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow-soft);
}

.visual-step.highlight {
  border-color: rgba(110, 231, 183, 0.32);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.13), rgba(15, 23, 42, 0.86));
}

.step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.06);
  font-size: 26px;
}

.visual-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.visual-step span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.visual-arrow {
  display: grid;
  place-items: center;
  color: #7d8aa0;
  font-size: 24px;
}

.flow-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.feature-matrix,
.grid {
  gap: 14px;
}

.feature-column,
.card {
  padding: 20px;
}

.illustrated-features .feature-column {
  min-height: 430px;
}

.feature-visual {
  position: relative;
  height: 118px;
  margin-bottom: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(147, 197, 253, 0.12), transparent 6rem),
    rgba(2, 6, 23, 0.24);
}

.feature-visual span {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.16);
  font-size: 28px;
}

.feature-visual b {
  position: absolute;
  display: block;
  width: 70px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.feature-visual b:nth-child(2) {
  top: 24px;
  left: 24px;
}

.feature-visual b:nth-child(3) {
  right: 26px;
  top: 52px;
  width: 92px;
}

.feature-visual b:nth-child(4) {
  bottom: 24px;
  left: 42px;
  width: 112px;
}

.feature-column h3 {
  margin-bottom: 12px;
}

.feature-column li {
  padding: 9px 0;
  font-size: 14px;
}

.proof-band {
  background:
    radial-gradient(circle at 72% 18%, rgba(147, 197, 253, 0.09), transparent 26rem),
    rgba(2, 6, 23, 0.12);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.proof-flow {
  padding: 14px;
}

.flow-step {
  padding: 15px;
}

.flow-arrow {
  padding: 4px 0;
}

.visual-dashboard {
  position: relative;
}

.mini-dashboard-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 74px;
  margin: 14px 22px 0;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.26);
}

.mini-dashboard-bars i {
  display: block;
  flex: 1;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(110, 231, 183, 0.72), rgba(147, 197, 253, 0.32));
}

.mini-dashboard-bars i:nth-child(1) { height: 35%; }
.mini-dashboard-bars i:nth-child(2) { height: 62%; }
.mini-dashboard-bars i:nth-child(3) { height: 46%; }
.mini-dashboard-bars i:nth-child(4) { height: 78%; }
.mini-dashboard-bars i:nth-child(5) { height: 54%; }

.metric-grid div {
  min-height: 76px;
  padding: 14px;
}

.metric-grid strong {
  font-size: 24px;
}

.compact-cards .card {
  min-height: 176px;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-terminal {
    justify-self: stretch;
    max-width: none;
  }

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

  .visual-flow {
    grid-template-columns: 1fr;
  }

  .visual-arrow {
    transform: rotate(90deg);
    min-height: 28px;
  }
}

@media (max-width: 680px) {
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .outcome-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 40px;
  }

  .centered-heading {
    text-align: left;
  }

  .flow-actions {
    justify-content: flex-start;
  }
}
