* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #020611;
  color: #f5f7fa;
  overflow-x: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 10%, rgba(57, 255, 136, 0.18), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(54, 144, 255, 0.14), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(57, 255, 136, 0.08), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0b1628 45%, #020611 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.site-nav a {
  color: #c7d2df;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: #39ff88;
}

main {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 0 72px;
}

.hero {
  max-width: 1020px;
  padding: 42px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #39ff88;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 1040px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  margin: 0 0 28px;
}

.subtitle {
  max-width: 860px;
  color: #c7d2df;
  font-size: 21px;
  line-height: 1.65;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.primary {
  background: #39ff88;
  color: #031109;
  box-shadow: 0 0 32px rgba(57, 255, 136, 0.35);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f7fa;
  background: rgba(255, 255, 255, 0.05);
}

.intro-card,
.story-card,
.footer-card {
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(57, 255, 136, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(2, 8, 18, 0.82);
  border: 1px solid rgba(57, 255, 136, 0.18);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  margin-bottom: 72px;
}

.intro-card h2,
.story-card h2,
.footer-card h2,
.section-heading h2,
.split-section h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}

.intro-card p,
.story-card p,
.footer-card p,
.section-heading p,
.split-section p {
  max-width: 880px;
  color: #c7d2df;
  font-size: 18px;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
  margin-bottom: 72px;
  padding: 34px 0;
}

.projects,
.knowledge-section {
  margin-bottom: 72px;
}

.section-heading {
  margin-bottom: 28px;
}

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

.project-card,
.principles div,
.topic-grid article {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
}

.featured-card {
  background:
    linear-gradient(135deg, rgba(57, 255, 136, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.055);
  border-color: rgba(57, 255, 136, 0.24);
}

.card-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: #39ff88;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3,
.principles h3,
.topic-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 24px;
}

.project-card p,
.principles p,
.topic-grid p {
  color: #c7d2df;
  line-height: 1.65;
}

.project-card a {
  color: #39ff88;
  font-weight: 800;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

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

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

.site-footer {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 36px;
  color: #7f8ea3;
  font-size: 14px;
}

@media (max-width: 1020px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .project-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 44px;
  }

  .intro-card,
  .story-card,
  .footer-card {
    padding: 30px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 12px;
  }
}

@media (max-width: 620px) {
  main,
  .site-header,
  .site-footer {
    width: calc(100% - 36px);
  }

  h1 {
    font-size: 46px;
  }

  .subtitle {
    font-size: 18px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }
}