:root {
  color-scheme: light;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #06071f;
  --color-bg-accent: #1f1a66;
  --color-surface: rgba(15, 19, 42, 0.92);
  --color-surface-muted: rgba(255, 255, 255, 0.05);
  --color-text: rgba(248, 249, 255, 0.92);
  --color-text-muted: rgba(220, 222, 243, 0.72);
  --color-accent: #ff7bff;
  --color-accent-strong: #7bf5ff;
  --color-accent-warm: #ffc36f;
  --color-card-border: rgba(255, 255, 255, 0.16);
  --shadow-soft: 0 25px 80px rgba(8, 5, 37, 0.6);
  --max-width: 1100px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at -10% -20%, rgba(255, 123, 255, 0.25), transparent 55%),
    radial-gradient(circle at 110% 10%, rgba(123, 245, 255, 0.28), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(255, 195, 111, 0.28), transparent 50%),
    linear-gradient(135deg, #06071f 0%, #17154d 50%, #2b1992 100%);
  color: var(--color-text);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 195, 111, 0.45), rgba(255, 195, 111, 0));
  filter: blur(120px);
  opacity: 0.6;
  z-index: -2;
  pointer-events: none;
}

body::after {
  right: -120px;
  top: 12vh;
  background: radial-gradient(circle, rgba(123, 245, 255, 0.52), rgba(123, 245, 255, 0));
}

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

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

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(12, 11, 35, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 15px 35px rgba(11, 9, 37, 0.35);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  text-transform: uppercase;
  background: linear-gradient(120deg, #ff7bff, #7bf5ff 45%, #ffc36f 90%);
  -webkit-background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-text);
  transform: translateY(-2px);
}

.lang-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(8, 12, 37, 0.45);
}

.lang-toggle button {
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle button.active {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #080a1f;
  box-shadow: 0 10px 20px rgba(255, 123, 255, 0.35);
}

.hero {
  padding: 6.5rem 0 5.5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 195, 111, 0.25), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(123, 245, 255, 0.35), rgba(123, 245, 255, 0));
  right: -180px;
  bottom: -120px;
  filter: blur(12px);
  pointer-events: none;
}

.hero-content {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2.2fr);
  position: relative;
  z-index: 1;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  justify-content: stretch;
}

.hero-carousel {
  position: relative;
  width: min(800px, 100%);
  aspect-ratio: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  padding: 1rem;
  background: linear-gradient(140deg, rgba(255, 123, 255, 0.2), rgba(123, 245, 255, 0.18));
  box-shadow: 0 24px 60px rgba(44, 32, 120, 0.45);
  overflow: hidden;
  animation: float 9s ease-in-out infinite;
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.hero-carousel__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 11, 33, 0.9);
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-carousel img.active {
  opacity: 1;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 195, 111, 0.9);
  margin-bottom: 0.9rem;
  display: inline-block;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.1;
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 3.8rem);
}

.lead {
  font-size: 1.22rem;
  color: var(--color-text);
  margin-bottom: 1.6rem;
}

.summary {
  margin-top: 2.1rem;
  color: var(--color-text-muted);
  max-width: 30rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.button.primary {
  background: linear-gradient(120deg, #ff7bff, #7bf5ff 55%, #ffc36f 100%);
  color: #050719;
  box-shadow: 0 18px 45px rgba(71, 55, 255, 0.38);
}

.button.primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 22px 60px rgba(71, 55, 255, 0.42);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-card {
  padding: 2.2rem;
  border-radius: 24px;
  background: rgba(14, 18, 49, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 120deg, rgba(255, 123, 255, 0.35), rgba(123, 245, 255, 0.15), transparent 60%);
  filter: blur(70px);
  z-index: 0;
}

.hero-card__header {
  position: relative;
  z-index: 1;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: rgba(255, 195, 111, 0.9);
  margin-bottom: 1.7rem;
}

.hero-card__list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
  color: var(--color-text-muted);
}

.hero-card__list li {
  position: relative;
  padding-left: 1.6rem;
}

.hero-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7bff, #7bf5ff);
  box-shadow: 0 0 12px rgba(123, 245, 255, 0.6);
}

.section {
  padding: 4.8rem 0;
}

.section-header {
  margin-bottom: 2.6rem;
  max-width: 42rem;
}

.section-text {
  max-width: 34rem;
}

.section-highlight {
  display: grid;
  gap: 1.6rem;
  background: linear-gradient(145deg, rgba(255, 123, 255, 0.16), rgba(123, 245, 255, 0.12));
  border-radius: 22px;
  padding: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
}

.two-column {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.workflow-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
}

.grid {
  display: grid;
  gap: 1.9rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trio {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.download-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.docs-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(8, 11, 33, 0.82);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -120px;
  background: radial-gradient(circle, rgba(123, 245, 255, 0.18), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.card h3 {
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

.docs-links {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.docs-links a {
  color: var(--color-accent-strong);
  font-weight: 600;
}

.docs-links a:hover {
  filter: brightness(1.1);
}

.use-case-link {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-strong);
  font-weight: 600;
}

.use-case-link::after {
  content: "→";
  font-size: 1.1rem;
}

.use-case-link:hover {
  filter: brightness(1.1);
  transform: translateX(2px);
}

.video-thumb {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(40, 30, 120, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(40, 30, 120, 0.45);
}

.video-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.video-card .video-thumb {
  align-self: center;
  width: 100%;
}

.video-card .button {
  align-self: center;
  width: fit-content;
  margin: 0.3rem 0 0;
}

.card-icon {
  width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
  display: block;
  border-radius: 16px;
  filter: drop-shadow(0 18px 32px rgba(71, 55, 255, 0.28));
}

main > section:nth-of-type(even) {
  background: linear-gradient(135deg, rgba(18, 15, 60, 0.72), rgba(11, 9, 48, 0.88));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.use-cases {
  background: linear-gradient(140deg, rgba(26, 16, 83, 0.85), rgba(17, 12, 60, 0.9));
}

.workflow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.9rem;
}

.workflow-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-visual img {
  width: min(280px, 100%);
  filter: drop-shadow(0 18px 40px rgba(40, 30, 120, 0.45));
}

.workflow-steps li {
  padding: 1.65rem;
  border-radius: 20px;
  background: rgba(15, 19, 51, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 40px rgba(12, 9, 41, 0.4);
  position: relative;
  overflow: hidden;
}

.workflow-steps li::before {
  content: "";
  position: absolute;
  inset: -130px;
  background: radial-gradient(circle, rgba(255, 123, 255, 0.24), transparent 70%);
  opacity: 0.65;
  pointer-events: none;
}

.community-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.community-grid + .community-grid {
  margin-top: 2rem;
}

.awards-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.awards-grid img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.award-images {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.award-images img {
  margin: 0;
  width: auto;
  max-width: 200px;
  height: auto;
}

.award-images img[src$="netbiodyn-academie-sciences.png"] {
  max-width: 400px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-accent-strong);
  font-weight: 600;
  margin-top: 0.75rem;
}

.card-link::after {
  content: "→";
  font-size: 1.1rem;
}

.card-link:hover {
  filter: brightness(1.1);
  transform: translateX(2px);
}

.citation-card {
  display: grid;
  gap: 1.4rem;
}

.citation-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 1.2rem;
}

.citation-list a {
  color: var(--color-accent-strong);
  font-weight: 600;
}

.citation-reference {
  margin: 0.45rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.download {
  background: linear-gradient(145deg, rgba(9, 8, 40, 0.88), rgba(20, 11, 66, 0.9));
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2.8rem 0;
  background: rgba(5, 7, 27, 0.9);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-text);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-value {
  font-size: 2.15rem;
  font-weight: 600;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@media (max-width: 900px) {
  .site-header .container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-nav {
    flex: 1 1 100%;
    justify-content: space-between;
    order: 3;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    width: min(540px, 100%);
    flex: none;
  }

  .hero-card {
    order: -1;
  }

  .workflow-visual {
    grid-column: 1 / -1;
  }

  .workflow-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-nav {
    display: none;
  }

  .container {
    width: calc(100% - 1.75rem);
  }

  .section {
    padding: 3.8rem 0;
  }

  .button {
    width: 100%;
  }

  .hero-card {
    padding: 1.8rem;
  }

  .hero-side {
    align-items: flex-start;
  }

  .hero-carousel {
    width: min(360px, 100%);
    flex: none;
  }

  .workflow-visual {
    margin-top: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}
