/* =========================
   HERO → SECTION 1
   ========================= */

.hero {
  position: relative;
  z-index: 2;
  background: linear-gradient(
    180deg,
    #f5f7fb 0%,
    #f5f7fb 70%,
    #eef0f4 100%
  );
  margin-top: -74px;
  padding-bottom: 120px; /* ← IMPORTANT */
  overflow: hidden;
}

/* HERO → SHOWCASE WEDGE (FINAL) */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;

  height: 140px;

  background: linear-gradient(
    0deg,
    #111827 45%,
    #0b0f1a 80%,
    #0b0f1a 100%
  );

  clip-path: polygon(
    0% 70%,
    42% 70%,
    54% 18%,
    100% 18%,
    100% 100%,
    0% 100%
  );

  z-index: 3;
  pointer-events: none;
}

/* =========================
   HERO (HOME / INDEX)
   ========================= */

/* HERO BACKDROP ("GREY BOX") — APPLE GLASS STAGE */
.hero::before{
  content: "";
  position: absolute;

  right: -6%;
  top: 90px;

  width: 860px;
  height: 520px;

  background:
    radial-gradient(
      60% 80% at 35% 40%,
      rgba(245, 248, 251, 0.95) 0%,
      rgba(245, 248, 251, 0.65) 40%,
      rgba(245, 248, 251, 0.25) 65%,
      rgba(245, 248, 251, 0.00) 78%
    );

  border-radius: 96px;
  transform: skewX(-12deg);

  box-shadow:
    0 60px 140px rgba(0,0,0,0.08);

  opacity: 1;
  z-index: 0;
  pointer-events: none;
}


/* Hero layout */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

/* Left side (copy) */
.hero-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.42);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  max-width: 470px;
  color: rgba(17, 24, 39, 0.62);
  margin-bottom: 26px;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

/* CTA row */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
  justify-content: flex-start;
}

.hero-btn-examples {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(6px);
}

.hero-btn-examples:hover {
  background: rgba(255,255,255,0.65);
}

/* Small trust row */
.hero-meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}


/* HERO FLAGS — APPLE STYLE GROUP CONTAINER */
.hero-flags {
  padding: 8px 10px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17, 24, 39, 0.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 8px 20px rgba(0,0,0,0.06);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


.hero-meta-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-accent);
  opacity: 0.7;
}

/* =========================
   HERO — RIGHT IMAGE (hero_img.png)
   Desktop: normal column
   Mobile: floats smaller near text (NOT stacked huge)
   ========================= */

.hero-left{
  position: relative;
  z-index: 3;
}

.hero-right{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.hero-visual{
  width: min(560px, 100%);
  height: auto;
  display: block;

  filter:
    drop-shadow(0 42px 80px rgba(0,0,0,0.18))
    drop-shadow(0 12px 28px rgba(0,0,0,0.10));
  transform: translateY(-10px);
}

/* ===============================
   HERO TECH TICKER — INSIDE WEDGE
   =============================== */

.hero {
  position: relative;
}

/* TICKER CONTAINER — CLIPPED TO WEDGE */
.hero-tech-ticker {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 46%;
  height: 24px;

  overflow: hidden;
  z-index: 4;
  pointer-events: none;

  /* match wedge angle */
  clip-path: polygon(
    12% 0%,
    100% 0%,
    100% 100%,
    0% 100%
  );
}

.hero-tech-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;

  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.7);

  animation: heroTicker 28s linear infinite;
}

@keyframes heroTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================
   RESPONSIVE
   ========================= */

/* SMALL LAPTOP / LARGE TABLET — REMOVE FLOATING HERO IMAGE */
@media (max-width: 1024px) {
  .hero-right {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* MOBILE: FLOAT THE IMAGE (Apple-style) */
@media (max-width: 900px){
  .hero{
    padding-block: 60px 72px;
    padding-bottom: 160px; /* room for floating image */
  }

  .hero-inner{
    grid-template-columns: 1fr; /* text column */
    position: relative;
    padding-top: 24px;
  }

  /* FLOATING VISUAL */
  .hero-right{
    position: absolute;
    right: -18px;
    top: 140px;
    width: 260px;
    max-width: 60vw;
    z-index: 1;
    justify-content: flex-end;
    margin-top: 0;
  }

  .hero-visual{
    width: 100%;
    transform: none;
    filter:
      drop-shadow(0 28px 60px rgba(0,0,0,0.16))
      drop-shadow(0 10px 22px rgba(0,0,0,0.10));
    opacity: 0.98;
  }

  /* Reframe the glass box for mobile */
    .hero::before{
      right: -28%;
      top: -10px;
      width: 660px;
      height: 430px;
      transform: skewX(-12deg);
      opacity: 0.92;
    }

  .hero-subtitle{
    max-width: 100%;
  }
}

/* Extra-small phones */
@media (max-width: 520px){
    .hero-flags {
      background: none !important;
    }
  .hero{
    padding-top: 28px;
    padding-bottom: 140px;
  }

  .hero-right{
    display: none;
  }

  .hero::before{
    display: none;
  }
  .hero::after {
    height: 110px;
  }

}

/* Optional: keep transition pull-up */
@media (min-width: 1024px) {
  .hero-transition {
    margin-top: -40px;
  }
}

/* OFF BELOW DESKTOP */
@media (max-width: 720px) {
  .hero-cta-row .btn {
    width: 100%;
  }

  .hero-tech-ticker {
    display: none;
  }
}
