/* Esvo Technologies — esvotech.com
   One deliberate look: true black, clean white, one blue. */

:root {
  --bg: #000000;
  --bg-2: #05070B;
  --surface: #0B0E14;
  --surface-2: #10141C;
  --line: #1A2030;
  --line-2: #252D3F;
  --ink: #F5F7FA;
  --muted: #8B94A7;
  --faint: #5B6477;

  --blue: #3B82F6;
  --blue-hi: #60A5FA;
  --blue-deep: #1D4ED8;
  --blue-glow: rgba(59, 130, 246, 0.45);
  --blue-wash: rgba(59, 130, 246, 0.08);

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--blue); }
.eyebrow-night::before { display: none; }
.section-title {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 700;
  max-width: 18ch;
}
.section-sub { color: var(--muted); max-width: 52ch; font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 20px 30px; font-size: clamp(17px, 2.2vw, 22px); }
.btn-bolt { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-bolt:hover { background: #4B8DF8; transform: translateY(-1px); box-shadow: 0 10px 34px -8px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-ghost-night { color: var(--ink); border-color: var(--line-2); }
.btn-ghost-night:hover { border-color: var(--ink); }

/* ---------- logo ---------- */
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { height: 36px; width: auto; }
.brand-name { font: 700 20px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.brand-name span { color: var(--muted); font-weight: 500; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 55% at 80% 0%, rgba(29, 78, 216, 0.22), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(59, 130, 246, 0.07), transparent 70%),
    var(--bg);
  overflow: hidden;
  isolation: isolate;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow { display: none; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 140px);
}
.hero-copy { display: grid; gap: 26px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--blue-glow); } 70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
.hero-title {
  font-size: clamp(44px, 7.4vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.evolves { position: relative; display: inline-block; color: var(--blue-hi); }
.evolves svg { position: absolute; left: 0; right: 0; bottom: -0.12em; width: 100%; height: 0.2em; overflow: visible; }
.evolves svg path {
  fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--blue-glow));
  stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw 1.1s .5s cubic-bezier(.6,.1,.2,1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 54ch; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

.evolve-card {
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.82), rgba(8, 10, 15, 0.82));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(59, 130, 246, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid; gap: 16px;
}
.card-kicker { font: 500 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.timeline { display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--line-2), var(--blue)); }
.timeline li {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); position: relative;
}
.timeline li:last-child { border-bottom: 0; }
.ver {
  font: 500 11px/1 var(--mono); color: var(--muted);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 0; text-align: center; position: relative; z-index: 1;
}
.what { font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.when { font: 400 11px var(--mono); color: var(--muted); white-space: nowrap; }
.timeline li.now .ver { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 18px -2px var(--blue-glow); }
.timeline li.now .when { color: var(--blue-hi); }
.card-foot { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section .wrap > .eyebrow + .section-title { margin-top: 18px; }

.principles { border-bottom: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.principle { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-2); position: relative; }
.principle::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--blue); }
.principle h3 { font-size: 22px; letter-spacing: -0.015em; font-weight: 700; }
.principle p { color: var(--muted); }

.services { background: var(--bg-2); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.service:hover { border-color: rgba(59, 130, 246, 0.55); background: var(--surface-2); transform: translateY(-2px); box-shadow: 0 20px 50px -28px var(--blue-glow); }
.glyph { width: 40px; height: 40px; }
.glyph path, .glyph circle { fill: none; stroke: var(--blue-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: clamp(22px, 2.2vw, 27px); letter-spacing: -0.02em; font-weight: 700; }
.service > p { color: var(--muted); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.tags li { font: 500 12.5px/1 var(--mono); background: var(--blue-wash); color: #C9D8F5; border: 1px solid rgba(59, 130, 246, 0.16); padding: 8px 11px; border-radius: 999px; }

.stack { border-block: 1px solid var(--line); }
.stack-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.stack .section-title { margin-top: 18px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font: 500 15px/1 var(--body); padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink);
}
.chips .chip-more { background: var(--blue); color: #fff; border-color: var(--blue); }

.process { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(44px, 6vw, 72px); }
.step { padding: 28px 24px 8px 0; border-top: 1px solid var(--line-2); display: grid; gap: 12px; align-content: start; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 2px; background: var(--ink); }
.step-num { font: 500 13px var(--mono); color: var(--muted); }
.step h3 { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; }
.step p { color: var(--muted); max-width: 30ch; }
.step-evolve::before { width: 100%; background: linear-gradient(90deg, var(--blue), transparent); height: 2px; }
.step-evolve .step-num { color: var(--blue-hi); }
.step-evolve h3 { display: inline-flex; align-items: center; gap: 10px; }
.step-evolve h3::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); box-shadow: 0 0 14px var(--blue-glow); }

.engagements { border-top: 1px solid var(--line); }
.eng-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.eng {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 3.4vw, 40px);
  display: grid; gap: 12px; align-content: start;
}
.eng-featured {
  border: 1px solid rgba(59, 130, 246, 0.6);
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.12), var(--surface) 55%);
  box-shadow: 0 30px 70px -40px var(--blue-glow);
  position: relative;
}
.eng-featured::after {
  content: "Most flexible"; position: absolute; top: 22px; right: 22px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--blue); color: #fff; padding: 7px 10px; border-radius: 999px;
}
.eng-name { font: 700 clamp(26px, 2.6vw, 32px)/1.1 var(--display); letter-spacing: -0.02em; }
.eng-line { font-size: 18px; font-weight: 500; }
.eng-best { color: var(--muted); }
.checks { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.36em; width: 16px; height: 16px; border-radius: 5px;
  background: var(--blue-wash); border: 1px solid rgba(59, 130, 246, 0.45);
}
.checks li::after { content: ""; position: absolute; left: 5px; top: calc(0.36em + 4.5px); width: 6px; height: 3.5px; border-left: 2px solid var(--blue-hi); border-bottom: 2px solid var(--blue-hi); transform: rotate(-45deg); }
.eng-note { margin-top: 24px; color: var(--muted); max-width: 70ch; font-size: 15.5px; }

.faq { background: var(--bg-2); border-block: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section-title { margin-top: 18px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 19px/1.35 var(--display); letter-spacing: -0.01em;
  transition: color .2s ease;
}
.faq-list summary:hover { color: var(--blue-hi); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease, border-color .2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--blue-hi); }
.faq-list details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 62ch; }
.faq-list a { color: var(--blue-hi); }

.founder-inner { display: grid; gap: 22px; justify-items: start; }
.founder-quote { font-size: clamp(28px, 4vw, 48px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; max-width: 24ch; }
.founder-name { font-weight: 600; }
.founder-name span { color: var(--muted); font-weight: 400; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 50% 110%, rgba(29, 78, 216, 0.28), transparent 70%), var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(96px, 13vw, 170px);
  text-align: center;
}
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta-inner { display: grid; gap: 20px; justify-items: center; }
.cta h2 { font-size: clamp(38px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; max-width: 14ch; }
.cta p { color: var(--muted); font-size: 18px; }
.cta .btn { margin-top: 10px; }

/* ---------- footer ---------- */
.footer { background: var(--bg); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.footer-brand { display: grid; gap: 12px; }
.footer-brand p, .footer-meta p { color: var(--muted); font-size: 14px; }
.footer-meta { display: grid; gap: 6px; justify-items: end; text-align: right; }
.footer-meta a { font-weight: 600; text-decoration: none; }
.footer-meta a:hover { color: var(--blue-hi); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-body { grid-template-columns: 1fr; }
  .evolve-card { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stack-inner, .faq-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .principle-grid, .service-grid, .eng-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { justify-items: start; text-align: left; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .logo-mark { height: 30px; }
  .brand-name span { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step p { max-width: none; }
  .timeline li { grid-template-columns: 40px 1fr; }
  .when { display: none; }
  .eng-featured::after { position: static; justify-self: start; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .evolves svg path { animation: none; }
  .evolves svg path { stroke-dashoffset: 0; }
  .btn, .service { transition: none; }
}
