/* ============================================================
   ElectricHome v2 — design tokens
   ============================================================ */
:root {
  --bg:            #0b0e11;
  --surface:       #1e2329;
  --surface-2:     #2b3139;
  --border:        #2b3139;

  --text:          #eaecef;
  --text-muted:    #929aa5;
  --text-dim:      #707a8a;
  --text-strong:   #ffffff;

  --accent:        #2990ff;
  --accent-hover:  #69b1ff;
  --on-accent:     #181a20;
  --success:       #0ecb81;

  --maxw:          1280px;
  --gutter:        clamp(16px, 4vw, 40px);
  --radius:        12px;
  --radius-sm:     6px;

  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img, svg { display: block; max-width: 100%; }

::placeholder { color: var(--text-dim); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.section-title {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  color: var(--text-strong);
}

.section-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 32px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 260ms ease, color 200ms ease;
}

.btn--sm  { height: 40px; padding: 0 24px; }
.btn--lg  { height: 48px; }
.btn--pill { border-radius: 9999px; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(105, 177, 255, 0.6), 0 0 18px rgba(41, 144, 255, 0.5);
}

.btn--surface {
  background: var(--surface);
  color: var(--text-strong);
}
.btn--surface:hover {
  background: var(--surface-2);
  color: var(--text-strong);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-strong);
}
.brand:hover { color: var(--text-strong); }
.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
  transform: translateY(1px);
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.nav__link:hover { color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero { background: var(--bg); }
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 16px;
  color: var(--text-strong);
}
.hero__title span { display: block; }
.hero__title-accent { color: var(--accent); }

.hero__lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__art {
  display: flex;
  justify-content: center;
}
.hero__logo {
  width: min(300px, 100%);
  height: auto;
  color: var(--accent);
  cursor: pointer;
  filter: drop-shadow(0 0 0 rgba(41, 144, 255, 0));
  transition: filter 340ms ease, color 340ms ease;
}
.hero__logo:hover {
  color: var(--accent-hover);
  filter:
    drop-shadow(0 0 4px rgba(105, 177, 255, 0.95))
    drop-shadow(0 0 18px rgba(41, 144, 255, 0.7))
    drop-shadow(0 0 44px rgba(41, 144, 255, 0.45));
}

/* ============================================================
   Services
   ============================================================ */
.services {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.services__texture,
.services__fade,
.services__glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.services__texture {
  z-index: 0;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.045) 0 3px, rgba(255,255,255,0) 3px 6px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.035) 0 3px, rgba(255,255,255,0) 3px 6px),
    repeating-linear-gradient(45deg,  rgba(0,0,0,0.5) 0 8px,  rgba(0,0,0,0) 8px 16px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.45) 0 8px, rgba(0,0,0,0) 8px 16px);
  background-size: 6px 6px, 6px 6px, 16px 16px, 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 18%, rgba(0,0,0,1) 82%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 18%, rgba(0,0,0,1) 82%, rgba(0,0,0,0) 100%);
}
.services__fade {
  z-index: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11,14,17,0) 22%, rgba(11,14,17,0) 78%, var(--bg) 100%);
}
.services__glows {
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}
.services__glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,144,255,0.55) 0%, rgba(41,144,255,0.22) 38%, rgba(41,144,255,0) 70%);
  filter: blur(14px);
  opacity: 0;
  animation: eh-carbon-glow var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes eh-carbon-glow {
  0%, 100% { opacity: 0;    transform: scale(0.85); }
  8%       { opacity: 0.9;  transform: scale(1.05); }
  22%      { opacity: 0.15; transform: scale(1); }
  30%      { opacity: 0.75; transform: scale(1.1); }
  55%      { opacity: 0;    transform: scale(0.95); }
}

.services__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--gutter);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(41, 144, 255, 0.35),
    0 0 18px rgba(41, 144, 255, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.card__icon {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
}
.card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-strong);
}
.card__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--bg); }
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}
.contact__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px clamp(32px, 6vw, 64px);
  align-items: start;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border-radius: var(--radius);
}
.contact__info-lead { max-width: 42ch; margin-bottom: 24px; }
.section-sub.contact__info-lead { color: var(--text-muted); }
.contact__info .section-title { margin-bottom: 12px; }

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.contact__mail svg { color: currentColor; }

.contact__legal {
  margin: 32px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================================
   Form
   ============================================================ */
.form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Honeypot — kept in the DOM for bots, removed from view and a11y tree. */
.form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.field__input {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field__input--mono { font-family: var(--font-mono); }
.field__textarea {
  height: auto;
  padding: 12px 16px;
  line-height: 1.5;
  resize: vertical;
}
.field__input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 144, 255, 0.16), 0 0 14px rgba(41, 144, 255, 0.3);
}
.form__submit {
  height: 40px;
  padding: 0 24px;
}
.form__submit[disabled] {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}
.form__status {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.form__status--ok  { color: var(--success); }
.form__status--err { color: #ff6b6b; }
.form__status--err a { color: inherit; text-decoration: underline; }

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .services__glow { animation: none; opacity: 0.12; }
}
