:root {
  --bg: #09111f;
  --bg-soft: rgba(16, 29, 51, 0.74);
  --panel: rgba(14, 23, 40, 0.74);
  --panel-strong: rgba(12, 20, 34, 0.92);
  --text: #f3f7fb;
  --muted: #98a7bd;
  --line: rgba(158, 182, 213, 0.18);
  --accent: #45d0bf;
  --accent-2: #66a7ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(102, 167, 255, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(69, 208, 191, 0.2), transparent 24%),
    linear-gradient(180deg, #0a1120 0%, #0d1526 48%, #08101a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 95%);
  pointer-events: none;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.hero,
.about,
.services,
.principles,
.process,
.cta,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 16, 28, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

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

.nav-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(102, 167, 255, 0.32);
  background: rgba(102, 167, 255, 0.1);
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-button {
  min-width: 48px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.lang-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-button.is-active {
  color: #06111d;
  background: linear-gradient(135deg, var(--accent) 0%, #92f0e6 100%);
}

.hero,
.about,
.services,
.intersystems,
.principles,
.process,
.cta {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 40px;
  min-height: 70vh;
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.95;
}

.lead,
.section-text,
.cta p,
.info-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #06111d;
  background: linear-gradient(135deg, var(--accent) 0%, #92f0e6 100%);
}

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

.hero-panel {
  display: grid;
  gap: 14px;
}

.metric-card,
.info-card,
.timeline article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
}

.metric-card span,
.timeline span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 1.05rem;
  line-height: 1.6;
}

.about,
.services,
.intersystems,
.principles,
.process,
.cta {
  margin-top: 22px;
  padding: 34px;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  max-width: 13ch;
}

.section-text {
  max-width: 72ch;
  margin: 0;
  font-size: 1rem;
}

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

.accent-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
}

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

.info-card h3,
.timeline h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.info-card p,
.timeline p {
  margin: 0;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #d9e5f4;
}

.cta {
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(69, 208, 191, 0.18), transparent 42%),
    var(--panel);
}

.cta h2 {
  max-width: none;
}

.cta p {
  max-width: 44ch;
  margin: 14px auto 24px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 6px 4px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero,
  .card-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 10px;
  }

  .topbar,
  .hero,
  .about,
  .services,
  .principles,
  .process,
  .cta {
    padding: 22px;
    border-radius: 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 12px;
  }

  .lang-switch {
    align-self: flex-start;
  }

  h2 {
    max-width: none;
  }
}
