/* Frontend R2-1 — Enterprise Homepage Expansion
   Existing R1 sections remain intact. This file only styles new Home layers. */

.r2-hero-actions {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin:28px auto 0;
}

.r2-hero-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:0 20px;
  border-radius:12px;
  font-size:14px;
  font-weight:750;
  letter-spacing:.01em;
  cursor:pointer;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.r2-hero-action:hover {
  transform:translateY(-2px);
}

.r2-hero-action-primary {
  color:#f8fbff;
  border:1px solid rgba(102,164,255,.44);
  background:
    linear-gradient(135deg,rgba(78,120,255,.34),rgba(37,230,200,.18)),
    rgba(255,255,255,.045);
  box-shadow:
    0 12px 34px rgba(28,75,180,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.r2-hero-action-secondary {
  color:var(--text);
  border:1px solid rgba(145,161,194,.23);
  background:rgba(255,255,255,.025);
}

.r2-enterprise-layer {
  position:relative;
  isolation:isolate;
  overflow:hidden;
}

.r2-enterprise-layer::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(circle at 15% 20%,rgba(72,126,255,.085),transparent 32%),
    radial-gradient(circle at 84% 74%,rgba(37,230,200,.055),transparent 32%);
}

.r2-enterprise-layer::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(rgba(103,128,178,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(103,128,178,.045) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom,transparent,black 18%,black 82%,transparent);
}

.r2-brand-statement {
  padding:clamp(82px,9vw,140px) 0 clamp(56px,6vw,92px);
}

.r2-brand-statement-grid {
  display:grid;
  grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  gap:clamp(44px,7vw,110px);
  align-items:start;
}

.r2-section-index {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.r2-section-index::before {
  content:"";
  width:38px;
  height:1px;
  background:linear-gradient(90deg,var(--acc),var(--acc2));
}

.r2-brand-statement h2 {
  margin:22px 0 0;
  max-width:980px;
  font-size:clamp(42px,5.2vw,76px);
  line-height:.99;
  letter-spacing:-.05em;
  text-wrap:balance;
}

.r2-brand-copy {
  padding-top:31px;
}

.r2-brand-copy p {
  margin:0;
  color:var(--muted);
  font-size:clamp(17px,1.55vw,21px);
  line-height:1.85;
}

.r2-brand-copy strong {
  color:var(--text);
  font-weight:700;
}

.r2-brand-link {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:28px;
  color:var(--text);
  font-size:14px;
  font-weight:750;
  cursor:pointer;
}

.r2-brand-link span {
  color:var(--acc2);
  transition:transform .2s ease;
}

.r2-brand-link:hover span {
  transform:translateX(4px);
}

.r2-ecosystem {
  padding:clamp(54px,6vw,92px) 0 clamp(92px,10vw,154px);
}

.r2-ecosystem-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:40px;
  margin-bottom:clamp(34px,4vw,56px);
}

.r2-ecosystem-head h2 {
  margin:14px 0 0;
  max-width:760px;
  font-size:clamp(36px,4.4vw,62px);
  line-height:1;
  letter-spacing:-.045em;
  text-wrap:balance;
}

.r2-ecosystem-intro {
  max-width:430px;
  margin:0 0 3px;
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
}

.r2-ecosystem-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid rgba(135,155,194,.19);
  border-bottom:1px solid rgba(135,155,194,.19);
}

.r2-ecosystem-card {
  position:relative;
  min-height:330px;
  padding:30px 26px 28px;
  border-right:1px solid rgba(135,155,194,.16);
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.008));
  transition:
    background .25s ease,
    transform .25s ease;
}

.r2-ecosystem-card:last-child {
  border-right:0;
}

.r2-ecosystem-card:hover {
  background:
    linear-gradient(180deg,rgba(91,140,255,.08),rgba(37,230,200,.025));
  transform:translateY(-4px);
}

.r2-ecosystem-number {
  display:block;
  margin-bottom:72px;
  color:var(--faint);
  font-size:12px;
  font-weight:750;
  letter-spacing:.14em;
}

.r2-ecosystem-card h3 {
  margin:0 0 16px;
  font-size:clamp(21px,2vw,28px);
  line-height:1.08;
  letter-spacing:-.025em;
}

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

.r2-ecosystem-card::after {
  content:"";
  position:absolute;
  left:26px;
  right:26px;
  bottom:22px;
  height:1px;
  background:linear-gradient(90deg,var(--acc),var(--acc2),transparent);
  opacity:.28;
}

.r2-existing-content-bridge {
  position:relative;
  margin-bottom:-24px;
  padding-top:16px;
  text-align:center;
  pointer-events:none;
}

.r2-existing-content-bridge span {
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--faint);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.r2-existing-content-bridge span::before,
.r2-existing-content-bridge span::after {
  content:"";
  width:28px;
  height:1px;
  background:rgba(142,160,194,.22);
}

@media (max-width:980px) {
  .r2-brand-statement-grid {
    grid-template-columns:1fr;
    gap:18px;
  }

  .r2-brand-copy {
    max-width:760px;
    padding-top:0;
  }

  .r2-ecosystem-head {
    display:block;
  }

  .r2-ecosystem-intro {
    margin-top:22px;
  }

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

  .r2-ecosystem-card:nth-child(2) {
    border-right:0;
  }

  .r2-ecosystem-card:nth-child(-n+2) {
    border-bottom:1px solid rgba(135,155,194,.16);
  }
}

@media (max-width:640px) {
  .r2-hero-actions {
    display:grid;
    grid-template-columns:1fr;
    width:min(100%,340px);
    margin-top:24px;
  }

  .r2-brand-statement {
    padding-top:66px;
  }

  .r2-brand-statement h2 {
    font-size:clamp(38px,12vw,54px);
  }

  .r2-ecosystem {
    padding-bottom:84px;
  }

  .r2-ecosystem-grid {
    grid-template-columns:1fr;
  }

  .r2-ecosystem-card {
    min-height:270px;
    border-right:0;
    border-bottom:1px solid rgba(135,155,194,.16);
  }

  .r2-ecosystem-card:last-child {
    border-bottom:0;
  }

  .r2-ecosystem-number {
    margin-bottom:48px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .r2-hero-action,
  .r2-brand-link span,
  .r2-ecosystem-card {
    transition:none;
  }

  .r2-hero-action:hover,
  .r2-ecosystem-card:hover {
    transform:none;
  }
}

/* R2-1 visual refinement hotfix */

/* Close the visual gap between Core Ecosystem and the existing Company Story. */
.r2-ecosystem {
  padding-bottom:clamp(48px,5vw,78px);
}

/* Remove the old bridge-label spacing if any cached markup survives. */
.r2-existing-content-bridge {
  display:none !important;
}

/* Give the existing Company Story a quieter, intentional handoff. */
.page-shell-home .swebie-intro-section.dussie-home-story {
  padding-top:clamp(56px,6vw,88px);
  border-top:1px solid transparent;
  border-image:
    linear-gradient(
      90deg,
      transparent 5%,
      rgba(91,140,255,.18) 28%,
      rgba(37,230,200,.18) 50%,
      rgba(91,140,255,.14) 72%,
      transparent 95%
    ) 1;
  box-shadow:inset 0 26px 70px rgba(19,42,84,.045);
}

.page-shell-home .swebie-intro-section.dussie-home-story .swebie-section-heading {
  margin-bottom:clamp(30px,3.6vw,48px);
}

@media (max-width:640px) {
  .r2-ecosystem {
    padding-bottom:44px;
  }

  .page-shell-home .swebie-intro-section.dussie-home-story {
    padding-top:48px;
  }
}

/* R2-2 section numbering hotfix */
.r2-company-story-index {
  justify-content:center;
  margin-bottom:18px;
}

.r2-company-story-index::after {
  content:"";
  width:38px;
  height:1px;
  background:linear-gradient(90deg,var(--acc2),transparent);
}

@media (max-width:640px) {
  .r2-company-story-index {
    margin-bottom:14px;
  }
}
