:root {
  --bg: #edf4ff;
  --bg2: #fdfefe;
  --bg3: #dce8f8;
  --surface: rgba(255, 255, 255, 0.7);
  --border: #c5d4ea;
  --text: #13233f;
  --muted: #556784;
  --accent: #0e9f8f;
  --accent2: #eb6b4d;
  --green: #18795a;
  --shadow: 0 18px 48px rgba(30, 58, 104, 0.08);
  --mono: "Space Mono", monospace;
  --serif: "Syne", sans-serif;
  --sans: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      circle at top left,
      rgba(14, 159, 143, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(235, 107, 77, 0.12),
      transparent 26%
    ),
    linear-gradient(180deg, #f4f8ff 0%, var(--bg) 42%, #f7fbff 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 35, 63, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 63, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

section:nth-child(even) {
  background: rgba(255, 255, 255, 0.58);
}

section:nth-child(odd) {
  background: rgba(237, 244, 255, 0.72);
}

section:last-of-type {
  border-bottom: none;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: #1a1915;
  margin-bottom: 20px;
  max-width: 780px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h1 em {
  font-style: normal;
  color: var(--accent2);
}

h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 10px;
}

p {
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 300;
}

p:last-child {
  margin-bottom: 0;
}

pre,
code {
  font-family: var(--mono);
  font-size: 0.82rem;
}

pre {
  background: #11213d;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  overflow-x: auto;
  color: #ecf6ff;
  line-height: 1.6;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

code {
  background: rgba(14, 159, 143, 0.12);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.85em;
}

#team {
  padding-bottom: 0;
}

footer {
  padding: 48px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  box-shadow: 0 10px 30px rgba(19, 35, 63, 0.06);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 24px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.14em;
  flex-shrink: 0;
  padding-right: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  list-style: none;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links li {
  flex: 0 0 auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.2s,
    opacity 0.2s,
    background-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(14, 159, 143, 0.08);
  color: var(--accent2);
}

.page-start {
  padding-top: 66px;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge-green {
  background: rgba(30, 138, 74, 0.12);
  color: var(--green);
}

.badge-orange {
  background: rgba(232, 121, 58, 0.15);
  color: var(--accent);
}

.badge-blue {
  background: rgba(26, 111, 204, 0.1);
  color: var(--accent2);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.fade-up:nth-child(2) {
  animation-delay: 0.1s;
}

.fade-up:nth-child(3) {
  animation-delay: 0.2s;
}

.fade-up:nth-child(4) {
  animation-delay: 0.3s;
}

@media (max-width: 640px) {
  nav {
    padding: 8px 16px;
  }

  .nav-inner {
    gap: 14px;
  }

  .nav-logo {
    font-size: 0.74rem;
    padding-right: 0;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: 2rem;
  }
}
