/* =========================================================================
   EasyStack — Energy customer stories page (solution-energy.html)
   Builds on the global design tokens defined in css/main.css (:root --es-*).
   Reuses the site header / footer / hero / card / button language, so the
   page reads as part of the same family as solution-finance / solution-telecom.
   Page-scoped classes use the `sen-` prefix to avoid clashing with other files.
   ========================================================================= */

/* ------------------------------ HERO (dark) ------------------------------ */
.sen-hero {
  --es-text: #eef0fb; --es-text-dim: #aab0d0; --es-text-mute: #7c82a6;
  --es-primary-ink: #a5b4fc; --es-accent-ink: #22d3ee;
  --es-border: rgba(255, 255, 255, 0.08); --es-border-strong: rgba(255, 255, 255, 0.16);
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--es-text);
  background:
    radial-gradient(85% 70% at 88% -8%, rgba(99, 102, 241, 0.32), transparent 60%),
    radial-gradient(70% 60% at -8% 108%, rgba(34, 211, 238, 0.16), transparent 55%),
    linear-gradient(180deg, #05070f 0%, #0c1128 60%, #12193a 100%);
  padding-block: clamp(48px, 6.5vw, 50px) clamp(56px, 7vw, 50px);
}
.sen-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sen-hero__grid {
  position: absolute; inset: -20% -10% auto -10%; height: 130%; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 35%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 35%, #000 15%, transparent 72%);
}
.sen-hero__grid::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(67, 56, 202, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 56, 202, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(67, 56, 202, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 56, 202, 0.14) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 160px 160px, 160px 160px;
}
.sen-hero__grid::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(99, 102, 241, 0.35) 1.5px, transparent 1.5px); background-size: 160px 160px; background-position: 80px 80px; }
.sen-hero__glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.44; }
.sen-hero__glow--1 { width: 520px; height: 520px; top: -180px; left: -140px; background: radial-gradient(circle, rgba(67, 56, 202, 0.42), transparent 70%); animation: es-pulse-glow 9s ease-in-out infinite; }
.sen-hero__glow--2 { width: 420px; height: 420px; bottom: -130px; right: 8%; background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%); animation: es-pulse-glow 11s ease-in-out infinite reverse; }
.sen-hero__glow--3 { width: 360px; height: 360px; top: 6%; right: -110px; background: radial-gradient(circle, rgba(139, 124, 246, 0.26), transparent 70%); animation: es-pulse-glow 13s ease-in-out infinite; }

.sen-hero__inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 60px); align-items: center; }
.sen-hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: clamp(12.5px, 1.4vw, 14px); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--es-primary-ink); margin-bottom: 18px; }
.sen-hero__title { font-size: clamp(32px, 5vw, 58px); line-height: 1.07; letter-spacing: -0.035em; color: #fff; }
.sen-hero__lead { margin-top: 24px; max-width: 640px; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.75; color: var(--es-text-dim); }
.sen-hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.sen-hero__aside { position: relative; }
.sen-hero__media { position: relative; margin: 0; max-width: 520px; margin-inline: auto; }
.sen-hero__media img { display: block; width: 100%; height: auto; filter: saturate(1.05) brightness(1.02); }
.sen-hero__media::before {
  content: ''; position: absolute; inset: -18px; border-radius: 30px; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(99, 102, 241, 0.28), transparent 70%);
  filter: blur(30px); z-index: -1;
}

/* ------------------------------ GENERIC SECTION ------------------------------ */
.sen-sec { position: relative; padding-block: clamp(56px, 8vw, 100px); }

/* ------------------------------ KEY FIGURES ------------------------------ */
.sen-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.sen-stat {
  position: relative; overflow: hidden; padding: 24px 24px 22px; border-radius: 18px;
  background: var(--es-surface); border: 1px solid var(--es-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sen-stat::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.sen-stat:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(15, 18, 43, 0.09); border-color: rgba(79, 70, 229, 0.3); }
.sen-stat:hover::before { transform: scaleX(1); }
.sen-stat__value { display: block; font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: var(--es-primary-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sen-stat__label { display: block; margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--es-text-dim); }

/* ------------------------------ CUSTOMER CASES ------------------------------ */
.sen-cases__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sen-case {
  padding: clamp(24px, 3.5vw, 40px); border-radius: 22px;
  background: var(--es-surface); border: 1px solid var(--es-border);
  box-shadow: 0 20px 50px rgba(15, 18, 43, 0.06);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sen-case:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(15, 18, 43, 0.1); border-color: rgba(79, 70, 229, 0.3); }
.sen-case__title { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--es-text); letter-spacing: -0.02em; }
.sen-case__lead { margin: 0; font-size: 15px; line-height: 1.75; color: var(--es-text-dim); }
.sen-case__lead strong { color: var(--es-text); font-weight: 700; }
.sen-case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sen-case__tag {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(79, 70, 229, 0.08); color: var(--es-primary-ink); border: 1px solid rgba(79, 70, 229, 0.2);
}

/* ------------------------------ RESPONSIVE ------------------------------ */
@media (max-width: 992px) {
  .sen-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sen-hero__aside { order: -1; }
  .sen-hero__media { max-width: 420px; }
  .sen-stats { grid-template-columns: minmax(0, 1fr); }
  .sen-cases__grid { grid-template-columns: minmax(0, 1fr); }
}
