/* =====================================================
   KarpLabs — Homepage Styles
   ===================================================== */

/* ─── Hero ─── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  background: linear-gradient(
    135deg,
    var(--md-primary-700) 0%,
    var(--md-primary-900) 55%,
    #1a0a47 100%
  );
  background-size: 200% 200%;
  animation: heroGradient 14s ease infinite;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Radial glow accents */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.18) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(103, 58, 183, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--md-secondary-400);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__headline {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  color: white;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero__headline em {
  font-style: normal;
  color: var(--md-secondary-400);
}

.hero__subtext {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.68);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero visual (right column) */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 20px;
}

/* CSS phone mockup — PLACEHOLDER until real screenshots are added */
.hero-device {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}
.hero-device::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(38, 198, 218, 0.22) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-device__frame {
  background: #0d061f;
  border-radius: 42px;
  padding: 14px 10px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.1),
    var(--shadow-3),
    0 36px 72px rgba(0, 0, 0, 0.45);
  position: relative;
}
.hero-device__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  z-index: 2;
}
.hero-device__screen {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #4527a0 0%, #006064 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px;
}
.hero-device__app-icon {
  width: 76px;
  height: 76px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.04em;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  /* PLACEHOLDER: replace with actual app icon <img> */
}
.hero-device__app-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  display: block;
  text-align: center;
}
.hero-device__app-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.4;
  max-width: 140px;
  display: block;
}

/* ─── Products Section ─── */
.section-products {
  padding: var(--section-padding);
  background: var(--md-surface-variant);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ─── About Strip ─── */
.section-about-strip {
  padding: var(--section-padding);
  background: var(--md-surface);
}

.about-strip__text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}
.about-strip__text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 10px;
  max-width: 480px;
}
.about-strip__text .btn {
  margin-top: 20px;
}
.about-strip__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--md-primary-600);
  margin-bottom: 12px;
  display: block;
}

.about-strip__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Abstract decorative graphic */
.abstract-shape {
  position: relative;
  width: 280px;
  height: 280px;
}
.abstract-shape__circle {
  position: absolute;
  border-radius: 50%;
}
.abstract-shape__circle--1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--md-primary-500) 0%, var(--md-secondary-500) 100%);
  opacity: 0.12;
  top: 0;
  left: 0;
}
.abstract-shape__circle--2 {
  width: 160px;
  height: 160px;
  background: var(--md-secondary-500);
  opacity: 0.1;
  bottom: 0;
  right: 0;
}
.abstract-shape__circle--3 {
  width: 100px;
  height: 100px;
  background: var(--md-primary-600);
  opacity: 0.18;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(103, 58, 183, 0.35);
}
.abstract-shape__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--md-primary-600);
  opacity: 0.55;
  letter-spacing: -0.05em;
  white-space: nowrap;
  user-select: none;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
  .hero {
    padding: 64px 0;
  }
  .hero__visual {
    margin-top: 40px;
  }
  .hero-device {
    width: 180px;
  }
}
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__actions {
    flex-direction: column;
  }
}
