
:root {
  --bg: #f6f8fb;
  --bg2: #ffffff;
  --surface: rgba(15, 23, 42, 0.03);
  --surface2: rgba(15, 23, 42, 0.05);
  --border: rgba(15, 23, 42, 0.12);
  --text: rgba(15, 23, 42, 0.92);
  --muted: rgba(15, 23, 42, 0.72);
  --muted2: rgba(15, 23, 42, 0.56);
  --primary: #1fa971;
  --primary2: #34d399;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(31, 169, 113, 0.18), transparent 55%),
    radial-gradient(900px 600px at 100% 20%, rgba(52, 211, 153, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 6px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.is-active {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.lang-sep {
  color: rgba(15, 23, 42, 0.34);
  font-weight: 900;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  height: 136px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-tld {
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.nav-link.nav-cta {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 800;
  background: linear-gradient(180deg, #b2c246, #3d8158);
  padding: 10px 14px;
  border-radius: 12px;
}

.nav-link.nav-cta:hover {
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(180deg, #c0d14b, #34704c);
  border-color: transparent;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(15, 23, 42, 0.78);
  margin: 4px auto;
  border-radius: 2px;
}

.site-main {
  padding-bottom: 40px;
}

.hero {
  padding: 78px 0 34px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.hero-copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  border-radius: 2px;
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch;
}

.section-intro {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 78ch;
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.epilepsai-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 0;
  background: #000;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  font-weight: 800;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  width: 180px;
  aspect-ratio: 1 / 1;
  text-align: center;
}

.epilepsai-card:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.88);
}

.epilepsai-card:active {
  transform: translateY(0);
}

.epilepsai-card-logo {
  width: 192px;
  height: 128px;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  background: #000;
  border-radius: 8px;
}

.epilepsai-card-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: -26px;
}

.epilepsai-card-title {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.epilepsai-card--floating {
  position: fixed;
  right: 18px;
  top: calc(var(--header-h, 0px) + 40px);
  z-index: 80;
  transition: opacity 180ms ease;
}

.btn-compact {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.94rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(180deg, #b2c246, #3d8158);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #c0d14b, #34704c);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.04);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.07);
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.stat {
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.stat-title {
  color: var(--muted2);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 4px;
}

.stat-note {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.92rem;
}

.section {
  padding: 52px 0;
}

.section-alt {
  background: rgba(15, 23, 42, 0.02);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.section-logo {
  display: block;
  width: 220px;
  height: auto;
  margin: 0 0 14px;
}

#epilepsai {
  background: #000;
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#epilepsai .section-head p,
#epilepsai .lead,
#epilepsai .feature-desc,
#epilepsai .panel p {
  color: rgba(255, 255, 255, 0.74);
}

#epilepsai .tagline {
  color: rgba(255, 255, 255, 0.9);
}

#epilepsai .panel {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.35);
}

#epilepsai .feature-list li {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

#epilepsai .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
}

#epilepsai .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

#epilepsai .btn-primary {
  background: linear-gradient(180deg, #b2c246, #3d8158);
  color: rgba(255, 255, 255, 0.94);
}

#epilepsai .btn-primary:hover {
  background: linear-gradient(180deg, #c0d14b, #34704c);
}

.section-head {
  max-width: 72ch;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  letter-spacing: -0.03em;
}

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

.tagline {
  margin-top: 8px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.86);
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.card-visual {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
  margin-bottom: 12px;
}

.vision-card {
  position: relative;
  overflow: hidden;
}

.vision-card .card-visual {
  height: 240px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 0;
  object-fit: contain;
  background: #fff;
}

.vision-card .card-body {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.vision-card .card-body h3 {
  margin: 0 0 6px;
}

.vision-card .card-body p {
  margin: 0;
  color: rgba(15, 23, 42, 0.74);
}

.card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(31, 169, 113, 0.07), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel h3 {
  margin: 0 0 8px;
}

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

.panel-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.86);
}

.feature-title {
  display: block;
  font-weight: 900;
  margin-bottom: 4px;
}

.feature-desc {
  display: block;
  color: var(--muted);
}


.person-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: stretch;
}

.person-meta h3 {
  margin: 0;
}

.person-meta .role {
  margin-top: 6px;
}

.person-content p {
  margin: 12px 0 0;
}

.person-photo {
  width: 180px;
  height: var(--person-photo-h, 100%);
  min-height: 220px;
  align-self: stretch;
  border-radius: 28px;
  display: block;
  object-fit: cover;
  object-position: 50% 28%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.04);
}

.person-photo--evrard {
  object-position: calc(50% - 60px) 50%;
}

.team--sci {
  grid-template-columns: 1fr;
}

.team--sci .person-grid {
  grid-template-columns: 180px 1fr;
}

.team--sci .person-photo {
  height: 180px;
  min-height: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  object-position: 50% 50%;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.role {
  margin: 0;
  color: var(--muted2);
  font-weight: 700;
}

.address {
  font-style: normal;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 14px;
  border-radius: 14px;
  display: inline-block;
  margin-top: 14px;
}

.small {
  margin-top: 12px;
  color: var(--muted2);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.footer-left {
  color: var(--muted);
  font-weight: 650;
}

.footer-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.footer-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .team {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .person-photo {
    width: 140px;
    height: 140px;
    border-radius: 22px;
  }

  .team--sci .person-grid {
    grid-template-columns: 140px 1fr;
  }

  .team--sci .person-photo {
    height: 140px;
    min-height: 140px;
    border-radius: 22px;
  }

  .person-grid {
    grid-template-columns: 140px 1fr;
    gap: 16px;
  }

  .section-logo {
    width: 190px;
  }
}

@media (max-width: 640px) {
  .person-grid {
    grid-template-columns: 1fr;
  }

  .person-photo {
    width: 100%;
    height: 240px;
    border-radius: 22px;
    object-position: 50% 25%;
  }

  .team--sci .person-photo {
    height: 240px;
    min-height: 240px;
    aspect-ratio: 1 / 1;
  }

  .epilepsai-card--floating {
    position: static;
    right: auto;
    top: auto;
    width: min(100%, 220px);
    margin: 16px auto 0;
    z-index: auto;
  }

  .epilepsai-card-logo {
    width: 160px;
    height: 110px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    margin: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav-link.nav-cta {
    background: linear-gradient(180deg, #b2c246, #3d8158);
    border: 0;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
  }

  .nav-link.nav-cta:hover {
    background: linear-gradient(180deg, #c0d14b, #34704c);
  }

  .brand-logo {
    height: 92px;
  }
}

@media (max-width: 420px) {
  .lang-switch {
    padding: 4px 8px;
    gap: 6px;
  }

  .lang-btn {
    font-size: 0.82rem;
    padding: 3px 5px;
  }

  .brand-logo {
    height: 78px;
  }
}

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

  .btn {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
