/* First screen: product-process visual and responsive hero layout */
.hero-shell {
  min-height: calc(100svh - 116px);
  display: flex;
  align-items: center;
  padding-top: clamp(2.25rem, 5.5vh, 4.75rem);
  padding-bottom: clamp(2.75rem, 6vh, 5rem);
  isolation: isolate;
}

.hero-shell::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(62vw, 900px);
  aspect-ratio: 1;
  right: clamp(-24rem, -16vw, -8rem);
  top: 48%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(59, 130, 246, 0.055) 34%,
    rgba(59, 130, 246, 0) 70%
  );
  pointer-events: none;
}

.dark .hero-shell::before {
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(59, 130, 246, 0.055) 36%,
    rgba(59, 130, 246, 0) 72%
  );
}

.hero-product-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 5rem);
}

.hero-product-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
}

.hero-eyebrow {
  font-size: clamp(0.72rem, 0.8vw, 0.86rem);
  line-height: 1.4;
}

.hero-title {
  max-width: 730px;
  margin: 0;
  font-size: clamp(2.75rem, 4.75vw, 4.55rem);
  line-height: 0.96;
  text-wrap: balance;
}

.hero-description {
  max-width: 660px;
  margin: clamp(1.05rem, 1.7vw, 1.55rem) auto 0;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.dark .hero-description {
  color: rgba(255, 255, 255, 0.74);
}

.hero-actions {
  margin-top: clamp(1.25rem, 2vw, 1.65rem);
}

.hero-cta {
  min-width: 158px;
  box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  transform: translateY(0);
}

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

.hero-cta--primary {
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.dark .hero-cta--primary {
  box-shadow: 0 14px 36px rgba(59, 130, 246, 0.22);
}

.hero-product-art {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-product-glow {
  position: absolute;
  z-index: -1;
  width: min(82%, 650px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.11) 0%,
    rgba(59, 130, 246, 0.038) 40%,
    rgba(59, 130, 246, 0) 72%
  );
  filter: blur(16px);
  pointer-events: none;
}

.dark .hero-product-glow {
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(59, 130, 246, 0.046) 42%,
    rgba(59, 130, 246, 0) 74%
  );
}

.product-process-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 180ms ease;
}

.product-process-visual.is-updating {
  opacity: 0.72;
}

.product-process-visual__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(80svh, 780px);
  transform: translateZ(0);
}

@media (min-width: 1024px) {
  .hero-product-grid {
    grid-template-columns: minmax(520px, 0.98fr) minmax(500px, 1.02fr);
    gap: clamp(2.25rem, 4.4vw, 4.75rem);
  }

  .hero-product-copy {
    margin-inline: 0;
    padding-left: clamp(0rem, 1vw, 1rem);
  }

  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-product-art {
    min-height: min(82svh, 800px);
    transform: translateY(22px);
  }
}

@media (min-width: 1280px) {
  .product-process-visual {
    width: min(108%, 748px);
  }
}

@media (max-width: 1023px) {
  .hero-shell {
    min-height: auto;
    padding-top: clamp(3.25rem, 8vw, 5rem);
    padding-bottom: clamp(4rem, 9vw, 6rem);
  }

  .hero-shell::before {
    width: min(110vw, 760px);
    right: 50%;
    top: 72%;
    transform: translate(50%, -50%);
  }

  .hero-product-copy {
    text-align: center;
  }

  .hero-product-art {
    transform: none;
  }

  .product-process-visual {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .product-process-visual__image {
    width: 100%;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .hero-shell {
    padding-top: 2.75rem;
    padding-bottom: 4rem;
  }

  .hero-product-grid {
    gap: 2.25rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 11.2vw, 3.85rem);
    line-height: 0.98;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-cta {
    width: 100%;
  }

  .product-process-visual {
    width: min(100%, 520px);
  }
}

@media (min-width: 1440px) {
  .hero-shell {
    padding-top: clamp(2rem, 4.4vh, 3.75rem);
    padding-bottom: clamp(2.4rem, 5vh, 4rem);
  }

  .hero-title {
    max-width: 720px;
  }

  .hero-description {
    max-width: 640px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-product-copy {
    animation: hero-copy-enter 720ms cubic-bezier(.22, .8, .24, 1) both;
  }

  .hero-product-art {
    animation: hero-art-enter 820ms 90ms cubic-bezier(.22, .8, .24, 1) both;
  }

  @keyframes hero-copy-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes hero-art-enter {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product-copy,
  .hero-product-art,
  .product-process-visual,
  .hero-cta {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}


/* Premium hero details: one calm expertise line and real-work continuation */
.hero-title__line {
  display: block;
}

.hero-specialties {
  margin-top: 1.1rem;
  color: #64748B;
  font-size: clamp(.78rem, .9vw, .9rem);
  line-height: 1.6;
  letter-spacing: .015em;
  text-wrap: balance;
}

.dark .hero-specialties {
  color: rgba(255,255,255,.5);
}

.hero-cta--primary {
  position: relative;
  overflow: hidden;
}

.hero-cta--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 44%;
  transform: translateX(-130%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: transform 560ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.hero-cta--primary:hover::after {
  transform: translateX(285%) skewX(-20deg);
}

.selected-preview {
  position: relative;
  z-index: 5;
  padding-top: 1.25rem;
  padding-bottom: clamp(3.75rem, 7vw, 6.5rem);
}

.selected-preview__inner {
  border-top: 1px solid rgba(100,116,139,.16);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.dark .selected-preview__inner {
  border-top-color: rgba(255,255,255,.08);
}

.selected-preview__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.selected-preview__eyebrow {
  margin: 0 0 .35rem;
  color: #2563EB;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.selected-preview__head h2 {
  margin: 0;
  color: #0F172A;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

.dark .selected-preview__head h2 {
  color: #fff;
}

.selected-preview__all {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  color: #475569;
  font-size: .86rem;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.dark .selected-preview__all {
  color: rgba(255,255,255,.58);
}

.selected-preview__all:hover {
  color: #2563EB;
  transform: translateX(2px);
}

.selected-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.selected-preview__card {
  position: relative;
  display: grid;
  min-height: 152px;
  align-content: start;
  gap: .45rem;
  padding: 1.2rem 3rem 1.15rem 1.2rem;
  border: 1px solid rgba(100,116,139,.16);
  border-radius: 1rem;
  background: rgba(255,255,255,.58);
  color: #0F172A;
  box-shadow: 0 10px 30px rgba(15,23,42,.035);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.dark .selected-preview__card {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.selected-preview__card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.42);
  background: rgba(255,255,255,.84);
  box-shadow: 0 18px 38px rgba(37,99,235,.08);
}

.dark .selected-preview__card:hover {
  background: rgba(59,130,246,.055);
  box-shadow: 0 18px 42px rgba(37,99,235,.1);
}

.selected-preview__type {
  color: #2563EB;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.selected-preview__card strong {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.selected-preview__meta {
  color: #64748B;
  font-size: .82rem;
  line-height: 1.45;
}

.dark .selected-preview__meta {
  color: rgba(255,255,255,.48);
}

.selected-preview__card > i {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  color: #2563EB;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.selected-preview__card:hover > i {
  transform: translate(3px, -50%);
}

@media (min-width: 1024px) {
  .hero-product-art {
    transition: transform 320ms cubic-bezier(.2,.8,.2,1), filter 320ms ease;
  }

  .hero-product-art:hover {
    transform: translateY(18px) scale(1.004);
    filter: saturate(1.03);
  }
}

@media (max-width: 1023px) {
  .hero-title__line {
    display: inline;
  }

  .hero-title__line:not(:last-child)::after {
    content: " ";
  }

  .hero-specialties {
    max-width: 640px;
    margin-inline: auto;
  }

  .selected-preview {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .selected-preview__head {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }

  .selected-preview__grid {
    grid-template-columns: 1fr;
  }

  .selected-preview__card {
    min-height: 126px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-specialties {
    animation: hero-detail-enter 620ms 420ms cubic-bezier(.22,.8,.24,1) both;
  }

  .selected-preview__card {
    animation: selected-card-enter 620ms cubic-bezier(.22,.8,.24,1) both;
  }

  .selected-preview__card:nth-child(2) { animation-delay: 70ms; }
  .selected-preview__card:nth-child(3) { animation-delay: 140ms; }

  @keyframes hero-detail-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes selected-card-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-specialties,
  .selected-preview__card {
    animation: none !important;
    transition: none !important;
  }
}


/* Integration with the existing public_html site */
body > main {
  padding-top: 72px !important;
}

.hero-product-copy {
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: .75rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.5rem;
  border-radius: .75rem;
  text-align: center;
  text-decoration: none;
}

.selected-preview__all,
.selected-preview__card {
  text-decoration: none;
}

.selected-preview__arrow {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  color: #2563EB;
  font-size: 1.15rem;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.selected-preview__card:hover .selected-preview__arrow {
  transform: translate(3px, -50%);
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 768px) {
  body > main {
    padding-top: 76px !important;
  }
}

@media (min-width: 1024px) {
  .hero-product-copy {
    text-align: left;
  }
  .hero-actions {
    justify-content: flex-start;
  }
}


/* v10: cleaner visual without the external blue glow */
.hero-shell::before,
.hero-product-glow {
  display: none !important;
}

/* Payment systems: original colors in light mode, monochrome white in dark mode */
.payment-logo {
  display: block;
  max-width: 100%;
  opacity: 0.92;
  transition: opacity 160ms ease, filter 160ms ease;
}

.payment-logo:hover {
  opacity: 1;
}

.dark .payment-logo {
  opacity: 0.78;
}

.dark .payment-logo:hover {
  opacity: 1;
}

.dark .payment-logo path,
.dark .payment-logo circle,
.dark .payment-logo ellipse,
.dark .payment-logo polygon {
  fill: #FFFFFF !important;
}

.dark .payment-logo line,
.dark .payment-logo polyline {
  stroke: #FFFFFF !important;
}

.dark .payment-logo g[clip-path] > .payment-logo-bg,
.dark .payment-logo > .payment-logo-bg {
  fill: transparent !important;
  stroke: transparent !important;
}
