:root {
  --bg: #070707;
  --bg-strong: #0f0f0f;
  --surface: #111111;
  --surface-2: #151515;
  --text: #f5f5f0;
  --muted: #a5a5a0;
  --line: #272727;
  --accent: #f5f5f0;
  --accent-dark: #ffffff;
  --accent-soft: #171717;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.09), transparent 0 28%),
    linear-gradient(180deg, #050505 0%, #090909 40%, #050505 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  padding: 10px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 7, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.brand {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 36px;
  min-width: 52px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.lang-button.active {
  background: var(--accent);
  color: #050505;
}

.hero,
.section {
  padding: 88px 0;
}

.hero-grid,
.cta,
.footer-grid,
.feature-strip {
  display: grid;
  gap: 24px;
}

.hero-center {
  display: flex;
  justify-content: center;
}

.hero-copy {
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.72;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  letter-spacing: -0.04em;
}

.lead,
.section-heading p,
.project-card p,
.prose p {
  color: var(--muted);
  font-size: 1.05rem;
}

.lead {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: #050505;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-card,
.project-card,
.info-box {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 30px;
}

.hero-card ul,
.meta {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.meta li + li,
.hero-card li + li {
  margin-top: 8px;
}

.signal-section {
  padding-top: 8px;
}

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

.signal-item {
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-value {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.signal-label {
  margin: 0;
  color: var(--muted);
}

.feature-strip {
  grid-template-columns: repeat(3, 1fr);
}

.feature-strip article {
  padding: 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 44px;
}

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

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.card-top h3 a {
  position: relative;
  display: inline-block;
  padding-right: 18px;
  color: var(--text);
}

.card-top h3 a::after {
  content: "->";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted);
  transition: transform 140ms ease, color 140ms ease;
}

.card-top h3 a:hover::after {
  transform: translateX(3px);
  color: var(--text);
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #050505;
  background: var(--accent);
}

.tag.pending {
  color: var(--text);
  background: #262626;
}

.tag.muted {
  color: var(--muted);
  background: #1c1c1c;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.project-links a {
  color: #d8d8d2;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 0.22em;
}

.project-links a:hover,
.main-nav a:hover,
.footer-links a:hover {
  color: var(--accent-dark);
}

.main-nav a,
.footer-links a {
  transition: color 140ms ease;
}

.project-card {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: #151515;
}

.section-accent {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.page-main {
  padding: 72px 0 96px;
}

.prose {
  max-width: 760px;
}

.prose h1,
.prose h2 {
  max-width: none;
}

.site-footer {
  padding: 36px 0 52px;
}

.project-main {
  padding: 96px 0 72px;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.project-header {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.project-title {
  margin: 0 0 18px;
  max-width: 10ch;
}

.project-summary {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.project-panel {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 28px;
}

.project-panel h2,
.project-section h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.project-facts {
  display: grid;
  gap: 18px;
}

.project-facts div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-facts dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-facts dd {
  margin: 0;
  font-size: 1rem;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 28px;
  margin-top: 36px;
}

.project-stack {
  display: grid;
  gap: 18px;
}

.project-section {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.project-section p,
.project-section li,
.project-panel p,
.project-panel li {
  color: var(--muted);
}

.project-list {
  margin: 0;
  padding-left: 18px;
}

.project-list li + li {
  margin-top: 10px;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-list a {
  font-weight: 700;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

@media (max-width: 880px) {
  .hero-grid,
  .signal-bar,
  .feature-strip,
  .card-grid,
  .cta,
  .footer-grid,
  .project-hero,
  .project-content {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: stretch;
    gap: 16px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px 16px;
  }

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

  .hero,
  .section,
  .page-main,
  .project-main {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-card,
  .project-card,
  .info-box {
    padding: 22px;
  }

  h1 {
    max-width: 14ch;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }

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

  .main-nav a,
  .footer-links a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
  }

  .hero-actions,
  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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