/* ============ DERMEXCEL HERO — intessa.daisystem.cloud ============ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..900;1,9..40,400..900&display=swap');

:root {
  --dex-bg: #f5efe2;
  --dex-bg-2: #ede6d6;
  --dex-ink: #141416;
  --dex-ink-soft: #2b2b30;
  --dex-mute: #8b847a;
  --dex-line: #dad2bf;
  --dex-ghost: #c5bfae;
  --dex-orange-1: #ab3500;
  --dex-orange-2: #c84200;
  --dex-orange-3: #e06030;
  --dex-orange-4: #f5a060;
}

/* Grain overlay */
.dex-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============ HERO ============ */
.dex-hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 32px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: radial-gradient(
    120% 70% at 50% 0%,
    #f8f3e7 0%,
    #f2ead6 60%,
    #e9dec3 100%
  );
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.dex-small-team {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 92px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--dex-ink);
  text-align: center;
  margin-bottom: 0;
  z-index: 4;
  position: relative;
}
.dex-small-team .dex-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.dex-small-team .dex-word > span {
  display: inline-block;
  transform: translateY(105%);
}

.dex-big-results-wrap {
  position: relative;
  width: 100%;
  margin-top: -20px;
  display: flex;
  justify-content: center;
  z-index: 1;
}
.dex-big-results {
  font-family: "DM Sans", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(110px, 21vw, 300px);
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: var(--dex-ghost);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  z-index: 1;
  text-shadow: 0 4px 12px rgba(120, 100, 50, 0.04);
}
.dex-big-results .dex-letter {
  display: inline-block;
  transform-origin: bottom;
}

/* Cards row */
.dex-cards-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 320px;
  z-index: 3;
  pointer-events: none;
}
.dex-cards-row > * {
  pointer-events: auto;
}

.dex-card {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--dex-orange-1) 0%,
    var(--dex-orange-2) 35%,
    var(--dex-orange-3) 70%,
    var(--dex-orange-4) 100%
  );
  box-shadow: 0 30px 50px -16px rgba(120, 40, 0, 0.5),
    0 14px 26px -8px rgba(100, 30, 0, 0.32),
    0 5px 10px -2px rgba(60, 15, 0, 0.2),
    inset 0 2px 0 rgba(255, 200, 150, 0.45),
    inset 0 -4px 8px rgba(80, 15, 0, 0.4);
  cursor: pointer;
  will-change: transform;
  transition: box-shadow 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}
.dex-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 30%,
    transparent 70%,
    rgba(80, 15, 0, 0.25) 100%
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}
.dex-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.dex-card:hover {
  box-shadow: 0 44px 70px -20px rgba(120, 40, 0, 0.6),
    0 22px 38px -10px rgba(100, 30, 0, 0.38),
    0 8px 14px -3px rgba(60, 15, 0, 0.22),
    inset 0 2px 0 rgba(255, 200, 150, 0.5),
    inset 0 -4px 8px rgba(80, 15, 0, 0.4);
}

/* Card sizing/positioning — scattered layout */
.dex-card-1 { width: 130px; height: 180px; left: 1%;  top: -20px; z-index: 1; }
.dex-card-2 { width: 160px; height: 220px; left: 14%; top: 95px;  z-index: 2; }
.dex-card-3 { width: 200px; height: 270px; left: 24%; top: -15px; z-index: 4; }
.dex-card-4 { width: 150px; height: 200px; left: 34%; top: 65px;  z-index: 3; }
.dex-card-5 { width: 230px; height: 310px; left: 45%; top: -35px; z-index: 5; }
.dex-card-6 { width: 160px; height: 215px; left: 57%; top: 85px;  z-index: 3; }
.dex-card-7 { width: 175px; height: 240px; left: 69%; top: -20px; z-index: 4; }
.dex-card-8 { width: 130px; height: 175px; left: 84%; top: 70px;  z-index: 2; }

/* Subtitle below */
.dex-subline {
  margin-top: 180px;
  text-align: center;
  z-index: 4;
  position: relative;
}
.dex-subline .dex-arrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dex-ink);
  color: #fafaf7;
  border: none;
  padding: 12px 20px 12px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 24px -8px rgba(0,0,0,0.4), 0 5px 10px -2px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 4px rgba(0,0,0,0.4);
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
  text-decoration: none;
}
.dex-subline .dex-arrow-pill:hover {
  transform: translateY(-2px);
}
.dex-subline .dex-arrow-pill .dex-ar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--dex-orange-1), var(--dex-orange-3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.dex-subline .dex-arrow-pill:hover .dex-ar {
  transform: rotate(45deg);
}
.dex-subline-text {
  margin-top: 22px;
  font-size: 13px;
  color: var(--dex-mute);
  letter-spacing: 0.06em;
}

/* ============ STATS ============ */
.dex-stats {
  padding: 80px 40px 100px;
  position: relative;
  z-index: 5;
  background: radial-gradient(120% 70% at 50% 0%, #f8f3e7 0%, #f2ead6 60%, #e9dec3 100%);
  font-family: "DM Sans", system-ui, sans-serif;
}
.dex-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--dex-ink);
  border-radius: 36px;
  padding: 80px 60px;
  color: #f4edde;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  box-shadow: 0 40px 80px -30px rgba(20, 8, 0, 0.45),
    0 16px 32px -12px rgba(20, 8, 0, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -3px 8px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.dex-stats-inner::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171,53,0,0.35), transparent 65%);
  top: -200px; right: -100px;
  filter: blur(40px);
}
.dex-stats-inner::after {
  content: "";
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,160,96,0.2), transparent 65%);
  bottom: -150px; left: 20%;
  filter: blur(30px);
}
.dex-stats h3 {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.dex-stats h3 em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dex-orange-3), var(--dex-orange-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dex-stat-block {
  position: relative;
  z-index: 1;
}
.dex-stat-block .dex-num {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 4.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.dex-stat-block .dex-num small {
  font-size: 0.42em;
  color: var(--dex-mute);
  font-weight: 500;
}
.dex-stat-block .dex-lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dex-mute);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Responsive */
@media (max-width: 1100px) {
  .dex-stats-inner { grid-template-columns: 1fr 1fr; padding: 50px 30px; }
}
@media (max-width: 750px) {
  .dex-hero { padding: 100px 16px 40px; }
  .dex-small-team { font-size: 10vw; }
  .dex-big-results { font-size: 24vw; }
  .dex-cards-row { height: 220px; top: 52%; }
  .dex-card-1 { width: 80px;  height: 110px; left: 0%;  top: 20px; }
  .dex-card-2 { width: 90px;  height: 130px; left: 10%; top: 35px; }
  .dex-card-3 { width: 110px; height: 150px; left: 22%; top: 15px; }
  .dex-card-4 { width: 90px;  height: 120px; left: 36%; top: 50px; }
  .dex-card-5 { width: 130px; height: 180px; left: 46%; top: 0;    }
  .dex-card-6 { width: 95px;  height: 130px; left: 62%; top: 40px; }
  .dex-card-7 { width: 100px; height: 140px; left: 74%; top: 20px; }
  .dex-card-8 { width: 80px;  height: 110px; left: 87%; top: 35px; }
  .dex-subline { margin-top: 120px; }
  .dex-stats { padding: 20px 20px 60px; }
  .dex-stats-inner { grid-template-columns: 1fr 1fr; padding: 40px 24px; gap: 24px; }
}
