/* EVG Analytics — site styles. No external fonts or resources. */

:root {
  --ink: #0d1b2a;
  --ink-2: #16293d;
  --text: #1c2632;
  --muted: #566476;
  --bg: #ffffff;
  --bg-alt: #f3f6f5;
  --line: #e1e7e5;
  --accent: #0e8466;
  --accent-dark: #0a6650;
  --accent-soft: #e2f2ec;
  --glow: #3fd6a9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .06);
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 8px;
}
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span b { color: var(--accent); font-weight: 750; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block; padding: .5em .9em; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .98rem;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-soft); }
.main-nav .nav-cta { background: var(--ink); color: #fff; margin-left: 6px; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { background: var(--accent-dark); color: #fff; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .4em .75em; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: .88rem; letter-spacing: .04em;
  background: #fff;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent-dark); }
.lang-switch svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .lang-switch { margin-left: auto; }
  .js .nav-toggle { display: inline-flex; }
  .main-nav { order: 3; width: 100%; margin: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 4px 0 16px; }
  .main-nav a { display: block; padding: .8em 1em; border-radius: 10px; }
  .main-nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .js .main-nav { display: none; }
  .js .nav-open .main-nav { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 20%, #143a44 0%, transparent 60%), linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #d5e0ea;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: clamp(56px, 9vw, 112px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c3d0dc; max-width: 36em; }
.eyebrow {
  display: inline-block; margin-bottom: 1.1em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dark);
}
.hero .eyebrow { color: var(--glow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-graph { width: 100%; max-width: 520px; justify-self: end; }

.hero-graph .edge { stroke: rgba(160, 200, 220, .28); stroke-width: 1.2; }
.hero-graph .edge.hot { stroke: var(--glow); stroke-opacity: .7; stroke-width: 1.6; }
.hero-graph .node { fill: #2a4a63; stroke: #6f93ad; stroke-width: 1.2; }
.hero-graph .node.hot { fill: var(--glow); stroke: #b6f5e1; }
.hero-graph .pulse { fill: none; stroke: var(--glow); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-out infinite; }
.hero-graph .pulse.d2 { animation-delay: 1.1s; }
.hero-graph .pulse.d3 { animation-delay: 2.2s; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graph { justify-self: center; max-width: 380px; order: -1; }
}

/* Inner-page header */
.page-hero { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); color: #c3d0dc; }
.page-hero .container { padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { color: #fff; max-width: 18em; }
.page-hero .eyebrow { color: var(--glow); }
.page-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 40em; margin: 0; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: .8em; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.card .icon svg { width: 26px; height: 26px; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 650; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.more { margin-top: 32px; }

/* Industries */
.industry { position: relative; padding-top: 32px; }
.industry::before { content: ""; position: absolute; left: 28px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); }
.industry ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
.industry li + li { margin-top: .35em; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent);
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: 0; height: 1px; background: var(--line); }
.steps p { color: var(--muted); margin: 0; }

/* Mission / vision */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.mv > div { padding: clamp(28px, 4vw, 48px); }
.mv > div + div { border-left: 1px solid var(--line); }
.mv p { color: var(--muted); font-size: 1.08rem; margin: 0; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } .mv > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent-dark), #0b4f5c); color: #d9efe8; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 38em; }

/* Services page */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: .45em .95em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #e2ebf2; text-decoration: none; font-size: .92rem; font-weight: 550; }
.toc a:hover { border-color: var(--glow); color: #fff; }

.service { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 28px; padding-block: 44px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service .icon { width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-dark); }
.service .icon svg { width: 30px; height: 30px; }
.service p { color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230a6650' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist-title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .9em; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 16px; } }

/* About */
.prose { max-width: 44em; }
.prose p { font-size: 1.1rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.facts li { display: flex; gap: 14px; padding: 18px 22px; }
.facts li + li { border-top: 1px solid var(--line); }
.facts svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 3px; }
.facts strong { display: block; color: var(--ink); }
.facts span { color: var(--muted); }

/* Contact */
.contact-cards .card { display: flex; gap: 18px; align-items: flex-start; }
.contact-cards .card .icon { margin: 0; flex: none; }
.contact-cards h3 { margin-bottom: .25em; }
.mail-link { font-weight: 650; font-size: 1.1rem; word-break: break-all; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .97rem; }
.form .optional { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .8em .95em; border: 1px solid #cfd8d5; border-radius: 10px; background: #fff;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
.form-error { color: #b42318; font-size: .92rem; margin: 0; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.tips { margin: 0; padding-left: 1.1em; color: var(--muted); }
.tips li + li { margin-top: .4em; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; letter-spacing: -0.05em; color: var(--accent-soft); line-height: 1; -webkit-text-stroke: 2px var(--accent); }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.notfound hr { border: 0; border-top: 1px solid var(--line); margin: 36px auto; width: 120px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #9fb0c0; font-size: .97rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand span b { color: var(--glow); }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .5em; }
.site-footer a { color: #c9d6e2; text-decoration: none; }
.site-footer a:hover { color: var(--glow); text-decoration: underline; }
.footer-tagline { margin-top: 14px; max-width: 26em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.form-intro { margin-bottom: 24px; }
