/* ═══════════════════════════════════════════════════════════════
   TECHNOLOGIKI × ENERCUP  —  sub-landing page (enercup.html)
   Scoped to body[data-page="enercup"] so nothing here leaks into
   the rest of the site. Loaded after main.css; reuses its fonts,
   buttons and nav. The palette is lifted straight from the homepage
   banner (.pb-enercup): near-black ground, one teal accent.

   The page stays on its dark ground in both themes on purpose — it
   is the banner, opened up. The footer follows the site theme.
   ═══════════════════════════════════════════════════════════════ */

body[data-page="enercup"] {
  --ec-bg:     #0b0f13;
  --ec-bg-2:   #11171d;
  --ec-teal:   #55efe0;
  --ec-teal-d: #24c9bb;
  --ec-line:   rgba(255,255,255,.08);
  --ec-line-2: rgba(255,255,255,.14);
  --ec-dim:    rgba(226,232,240,.66);
  --ec-shell:  min(1120px, 100% - 3rem);
  background: var(--ec-bg);
}

.ec-shell { width: var(--ec-shell); margin-inline: auto; }
.ec-sec { position: relative; padding: clamp(4rem, 7vw, 6.5rem) 0; background: var(--ec-bg); color: #fff; }
.ec-sec + .ec-sec { border-top: 1px solid var(--ec-line); }

.ec-kicker {
  display: inline-block; margin: 0 0 1rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ec-teal);
}

.ec-h2 {
  margin: 0;
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -.025em; max-width: 22ch; text-wrap: balance;
}
.ec-sub { margin: .9rem 0 0; max-width: 52ch; font-size: 1.02rem; line-height: 1.7; color: var(--ec-dim); text-wrap: pretty; }

/* ─── buttons: the teal one is the "go to enercup.com" action ─── */
.ec-btn-teal {
  background: var(--ec-teal) !important; color: #06201d !important; border-color: var(--ec-teal) !important;
}
.ec-btn-teal:hover, .ec-btn-teal:focus-visible { background: #7cf5e9 !important; transform: translateY(-3px); }
.ec-btn-teal::before { display: none !important; }
.ec-btn-teal i { font-style: normal; display: inline-block; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.ec-btn-teal:hover i { transform: translate(2px, -2px); }
.ec-btn-ghost {
  background: transparent !important; color: #fff !important;
  border: 1px solid var(--ec-line-2) !important;
}
.ec-btn-ghost:hover, .ec-btn-ghost:focus-visible { border-color: rgba(255,255,255,.4) !important; transform: translateY(-3px); }
.ec-btn-ghost::before { display: none !important; }

/* ─── HERO ─── */
.ec-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + 4.5rem) 0 4rem;
  background: var(--ec-bg); color: #fff;
}
/* one soft teal glow, top-right, like a status LED in a dark room */
.ec-hero::before {
  content: ''; position: absolute; z-index: -1;
  width: 640px; height: 640px; right: -180px; top: -260px; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(85,239,224,.16), transparent 70%);
  pointer-events: none;
}
.ec-hero-inner { max-width: 760px; }

.ec-lockup {
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
  margin: 0 0 2.2rem;
}
.ec-lockup .ec-word {
  font-family: 'Ubuntu', 'Ubuntu Fallback', 'Inter', sans-serif;
  font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -.02em; white-space: nowrap;
}
.ec-lockup .ec-word em { font-style: normal; color: #6fdfd3; }
.ec-lockup .ec-times { font-weight: 300; font-size: 1.35rem; line-height: 1; opacity: .45; }
.ec-lockup img { display: block; height: 26px; width: auto; }

.ec-hero h1 {
  margin: 0 0 1.1rem;
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 700;
  line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance;
}
.ec-hero-lead { margin: 0; max-width: 48ch; font-size: 1.12rem; line-height: 1.7; color: var(--ec-dim); text-wrap: pretty; }
.ec-hero-lead b { color: #fff; font-weight: 600; }
.ec-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }

/* ─── SPLIT: the software / the installer ─── */
.ec-split {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  margin-top: 4.5rem;
  border: 1px solid var(--ec-line); border-radius: 22px;
  background: var(--ec-bg-2); overflow: hidden;
}
.ec-role { padding: 1.9rem 2rem 2rem; min-width: 0; }
.ec-role-tag {
  display: block; margin-bottom: 1rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ec-dim);
}
.ec-role--soft .ec-role-tag { color: var(--ec-teal); }
.ec-role h3 {
  margin: 0 0 .55rem; display: flex; align-items: center; gap: .6rem;
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
}
.ec-role h3 img { display: block; height: 18px; width: auto; }
.ec-role h3 .ec-word { font-family: 'Ubuntu', 'Ubuntu Fallback', 'Inter', sans-serif; font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }
.ec-role h3 .ec-word em { font-style: normal; color: #6fdfd3; }
.ec-role p { margin: 0; font-size: .97rem; line-height: 1.65; color: var(--ec-dim); text-wrap: pretty; max-width: 34ch; }
.ec-plus {
  display: grid; place-items: center; width: 56px;
  border-inline: 1px solid var(--ec-line);
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-size: 1.6rem; font-weight: 300; color: var(--ec-teal);
}

/* ─── SCREEN: one dashboard, framed ─── */
.ec-screen { padding-top: 0; }
.ec-screen-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--ec-line-2); background: #fff;
  box-shadow: 0 0 0 1px rgba(85,239,224,.08), 0 30px 80px rgba(0,0,0,.55), 0 0 120px rgba(85,239,224,.07);
}
.ec-screen-frame img { display: block; width: 100%; height: auto; }
.ec-screen-cap {
  display: flex; align-items: center; gap: .6rem; margin: 1.1rem 0 0;
  font-size: .82rem; color: var(--ec-dim);
}
.ec-screen-cap::before {
  content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--ec-teal);
  box-shadow: 0 0 0 4px rgba(85,239,224,.18);
}

/* ─── THE CONSTRUCTION ARM ─── */
.ec-arm-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3rem; border-top: 1px solid var(--ec-line);
}
.ec-arm-item { padding: 1.8rem 1.5rem 0 0; }
.ec-arm-item + .ec-arm-item { border-left: 1px solid var(--ec-line); padding-left: 1.5rem; }
.ec-arm-item b {
  display: block; margin-bottom: 1.2rem;
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--ec-teal);
}
.ec-arm-item h3 {
  margin: 0 0 .5rem;
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25;
}
.ec-arm-item p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--ec-dim); text-wrap: pretty; }

/* Three-up variant for the EMS strategies: two rows, so the second
   row gets its own hairline and the first column drops its left rule. */
.ec-arm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-arm-grid--3 .ec-arm-item { padding-bottom: 1.8rem; }
.ec-arm-grid--3 .ec-arm-item:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.ec-arm-grid--3 .ec-arm-item:nth-child(n+4) { border-top: 1px solid var(--ec-line); }

/* ─── CTA ─── */
.ec-cta-box {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--ec-line); border-radius: 22px; background: var(--ec-bg-2);
}
.ec-cta-box .ec-h2 { max-width: 16ch; }
.ec-contact { display: grid; gap: .45rem; justify-items: start; font-size: .98rem; }
.ec-contact span { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ec-dim); margin-bottom: .3rem; }
.ec-contact a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.ec-contact a:hover { border-color: var(--ec-teal); }

/* ─── responsive ─── */
@media (max-width: 900px) {
  .ec-arm-grid, .ec-arm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .ec-arm-item { padding: 1.6rem 1.25rem 1.6rem 0; }
  .ec-arm-item + .ec-arm-item { padding-left: 1.25rem; }
  .ec-arm-grid .ec-arm-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ec-arm-grid .ec-arm-item:nth-child(even) { border-left: 1px solid var(--ec-line); padding-left: 1.25rem; }
  .ec-arm-grid .ec-arm-item:nth-child(n+3) { border-top: 1px solid var(--ec-line); }
  .ec-arm-grid .ec-arm-item:nth-child(-n+2) { border-top: 0; }
  .ec-cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ec-hero { padding-top: calc(var(--nav-h) + 3rem); }
  .ec-split { grid-template-columns: 1fr; margin-top: 3.25rem; }
  .ec-plus { width: auto; height: 48px; border-inline: 0; border-block: 1px solid var(--ec-line); }
  .ec-role { padding: 1.5rem 1.4rem; }
  .ec-lockup .ec-word { font-size: 1.3rem; }
  .ec-lockup img { height: 22px; }
}
@media (max-width: 560px) {
  .ec-arm-grid, .ec-arm-grid--3 { grid-template-columns: 1fr; }
  .ec-arm-grid .ec-arm-item { padding: 1.4rem 0; border-left: 0 !important; border-top: 1px solid var(--ec-line); }
  .ec-arm-grid .ec-arm-item:first-child { border-top: 0; }
  .ec-hero-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-btn-teal, .ec-btn-ghost, .ec-btn-teal i { transition: none; }
}
