@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora/Sora-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: optional;
}

:root {
  --color-bg: #07111F;
  --color-bg-deep: #03070D;
  --color-surface: #0E1B2E;
  --color-surface-2: #111F34;
  --color-border: #22344D;
  --color-text: #F5F8FA;
  --color-muted: #8AA0B8;
  --color-muted-2: #5F748D;
  --color-accent: #20D6D3;
  --color-accent-bright: #36D9E7;
  --color-success: #2DE38B;
  --color-warning: #F6B73C;
  --color-danger: #FF5C7A;
  --font-sans: "Sora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 999px;
  --container: 1200px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(32, 214, 211, 0.16);
}

* { box-sizing: border-box; }

html {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(32, 214, 211, 0.16), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(45, 227, 139, 0.08), transparent 24%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  color: var(--color-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(138, 160, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 160, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 70%);
}

a { color: inherit; }
img, svg { max-width: 100%; }
p { line-height: 1.7; }
strong { color: var(--color-text); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid rgba(138, 160, 184, 0.16);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: clamp(168px, 18vw, 228px);
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #D8E5F0;
  font-size: 1rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-links a:hover { color: var(--color-accent-bright); }

.language-switch {
  position: relative;
  flex: 0 0 auto;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.language-switch summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 76px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(138, 160, 184, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(14, 27, 46, 0.54);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.language-switch summary::-webkit-details-marker {
  display: none;
}

.language-switch summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
}

.language-switch[open] summary,
.language-switch summary:hover {
  border-color: rgba(32, 214, 211, 0.42);
  background: rgba(14, 27, 46, 0.82);
}

.language-switch[open] summary::after {
  transform: translateY(2px) rotate(225deg);
  border-color: var(--color-accent);
}

.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(138, 160, 184, 0.24);
  border-radius: var(--radius-md);
  background: rgba(7, 17, 31, 0.98);
  box-shadow: var(--shadow-soft);
}

.language-options a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--color-muted);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.language-switch .flag {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(245, 248, 250, 0.2);
  overflow: hidden;
}

.language-switch .flag-en {
  background:
    linear-gradient(27deg, transparent 44%, #ffffff 44%, #ffffff 49%, #c8102e 49%, #c8102e 54%, #ffffff 54%, #ffffff 59%, transparent 59%),
    linear-gradient(153deg, transparent 44%, #ffffff 44%, #ffffff 49%, #c8102e 49%, #c8102e 54%, #ffffff 54%, #ffffff 59%, transparent 59%),
    linear-gradient(90deg, transparent 38%, #ffffff 38%, #ffffff 45%, #c8102e 45%, #c8102e 55%, #ffffff 55%, #ffffff 62%, transparent 62%),
    linear-gradient(0deg, transparent 33%, #ffffff 33%, #ffffff 42%, #c8102e 42%, #c8102e 58%, #ffffff 58%, #ffffff 67%, transparent 67%),
    #012169;
}

.language-switch .flag-fr {
  background: linear-gradient(90deg, #002395 0 33.33%, #ffffff 33.33% 66.66%, #ed2939 66.66% 100%);
}

.language-switch .flag-de {
  background: linear-gradient(180deg, #000000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  background: rgba(32, 214, 211, 0.14);
  color: var(--color-text);
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-primary {
  border: 1px solid rgba(32, 214, 211, 0.7);
  background: var(--color-accent);
  color: #031014;
  box-shadow: var(--shadow-glow);
}

.button-secondary {
  border: 1px solid rgba(138, 160, 184, 0.28);
  background: rgba(14, 27, 46, 0.72);
  color: var(--color-text);
}

.button-primary:hover,
.button-secondary:hover { transform: translateY(-1px); }

.hero {
  position: relative;
  padding: clamp(74px, 11vw, 136px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-title {
  margin: 0;
  max-width: 960px;
  font-size: clamp(2.7rem, 6.8vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 750;
  overflow-wrap: anywhere;
  hyphens: auto;
}

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

.lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(32, 214, 211, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(32, 214, 211, 0.08);
  color: var(--color-text);
  font-size: 0.875rem;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 14px rgba(32, 214, 211, 0.7);
}

.lattice-panel {
  position: relative;
  min-height: 460px;
  padding: 30px;
  border: 1px solid rgba(138, 160, 184, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(14, 27, 46, 0.84), rgba(3, 7, 13, 0.86));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.lattice-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 50% 20%, rgba(32, 214, 211, 0.18), transparent 38%);
  pointer-events: none;
}

.lattice-panel svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin-top: 24px;
}

.panel-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-caption span:last-child { color: var(--color-success); }

.section { padding-block: clamp(72px, 10vw, 132px); }

.page-hero {
  padding: clamp(74px, 11vw, 130px) 0 clamp(42px, 7vw, 84px);
}

.narrow { max-width: 860px; }

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 34px;
}

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 750;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-title {
  font-size: clamp(2.7rem, 6.5vw, 5.3rem);
  line-height: 1.03;
}

.section-copy {
  margin: 0;
  max-width: 820px;
  color: var(--color-muted);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(138, 160, 184, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(14, 27, 46, 0.78);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32, 214, 211, 0.42), transparent);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.card ul,
.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-text);
  font-size: 0.95rem;
}

.card li,
.check-list li {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  line-height: 1.55;
}

.card li::before,
.check-list li::before {
  content: "→";
  color: var(--color-accent);
  flex: 0 0 auto;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.education-card {
  padding: 24px;
  border-top: 1px solid rgba(138, 160, 184, 0.18);
}

.education-card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.education-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.callout {
  padding: 28px;
  border: 1px solid rgba(246, 183, 60, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(246, 183, 60, 0.07);
}

.callout p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 18px 0;
  border-top: 1px solid rgba(138, 160, 184, 0.16);
}

.detail-list strong {
  display: block;
  margin-bottom: 6px;
}

.detail-list span {
  display: block;
  color: var(--color-muted);
  line-height: 1.65;
}

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.service-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(138, 160, 184, 0.24);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.service-nav a:hover {
  border-color: rgba(32, 214, 211, 0.7);
  color: var(--color-accent);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-item {
  padding: 24px 0;
  border-top: 1px solid rgba(138, 160, 184, 0.18);
}

.faq-item h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.text-link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--color-warning);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.terminal {
  padding: 24px;
  border: 1px solid rgba(32, 214, 211, 0.22);
  border-radius: var(--radius-lg);
  background: #050B13;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-mono);
  color: var(--color-muted);
  line-height: 1.75;
  overflow: auto;
}

.terminal strong { color: var(--color-text); }
.terminal .ok { color: var(--color-success); }
.terminal .warn { color: var(--color-warning); }
.terminal .cyan { color: var(--color-accent); }

.cta {
  text-align: center;
  padding: clamp(54px, 8vw, 94px);
  border: 1px solid rgba(138, 160, 184, 0.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 214, 211, 0.18), transparent 40%),
    rgba(14, 27, 46, 0.82);
  box-shadow: var(--shadow-soft);
}

.cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.cta p {
  max-width: 700px;
  margin: 22px auto 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid rgba(138, 160, 184, 0.16);
  color: var(--color-muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

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

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

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

@media (max-width: 980px) {
  .hero-grid,
  .section-header,
  .split,
  .detail-grid,
  .faq-grid,
  .education-grid { grid-template-columns: 1fr; }

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

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav {
    min-height: 72px;
    gap: 10px;
  }
  .logo img { width: 156px; }
  .language-switch {
    margin-left: auto;
    font-size: 0.74rem;
  }
  .language-switch summary {
    min-width: 58px;
    min-height: 36px;
    padding: 0 11px;
  }
  .language-options {
    min-width: 142px;
  }
  .nav .button-secondary { display: none; }
  .services-grid,
  .process { grid-template-columns: 1fr; }
  .lattice-panel { min-height: auto; }
  .button-primary,
  .button-secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
