/* ============================================================
   Nova Technologies — dark theme
   Palette: bg #0b0e14 · surface #121722 · accent #52a8f5
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-alt: #0e121b;
  --surface: #121722;
  --surface-2: #171d2a;
  --line: rgba(139, 150, 165, 0.16);
  --text: #e8eef6;
  --muted: #a6b1c2;
  --accent: #52a8f5;
  --accent-soft: rgba(82, 168, 245, 0.14);
  --accent-strong: #2e8fe6;
  --grey-blue: #3d4654;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; }

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.22rem; font-weight: 600; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.text-accent { color: var(--accent); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #06101c;
  box-shadow: 0 10px 30px rgba(82, 168, 245, 0.28);
}
.btn--primary:hover { transform: translateY(-2px); color: #06101c; box-shadow: 0 16px 40px rgba(82, 168, 245, 0.38); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(139, 150, 165, 0.35);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--sm { padding: 0.55rem 1.25rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 14, 20, 0.92); }

.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 46px; width: auto; border-radius: 6px; }

.nav__menu { display: flex; align-items: center; gap: 1.9rem; }
.nav__menu a:not(.btn) {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav__menu a:not(.btn):hover, .nav__menu a.is-active { color: var(--text); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6.5rem));
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 78% 12%, rgba(82, 168, 245, 0.16), transparent 65%),
    radial-gradient(700px 420px at 8% 80%, rgba(61, 70, 84, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139, 150, 165, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 150, 165, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero__sub { margin: 1.5rem 0 2.1rem; font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.95rem; }

.hero__panel {
  position: relative;
  padding: 2.4rem 2.1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(23, 29, 42, 0.92), rgba(14, 18, 27, 0.92));
  box-shadow: var(--shadow);
}
.hero__panel-glow {
  position: absolute; inset: -1px;
  border-radius: 22px;
  background: radial-gradient(420px 200px at 20% 0%, rgba(82, 168, 245, 0.22), transparent 70%);
  pointer-events: none;
}
.hero__mark { width: 108px; height: 108px; border-radius: 22px; margin-bottom: 1.5rem; }
.hero__chips { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.hero__chips li {
  position: relative;
  padding: 0.62rem 1.05rem 0.62rem 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.55);
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text);
}
.hero__chips li::before {
  content: "";
  position: absolute; left: 1rem; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(82, 168, 245, 0.85);
}

.hero__stats { border-block: 1px solid var(--line); background: rgba(14, 18, 27, 0.6); }
.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.6rem 0;
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat__num { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--accent); }
.stat__label { font-size: 0.88rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(4.2rem, 9vw, 7.2rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 780px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section__lead { margin-top: 1.15rem; color: var(--muted); font-size: 1.07rem; }

/* ---------- pillars (who we are) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
.pillar {
  padding: 2rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(175deg, var(--surface) 0%, rgba(18, 23, 34, 0.4) 100%);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.pillar:hover { transform: translateY(-5px); border-color: rgba(82, 168, 245, 0.4); box-shadow: var(--shadow); }
.pillar__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: 1.15rem;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(82, 168, 245, 0.28);
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: 0.65rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; }

.who-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(18, 23, 34, 0.5);
}
.who-strip__media { position: relative; }
.who-strip__media img { border-radius: 14px; width: 100%; height: 380px; object-fit: cover; }
.who-strip__media figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.82);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.who-strip__body h3 { font-size: 1.55rem; margin-bottom: 0.9rem; }
.who-strip__body p { color: var(--muted); margin-bottom: 1.25rem; }

.tick-list { list-style: none; display: grid; gap: 0.65rem; }
.tick-list li { position: relative; padding-left: 1.9rem; color: var(--text); font-size: 0.97rem; }
.tick-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 21px; height: 21px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.card {
  padding: 2.1rem 1.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(82, 168, 245, 0.4); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: 1.15rem;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(82, 168, 245, 0.28);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.15rem; }

.tag-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-row li {
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.5);
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- case studies ---------- */
.cases { display: grid; gap: 1.6rem; }
.case {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.case:hover { transform: translateY(-4px); border-color: rgba(82, 168, 245, 0.35); box-shadow: var(--shadow); }
.case:nth-child(even) .case__media { order: 2; }

.case__media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.case__media--duo { display: grid; grid-template-rows: 1fr 1fr; }
.case__media--duo img { min-height: 170px; height: 100%; }
.case__media--trio { display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.case__media--trio img { min-height: 0; height: 100%; }
.case__media--trio img:first-child { grid-row: 1 / 3; }
.case__media--noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  min-height: 340px;
  padding: 2.4rem 1.9rem;
  text-align: center;
  background:
    radial-gradient(360px 220px at 50% 22%, rgba(82, 168, 245, 0.16), transparent 72%),
    linear-gradient(170deg, var(--surface-2), rgba(14, 18, 27, 0.9));
}
.case__glyph {
  width: 92px; height: 92px;
  display: grid; place-items: center;
  border-radius: 24px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(82, 168, 245, 0.3);
}
.case__glyph svg { width: 46px; height: 46px; }
.case__quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
  max-width: 16rem;
}

.case__body { padding: clamp(1.8rem, 3.6vw, 2.6rem); }
.case__client {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
.case__body h3 { font-size: 1.5rem; margin-bottom: 1.05rem; }
.case__body p { color: var(--muted); font-size: 0.985rem; margin-bottom: 0.85rem; }
.case__body p:last-child { margin-bottom: 0; }
.case__body strong { color: var(--text); font-weight: 600; }

/* ---------- process strip ---------- */
.process {
  padding: clamp(2.2rem, 4.5vw, 3.2rem) 0;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(700px 220px at 50% 50%, rgba(82, 168, 245, 0.08), transparent 75%),
    var(--bg-alt);
}
.process__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.15rem;
}
.process__step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
}
.process__step span {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(82, 168, 245, 0.3);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.2rem, 5vw, 4.2rem);
  align-items: start;
}
.contact__list { list-style: none; display: grid; gap: 1.15rem; margin-top: 2rem; }
.contact__list li { display: flex; gap: 0.95rem; align-items: flex-start; }
.contact__list svg {
  width: 22px; height: 22px;
  flex: none;
  margin-top: 0.25rem;
  color: var(--accent);
}
.contact__list strong { display: block; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact__list a, .contact__list span { color: var(--text); font-size: 1.02rem; }
.contact__list a:hover { color: var(--accent); }

.contact__form {
  padding: clamp(1.7rem, 3.4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  margin-bottom: 0.42rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.82rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 14, 20, 0.65);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(82, 168, 245, 0.18);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #e2595c; }
.field select option { background: var(--surface-2); color: var(--text); }

/* honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* captcha */
.captcha {
  margin: 1.35rem 0 1.25rem;
  padding: 1.05rem 1.15rem 1.15rem;
  border: 1px solid rgba(82, 168, 245, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(82, 168, 245, 0.07);
}
.captcha label { display: block; margin-bottom: 0.65rem; font-family: var(--font-display); font-size: 0.86rem; color: var(--text); }
.captcha__row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.captcha__question {
  flex: none;
  min-width: 128px;
  padding: 0.62rem 1.05rem;
  border: 1px dashed rgba(82, 168, 245, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(11, 14, 20, 0.7);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-align: center;
}
.captcha__refresh {
  flex: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 14, 20, 0.7);
  color: var(--accent);
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.35s ease;
}
.captcha__refresh:hover { border-color: var(--accent); transform: rotate(180deg); }
.captcha__row input {
  flex: 1 1 110px;
  min-width: 110px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 14, 20, 0.7);
  color: var(--text);
  font-size: 1.02rem;
}
.captcha__row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(82, 168, 245, 0.18); }
.captcha__error { margin-top: 0.55rem; color: #e2595c; font-size: 0.88rem; }

.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.form-status { margin-top: 0.85rem; font-size: 0.95rem; text-align: center; min-height: 1.35rem; }
.form-status.is-ok { color: #5fd48a; }
.form-status.is-err { color: #e2595c; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 2.4rem 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.85rem; color: var(--text); font-family: var(--font-display); font-weight: 600; }
.footer__brand:hover { color: var(--accent); }
.footer__mark { width: 40px; height: 40px; border-radius: 10px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.45rem; }
.footer__nav a { color: var(--muted); font-family: var(--font-display); font-size: 0.92rem; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { flex-basis: 100%; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 1.15rem; }

/* ---------- reveal animation (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pillar, .card, .case { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cards, .pillars { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { max-width: 520px; }
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 4vw 1.35rem;
    background: rgba(11, 14, 20, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a { padding: 0.85rem 0.35rem; border-bottom: 1px solid var(--line); }
  .nav__menu .nav__cta { margin-top: 0.85rem; border-bottom: 0; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .who-strip, .contact, .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .case__media img { min-height: 260px; max-height: 380px; }
  .who-strip__media img { height: 300px; }
  .process__row { justify-content: center; }
}

@media (max-width: 620px) {
  body { font-size: 15.8px; }
  .cards, .pillars, .field-row { grid-template-columns: 1fr; }
  .hero__stats-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
  .nav__logo { height: 38px; }
  .hero__actions .btn { width: 100%; }
}
