:root {
  --bg: #06090d;
  --bg-soft: #0b1118;
  --panel: rgba(13, 20, 28, 0.86);
  --panel-strong: #111a23;
  --text: #f4f8fb;
  --muted: #9fb0bd;
  --line: rgba(151, 177, 190, 0.2);
  --line-strong: rgba(125, 211, 252, 0.42);
  --cyan: #7dd3fc;
  --cyan-deep: #0ea5e9;
  --green: #74e4a2;
  --shadow: rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(6, 9, 13, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(125, 211, 252, 0.08);
  font-size: 0.9rem;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}

nav a,
.language-switch a,
.language-switch span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
.language-switch a:hover {
  color: var(--text);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch span {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 5vw, 64px) 72px;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 13, 0.98) 0%, rgba(6, 9, 13, 0.86) 33%, rgba(6, 9, 13, 0.34) 72%, rgba(6, 9, 13, 0.1) 100%),
    linear-gradient(0deg, rgba(6, 9, 13, 1) 0%, rgba(6, 9, 13, 0.42) 36%, rgba(6, 9, 13, 0.08) 100%);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(4.2rem, 15vw, 10.5rem);
  line-height: 0.85;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin-top: 28px;
  color: #d8e5ed;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.62;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: var(--cyan);
  color: #061017;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(6, 9, 13, 0.48);
  color: var(--text);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 36px;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section h2 {
  max-width: 780px;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p:last-child,
.architecture > div:first-child p,
.research p,
.detail p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

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

.module-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px var(--shadow);
}

.module-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.14), rgba(116, 228, 162, 0.06)),
    var(--panel-strong);
  border-color: var(--line-strong);
}

.module-number {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.module-card h3 {
  margin-top: 24px;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.module-role {
  margin-top: 8px;
  color: var(--cyan);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-card p:not(.module-role) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.module-card a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.architecture {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

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

.flow div {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a1017;
}

.flow span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.flow h3 {
  margin-top: 24px;
  font-size: 1.3rem;
}

.flow p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.62;
}

.detail-section {
  display: grid;
  gap: 12px;
  padding-top: 0;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.08), rgba(116, 228, 162, 0.02)),
    #080d13;
}

.detail h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
}

.detail p {
  margin-top: 18px;
}

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

.detail li {
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #d8e5ed;
  line-height: 1.45;
  position: relative;
}

.detail li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(116, 228, 162, 0.48);
}

.research {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.research h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.research p {
  max-width: 660px;
  margin-top: 14px;
}

footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .section-heading,
  .architecture,
  .detail {
    grid-template-columns: 1fr;
  }

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

  .module-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding: 96px 18px 56px;
  }

  .hero-image {
    object-position: 67% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(6, 9, 13, 0.97) 0%, rgba(6, 9, 13, 0.76) 58%, rgba(6, 9, 13, 0.36) 100%),
      linear-gradient(0deg, rgba(6, 9, 13, 1) 0%, rgba(6, 9, 13, 0.2) 100%);
  }

  h1 {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .button {
    width: 100%;
  }

  .section {
    width: calc(100% - 28px);
    padding: 64px 0;
  }

  .module-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .module-card.featured {
    grid-column: span 1;
  }

  .detail {
    padding: 22px;
  }

  .research {
    align-items: stretch;
    flex-direction: column;
  }

  footer {
    width: calc(100% - 28px);
    flex-direction: column;
  }
}
