/* www.eolvia.com — Eolvia's palette (brand #1e252d, primary #1f5fad), light
   and dark: by default the system's, or the one chosen with the header button
   (site.js sets data-theme on <html>). No web fonts. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --text: #16202b;
  --muted: #566270;
  --line: #e1e6ec;
  --primary: #1f5fad;
  --primary-hover: #174a87;
  --primary-ink: #ffffff;
  --primary-soft: #e8f0fa;
  --brand: #16202b;
  --logo-ink: #ffffff;
  --ok: #1d7a46;
  --critical: #c3161c;
  --header-bg: rgba(255, 255, 255, 0.86);
  /* The illustrations (the app as it looks in its light theme). */
  --m-bg: #ffffff;
  --m-chrome: #eef1f5;
  --m-side: #1e252d;
  --m-side-active: #2d3d4f;
  --m-side-ink: #8f9cab;
  --m-card: #ffffff;
  --m-panel: #f4f6f9;
  --m-soft: #eef2f7;
  --m-line: #dde3ea;
  --m-ink: #2b3542;
  --m-muted: #c9d1db;
  --m-accent: #1f5fad;
  --m-critical: #d4363b;
  --m-warning: #d99a2b;
  --m-ok: #2e9a5d;
  --m-tower: #8b98a7;
  --m-blade: #c3ccd6;
  color-scheme: light;
}

/* Dark: chosen with the button, or the system's when nothing was chosen. */
:root[data-theme='dark'] {
  --bg: #0e141b;
  --bg-alt: #131b24;
  --surface: #17212c;
  --text: #e8edf2;
  --muted: #a3afbc;
  --line: #273342;
  --primary: #7fb2f0;
  --primary-hover: #a9cbf5;
  --primary-ink: #0d1726;
  --primary-soft: #1b2a3d;
  --brand: #e8edf2;
  --logo-ink: #0e141b;
  --ok: #5cc98b;
  --critical: #ff7a73;
  --header-bg: rgba(14, 20, 27, 0.86);
  --m-bg: #141d27;
  --m-chrome: #1b2531;
  --m-side: #0d131a;
  --m-side-active: #22303f;
  --m-side-ink: #6f7d8c;
  --m-card: #1a2430;
  --m-panel: #131b24;
  --m-soft: #1f2a37;
  --m-line: #2a3746;
  --m-ink: #d5dde6;
  --m-muted: #3b4959;
  --m-accent: #7fb2f0;
  --m-critical: #ff7a73;
  --m-warning: #f0b84a;
  --m-ok: #5cc98b;
  --m-tower: #6b7886;
  --m-blade: #9aa6b3;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e141b;
    --bg-alt: #131b24;
    --surface: #17212c;
    --text: #e8edf2;
    --muted: #a3afbc;
    --line: #273342;
    --primary: #7fb2f0;
    --primary-hover: #a9cbf5;
    --primary-ink: #0d1726;
    --primary-soft: #1b2a3d;
    --brand: #e8edf2;
    --logo-ink: #0e141b;
    --ok: #5cc98b;
    --critical: #ff7a73;
    --header-bg: rgba(14, 20, 27, 0.86);
    --m-bg: #141d27;
    --m-chrome: #1b2531;
    --m-side: #0d131a;
    --m-side-active: #22303f;
    --m-side-ink: #6f7d8c;
    --m-card: #1a2430;
    --m-panel: #131b24;
    --m-soft: #1f2a37;
    --m-line: #2a3746;
    --m-ink: #d5dde6;
    --m-muted: #3b4959;
    --m-accent: #7fb2f0;
    --m-critical: #ff7a73;
    --m-warning: #f0b84a;
    --m-ok: #5cc98b;
    --m-tower: #6b7886;
    --m-blade: #9aa6b3;
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  text-wrap: balance;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-hover);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 760px) {
  .wrap {
    padding: 0 40px;
  }
}

@media (min-width: 1200px) {
  .wrap {
    padding: 0 56px;
  }
}

.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 14px;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: 6px;
  z-index: 50;
}

.skip:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--brand);
}

.logo-mark {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-quiet {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 10px;
}

.link-quiet:hover {
  color: var(--primary);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.icon-button:hover {
  border-color: var(--muted);
}

.icon-button .icon {
  width: 20px;
  height: 20px;
}

/* The theme button needs site.js; without it the system theme applies. */
.theme-toggle {
  display: none;
}

.js .theme-toggle {
  display: inline-flex;
}

.only-dark {
  display: none;
}

:root[data-theme='dark'] .only-dark {
  display: block;
}

:root[data-theme='dark'] .only-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-dark {
    display: block;
  }

  :root:not([data-theme='light']) .only-light {
    display: none;
  }
}

/* Mobile menu: a <details>, so it works without JavaScript. */
.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu .when-open,
.mobile-menu[open] .when-closed {
  display: none;
}

.mobile-menu[open] .when-open {
  display: block;
}

.mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(10, 20, 35, 0.15);
  padding: 12px 20px 24px;
  display: grid;
  gap: 12px;
}

.mobile-panel ul {
  display: grid;
  margin-bottom: 8px;
}

.mobile-panel li a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

/* More specific than .button, so it wins on small screens. */
.header-actions .hide-small {
  display: none;
}

@media (min-width: 760px) {
  .header-actions .hide-small {
    display: inline-flex;
  }
}

@media (min-width: 1060px) {
  .main-nav {
    display: block;
  }

  .mobile-menu {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-ink);
}

.button:active {
  transform: translateY(1px);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.button-large {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1.05rem;
}

.button-ghost {
  background: transparent;
  color: var(--primary);
}

.button-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

/* On the dark bands (hero and call to action). */
.button-on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.button-on-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.button-light {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f1b2b;
}

.button-light:hover {
  background: #e8f0fa;
  border-color: #e8f0fa;
  color: #0f1b2b;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.actions.center {
  justify-content: center;
}

/* ---------- Hero (always dark) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #e9eef5;
  background:
    radial-gradient(1000px 520px at 85% 10%, rgba(64, 132, 214, 0.35), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(31, 95, 173, 0.25), transparent 60%),
    linear-gradient(180deg, #0f1b2b 0%, #0b1420 100%);
  padding: 64px 0 72px;
}

.hero::before {
  /* A faint grid, like a technical drawing. */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1060px) {
  .hero {
    padding: 96px 0 112px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}

.hero h1 {
  color: #ffffff;
}

.hero .eyebrow {
  color: #8cc0ff;
}

.hero .lead {
  color: #b9c6d6;
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.25rem);
  max-width: 34em;
}

.hero-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  color: #9fb0c4;
  font-size: 0.92rem;
}

.hero-note .icon {
  width: 18px;
  height: 18px;
  color: #5cc98b;
}

.hero-visual {
  position: relative;
}

.art {
  display: block;
  width: 100%;
  height: auto;
}

.art-dashboard {
  border-radius: 14px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.art-notification {
  position: absolute;
  width: min(300px, 52%);
  left: -4%;
  bottom: -28px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

@media (max-width: 759px) {
  .art-notification {
    left: 4%;
    bottom: -24px;
    width: 64%;
  }
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.lead-small {
  font-size: 1.08rem;
  color: var(--muted);
}

/* ---------- Facts band ---------- */
.facts {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.facts-grid li {
  padding: 28px 12px;
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
}

.facts-grid li:nth-child(2n) {
  border-right: 0;
}

.facts-grid li:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.facts-grid strong {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
}

.facts-grid span {
  color: var(--muted);
  font-size: 0.93rem;
}

@media (min-width: 900px) {
  .facts-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .facts-grid li {
    padding: 36px 28px;
  }

  .facts-grid li:first-child {
    padding-left: 0;
  }

  .facts-grid li:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .facts-grid li:last-child {
    border-right: 0;
  }

  .facts-grid li:nth-child(-n + 2) {
    border-bottom: 0;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

@media (min-width: 1060px) {
  .section {
    padding: 112px 0;
  }
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.12rem;
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1060px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
}

/* Steps, joined by a line on wide screens. */
.steps {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1060px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
  }

  .steps::before {
    content: '';
    position: absolute;
    top: 47px;
    left: 8%;
    right: 8%;
    border-top: 2px dashed var(--line);
  }
}

.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 750;
  margin-bottom: 16px;
}

/* Rows: text on one side, illustration on the other, alternating. */
.row-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1060px) {
  .row-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 80px;
  }

  .feature-row-reverse .row-copy {
    order: 2;
  }
}

.feature-row + .feature-row {
  padding-top: 0;
}

.row-visual .art {
  filter: drop-shadow(0 24px 40px rgba(15, 27, 43, 0.1));
}

.ticks {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ticks .icon {
  width: 22px;
  height: 22px;
  color: var(--ok);
  margin-top: 2px;
}

/* Security */
.security-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 1060px) {
  .security-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 80px;
  }
}

.shield-list {
  display: grid;
  gap: 14px;
}

.shield-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.shield-list .icon {
  color: var(--primary);
}

/* Call to action (always dark) */
.cta {
  color: #e9eef5;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(64, 132, 214, 0.35), transparent 60%),
    linear-gradient(135deg, #0f1b2b, #13253d);
  padding: 72px 0;
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  color: #b9c6d6;
  font-size: 1.12rem;
  max-width: 38em;
}

.cta-inner {
  display: grid;
  gap: 8px;
  align-items: center;
}

@media (min-width: 1060px) {
  .cta {
    padding: 96px 0;
  }

  .cta-inner {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }

  .cta .actions {
    margin: 0;
  }
}

/* ---------- Inner pages ---------- */
.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}

.page-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
}

.page-head .lead {
  max-width: 40em;
  margin: 0;
}

.document h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.document h2:first-child {
  margin-top: 0;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 1000px) {
  .form-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  display: grid;
  gap: 18px;
  box-shadow: 0 20px 40px rgba(15, 27, 43, 0.06);
}

@media (min-width: 760px) {
  .form-card {
    padding: 40px;
  }
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field-row {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.req {
  color: var(--critical);
}

.opt {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}

.field-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.field-check label {
  font-weight: 400;
}

.form-card .button {
  justify-self: start;
}

/* Only bots see this field. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-aside h2 {
  font-size: 1.35rem;
}

.form-aside .art-mini {
  margin-top: 32px;
}

/* Thanks and error pages */
.result h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
}

.result-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.result-icon .icon {
  width: 32px;
  height: 32px;
}

.result-icon.ok {
  background: color-mix(in srgb, var(--ok) 15%, transparent);
  color: var(--ok);
}

.result-icon.ko {
  background: color-mix(in srgb, var(--critical) 13%, transparent);
  color: var(--critical);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

.footer-brand p {
  color: var(--muted);
  margin: 14px 0 0;
}

.site-footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}

.site-footer ul {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.lang-switch {
  display: flex !important;
  gap: 18px !important;
}

.lang-switch [aria-current] {
  font-weight: 700;
  color: var(--text);
}
