:root {
  color-scheme: dark;
  --bg: #050509;
  --bg-soft: #0b0d12;
  --text: #f4f7fb;
  --muted: #a4adbd;
  --line: rgba(255, 255, 255, 0.13);
  --cyan: #5be7ff;
  --mint: #7cf6bf;
  --coral: #ff6f61;
  --gold: #f6c945;
  --ink: #111521;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 22%, rgba(91, 231, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 38%, rgba(255, 111, 97, 0.14), transparent 30%),
    linear-gradient(180deg, #050509 0%, #07080d 48%, #050509 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 9, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span {
  color: var(--cyan);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}

.nav a {
  padding: 9px 12px;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(91, 231, 255, 0.95), rgba(124, 246, 191, 0.76), rgba(246, 201, 69, 0.72), rgba(255, 111, 97, 0.82), rgba(57, 94, 255, 0.84)),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18), transparent 42%);
  background-size: 380% 380%;
  animation: gradientMove 15s ease-in-out infinite;
  filter: saturate(1.2);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 5, 9, 0.16), rgba(5, 5, 9, 0.58)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 82px);
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  text-align: center;
}

.hero .eyebrow {
  opacity: 0;
  animation: heroKicker 720ms ease-out 160ms forwards;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 13vw, 12rem);
  line-height: 0.85;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: heroTitle 900ms cubic-bezier(.2, .8, .2, 1) 260ms forwards;
}

.hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 30px auto 0;
  font-size: clamp(1.18rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(16px);
  animation: heroSubtitle 760ms ease-out 720ms forwards;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroSubtitle 680ms ease-out 980ms forwards;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #031014;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(5, 5, 9, 0.24);
}

.section,
.page-hero,
.article-page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.intro-section,
.process-section,
.latest-section,
.nano-section,
.article-page {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(91, 231, 255, 0.18) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(255, 111, 97, 0.12) 1px, transparent 0);
  background-size: 34px 34px, 55px 55px;
  background-position: 0 0, 12px 18px;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-hero h1,
.article-page h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.row-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.feature-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-grid article,
.post-card,
.metric-list {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
}

.feature-grid article {
  min-height: 260px;
  padding: 24px;
}

.feature-grid span {
  color: var(--gold);
  font-weight: 900;
}

.feature-grid h3,
.post-card h3 {
  margin: 42px 0 12px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.feature-grid p,
.post-card p,
.page-hero p,
.split-section p,
.article-lead,
.article-body p {
  color: var(--muted);
  line-height: 1.75;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.steps div {
  padding: 22px 22px 0 0;
}

.steps strong {
  color: var(--coral);
}

.steps p {
  color: var(--muted);
  line-height: 1.65;
}

.nano-section {
  padding: 44px;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.035);
}

.nano-copy h2 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.nano-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

.post-card {
  overflow: hidden;
}

.post-card a {
  display: grid;
  min-height: 100%;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.post-card span,
.post-card h3,
.post-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.post-card span {
  margin-top: 18px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.post-card h3 {
  margin-top: 12px;
}

.post-card p {
  margin-bottom: 22px;
}

.text-link,
.back-link {
  color: var(--cyan);
  font-weight: 800;
}

.page-hero {
  padding: 150px 0 50px;
}

.page-hero.compact {
  max-width: 960px;
}

.post-grid.wide {
  grid-template-columns: repeat(2, 1fr);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
}

.split-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
  line-height: 1.03;
}

.metric-list {
  padding: 24px;
}

.metric-list p {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.metric-list p:last-child {
  border-bottom: 0;
}

.metric-list strong {
  color: var(--text);
}

.article-page {
  max-width: 900px;
  padding: 150px 0 80px;
}

.article-page h1 {
  margin-top: 12px;
}

.article-lead {
  font-size: 1.15rem;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 34px 0;
  border: 1px solid var(--line);
}

.article-body {
  font-size: 1.06rem;
}

.article-body p {
  margin: 0 0 22px;
}

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

.footer a {
  color: var(--cyan);
  font-weight: 800;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes heroKicker {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitle {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(18px) scale(0.985);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes heroSubtitle {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .feature-grid,
  .post-grid,
  .post-grid.wide,
  .steps,
  .split-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .nav a {
    padding: 8px 10px;
    white-space: nowrap;
  }

  .hero {
    min-height: 88svh;
    padding: 130px 16px 70px;
  }

  .hero h1 {
    font-size: clamp(4rem, 24vw, 7rem);
  }

  .section {
    padding: 70px 0;
  }

  .page-hero,
  .article-page {
    padding-top: 150px;
  }

  .footer {
    flex-direction: column;
  }
}
