/* ==========================================================================
   dark.css — Website Leads dark sections
   Scopes: .stmt- (statement) · .show- (showcase) · .trust- (trust)
   Tokens + primitives live in tokens.css; only scoped rules here.
   ========================================================================== */

/* ————————————————————————— STATEMENT ————————————————————————— */

.stmt-wrap.sec { padding-bottom: 0; } /* midu About: 240px 0 0 */
/* midu: Works owns the 240 gap; Testimonials has no top pad */
.trust-wrap.sec { padding-top: 0; }

.stmt-eyebrow {
  text-align: center;
  margin-bottom: clamp(1.2rem, 2.6vw, 2.2rem);
}

.stmt-statement {
  max-width: 26ch;
  margin-inline: auto;
  text-align: center;
}

.stmt-detail {
  max-width: 40ch;
  margin-top: clamp(2.8rem, 6vw, 5rem);
  margin-left: clamp(0rem, 13vw, 10.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.8rem;
}

.stmt-copy {
  color: var(--muted);
  font-size: 1.5rem; /* midu lede: 24px Medium */
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.stmt-cinema {
  margin-top: clamp(3.5rem, 8vw, 7rem);
}

.stmt-media {
  --stmt-progress: 0;
  --stmt-edge-fade: 13%;
  position: relative;
  width: 100%;
  margin-inline: auto;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #080808;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  isolation: isolate;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--stmt-edge-fade),
    #000 calc(100% - var(--stmt-edge-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--stmt-edge-fade),
    #000 calc(100% - var(--stmt-edge-fade)),
    transparent 100%
  );
}

.stmt-media-poster,
.stmt-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stmt-media-poster { z-index: 0; }

.stmt-media-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stmt-media.is-video-ready .stmt-media-video { opacity: 1; }

.stmt-media-glow {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 92, 31, 0.26), transparent 25%),
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.76) 100%);
  opacity: calc(0.42 + var(--stmt-progress) * 0.22);
  pointer-events: none;
}

@media (max-width: 720px) {
  .stmt-detail { margin-left: 0; }
  .stmt-media {
    --stmt-edge-fade: 16%;
    aspect-ratio: 1;
  }
}

/* ————————————————————————— SHOWCASE ————————————————————————— */

.show-head {
  max-width: 24ch;
  margin-inline: auto;
}

/* intro row (d_05): bold white left, muted right */
.show-intro {
  max-width: min(100%, 920px);
  margin-inline: auto;
  margin-top: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.show-intro-lead {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text);
  text-wrap: pretty;
}

.show-intro-side {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34ch;
}

/* cards grid */
.show-grid {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-card);
}

.show-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  transition: transform 0.55s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.show-card:hover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .show-card { transition: none; }
  .show-card:hover { transform: none; }
}

.show-card--dark {
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.show-card--dark .chip {
  background: #fff;
  color: #0a0a0a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.show-card--cream {
  background: var(--cream);
  color: var(--light-text);
}

.show-card--fire {
  background: linear-gradient(160deg, #2a0a05, #7e1a10 45%, #e93c1a);
}

.show-card--fog {
  background: var(--fog);
  color: var(--light-text);
}

.show-chips {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.show-mock {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(1.2rem, 2vw, 2rem);
}

.show-name h3 {
  font-size: clamp(1.6rem, 2.23vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.show-name p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.show-card--cream .show-name p,
.show-card--fog .show-name p {
  color: rgba(10, 10, 10, 0.55);
}

/* — card 1 mockup: assistant chat — */
.show-chat {
  width: min(100%, 350px);
  display: flex;
  flex-direction: column;
}

.show-chat-user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px 18px 4px 18px;
  padding: 0.6rem 1.05rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.show-chat-ai {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.show-chat-spark {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin-top: 0.12rem;
  color: var(--accent);
}

.show-chat-txt p {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.show-chat-txt strong {
  color: var(--text);
  font-weight: 600;
}

.show-chat-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.show-chat-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(255, 125, 78, 0.14);
  border: 1px solid rgba(255, 125, 78, 0.3);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.show-chat-stars {
  color: var(--accent);
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating-stars i {
  display: block;
  width: 10px;
  height: 10px;
  flex: none;
  background: currentColor;
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rating-stars--4 i:nth-child(n + 5),
.rating-stars--3 i:nth-child(n + 4) { opacity: 0.22; }

/* — card 2 mockup: local pack — */
.show-pack {
  width: min(100%, 330px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 26px 48px rgba(10, 10, 10, 0.16);
  transform: rotate(-1.6deg);
  color: var(--light-text);
}

.show-pack-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
}

.show-pack-row + .show-pack-row {
  border-top: 1px solid rgba(10, 10, 10, 0.07);
}

.show-pack-row--top { background: rgba(233, 60, 26, 0.045); }

.show-pack-row--top::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--accent-hot);
}

.show-pack-pos {
  width: 1.3rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.35);
  flex-shrink: 0;
}

.show-pack-row--top .show-pack-pos { color: var(--accent-hot); }

.show-pack-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.show-pack-name {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show-pack-row:not(.show-pack-row--top) .show-pack-name {
  color: rgba(10, 10, 10, 0.72);
  font-weight: 500;
}

.show-pack-stars {
  color: #eba33b;
  white-space: nowrap;
}

.show-pack-stars i {
  width: 9px;
  height: 9px;
}

.show-pack-stars em {
  font-style: normal;
  margin-left: 0.35rem;
  font-size: 0.68rem;
  color: rgba(10, 10, 10, 0.45);
}

.show-pack-pin {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
}

/* — card 3 mockup: CPL dashboard — */
.show-dash {
  width: min(100%, 310px);
  display: flex;
  flex-direction: column;
}

.show-dash-main {
  display: flex;
  flex-direction: column;
  background: rgba(12, 6, 4, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 1.35rem 1.45rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 55px rgba(20, 4, 0, 0.45);
}

.show-dash-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.show-dash-big {
  display: flex;
  align-items: center;
  gap: 0.12em;
  margin-top: 0.2rem;
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.show-dash-trend-icon {
  width: 0.75em;
  height: 0.75em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.show-dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 72px;
  margin-top: 1.2rem;
}

.show-dash-bars i {
  flex: 1;
  height: var(--h, 50%);
  background: rgba(255, 255, 255, 0.28);
  border-radius: 5px 5px 2px 2px;
}

.show-dash-bars .show-dash-bar--hot {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 125, 78, 0.45);
}

.show-dash-side {
  align-self: flex-end;
  margin-top: -12px;
  margin-right: -16px;
  background: rgba(12, 6, 4, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 30px rgba(20, 4, 0, 0.4);
  white-space: nowrap;
}

/* — card 4 mockup: mini browser — */
.show-browser {
  width: min(100%, 320px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 48px rgba(10, 10, 10, 0.18);
  transform: rotate(1.6deg);
}

.show-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  background: #f4f4f2;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.show-browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.show-browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.show-browser-dots i:nth-child(1) { background: #ff5f57; }
.show-browser-dots i:nth-child(2) { background: #febc2e; }
.show-browser-dots i:nth-child(3) { background: #28c840; }

.show-browser-url {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.07);
  border-radius: 999px;
  padding: 0.18rem 0.75rem;
  font-size: 0.68rem;
  color: rgba(10, 10, 10, 0.5);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-browser-page {
  padding: 1.5rem 1.3rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.show-browser-line {
  border-radius: 6px;
  background: #d9d9d7;
}

.show-browser-line--1 { width: 82%; height: 14px; }
.show-browser-line--2 { width: 64%; height: 14px; margin-top: 0.5rem; }
.show-browser-line--3 { width: 46%; height: 8px; margin-top: 0.85rem; background: #e7e7e5; }

.show-browser-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 1.15rem;
  background: var(--accent-hot);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(233, 60, 26, 0.35);
}

.show-browser-cta-icon {
  width: 0.9em;
  height: 0.9em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.show-browser-cursor {
  position: absolute;
  right: -12px;
  bottom: -13px;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 3px 5px rgba(10, 10, 10, 0.35));
}

/* showcase responsive */
@media (max-width: 900px) {
  .show-grid { grid-template-columns: 1fr; }
  .show-card { min-height: 480px; }
}

@media (max-width: 720px) {
  .show-intro {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* ————————————————————————— TRUST ————————————————————————— */

.trust-head {
  max-width: 21ch;
  margin-inline: auto;
}

.trust-grid {
  margin-top: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 2.3fr;
  gap: var(--gap-card);
}

.trust-card {
  background: #0e0e0e;
  border-radius: var(--r-card-lg);
  padding: 2.2rem;
  min-height: 430px;
}

/* left: intro card */
.trust-card--intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}

.trust-glyph {
  display: block;
  width: clamp(60px, 6.5vw, 90px);
  height: clamp(60px, 6.5vw, 90px);
  overflow: visible;
  color: var(--accent);
}

.trust-card-foot h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  letter-spacing: -0.04em;
  line-height: 1;
}

.trust-card-foot p {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* right: carousel card */
.trust-card--carousel {
  position: relative;
  overflow: hidden;
}

.trust-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.55rem;
}

.trust-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease;
}

.trust-dots button.active { background: #fff; }

.trust-card--carousel {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.trust-card--carousel.is-dragging { cursor: grabbing; }
.trust-card--carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* sliding track (midu's testimonials slide horizontally on a spring,
   they don't cross-fade) — spring ≈ stiffness 400 / damping 30 */
.trust-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.65s cubic-bezier(0.3, 1.12, 0.35, 1);
  will-change: transform;
}

.trust-card--carousel .slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 5rem 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.trust-card--carousel .slide.active { opacity: 1; }

.trust-quote {
  font-size: clamp(1.35rem, 1.95vw, 1.75rem); /* 28px@1440 */
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--muted);
  max-width: 42ch;
  text-wrap: pretty;
}

.trust-quote strong {
  color: var(--text);
  font-weight: 500;
}

.trust-slide-foot {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

.trust-num {
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--muted-2);
}

.trust-label {
  font-size: 0.95rem;
  color: var(--muted);
}

/* trust responsive */
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-card--intro {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.25rem, 4vw, 2rem);
  }
  .trust-glyph { flex: 0 0 auto; }
  .trust-card-foot { min-width: 0; }
}

@media (max-width: 720px) {
  .trust-card { padding: 1.6rem; }
  .trust-card--carousel { min-height: 500px; }
  .trust-card--carousel .slide { padding: 4.2rem 1.6rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-card--carousel .slide { transition: none; }
  .trust-dots button { transition: none; }
}
