/* =============== Home Page (renewed) =============== */

/* Hero — typography focused, pastel sky-blue bg */
.hero--type {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0;
  background:
    radial-gradient(ellipse 70% 60% at 18% -10%, rgb(186 230 253 / 80%) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 110%, rgb(125 211 252 / 60%) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgb(56 189 248 / 22%) 0%, transparent 60%),
    linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bfdbfe 100%);
  color: var(--clr-text);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Soft floating glow orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.5;
  will-change: transform;
}

.hero__orb--1 {
  top: -90px;
  left: 6%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #7dd3fc 0%, transparent 70%);
  animation: hero-orb-float-1 14s ease-in-out infinite;
}

.hero__orb--2 {
  top: 18%;
  right: 4%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, #bae6fd 0%, transparent 70%);
  animation: hero-orb-float-2 16s ease-in-out infinite;
}

.hero__orb--3 {
  bottom: -120px;
  left: 38%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #93c5fd 0%, transparent 70%);
  animation: hero-orb-float-3 18s ease-in-out infinite;
}

@keyframes hero-orb-float-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, 20px) scale(1.06);
  }
}

@keyframes hero-orb-float-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-24px, 28px) scale(1.08);
  }
}

@keyframes hero-orb-float-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(22px, -28px) scale(1.05);
  }
}

/* Twinkle for brightest stars */
.hero__stars-group circle:nth-child(2),
.hero__stars-group circle:nth-child(4),
.hero__stars-group circle:nth-child(9) {
  animation: hero-twinkle 4s ease-in-out infinite;
}

.hero__stars-group circle:nth-child(4) {
  animation-delay: 1.3s;
}

.hero__stars-group circle:nth-child(9) {
  animation-delay: 2.6s;
}

@keyframes hero-twinkle {
  0%,
  100% {
    opacity: 0.9;
  }

  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__orb,
  .hero__stars-group circle {
    animation: none;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 880px;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw + 0.5rem, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-6);
  color: var(--clr-text);
}

.hero-lead {
  font-size: var(--fs-lg);
  line-height: 1.85;
  color: var(--clr-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-actions .cta-button {
  margin: 0;
}

.hero-actions .cta-button:not(.cta-button--ghost) {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgb(14 165 233 / 32%);
}

.hero-actions .cta-button:not(.cta-button--ghost):hover {
  box-shadow: 0 12px 28px rgb(14 165 233 / 42%);
}

.hero-actions .cta-button--ghost {
  background: rgb(255 255 255 / 70%);
  color: #0284c7;
  border-color: #0284c7;
  backdrop-filter: blur(8px);
}

.hero-actions .cta-button--ghost:hover {
  background: #0284c7;
  color: #fff;
}

/* Company intro stats */
.company-section {
  background: var(--clr-surface);
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
  font-weight: 800;
  color: var(--clr-primary);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.stat-item:hover .stat-icon {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Services & Products grid */
.services-section {
  background: #fff;
}

.services-lead {
  text-align: center;
  color: var(--clr-text-muted);
  max-width: 720px;
  margin: 0 auto var(--space-8);
  font-size: var(--fs-md);
  line-height: 1.85;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgb(99 102 241 / 40%);
}

.product-card__visual {
  position: relative;
  aspect-ratio: 5 / 3;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border);
}

.product-card__visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) 1.5rem;
  flex: 1;
}

.product-card__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-text);
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.product-card__lead {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin: 0;
  line-height: 1.75;
  flex: 1;
}

.product-card__cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-top: var(--space-2);
}

.product-card:hover .product-card__cta {
  text-decoration: underline;
}

/* Section eyebrow */
.section-eyebrow {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--space-2);
}

/* Application CTA section */
.application-section {
  background: #fff;
}

.application-cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.application-cta .section-body {
  margin: 0 auto var(--space-6);
  text-align: center;
}

.application-cta .cta-button {
  margin: 0 auto;
}

/* Ensure paragraphs don't overflow */
section p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Responsive */
@media (width <= 992px) {
  .company-stats {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .company-intro-visual {
    max-height: none;
  }

  .company-intro-visual .company-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* Company grid 2-column (preserved from previous) */
.company-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.4fr;
  gap: var(--space-6);
  align-items: center;
}

.company-intro-text {
  max-width: 720px;
}

.company-intro-visual .company-stats {
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.company-intro-visual {
  max-height: 200px;
  display: flex;
  align-items: center;
}

.company-intro-visual .stat-icon {
  width: 32px;
  height: 32px;
}

.company-intro-visual .stat-icon svg {
  width: 18px;
  height: 18px;
}

.company-intro-visual .stat-number {
  font-size: clamp(1.2rem, 1.4vw + 0.4rem, 1.6rem);
}

.company-intro-visual .stat-label {
  font-size: 0.85rem;
  white-space: nowrap;
}

.company-intro-visual .stat-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.5rem;
}

.company-intro-visual .stat-item .stat-number {
  grid-column: 2;
  line-height: 1.1;
}

.company-intro-visual .stat-item .stat-label {
  grid-column: 2;
  margin-top: 0.15rem;
}

/* Company column cards */
.company-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
}

.company-card--one {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.25rem;
}
