/* ============================================================
   LEC ENERsim — landing page
   Professional engineering-SaaS aesthetic. Vanilla CSS, mobile-first.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family: "Sora"; src: url("../fonts/sora-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --ink: #0C2230;          /* scrim base under photo/video sections (hero, product, cta) */
  --ink-2-rgb: 8, 24, 35;  /* rgb components of --ink-2, for rgba() scrims */
  --ink-2: rgb(var(--ink-2-rgb));  /* #081823 — darker scrim base */
  --ink-card: #12303f;     /* dark card surface */
  --nav-bg: rgb(20, 56, 80);       /* solid nav-bar background */
  --light: #FFFFFF;        /* primary light bg */
  --light-2: #F4F6F8;      /* cool light grey bg */
  --line: #E2E8EC;         /* light borders */
  --line-dark: rgba(255,255,255,0.10);   /* borders over dark photo scrims */

  /* Flat-color sections with no photo of their own (pillars, partners, footer)
     use this soft pale surface instead of a flat near-black fill, which read
     as gloomy — see .section--soft below. */
  --soft: #EAF3F6;         /* pale cool blue-teal — pillars / partners */
  --soft-2: #DCEAEF;       /* a touch deeper — footer */
  --line-soft: rgba(12,34,48,0.10);      /* borders over --soft surfaces */

  /* Brand */
  --brand: #1C6E8C;        /* primary blue-teal (matches product) */
  --brand-deep: #14506B;
  --brand-light: #6FB4C7;  /* lighter teal accent on dark surfaces */
  --brand-soft: #E7F0F3;
  --accent: #3E9C7E;       /* restrained green, used sparingly */
  --danger: #C94F4F;       /* form error text */

  /* Text */
  --tx-light: #E8EEF2;
  --tx-light-dim: rgba(232,238,242,0.75);
  --tx-dark: #0C2230;
  --tx-dark-dim: #556370;

  /* Scale — consistent spacing rhythm */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --sp-section: clamp(80px, 10vw, 140px);   /* vertical section padding */
  --sp-head: clamp(40px, 5vw, 64px);        /* head → body gap */
  --sp-gap: clamp(24px, 4vw, 56px);         /* grid gaps */
  --sp-stack: 1.25rem;                      /* default vertical rhythm */

  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -32px rgba(12, 34, 48, 0.35);
  --shadow-dark: 0 30px 70px -34px rgba(0, 0, 0, 0.6);

  --font-display: "Sora", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--light);
  color: var(--tx-dark);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--sp-section); }
.section--light { background: var(--light); color: var(--tx-dark); }
.section--light.alt { background: var(--light-2); }
.section--dark { background: var(--ink); color: var(--tx-light); }
/* Flat-color sections with no photo of their own (pillars, partners) — swap
   the near-black fill for a soft light surface instead. Add alongside
   .section--dark so photo-backed sections (hero/product/cta) are untouched. */
.section--dark.section--soft { background: var(--soft); color: var(--tx-dark); }

.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.h-section { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.06; font-weight: 600; }

.eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 0.9rem;
}
.section--dark .eyebrow { color: var(--brand-light); }
.section--soft .eyebrow { color: var(--brand); }
.section__head { max-width: 760px; margin-bottom: var(--sp-head); }
.section__head .h-section { margin-bottom: 1rem; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--tx-dark-dim); line-height: 1.7; }
.section--dark .lead { color: var(--tx-light-dim); }
.section--soft .lead { color: var(--tx-dark-dim); }

/* ---------- Pills (subtle, monochrome) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.6rem; }
.pill {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 6px 13px; border-radius: 6px;
  color: var(--tx-light); background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 13px 22px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn--glass { background: rgba(255,255,255,0.06); color: var(--tx-light); border-color: rgba(255,255,255,0.22); }
.btn--glass:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.section--light .btn--glass { background: #fff; color: var(--tx-dark); border-color: var(--line); }
.section--light .btn--glass:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line-dark);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav__logo { display: inline-flex; align-items: center; gap: 7px; font-size: 1.26rem; color: var(--tx-light); font-family: var(--font-display); }
.nav__logo-mark { display: inline-flex; }
.footer .nav__logo { color: var(--tx-dark); }
.nav__logo-text strong { font-weight: 700; }
.nav__logo-text { font-weight: 700; letter-spacing: 0.01em; }
.nav__links { display: none; align-items: center; margin-left: auto; gap: 26px; }
.nav__links a { font-size: 0.92rem; color: var(--tx-light-dim); transition: color 0.2s; }
.nav__links a:hover { color: var(--tx-light); }
.nav__cta { display: none; }

/* ---------- Language switch ---------- */
.nav__lang {
  display: none; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--tx-light-dim);
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 6px 12px; line-height: 1;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav__lang:hover { color: var(--tx-light); border-color: var(--tx-light-dim); background: rgba(255,255,255,0.06); }
.nav__lang svg { width: 15px; height: 15px; flex: none; }
.nav__mobile-lang { color: var(--tx-light) !important; }
.nav__mobile-lang svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* ---------- Nav dropdown (hover/focus reveal) ---------- */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute; top: 100%; left: 50%;
  margin-top: 18px;
  min-width: 250px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow-dark);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav__item::after {
  content: "";
  position: absolute; top: 100%; left: 0; right: 0; height: 18px;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  display: block; padding: 10px 12px; border-radius: 7px;
  font-size: 0.88rem; color: var(--tx-light-dim); white-space: nowrap;
}
.nav__dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--tx-light); }
.nav__mobile-sub { padding-left: 22px !important; font-size: 0.92rem; color: var(--tx-light-dim) !important; }
.nav__burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--tx-light); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  position: absolute; top: 72px; left: 0; right: 0;
  background: rgba(var(--ink-2-rgb), 0.98); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: grid; gap: 4px; padding: 16px var(--pad) 26px;
  border-bottom: 1px solid var(--line-dark);
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav.is-open .nav__mobile { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav__mobile a { padding: 12px 4px; font-size: 1.05rem; color: var(--tx-light); border-bottom: 1px solid var(--line-dark); }
.nav__mobile .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
@media (min-width: 920px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__lang { display: inline-flex; }
  .nav__burger { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video, .hero__media img, .cta__video, .cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--ink-2-rgb),0.37) 0%, rgba(var(--ink-2-rgb),0.24) 45%, rgba(var(--ink-2-rgb),0.45) 100%),
    linear-gradient(90deg, rgba(var(--ink-2-rgb),0.42) 0%, rgba(var(--ink-2-rgb),0.07) 70%);
}
.hero__content { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 110px; max-width: 920px; }
.hero__title { font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; max-width: 18ch; }
.hero__sub { max-width: 56ch; margin: 1.5rem 0 2.1rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--tx-light-dim); }
.hero__sub strong { color: var(--tx-light); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tx-light-dim); }
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(var(--brand), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.25; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; gap: var(--sp-gap); align-items: center; }
.about__text .lead { margin: 1.2rem 0 1.6rem; }
.about__list { display: grid; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--tx-dark); }
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--brand); flex: none; }
.about__media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.about-lec__logo {
  margin: 0; padding: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
}
.about-lec__logo img { width: 100%; max-width: 300px; height: auto; display: block; }
@media (min-width: 880px) { .about__grid { grid-template-columns: 1.05fr 1fr; } }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars__head { max-width: 720px; margin-bottom: var(--sp-head); }
.pillars__intro { color: var(--tx-light-dim); margin-top: 1rem; }
.section--soft .pillars__intro { color: var(--tx-dark-dim); }
.pillars__track { display: grid; gap: var(--sp-section); }
.pillar { display: grid; gap: var(--sp-gap); align-items: center; }
.pillar__media { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.section--soft .pillar__media { border-color: var(--line-soft); }
.pillar__media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.pillar__tag { position: absolute; top: 14px; left: 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 6px; background: rgba(var(--ink-2-rgb),0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line-dark); color: var(--tx-light); }
.pillar__num { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--brand); letter-spacing: 0.06em; }
.section--dark .pillar__num { color: var(--brand-light); }
.section--soft .pillar__num { color: var(--brand); }
.pillar__text h3 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0.5rem 0 0.8rem; font-weight: 600; letter-spacing: -0.02em; }
.pillar__text p { color: var(--tx-light-dim); max-width: 46ch; }
.section--soft .pillar__text p { color: var(--tx-dark-dim); }
@media (min-width: 880px) {
  .pillar { grid-template-columns: 1.2fr 1fr; }
  .pillar:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
  .pillar:nth-child(even) .pillar__media { order: 2; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  background: var(--light); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.section--light.alt .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9D6DD; }
.card__icon { width: 42px; height: 42px; border-radius: 9px; display: grid; place-content: center; margin-bottom: 16px; background: var(--brand-soft); color: var(--brand); }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; color: var(--tx-dark); font-weight: 600; }
.card p { color: var(--tx-dark-dim); margin: 0; font-size: 0.98rem; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   PRODUCT (dashboard mockup)
   ============================================================ */
.product__head { max-width: 980px; margin-bottom: clamp(24px, 3vw, 36px); }
.product__head .lead { margin-top: 1.2rem; }
.product__grid { display: grid; gap: var(--sp-gap); align-items: center; }
.product__list { display: grid; gap: 0; }
.product__list li {
  display: flex; gap: 14px; align-items: flex-start; color: var(--tx-light-dim);
  padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.96rem; line-height: 1.5;
}
.product__list li:first-child { padding-top: 0; }
.product__list li:last-child { border-bottom: none; padding-bottom: 0; }
.product__list-icon {
  flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-content: center;
  background: rgba(28,110,140,0.25); color: var(--brand-light);
}
@media (min-width: 960px) { .product__grid { grid-template-columns: 0.78fr 1.22fr; } }

/* Product screenshot slideshow */
.dash-slides {
  background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--tx-dark);
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-dark);
}
.dash-slides__frame { position: relative; aspect-ratio: 2.05 / 1; background: #fff; }
.dash-slides__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); }
.dash-slides__slide.is-active { opacity: 1; }
.dash-slides__slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.dash-slides__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-content: center; background: rgba(12,34,48,0.45); color: #fff;
  opacity: 0; transition: opacity 0.2s, background 0.2s, transform 0.2s;
}
.dash-slides__arrow svg { width: 18px; height: 18px; }
.dash-slides__arrow--prev { left: 12px; }
.dash-slides__arrow--next { right: 12px; }
.dash-slides__arrow:hover { background: rgba(12,34,48,0.72); }
.dash-slides__frame:hover .dash-slides__arrow,
.dash-slides__arrow:focus-visible { opacity: 1; }
@media (hover: none) { .dash-slides__arrow { opacity: 1; } }
.dash-slides__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--light-2); }
.dash-slides__caption { font-weight: 600; color: var(--tx-dark); font-size: 12.5px; }
.dash-slides__dots { display: flex; gap: 6px; flex: none; }
.dash-slides__dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: #D4DCE1;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.dash-slides__dots button.is-active { background: var(--brand); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .dash-slides__slide { transition: none; } }

/* ============================================================
   FEATURES (stats)
   ============================================================ */
.features { position: relative; overflow: hidden; }
.features__bg { position: absolute; inset: -8% 0; z-index: 0; }
.features__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.features__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--ink-2-rgb),0.41), rgba(var(--ink-2-rgb),0.48)); }
.features__inner { position: relative; z-index: 2; }
.features__head { max-width: 720px; margin-bottom: var(--sp-head); }
.features__lead { color: var(--tx-light-dim); margin-top: 1rem; }
.features__label { margin-top: clamp(32px, 5vw, 56px); margin-bottom: 1.2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.24); border-radius: var(--radius-sm); background: rgba(255,255,255,0.13);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.feature:hover { background: rgba(255,255,255,0.19); border-color: rgba(255,255,255,0.36); transform: translateY(-2px); }
.feature__icon {
  flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-content: center;
  background: rgba(28,110,140,0.25); color: var(--brand-light);
}
.feature__icon svg { width: 18px; height: 18px; }
.feature__label { font-size: 0.88rem; color: var(--tx-light-dim); line-height: 1.35; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   EXAMPLE SYSTEMS
   ============================================================ */
.syslist { display: grid; gap: var(--sp-section); }
.sysrow { display: grid; gap: var(--sp-gap); align-items: center; }
.sysrow__media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sysrow__media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform 0.6s var(--ease); }
.sysrow__media--top img { object-position: top; }
.sysrow:hover .sysrow__media img { transform: scale(1.03); }
.sysrow__index { font-family: var(--font-display); color: var(--brand); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em; }
.sysrow__text h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--tx-dark); margin: 0.4rem 0 0.7rem; font-weight: 600; letter-spacing: -0.02em; }
.sysrow__text p { color: var(--tx-dark-dim); max-width: 46ch; }
.sysrow__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--brand);
}
.sysrow__link span { transition: transform 0.2s var(--ease); }
.sysrow__link:hover { color: var(--brand-deep); }
.sysrow__link:hover span { transform: translateX(4px); }
.sysrow__badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--tx-dark-dim);
  background: var(--light-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 6px;
}
@media (min-width: 820px) {
  .sysrow { grid-template-columns: 1.2fr 1fr; }
  .sysrow--rev { grid-template-columns: 1fr 1.2fr; }
  .sysrow--rev .sysrow__media { order: 2; }
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners__head { text-align: center; max-width: none; margin-bottom: var(--sp-head); }
.partners__head .h-section { color: var(--brand-deep); }
.partners__flip {
  position: relative; perspective: 1800px; cursor: pointer;
  border-radius: var(--radius);
}
.partners__flip-inner {
  position: relative; display: grid;
  transition: transform 0.7s var(--ease);
  transform-style: preserve-3d;
}
.partners__flip.is-flipped .partners__flip-inner,
.partners__flip:hover .partners__flip-inner,
.partners__flip:focus-within .partners__flip-inner {
  transform: rotateY(180deg);
}
.partners__face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 56px) clamp(24px, 6vw, 56px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center;
}
.partners__face--front { background: var(--light); border: 1px solid var(--line); }
.partners__logo { height: clamp(44px, 6.5vw, 58px); width: auto; }
.partners__face--front p { max-width: 84ch; margin: 0; font-size: 0.8rem; line-height: 1.7; color: var(--tx-dark-dim); }
.partners__face--back {
  background: #1F5C33; color: #fff;
  transform: rotateY(180deg);
}
.partners__face--back h3 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.partners__face--back p { max-width: 56ch; margin: 0; font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.82); }
.partners__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 999px;
  padding: 11px 24px; transition: background 0.2s, border-color 0.2s;
}
.partners__cta:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .partners__flip-inner { transition: none; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact__grid { display: grid; gap: var(--sp-gap); align-items: start; }
.contact-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--tx-dark); }
.form-field .req { color: var(--brand); }
.form-field input, .form-field textarea {
  font: inherit; font-size: 0.96rem; color: var(--tx-dark); width: 100%;
  background: var(--light); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { resize: vertical; min-height: 130px; font-family: var(--font-body); }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.contact-form__submit { justify-self: start; }
.contact-form__status { font-size: 0.9rem; margin: 0; min-height: 1.2em; }
.contact-form__status[data-state="success"] { color: var(--accent); }
.contact-form__status[data-state="error"] { color: var(--danger); }
.contact-info {
  background: var(--light-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.contact-info h3 { font-size: 1.05rem; font-family: var(--font-display); margin-bottom: 6px; }
.contact-info p { color: var(--tx-dark-dim); margin: 0 0 18px; font-size: 0.94rem; }
.contact-info__item { display: block; color: var(--tx-dark); font-weight: 600; margin-bottom: 10px; font-size: 0.94rem; }
.contact-info__item span { display: block; font-weight: 500; color: var(--tx-dark-dim); font-size: 0.82rem; margin-bottom: 2px; }
.contact-info a.contact-info__item { color: var(--brand); }
.contact-info a.contact-info__item:hover { color: var(--brand-deep); }
.contact-info__divider { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.3fr 1fr; } }

/* ============================================================
   DEMO CTA
   ============================================================ */
.cta { position: relative; overflow: hidden; padding-block: clamp(96px, 13vw, 180px); }
.cta__media { position: absolute; inset: 0; z-index: 0; }
/* .cta__video / .cta__media img share the .hero__video cover rule above */
.cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--ink-2-rgb),0.39), rgba(var(--ink-2-rgb),0.47)); }
.cta__inner { position: relative; z-index: 2; max-width: 720px; }
.cta__title { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 600; letter-spacing: -0.025em; }
.cta__sub { max-width: 52ch; margin: 1.1rem 0 1.9rem; color: var(--tx-light-dim); font-size: 1.12rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   AI-GENERATED IMAGE CREDIT (whisper)
   Unobtrusive provenance mark on AI-generated imagery — mood backgrounds
   (hero, platform, CTA), the "Why ENERsim" pillars, and use-case photos.
   Backs up the blanket imprint disclosure. CSS-only via ::after so no markup
   is needed and it localises off <html lang>. NB: in the platform section only
   the faint background image is AI — the app screenshots on top are real.
   ============================================================ */
.hero__media::after,
.features::after,
.cta__media::after,
.pillar__media::after,
.sysrow__media::after {
  content: "AI-generated";
  position: absolute; z-index: 5;
  bottom: 12px; right: 14px;
  color: rgba(255,255,255,0.5);
  font: 500 7.5pt/1 var(--font-body);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  pointer-events: none;
}
/* German pages */
:lang(de) .hero__media::after,
:lang(de) .features::after,
:lang(de) .cta__media::after,
:lang(de) .pillar__media::after,
:lang(de) .sysrow__media::after {
  content: "KI-generiert";
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: clamp(56px, 8vw, 88px) 30px; background: var(--soft-2); color: var(--tx-dark); }
.footer__grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
.footer__tag { color: var(--tx-dark-dim); margin: 13px 0 0; max-width: 30ch; }
.footer__brand .nav__logo { font-size: 1.65rem; gap: 9px; }
.footer__lec-logo { height: 46px; width: auto; display: block; margin-bottom: 14px; }
.footer__col h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.footer__col a, .footer__col p { display: block; color: var(--tx-dark-dim); margin: 0 0 9px; transition: color 0.2s; font-size: 0.94rem; }
.footer__col a:hover { color: var(--tx-dark); }
.footer__bar {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 0.84rem; color: var(--tx-dark-dim);
}
.footer__legal a { margin-left: 18px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Keyboard focus visibility ---------- */
/* Applies to links, buttons and custom-focusable widgets (e.g. the partners
   flip card). Form inputs keep their own :focus box-shadow ring below. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

/* ============================================================
   REVEAL ANIMATIONS (JS adds .is-in)
   ============================================================ */
/* will-change is applied transiently by js/main.js just before each element
   animates and cleared afterwards, rather than left on permanently. */
[data-reveal], [data-reveal-lines] .line, [data-reveal-stagger] > * {
  opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in, [data-reveal-lines].is-in .line, [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-in > * { transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal-lines] .line { display: block; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-lines] .line, [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  .hero__scroll-line { animation: none; }
}
