/* =========================================================
   THEWEBSTORE — STOREFRONT HERO
   ========================================================= */

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.websites-hero {
  max-width: 1240px;
  min-height: 650px;

  margin: 0 auto;
  padding: 80px 28px 90px;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;

  gap: 55px;
}

/* ---------------------------------------------------------
   Hero Content
   --------------------------------------------------------- */

.websites-hero-content {
  position: relative;
  z-index: 2;

  max-width: 700px;
}

/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */

.websites-hero h1 {
  max-width: 680px;

  margin: 0;

  color: var(--ink);

  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 800;

  line-height: 0.98;
  letter-spacing: -0.065em;

  text-transform: uppercase;
}

.websites-hero h1 em {
  color: var(--green-soft);

  font-style: normal;
}

.headline-cursor {
  display: inline-flex;
  align-items: flex-end;

  width: 18px;
  height: 26px;

  margin-left: 4px;

  vertical-align: baseline;

  transform: translateY(10px) translateX(-5px) rotate(-20deg);
}

.headline-cursor svg {
  display: block;

  width: 100%;
  height: 100%;

  fill: var(--coral);

  filter: drop-shadow(0 2px 3px rgba(23, 36, 33, 0.12));
}

/* ---------------------------------------------------------
   Description
   --------------------------------------------------------- */

.websites-hero-description {
  max-width: 560px;

  margin: 25px 0 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.7;
}

/* =========================================================
   HERO — GUIDANCE POINTS
   ========================================================= */

.websites-hero-points {
  max-width: 590px;

  margin: 30px 0 28px;

  display: grid;

  grid-template-columns: 1fr;

  gap: 10px;
}

/* ---------------------------------------------------------
   Guidance Card
   --------------------------------------------------------- */

.websites-hero-point {
  display: flex;

  align-items: flex-start;

  gap: 11px;

  padding: 14px 15px;

  background: var(--white);

  border: 1px solid var(--line);

  border-radius: 8px;

  box-shadow: 0 5px 18px #173a3008;
  transition: all 0.3s;
}

.websites-hero-point:hover {
  transform: translateX(10px);
}

/* ---------------------------------------------------------
   Step Number
   --------------------------------------------------------- */

.websites-hero-point > span {
  width: 22px;
  height: 22px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--ink);

  border-radius: 50%;

  font:
    700 9px "DM Mono",
    monospace;

  line-height: 1;
}

.step-1 {
  background: var(--mint);
}

.step-2 {
  background: var(--yellow);
}

.step-3 {
  background: var(--coral);
}

/* ---------------------------------------------------------
   Point Content
   --------------------------------------------------------- */

.websites-hero-point strong {
  display: block;

  margin-bottom: 3px;

  color: var(--ink);

  font-size: 13px;
  font-weight: 800;

  line-height: 1.25;

  letter-spacing: -0.02em;
}

.websites-hero-point p {
  display: block;

  margin: 0;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.45;
}

/* =========================================================
   HERO — ACTION
   ========================================================= */

.websites-hero-actions {
  display: flex;
  align-items: center;
}

.websites-hero-actions .button {
  display: inline-flex;

  align-items: center;
  justify-content: space-between;

  gap: 35px;

  min-width: 225px;

  padding: 15px 18px 15px 20px;

  background: var(--mint);
  color: var(--ink);

  border-radius: 7px;

  font-size: 12px;
  font-weight: 800;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    gap 0.25s ease;
}

.websites-hero-actions .button span {
  font-size: 18px;
  font-weight: 400;
}

.websites-hero-actions .button:hover {
  transform: translateY(-3px);

  color: var(--ink);

  gap: 42px;
}

/* =========================================================
   WEBSITE PREVIEW STACK
   ========================================================= */

.websites-hero-previews {
  position: relative;

  width: 100%;
  height: 540px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-left: 40px;
}

/* ---------------------------------------------------------
   Decorative Orbits
   --------------------------------------------------------- */

.websites-hero-previews::before {
  content: "";

  position: absolute;

  width: 460px;
  height: 460px;

  right: 20px;

  border: 1px solid #bfd4ca;
  border-radius: 50%;

  pointer-events: none;
}

.websites-hero-previews::after {
  content: "";

  position: absolute;

  width: 575px;
  height: 575px;

  right: -35px;

  border: 1px dashed #bfd4ca;
  border-radius: 50%;

  pointer-events: none;
}

/* =========================================================
   WEBSITES HERO — FLOATING VISUAL LABELS
   ========================================================= */

/* ---------------------------------------------------------
   Base Label
   --------------------------------------------------------- */

.websites-hero-label {
  position: absolute;

  z-index: 4;

  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 12px 15px;

  background: rgba(255, 255, 255, 0.94);

  border: 1px solid rgba(219, 225, 220, 0.85);
  border-radius: 8px;

  box-shadow: 0 12px 30px #173a3020;

  backdrop-filter: blur(7px);
}

/* Small label */

.websites-hero-label span {
  color: #71817b;

  font:
    600 8px "DM Mono",
    monospace;

  letter-spacing: 0.07em;
}

/* Main text */

.websites-hero-label strong {
  color: var(--ink);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: -0.015em;
}

/* ---------------------------------------------------------
   Top Left
   --------------------------------------------------------- */

.websites-hero-label--top {
  top: 48px;
  left: 5px;

  animation: websitesHeroLabelTop 2.4s ease-in-out infinite;
}

/* ---------------------------------------------------------
   Bottom Right
   --------------------------------------------------------- */

.websites-hero-label--bottom {
  right: -5px;
  bottom: 0px;

  animation: websitesHeroLabelBottom 2.7s ease-in-out infinite;
}

/* =========================================================
   LABEL ANIMATIONS
   ========================================================= */

@keyframes websitesHeroLabelTop {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}

@keyframes websitesHeroLabelBottom {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }

  50% {
    transform: translateY(7px) rotate(-1deg);
  }
}

/* =========================================================
   WEBSITE PREVIEW CARD
   ========================================================= */

.website-preview-card {
  position: absolute;

  width: 450px;
  height: 300px;

  overflow: hidden;

  background: var(--white);

  border: 1px solid #e1e7e3;
  border-radius: 10px;

  box-shadow:
    0 30px 65px #183a3056,
    0 5px 15px #173a3010;

  cursor: pointer;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* =========================================================
   BROWSER NAVIGATION
   ========================================================= */

.website-preview-nav {
  height: 37px;

  display: flex;
  align-items: center;

  gap: 13px;

  padding: 0 12px;

  background: var(--white);

  border-bottom: 1px solid #e9ece9;

  color: #9aa49f;

  font:
    9px "DM Mono",
    monospace;
}

/* ---------------------------------------------------------
   Browser Dots
   --------------------------------------------------------- */

.website-preview-dots {
  display: flex;
  gap: 4px;
}

.website-preview-dots i {
  width: 5px;
  height: 5px;

  background: #d7ddd9;

  border-radius: 50%;
}

/* ---------------------------------------------------------
   Browser URL
   --------------------------------------------------------- */

.website-preview-url {
  overflow: hidden;

  max-width: 180px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------
   Browser Menu
   --------------------------------------------------------- */

.website-preview-menu {
  margin-left: auto;
}

/* =========================================================
   WEBSITE SCREENSHOT
   ========================================================= */

.website-preview-image {
  width: 100%;
  height: calc(100% - 37px);

  display: block;

  object-fit: cover;
  object-position: top center;

  background: #e5e5d7;
}

/* =========================================================
   CARD STACK POSITIONING
   ========================================================= */

/*
   The cards deliberately overlap vertically.
   The offsets are intentionally subtle so the stack feels
   like a collection of real website previews rather than
   three independently positioned floating cards.
*/

.website-preview-card:nth-of-type(1) {
  z-index: 1;
  transform: translate(50px, -150px) rotate(4deg);
}

.website-preview-card:nth-of-type(2) {
  z-index: 2;
  transform: translate(-50px, 0) rotate(-6deg);
}

.website-preview-card:nth-of-type(3) {
  z-index: 3;
  transform: translate(30px, 150px) rotate(1deg);
}

/* =========================================================
   CARD HOVER
   ========================================================= */

.website-preview-card {
  transform-origin: center center;
}

.website-preview-card:hover {
  z-index: 20;

  box-shadow:
    0 35px 70px #173a3030,
    0 8px 20px #173a3015;
}

/* ---------------------------------------------------------
   Top Card
   --------------------------------------------------------- */

.website-preview-card:nth-of-type(1):hover {
  transform: translate(50px, -150px) rotate(0deg) scale(1.3);
}

/* ---------------------------------------------------------
   Middle Card
   --------------------------------------------------------- */

.website-preview-card:nth-of-type(2):hover {
  transform: translate(-50px, 0) rotate(0deg) scale(1.3);
}

/* ---------------------------------------------------------
   Bottom Card
   --------------------------------------------------------- */

.website-preview-card:nth-of-type(3):hover {
  transform: translate(30px, 150px) rotate(0deg) scale(1.3);
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 950px) {
  .websites-hero {
    min-height: 0;

    grid-template-columns: 1fr;

    gap: 35px;

    padding-top: 65px;
    padding-bottom: 80px;
  }

  .websites-hero-content {
    max-width: 700px;
  }

  .websites-hero-previews {
    height: 540px;
    padding-left: 0px;
    padding-top: 80px;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .websites-hero {
    padding: 50px 21px 65px;

    gap: 20px;
  }

  /* -------------------------------------------------------
     Eyebrow
     ------------------------------------------------------- */

  .websites-hero .eyebrow {
    margin-bottom: 18px;

    font-size: 9px;
  }

  /* -------------------------------------------------------
     Heading
     ------------------------------------------------------- */

  .websites-hero h1 {
    font-size: 45px;
    line-height: 0.98;
  }

  /* -------------------------------------------------------
     Description
     ------------------------------------------------------- */

  .websites-hero-description {
    margin-top: 20px;

    font-size: 15px;
    line-height: 1.65;
  }

  .websites-hero-points {
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .websites-hero-point {
    grid-template-columns: 28px 1fr;
    gap: 10px;

    padding: 11px 0;
  }

  .websites-hero-point strong {
    font-size: 11px;
  }

  .websites-hero-point p {
    font-size: 10px;
  }

  .websites-hero-actions .button {
    width: 100%;
    max-width: 280px;
  }

  .websites-hero-label {
    padding: 9px 11px;

    gap: 7px;

    font-size: 9px;
  }

  .websites-hero-label .pulse {
    width: 6px;
    height: 6px;
  }

  .websites-hero-label--top {
    top: 18px;
    left: 0;
  }

  .websites-hero-label--bottom {
    right: 0;
    bottom: 15px;
  }

  /* -------------------------------------------------------
     Preview Area
     ------------------------------------------------------- */

  .websites-hero-previews {
    height: 405px;

    margin-top: 10px;

    padding-left: 0px;
    padding-top: 40px;
  }

  /* -------------------------------------------------------
     Decorative Orbits
     ------------------------------------------------------- */

  .websites-hero-previews::before {
    width: 330px;
    height: 330px;

    right: 0;
  }

  .websites-hero-previews::after {
    width: 410px;
    height: 410px;

    right: -40px;
  }

  /* -------------------------------------------------------
     Cards
     ------------------------------------------------------- */

  .website-preview-card {
    width: 300px;
    height: 220px;

    border-radius: 8px;

    box-shadow:
      0 30px 65px #183a300c,
      0 5px 15px #173a3010;
  }

  /* -------------------------------------------------------
     Browser Navigation
     ------------------------------------------------------- */

  .website-preview-nav {
    height: 29px;

    padding: 0 9px;

    gap: 9px;

    font-size: 7px;
  }

  .website-preview-dots {
    gap: 3px;
  }

  .website-preview-dots i {
    width: 4px;
    height: 4px;
  }

  .website-preview-url {
    max-width: 120px;
  }

  /* -------------------------------------------------------
     Mobile Stack
     ------------------------------------------------------- */

  .website-preview-card:nth-of-type(1) {
    transform: translate(10px, -88px) rotate(4deg);
  }

  .website-preview-card:nth-of-type(2) {
    transform: translate(-5px, 0) rotate(-5deg);
  }

  .website-preview-card:nth-of-type(3) {
    transform: translate(15px, 88px) rotate(2deg);
  }

  /* -------------------------------------------------------
     Mobile Hover
     ------------------------------------------------------- */

  .website-preview-card:nth-of-type(1):hover {
    transform: translate(10px, -98px) rotate(0deg) scale(1.06);
  }

  .website-preview-card:nth-of-type(2):hover {
    transform: translate(-5px, 0) rotate(0deg) scale(1.06);
  }

  .website-preview-card:nth-of-type(3):hover {
    transform: translate(15px, 98px) rotate(0deg) scale(1.06);
  }
}

/* =========================================================
   RESPONSIVE — VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {
  .websites-hero {
    padding-top: 42px;
  }

  .websites-hero h1 {
    font-size: 40px;
  }

  .websites-hero-previews {
    height: 365px;

    margin-top: 10px;

    padding-left: 0px;
    padding-top: 80px;
  }

  .website-preview-card {
    width: 270px;
    height: 198px;
  }
  /* -------------------------------------------------------
     Very Small Mobile Stack
     ------------------------------------------------------- */

  .website-preview-card:nth-of-type(1) {
    transform: translate(8px, -92px) rotate(-2deg);
  }

  .website-preview-card:nth-of-type(2) {
    transform: translate(-4px, 0) rotate(0.5deg);
  }

  .website-preview-card:nth-of-type(3) {
    transform: translate(12px, 92px) rotate(2deg);
  }

  /* -------------------------------------------------------
     Very Small Mobile Hover
     ------------------------------------------------------- */

  .website-preview-card:nth-of-type(1):hover {
    transform: translate(8px, -92px) rotate(0deg) scale(1.05);
  }

  .website-preview-card:nth-of-type(2):hover {
    transform: translate(-4px, 0) rotate(0deg) scale(1.05);
  }

  .website-preview-card:nth-of-type(3):hover {
    transform: translate(12px, 92px) rotate(0deg) scale(1.05);
  }

  .websites-hero-label--bottom {
    right: -5px;
    bottom: -50px;

    animation: websitesHeroLabelBottom 2.7s ease-in-out infinite;
  }
}
