.hero {
  position: relative;
  overflow: hidden;
  margin-top: -8.6rem;
  padding: 12rem 0 6.5rem;
  background: radial-gradient(circle at 14% 18%, rgba(112,163,10,.14), transparent 28rem),
              radial-gradient(circle at 86% 8%, rgba(155,221,34,.13), transparent 30rem),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
@media (min-width: 992px) {
  .hero {
    margin-top: -12.5rem;
  }
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  pointer-events: none;
  background-image: linear-gradient(rgba(112,163,10,.10) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(112,163,10,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 4rem;
  align-items: center;
}

/* Mapping Semantic Tags to Design */
.hero-content h6 {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  color: var(--pixo);
  background: rgba(112, 163, 10, .08);
  border: 1px solid rgba(112, 163, 10, .22);
  border-radius: 999px;
  padding: .52rem .82rem;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 1.1rem;
}
.hero-content h6:before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 99px;
  background: var(--pixo);
  box-shadow: 0 0 18px rgba(155, 221, 34, .95);
}

.hero-content p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
  margin: 0;
  max-width: 720px;
  margin-top: 1.25rem;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6.8vw, 7rem);
  line-height: .88;
  letter-spacing: -.05em;
  font-weight: 900;
  text-transform: uppercase;
}

/* User can italicize text in h1 to make it green */
.hero-content h1 i,
.hero-content h1 em {
  color: var(--pixo);
  font-style: normal;
}

/* Convert UL lists into CTA rows automatically */
.hero-content ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

/* First list item -> Primary Pixo Button */
.hero-content ul li:nth-child(1) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 1.35rem;
  color: #071006;
  background: linear-gradient(135deg, var(--pixo), var(--pixo));
  font-weight: 950;
  box-shadow: 0 22px 58px rgba(112, 163, 10, .42);
  transition: .25s ease;
  text-decoration: none;
}
.hero-content ul li:nth-child(1) a:after,
.hero-content ul li:nth-child(2) a:after {
  content: "\00BB";
  margin-left: 0.4em;
  font-size: 1.15em;
  line-height: 0.8;
}
.hero-content ul li:nth-child(1) a:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 75px rgba(112, 163, 10, .55);
}

/* Second list item -> Ghost Button */
.hero-content ul li:nth-child(2) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 1.35rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(112, 163, 10, .34);
  font-weight: 900;
  transition: .25s ease;
  text-decoration: none;
}
.hero-content ul li:nth-child(2) a:hover {
  transform: translateY(-3px);
  background: rgba(112, 163, 10, .07);
}

/* Visual Mockups */
.hero-visual {
  position: relative;
  min-height: 540px;
  perspective: 1200px;
}
.site-window {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(112,163,10,.34);
  background: #fff;
  box-shadow: 0 34px 95px rgba(7,16,6,.16);
  transform-style: preserve-3d;
}
.site-main {
  width: 88%;
  top: 20px;
  right: 0;
  transform: rotateY(-14deg) rotateX(7deg) rotateZ(-2deg);
}
.site-side {
  width: 55%;
  left: 0;
  bottom: 18px;
  z-index: 2;
  transform: rotateY(14deg) rotateX(6deg) rotateZ(4deg);
}
.browser-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: .42rem;
  padding: 0 .9rem;
  background: #071006;
  border-bottom: 1px solid rgba(112,163,10,.3);
}
.browser-top .dot {
  width: .62rem;
  height: .62rem;
  border-radius: 99px;
  background: #6f7b68;
}
.browser-top .dot:nth-child(1) { background: #ff5f57; }
.browser-top .dot:nth-child(2) { background: #ffbd2e; }
.browser-top .dot:nth-child(3) { background: #28c840; }

.site-art {
  min-height: 350px;
  background: linear-gradient(135deg,rgba(112,163,10,.16),transparent 40%),
              radial-gradient(circle at 80% 20%,rgba(155,221,34,.2),transparent 24%),
              #fbfdf8;
  display: flex;
  flex-direction: column;
}
.site-side .site-art {
  min-height: 260px;
}

/* If user uploads real image */
.site-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Fallback UI if no image */
.mockup-fallback {
  padding: 1.1rem;
  width: 100%;
  flex-grow: 1;
}
.mock-hero {
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(135deg,rgba(112,163,10,.22),rgba(255,255,255,.5));
  border: 1px solid rgba(112,163,10,.18);
  margin-bottom: 1rem;
}
.mock-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: .85rem;
}
.mock-card {
  height: 112px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(112,163,10,.18);
  box-shadow: 0 16px 35px rgba(7,16,6,.06);
}
.mock-card.small {
  height: 52px;
  margin-bottom: .8rem;
}

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; }
}

@media (max-width: 760px) {
  .hero { padding-top: 9rem; }
  .hero-visual { min-height: 380px; }
  .site-main { width: 100%; right: auto; }
  .site-side { display: none; }
}
