:root {
  color-scheme: dark;
  --ink: #07111d;
  --panel: #0d1b2a;
  --text: #edf3f8;
  --muted: #9cafc1;
  --accent: #25a9e0;
  --line: #26394c;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
}
a {
  color: inherit;
}
header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #07111de8;
  backdrop-filter: blur(18px);
  z-index: 2;
}
.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.brand span {
  font-weight: 550;
  margin-left: 12px;
  letter-spacing: 0;
}
.header-actions,
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  text-decoration: none;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.portal-link {
  background: var(--accent);
  color: #03111b;
  font-weight: 800;
  padding: 11px 15px;
  text-decoration: none;
}
.portal-link:hover,
.portal-link:focus-visible {
  background: var(--text);
  color: var(--ink);
}
.auth-link {
  border: 1px solid var(--accent);
  color: var(--text);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 9px;
}
.auth-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.auth-link:hover,
.auth-link:focus-visible {
  background: var(--accent);
  color: #03111b;
}
.language-menu {
  position: relative;
}
.language-menu summary {
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 700;
}
.language-menu summary::-webkit-details-marker {
  display: none;
}
.language-menu[open] summary {
  color: var(--accent);
}
.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 170px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 35px #0006;
}
.language-options a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.language-options a:hover,
.language-options a:focus-visible {
  background: var(--accent);
  color: #03111b;
}
main,
footer {
  width: min(1180px, 90vw);
  margin: auto;
}
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}
h1 {
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 1.05;
  overflow-wrap: break-word;
  letter-spacing: -0.06em;
  margin: 0.25em 0;
}
h1 em {
  font-style: normal;
  color: var(--muted);
}
.lead,
.copy {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: #03111b;
  text-decoration: none;
  font-weight: 800;
  padding: 15px 22px;
  margin-top: 24px;
  align-self: flex-start;
}
section:not(.hero) {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}
h2 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
  max-width: 850px;
  margin: 0.35em 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: 50px;
}
.pictogram {
  display: block;
  color: var(--accent);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 24px;
}
.grid a {
  background: var(--panel);
  padding: 32px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 750;
  min-height: 190px;
}
.grid span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 55px;
}
.portal-intro {
  min-height: 62vh;
  padding-top: 110px;
}
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.portal-projects {
  max-width: 34rem;
  margin-top: 2rem;
}
.portal-actions .button {
  margin-top: 0;
}
.button-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
footer {
  padding: 35px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  nav {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 70vh;
  }
  h1 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }
  .language-options {
    position: fixed;
    right: 18px;
    top: 68px;
  }
}

[data-theme="light"] {
  --accent: #087da5;
}

[data-theme="light"] header {
  background: #eef3f6eb;
  border-bottom-color: #c5d2dc;
}

[data-theme="light"] .language-options {
  box-shadow: 0 16px 35px rgba(16, 35, 51, 0.16);
}

.hero-claim { font-size: clamp(1.35rem, 3vw, 2.2rem); line-height: 1.25; color: var(--muted); margin: 0.5rem 0; overflow-wrap: break-word; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.featured a { min-width: 0; }
.featured small { display: block; color: var(--accent); font-size: 0.8rem; margin-bottom: 18px; }
.featured span { margin-top: 18px; }
@media (max-width: 380px) { header { padding-inline: 12px; } .brand span { margin-left: 5px; } .header-actions { gap: 8px; } }
