/* ============================================================
   ELinfo — design system (anthracite + multi-accent)
   Hand-written, no build step. cPanel-friendly.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #14181f;
  --surface: #191f28;
  --elev: #1e2632;
  --card: #1c232e;
  --card-hover: #232c39;

  /* text */
  --text: #eef1f6;
  --text-2: #b4bcca;
  --muted: #9ba3b2;
  --soft: #8c94a4;

  /* borders */
  --border: #2a3340;
  --border-strong: #3a4655;

  /* accents */
  --blue: #4d86f0;
  --blue-strong: #3a6fd6;
  --teal: #1fc8a6;
  --orange: #f0993f;
  --violet: #9b87f5;
  --accent: var(--blue);

  --maxw: 1200px;
  --radius: 14px;

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* accent contexts — set --acc + --acc-rgb, components read them */
.acc-blue   { --acc: var(--blue);   --acc-rgb: 77,134,240; }
.acc-teal   { --acc: var(--teal);   --acc-rgb: 31,200,166; }
.acc-orange { --acc: var(--orange); --acc-rgb: 240,153,63; }
.acc-violet { --acc: var(--violet); --acc-rgb: 155,135,245; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(77,134,240,0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }
@media (max-width: 700px) { .section { padding: 4rem 0; } }
.section--surface { background: var(--surface); }
.section--bordered { border-top: 1px solid var(--border); }

/* ---------- typography ---------- */
.h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; }
.h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 1.125rem; color: var(--text-2); line-height: 1.7; max-width: 42rem; }
.muted { color: var(--muted); }
.body-text { color: var(--muted); line-height: 1.75; }
.gradient-text {
  background: linear-gradient(110deg, var(--blue), var(--teal) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted);
}
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: var(--acc, var(--accent)); opacity: 0.8; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue-strong); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-secondary { border-color: var(--border-strong); color: var(--text-2); }
.btn-secondary:hover { color: var(--text); border-color: var(--muted); transform: translateY(-1px); }

/* ---------- cards / panels ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.card--hover:hover { border-color: var(--border-strong); background: var(--card-hover); transform: translateY(-3px); }

/* hairline-divided grid (1px gaps reveal the border colour) */
.grid-divided {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.grid-divided > * { background: var(--card); transition: background 0.3s; }
.grid-divided > *:hover { background: var(--card-hover); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* icon tile */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 11px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.015);
  color: var(--acc, var(--text-2));
}
.icon-tile svg { width: 22px; height: 22px; }

/* feature cell */
.feature { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; height: 100%; }
.feature__head { display: flex; align-items: center; gap: 0.65rem; }
.feature__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc, var(--accent)); flex-shrink: 0; }
.feature p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.feature--top { position: relative; overflow: hidden; }
.feature--top::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--acc, var(--accent)); opacity: 0.7; transition: opacity 0.3s;
}
.feature--top:hover::before { opacity: 1; }

/* section heading */
.section-head { display: flex; flex-direction: column; gap: 1.25rem; }
.section-head--center { align-items: center; text-align: center; }
.section-head .h2 { max-width: 40rem; }
.section-head .lead { max-width: 42rem; }
.section-head--center .lead { margin: 0 auto; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 0.4rem 0.9rem;
  font-size: 13px; color: var(--text-2); transition: all 0.2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc, var(--accent)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled { background: rgba(20,24,31,0.85); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.logo { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo .el { color: var(--text); } .logo .info { color: var(--blue); }
.nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav__links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--blue-strong); color: #fff; padding: 0.5rem 1rem; border-radius: 9px;
  font-size: 0.875rem; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.4); transition: background 0.2s;
}
.nav__cta:hover { background: var(--blue); }
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,0.02); cursor: pointer; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 4px auto; transition: 0.3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav__mobile { display: none; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile {
    position: fixed; inset: 64px 0 auto 0; display: block;
    background: rgba(20,24,31,0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.3s;
  }
  .nav.is-open .nav__mobile { transform: none; opacity: 1; visibility: visible; }
  .nav__mobile ul { list-style: none; padding: 1.25rem 1.5rem; }
  .nav__mobile a { display: block; padding: 0.9rem 0; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--border); }
  .nav__mobile .nav__cta { display: inline-block; margin-top: 1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--elev), var(--surface) 45%, var(--bg)); }
.hero__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.5rem 0; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted);
}
.hero__meta .dot { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero__meta .dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero__meta .stds { display: flex; gap: 0.75rem; }
.hero__meta .stds .b { color: var(--blue); } .hero__meta .stds .t { color: var(--teal); } .hero__meta .stds .o { color: var(--orange); }
.hero__grid { flex: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; padding: 3.5rem 0; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; } .hero__panel { display: none; } }
.hero h1 .dot-b { color: var(--blue); } .hero h1 .dot-t { color: var(--teal); } .hero h1 .dot-o { color: var(--orange); }
.hero__verbs button {
  display: block; background: none; border: none; padding: 0 0 0.35rem; cursor: pointer; text-align: left;
  font: inherit; color: var(--text); position: relative;
}
.hero__verbs .ul { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; border-radius: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.hero__verbs button.is-active .ul, .hero__verbs button:hover .ul { transform: scaleX(1); }
.hero__term { font-family: var(--mono); font-size: 0.95rem; color: var(--text-2); display: flex; align-items: center; min-height: 1.6em; }
.hero__term .prompt { color: var(--acc, var(--blue)); margin-right: 0.5rem; }
.hero__term .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--acc, var(--blue)); animation: caret 1s step-end infinite; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* hero stat panel */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel__edge { height: 3px; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.panel__head { display: flex; align-items: center; gap: 0.65rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }
.panel__head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.panel__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--border); }
.panel__row:last-child { border-bottom: none; }
.panel__row .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.panel__row .sub { font-size: 0.85rem; color: var(--soft); margin-top: 0.35rem; }
.panel__row .v { font-weight: 600; white-space: nowrap; text-align: right; }
.panel__row.b .v { color: var(--blue); } .panel__row.t .v { color: var(--teal); } .panel__row.o .v { color: var(--orange); }

/* ---------- datasheet / numbered list ---------- */
.sheet { overflow: hidden; }
.sheet__head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }
.sheet__row { display: flex; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); align-items: flex-start; transition: background 0.2s; }
.sheet__row:last-child { border-bottom: none; }
.sheet__row:hover { background: rgba(255,255,255,0.015); }
.sheet__num { font-family: var(--mono); font-size: 11px; color: var(--acc, var(--blue)); padding-top: 2px; }
.sheet__row .t { font-size: 0.9rem; font-weight: 500; }
.sheet__row .d { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* spec list */
.spec { overflow: hidden; }
.spec__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.spec__row:last-child { border-bottom: none; }
.spec__row dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.spec__row dd { font-size: 0.875rem; color: var(--text-2); text-align: right; }

/* checklist */
.check-list { display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--text-2); }
.check-list svg { width: 17px; height: 17px; color: var(--acc, var(--teal)); flex-shrink: 0; margin-top: 2px; }

/* pillars list */
.pillars { display: flex; flex-direction: column; gap: 0.7rem; }
.pillars li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--text-2); }
.pillars svg { width: 16px; height: 16px; color: var(--acc, var(--blue)); flex-shrink: 0; }

/* ---------- forms ---------- */
.field { width: 100%; border: 1px solid var(--border); background: rgba(0,0,0,0.18); border-radius: 9px; padding: 0.65rem 0.9rem; color: var(--text); font: inherit; font-size: 0.9rem; transition: border-color 0.2s; }
.field::placeholder { color: var(--soft); }
.field:focus { outline: none; border-color: var(--accent); }
.label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.45rem; }
textarea.field { resize: vertical; min-height: 120px; }
.form-status { min-height: 1.2em; font-size: 13px; color: var(--muted); }

/* ---------- CTA block ---------- */
.cta-block { position: relative; overflow: hidden; border: 1px solid var(--border); background: var(--card); border-radius: 18px; padding: 4rem 1.5rem; text-align: center; }
@media (min-width: 700px) { .cta-block { padding: 4.5rem 4rem; } }
.cta-block::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--acc, var(--blue)), transparent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 4rem 0; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer h3 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--soft); margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer a:hover { color: var(--blue); }
.footer__bar { border-top: 1px solid var(--border); padding: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-family: var(--mono); font-size: 11px; color: var(--soft); }

/* product page hero */
.phero { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--elev), var(--bg)); }
.phero__inner { max-width: var(--maxw); margin: 0 auto; padding: 8.5rem 1.5rem 4rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; transition: color 0.2s; }
.back-link:hover { color: var(--text); }
.tech-badge { display: inline-flex; align-items: center; border: 1px solid var(--border); background: var(--card); border-radius: 7px; padding: 0.25rem 0.6rem; font-family: var(--mono); font-size: 11px; color: var(--acc, var(--blue)); }
.pillar-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 7px; font-family: var(--mono); font-size: 11px; color: var(--acc, var(--blue)); }

/* utilities */
.stack { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.flex { display: flex; } .wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.row-gap { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }

/* staggered "appearing text" entrance for the hero headline lines */
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); filter: blur(7px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero__verbs button { animation: hero-rise 0.85s cubic-bezier(0.22,1,0.36,1) backwards; }
.hero__verbs button:nth-child(1) { animation-delay: 0.15s; }
.hero__verbs button:nth-child(2) { animation-delay: 0.32s; }
.hero__verbs button:nth-child(3) { animation-delay: 0.49s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
