/* Websites Showcase - "Fragrances grid" style
   Inspired by the paired-card rhythm of noir-eclipse.designhausstudio.de/#fragrances:
   dark elevated cards, image bleeding to the edges, label stacked bottom-left.
   Applied here as one row per demo: a big screenshot card + a facing features card. */

.ws-section {
  background: var(--charcoal-900);
  padding: 140px 0 120px;
}

.ws-heading {
  max-width: 1520px;
  margin: 0 auto 56px;
  padding: 0 4vw;
}

.ws-heading .eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin: 0 0 18px;
}

.ws-heading h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

.ws-list {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Flex, not grid: the screenshot's width is DERIVED from its own 16:9
   aspect-ratio at the row's height, never an arbitrary fraction - the
   features card then stretches to fill whatever width is left, so the
   two boxes always sum to exactly the full row width. */
.ws-row {
  --ws-accent: 189, 189, 189;
  --ws-accent-2: 255, 255, 255;
  display: flex;
  align-items: stretch;
  gap: 24px;
  /* Tall enough that the 16:9-derived shot width takes up most of the row,
     so the leftover features column stays a normal card width instead of
     ballooning into an oversized, mostly-empty panel. */
  height: clamp(320px, 34vw, 540px);
}

.ws-row--noir { --ws-accent: 210, 214, 219; --ws-accent-2: 255, 255, 255; }
.ws-row--agency { --ws-accent: 128, 188, 255; --ws-accent-2: 48, 92, 180; }
.ws-row--aurum { --ws-accent: 178, 138, 62; --ws-accent-2: 242, 214, 143; }
.ws-row--napoli { --ws-accent: 218, 108, 44; --ws-accent-2: 255, 176, 96; }
.ws-row--eclipse { --ws-accent: 170, 130, 92; --ws-accent-2: 92, 68, 118; }
.ws-row--presshaus { --ws-accent: 225, 0, 55; --ws-accent-2: 25, 25, 25; }
.ws-row--vero { --ws-accent: 255, 122, 50; --ws-accent-2: 255, 192, 112; }
.ws-row--elan { --ws-accent: 168, 85, 247; --ws-accent-2: 226, 196, 255; }
.ws-row--aura { --ws-accent: 90, 235, 110; --ws-accent-2: 184, 255, 191; }
.ws-row--vitalis { --ws-accent: 70, 190, 255; --ws-accent-2: 188, 232, 255; }
.ws-row--dolce { --ws-accent: 225, 175, 80; --ws-accent-2: 255, 218, 140; }

.ws-shot {
  flex: none;
  height: 100%;
  aspect-ratio: 16 / 9;
  width: auto;
}

.ws-features {
  flex: 1 1 auto;
  min-width: 0;
}

/* Zigzag rhythm: even rows mirror the layout so the screenshot and the
   features card alternate sides down the page instead of stacking in the
   same order every time. */
.ws-row:nth-child(even) .ws-shot { order: 2; }
.ws-row:nth-child(even) .ws-features { order: 1; }

.ws-shot {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(var(--ws-accent), .32);
  overflow: hidden;
  background-size: cover;
  background-position: top center;
  box-shadow:
    0 18px 40px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.035) inset,
    0 0 50px rgba(var(--ws-accent), .08);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform 550ms cubic-bezier(.16,1,.3,1), box-shadow 550ms cubic-bezier(.16,1,.3,1), border-color 550ms ease, filter 550ms ease;
}

.ws-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.08), transparent 34%),
    linear-gradient(to top, rgba(0,0,0,.24), transparent 32%);
  opacity: .72;
}

.ws-shot:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--ws-accent), .64);
  box-shadow:
    0 24px 50px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 70px rgba(var(--ws-accent), .16);
  filter: saturate(1.04) contrast(1.02);
}

/* Mouse-follow highlight, same mechanism as .dh-card::before in cards.css
   (js/mouse-glow.js sets --mx/--my per-card on pointermove) — gives these
   static screenshot cards a bit of the same cursor-reactive "life" the
   live hero pages have, without mounting the real per-industry hero JS. */
.ws-shot::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.14),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .ws-shot:hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-shot::after { display: none; }
}

.ws-shot__copy {
  position: relative;
  z-index: 1;
  display: none;
}

.ws-shot__eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10px, 0.68vw, 12px);
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin: 0 0 10px;
}

.ws-shot__title {
  font-family: var(--font-sans);
  font-weight: 720;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.05;
  color: var(--ivory);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  text-wrap: balance;
}

.ws-shot__sub {
  font-family: var(--font-sans);
  font-size: clamp(13px, 0.85vw, 15px);
  line-height: 1.5;
  color: rgba(245,245,245,.7);
  margin: 0;
}

.ws-features {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 12%, rgba(var(--ws-accent), .15), transparent 34%),
    linear-gradient(145deg, rgba(24, 26, 27, .94), rgba(10, 11, 12, .98));
  border: 1px solid rgba(var(--ws-accent), .28);
  padding: clamp(22px, 2vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(14px, 1.1vw, 20px);
  box-shadow:
    0 18px 40px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.035) inset,
    0 0 60px rgba(var(--ws-accent), .08);
  transition: transform 550ms cubic-bezier(.16,1,.3,1), box-shadow 550ms cubic-bezier(.16,1,.3,1), border-color 550ms ease;
}

.ws-features:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--ws-accent), .5);
  box-shadow:
    0 24px 50px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 70px rgba(var(--ws-accent), .14);
}

.ws-features::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 22%, rgba(var(--ws-accent), .08) 76%, transparent);
}

.ws-features > * {
  position: relative;
  z-index: 1;
}

.ws-features__head {
  display: grid;
  gap: 6px;
  max-width: 36ch;
}

.ws-features__kicker {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(10px, .68vw, 12px);
  font-weight: 720;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(var(--ws-accent));
}

.ws-features__head h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--ivory);
  text-wrap: balance;
}

.ws-features__head span {
  font-family: var(--font-sans);
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.45;
  color: rgba(245,245,245,.66);
}

.ws-features__eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,245,245,.58);
  margin: 0;
}

.ws-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: feature;
}

.ws-features li {
  counter-increment: feature;
  font-family: var(--font-sans);
  font-size: clamp(13px, .9vw, 15px);
  line-height: 1.45;
  color: var(--warm-gray);
  padding: 10px 12px 10px 42px;
  position: relative;
  max-width: 40ch;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.055);
}

.ws-features li::before {
  content: counter(feature, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: rgb(var(--ws-accent));
  font: 760 10px/1 var(--font-sans);
  letter-spacing: .08em;
}

.ws-features li b {
  color: var(--ivory);
  font-weight: 680;
  letter-spacing: -0.012em;
}

.ws-features__cta {
  align-self: flex-start;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ws-accent), .36);
  background: rgba(var(--ws-accent), .055);
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, transform 200ms ease;
}

.ws-features__cta:hover {
  border-color: rgba(var(--ws-accent), .7);
  background: rgba(var(--ws-accent), .13);
  color: rgb(var(--ws-accent-2));
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .ws-row {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }
  .ws-row:nth-child(even) .ws-shot,
  .ws-row:nth-child(even) .ws-features {
    order: initial;
  }
  .ws-shot {
    height: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .ws-features {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding: 12px;
    gap: 8px 12px;
    border-radius: 18px;
  }

  .ws-features__head {
    gap: 2px;
    min-width: 0;
  }

  .ws-features__kicker,
  .ws-features__eyebrow {
    font-size: 9px;
    letter-spacing: .18em;
  }

  .ws-features__eyebrow {
    display: none;
  }

  .ws-features__head h3 {
    font-size: clamp(18px, 5.4vw, 23px);
    line-height: 1;
  }

  .ws-features__head span {
    font-size: 11px;
    line-height: 1.2;
  }

  .ws-features ul {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .ws-features li {
    min-height: 0;
    padding: 7px 8px 7px 30px;
    font-size: 10.5px;
    line-height: 1.2;
    border-radius: 10px;
  }

  .ws-features li:nth-child(3) {
    display: none;
  }

  .ws-features li::before {
    left: 9px;
    top: 8px;
    font-size: 8px;
  }

  .ws-features__cta {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin: 0;
    padding: 7px 10px;
    font-size: 8.5px;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .ws-list {
    gap: 16px;
  }

  .ws-features {
    min-height: 0;
  }

  .ws-features li {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
