/* ============================================================
   ENSOOL - ensool.io
   Static rebuild (ex-Framer). Brand: Exo / Figtree,
   #001E3F navy · #6ABAFF blue · #7e85b5 periwinkle.
   Dark mode = default. Light mode via [data-theme="light"].
   ============================================================ */

/* ---------- Fonts (self-hosted, GDPR-clean) ---------- */
@font-face {
  font-family: "Exo";
  src: url("../fonts/exo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #001e3f;
  --blue: #6abaff;
  --peri: #7e85b5;

  /* dark theme (default) */
  --bg: #05070c;
  --bg-2: #090d16;
  --bg-card: rgba(0, 30, 63, 0.35);
  --bg-pill: rgba(0, 30, 63, 0.55);
  --ink: #f4f7fb;
  --ink-2: #b8c4d4;
  --ink-3: #8b97ab;
  --line: rgba(106, 186, 255, 0.28);
  --line-soft: rgba(106, 186, 255, 0.14);
  --accent: #6abaff;
  --accent-ink: #9fd1ff;
  --nav-bg: rgba(5, 7, 12, 0.78);
  --hero-scrim: linear-gradient(to bottom, rgba(5, 7, 12, 0.55) 0%, rgba(5, 7, 12, 0.25) 45%, rgba(5, 7, 12, 0.92) 100%);
  --btn-primary-bg: #001e3f;
  --btn-primary-ink: #eaf4ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow: radial-gradient(closest-side, rgba(106, 186, 255, 0.16), transparent 70%);

  --font-head: "Exo", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  --w: 1200px;
  --r: 18px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f0f1f4;
  --bg-2: #e8eaef;
  --bg-card: #ffffff;
  --bg-pill: rgba(0, 30, 63, 0.06);
  --ink: #0c1526;
  --ink-2: #3d4a5e;
  --ink-3: #66738a;
  --line: rgba(0, 30, 63, 0.22);
  --line-soft: rgba(0, 30, 63, 0.12);
  --accent: #0f6fc4;
  --accent-ink: #0a5aa3;
  --nav-bg: rgba(240, 241, 244, 0.82);
  --hero-scrim: linear-gradient(to bottom, rgba(4, 8, 16, 0.5) 0%, rgba(4, 8, 16, 0.28) 45%, rgba(4, 8, 16, 0.86) 100%);
  --btn-primary-bg: #001e3f;
  --btn-primary-ink: #eaf4ff;
  --shadow: 0 14px 40px rgba(12, 21, 38, 0.12);
  --glow: radial-gradient(closest-side, rgba(0, 30, 63, 0.06), transparent 70%);
  color-scheme: light;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: rgba(106, 186, 255, 0.35); }

h1, h2, h3, .display {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.35rem; }

.container { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-weight: 600; font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .arr { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover { background: rgba(106, 186, 255, 0.12); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(106, 186, 255, 0.18); }
.btn:hover .arr { transform: translateX(5px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--solid { background: var(--btn-primary-bg); color: var(--btn-primary-ink); border-color: var(--blue); }
.btn--solid:hover { background: #00284f; }
.btn--light { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Section label pill ---------- */
.label-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-pill);
}
.label-pill svg { width: 15px; height: 15px; stroke: var(--accent); }

/* ---------- Navbar ---------- */
/* Der blaue 4px-Balken gehoert zur fixed Nav (border-top), nicht zum body -
   sonst entsteht beim Scrollen eine Luecke ueber der Navbar. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-top: 4px solid var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav__inner {
  max-width: var(--w); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
}
.nav__logo img, .nav__logo svg { height: 26px; width: auto; }
.nav__logo { display: flex; align-items: center; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; list-style: none; }
.nav__links a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

/* dropdowns (About / Technology) */
.has-drop { position: relative; }
.has-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.has-drop .chev { width: 10px; height: 7px; opacity: 0.7; transition: transform 0.3s var(--ease); }
.has-drop:hover .chev, .has-drop:focus-within .chev { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 14px); left: -18px;
  min-width: 230px;
  list-style: none;
  background: var(--nav-bg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
/* Hover-Bruecke, damit das Menue beim Weg zur Liste nicht zuklappt */
.drop::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a {
  display: block; padding: 9px 14px; border-radius: 9px;
  font-size: 0.92rem; color: var(--ink-2);
}
.drop a::after { display: none; }
.drop a:hover, .drop a[aria-current="page"] { background: var(--bg-pill); color: var(--ink); }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ink-2);
  transition: color 0.2s, background 0.2s, transform 0.4s var(--ease);
}
.icon-btn:hover { color: var(--ink); background: var(--bg-pill); transform: rotate(-14deg); }
.icon-btn svg { width: 19px; height: 19px; }
[data-theme="light"] .icon-sun { display: none; }
:root:not([data-theme="light"]) .icon-moon { display: none; }
:root:not([data-theme="light"]) .icon-sun { display: block; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line-soft); border-radius: var(--r-pill);
  overflow: hidden; font-size: 0.78rem; font-weight: 700;
}
.lang-switch a { padding: 6px 11px; color: var(--ink-3); transition: 0.2s; }
.lang-switch a.active { background: var(--bg-pill); color: var(--ink); }
.lang-switch a:hover:not(.active) { color: var(--ink); }

.nav__burger { display: none; }

/* mobile nav */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 58px 0 auto 0;
    flex-direction: column; gap: 0;
    /* fast opak: blur ist auf Mobile nicht ueberall verlaesslich, Inhalt darf nicht durchscheinen */
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
    max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease);
    margin: 0; padding: 0 24px;
  }
  .nav__links.open { max-height: min(80vh, 680px); padding: 10px 24px 18px; overflow-y: auto; }
  .nav__links li { padding: 10px 0; }
  /* Mobile: Dropdowns als eingerueckte, immer sichtbare Unterpunkte */
  .has-drop .chev { display: none; }
  .drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; backdrop-filter: none;
    padding: 6px 0 0 16px; min-width: 0;
  }
  .drop::before { display: none; }
  .drop a { padding: 7px 0; }
  .nav__burger {
    display: grid; place-items: center; width: 40px; height: 40px;
  }
  .nav__burger span, .nav__burger span::before, .nav__burger span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
    position: relative; transition: 0.3s var(--ease);
  }
  .nav__burger span::before { position: absolute; top: -6px; }
  .nav__burger span::after { position: absolute; top: 6px; }
  .nav__burger.open span { background: transparent; }
  .nav__burger.open span::before { transform: rotate(45deg); top: 0; }
  .nav__burger.open span::after { transform: rotate(-45deg); top: 0; }
  .nav .btn--nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip;
  color: #f4f7fb;
}
.hero--short { min-height: 62vh; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim); }
.hero__inner { max-width: var(--w); margin: 0 auto; padding: 140px 24px 80px; width: 100%; }
.hero--center .hero__inner { text-align: center; }
.hero__sub {
  margin: 22px auto 0; max-width: 640px;
  color: rgba(232, 240, 250, 0.85); font-size: 1.15rem; line-height: 1.55;
}
.hero--left .hero__sub { margin-left: 0; }
.hero__cta { margin-top: 30px; }
.hero .btn { color: #f4f7fb; }

.hero__stats {
  max-width: var(--w); margin: 0 auto; width: 100%;
  padding: 0 24px 60px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  text-align: center;
}
.hero__stat b { font-family: var(--font-head); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; display: block; }
.hero__stat span { color: rgba(232, 240, 250, 0.75); font-size: 0.98rem; }
@media (max-width: 720px) { .hero__stats { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Generic section spacing ---------- */
.section { padding: 110px 0; }
.section--tight { padding: 80px 0; }
.section-head { max-width: 760px; }
.section-head .label-pill { margin-bottom: 22px; }
.section-head p { color: var(--ink-2); margin-top: 18px; }

/* ---------- What we do (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split h2 { margin-bottom: 26px; }
.split__right h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.25; }
.split__right p { color: var(--ink-3); margin-top: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 26px; }
.tag {
  padding: 8px 16px; border-radius: 10px;
  background: var(--navy); color: #dcecff;
  border: 1px solid rgba(106, 186, 255, 0.25);
  font-size: 0.9rem; font-weight: 500;
}
[data-theme="light"] .tag { background: var(--navy); }
button.tag {
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
button.tag:hover { border-color: rgba(106, 186, 255, 0.7); transform: translateY(-1px); }
button.tag[aria-expanded="true"] {
  background: #0f3a66;
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(106, 186, 255, 0.18);
}
.tag-panel {
  margin: 0 0 34px;
  min-height: 76px;
  max-width: 520px;
}
.tag-info { display: none; color: var(--ink-2); font-size: 0.98rem; }
/* Linie haengt am Text selbst, nicht am Panel - so ist sie nie laenger als der Inhalt */
.tag-info.active {
  display: block;
  border-left: 3px solid rgba(126, 133, 181, 0.65);
  padding: 2px 0 2px 20px;
  animation: taginfo 0.35s var(--ease);
}
@keyframes taginfo { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tag-info.active { animation: none; } }

/* ---------- Milestones (image bg + cards) ---------- */
.milestones { position: relative; overflow: clip; color: #f4f7fb; }
.milestones__bg { position: absolute; inset: 0; z-index: -1; }
.milestones__bg img { width: 100%; height: 100%; object-fit: cover; }
.milestones__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,7,12,0.9), rgba(5,7,12,0.55) 55%, rgba(5,7,12,0.92)); }
.milestones__grid { display: grid; grid-template-columns: 0.85fr 2.15fr; gap: 70px; align-items: center; padding: 130px 0; }
@media (max-width: 900px) { .milestones__grid { grid-template-columns: 1fr; padding: 90px 0; gap: 50px; } }
.milestones__intro p { color: rgba(232, 240, 250, 0.8); margin-top: 18px; max-width: 340px; }
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
@media (max-width: 720px) { .mcards { grid-template-columns: 1fr; } }
.mcard {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  min-height: 264px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 38px 22px 32px;
  text-align: center;
  background: rgba(5, 10, 20, 0.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.mcard:hover { transform: translateY(-6px); border-color: rgba(106,186,255,0.55); box-shadow: 0 16px 44px rgba(0,0,0,0.35); }
.mcard b { font-family: var(--font-head); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 600; display: block; line-height: 1; white-space: nowrap; }
.mcard svg { width: 50px; height: 50px; margin: 26px auto; stroke: var(--blue); flex: 0 0 auto; }
.mcard span { color: rgba(232, 240, 250, 0.75); font-size: 0.94rem; line-height: 1.45; max-width: 200px; display: block; min-height: 2.6em; }

/* ---------- Stat rows ---------- */
.statrow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding: 40px 0 10px; text-align: center;
}
@media (max-width: 900px) { .statrow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .statrow { grid-template-columns: 1fr; } }
.statrow b { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; display: block; }
.statrow span { color: var(--ink-3); font-size: 0.98rem; }

/* ---------- FAQ ---------- */
.faq-wrap {
  border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 90px 0;
}
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 70px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 44px; } }
.faq-left p { color: var(--ink-3); margin: 20px 0 34px; }
.faq-left .divider { border: 0; border-top: 1px solid var(--line-soft); margin-bottom: 30px; }
.faq-left h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.35rem; margin-bottom: 18px; }
.faq-right__head {
  text-align: center; font-weight: 600; padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 8px; font-size: 0.98rem;
}
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px 2px; text-align: left;
  font-size: 1.08rem; font-weight: 500;
  transition: color 0.2s;
}
.faq-item button:hover { color: var(--accent-ink); }
.faq-item .plus { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.faq-item .plus::before, .faq-item .plus::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.faq-item .plus::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-item .plus::after { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-item[open-state="true"] .plus::before { transform: translateX(-50%) rotate(90deg); }
.faq-item .faq-a { overflow: hidden; max-height: 0; transition: max-height 0.45s var(--ease); }
.faq-item .faq-a p { color: var(--ink-3); padding: 0 40px 24px 2px; max-width: 640px; }

/* ---------- Blog teaser ---------- */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 54px; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 820px) { .blog-grid { grid-template-columns: 1fr; } }
.bcard { display: flex; flex-direction: column; }
.bcard__img { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.bcard:hover .bcard__img img { transform: scale(1.05); }
.bcard h3 { margin: 22px 0 10px; font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; }
.bcard p { color: var(--ink-3); font-size: 0.98rem; }
.bcard__meta { display: flex; gap: 14px; color: var(--ink-3); font-size: 0.88rem; margin: 14px 0 20px; }
.bcard__meta b { color: var(--ink-2); font-weight: 600; }
.bcard .btn { align-self: flex-start; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 60px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.tcard img { border-radius: 12px; aspect-ratio: 0.86; object-fit: cover; width: 100%; }
.tcard h3 { margin: 20px 0 8px; font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; }
.tcard p { color: var(--ink-3); font-size: 0.95rem; }
.tcard__img { position: relative; border-radius: 12px; overflow: hidden; }
.tcard__img img { border-radius: 0; display: block; transition: transform 0.5s var(--ease); }
.tcard__img:hover img { transform: scale(1.03); }
.tcard__socials {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; gap: 12px;
  padding: 44px 0 16px;
  background: linear-gradient(to top, rgba(0, 30, 63, 0.85), transparent);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.tcard__img:hover .tcard__socials,
.tcard__img:focus-within .tcard__socials { opacity: 1; transform: none; }
.tcard__socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(4, 16, 31, 0.85);
  border: 1px solid rgba(106, 186, 255, 0.5);
  color: #eaf4ff;
  transition: background 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.tcard__socials a:hover { background: #0f3a66; border-color: var(--blue); transform: translateY(-2px); }
.tcard__socials svg { width: 20px; height: 20px; }
/* Touch-Geraete haben kein Hover -> Icons permanent zeigen */
@media (hover: none) {
  .tcard__socials { opacity: 1; transform: none; }
}

/* ---------- Skillset ---------- */
.skillset { background: linear-gradient(to bottom, var(--bg-2), var(--bg) 40%, #01142b); }
[data-theme="light"] .skillset { background: linear-gradient(to bottom, var(--bg-2), #dfe6f2); }
.skillset .split__right p { color: var(--ink-2); }
.skillset .split__right p + p { margin-top: 20px; }

/* ---------- Values / feature list with images ---------- */
.values { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }
.vitem { margin-bottom: 54px; }
.vitem img { width: 130px; border-radius: 10px; box-shadow: var(--shadow); margin-bottom: 20px; }
.vitem h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; margin-bottom: 10px; }
.vitem p { color: var(--ink-3); max-width: 520px; }

/* ---------- Raw facts ---------- */
.facts dt { font-weight: 700; margin-top: 26px; font-size: 1.05rem; }
.facts dd { color: var(--ink-3); margin-top: 4px; }

/* ---------- Technology service blocks ---------- */
.service { display: grid; grid-template-columns: 0.9fr 1.1fr 0.9fr; gap: 46px; align-items: start; padding: 70px 0; }
.service + .service { border-top: 1px solid var(--line-soft); }
@media (max-width: 980px) { .service { grid-template-columns: 1fr; } }
.service h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.15; }
.service > div:first-child p { color: var(--ink-3); margin-top: 18px; }
.service__img { border-radius: 14px; overflow: hidden; aspect-ratio: 0.92; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service:hover .service__img img { transform: scale(1.04); }
.service__list h4 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.service__list ul { list-style: none; margin: 10px 0 26px; }
.service__list li {
  position: relative; padding: 10px 0 10px 22px;
  color: var(--ink-3); font-size: 0.97rem;
}
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2);
}
.service__list .btn { margin-top: 6px; }

/* ---------- Contact form ---------- */
.form-shell {
  max-width: 900px; margin: 0 auto;
  background: linear-gradient(160deg, #04101f 0%, #001e3f 120%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 60px);
  color: #eef4fb;
  position: relative; overflow: clip;
  box-shadow: var(--shadow);
}
.form-shell::after {
  content: ""; position: absolute; right: -280px; bottom: -320px; width: 860px; height: 860px;
  background: radial-gradient(circle,
    rgba(106, 186, 255, 0.14) 0%,
    rgba(106, 186, 255, 0.08) 30%,
    rgba(106, 186, 255, 0.03) 55%,
    transparent 72%);
  pointer-events: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(158, 178, 202, 0.5);
  padding: 10px 2px; color: #eef4fb; font: inherit; border-radius: 0;
  transition: border-color 0.25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239eb2ca' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.field select option { color: #0c1526; }
.field textarea { min-height: 64px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(158, 178, 202, 0.65); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue); }
.form-send {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 34px; border-radius: 12px;
  background: linear-gradient(120deg, #0f3a66, #1e5f9e);
  color: #fff; font-weight: 600; border: 1px solid rgba(106, 186, 255, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.form-send:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(30, 95, 158, 0.45); }
.form-note { text-align: center; color: var(--ink-3); margin-top: 30px; }
.form-status { margin-top: 22px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #7ee2a8; }
.form-status.err { display: block; color: #ff9d9d; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- CTA / Footer ---------- */
.footer { background: #05070c; color: #eef2f8; border-top: 1px solid var(--line-soft); }
[data-theme="light"] .footer { background: #070b12; }
.footer__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 90px 0 60px;
  border-bottom: 1px solid rgba(158, 178, 202, 0.16);
}
.footer__cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.footer .btn { color: #eef2f8; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 1.2fr; gap: 44px;
  padding: 64px 0;
  border-bottom: 1px solid rgba(158, 178, 202, 0.16);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 40px; width: auto; }
.footer h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: #9aa7b8; transition: color 0.2s; }
.footer ul a:hover { color: #fff; }
.footer__news p { color: #9aa7b8; margin-bottom: 16px; }
.footer__news input {
  width: 100%; padding: 13px 18px;
  border-radius: var(--r-pill); border: 1px solid rgba(158, 178, 202, 0.4);
  background: transparent; color: #eef2f8; font: inherit;
  margin-bottom: 12px;
}
.footer__news input::placeholder { color: #7d8a9c; }
.footer__news input:focus { outline: none; border-color: var(--blue); }
.footer__news button {
  width: 100%; padding: 12px 18px;
  border-radius: var(--r-pill);
  background: #f4f7fb; color: #0c1526; font-weight: 600;
  border: 1px solid var(--blue);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.footer__news button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(106, 186, 255, 0.25); }
.footer__legal {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 30px 0 46px; color: #8b97ab; font-size: 0.92rem;
}
.footer__legal nav { display: flex; gap: 22px; }
.footer__legal a:hover { color: #fff; }

/* ---------- Newsletter popup ---------- */
.popup-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 6, 12, 0.66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.popup-backdrop.show { opacity: 1; pointer-events: auto; }
.popup {
  width: min(480px, 100%);
  background: linear-gradient(165deg, #051225 0%, #001e3f 130%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 42px 38px;
  color: #eef4fb; text-align: center;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.popup-backdrop.show .popup { transform: translateY(0) scale(1); }
.popup__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; color: #9eb2ca; font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}
.popup__close:hover { background: rgba(158, 178, 202, 0.14); color: #fff; }
.popup img { height: 30px; width: auto; margin: 0 auto 22px; }
.popup h3 { font-size: 1.5rem; margin-bottom: 10px; }
.popup p { color: #9eb2ca; font-size: 0.98rem; margin-bottom: 26px; }
.popup input {
  width: 100%; padding: 13px 18px;
  border-radius: var(--r-pill); border: 1px solid rgba(158, 178, 202, 0.4);
  background: transparent; color: #eef4fb; font: inherit; margin-bottom: 12px;
}
.popup input:focus { outline: none; border-color: var(--blue); }
.popup button[type="submit"] {
  width: 100%; padding: 13px 18px;
  border-radius: var(--r-pill);
  background: #f4f7fb; color: #0c1526; font-weight: 700;
  border: 1px solid var(--blue);
  transition: transform 0.2s;
}
.popup button[type="submit"]:hover { transform: translateY(-1px); }
.popup .popup__decline {
  margin-top: 16px; color: #8b97ab; font-size: 0.88rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.popup .popup__decline:hover { color: #cfd9e6; }

/* ---------- Reveal animations ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; } .rv-d2 { transition-delay: 0.16s; } .rv-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px 24px 60px; }
.err-page b { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 9rem); color: var(--accent); display: block; line-height: 1; }
.err-page p { color: var(--ink-3); margin: 18px 0 30px; }

/* ---------- Page transition ---------- */
body { animation: pagein 0.5s var(--ease); }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Legal pages ---------- */
.hero--legal { min-height: 42vh; background: linear-gradient(160deg, #04101f 0%, #001e3f 130%); }
.hero--legal .hero__inner { padding: 150px 24px 60px; }
.legal { max-width: 820px; }
.legal h2 { font-family: var(--font-body); font-size: 1.4rem; font-weight: 700; margin: 44px 0 14px; }
.legal h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; margin: 28px 0 10px; }
.legal p { color: var(--ink-2); margin-bottom: 14px; font-size: 0.98rem; }
.legal p.legal-li { padding-left: 22px; position: relative; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal a:hover { color: var(--accent); }
