:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-alt: #10151c;
  --bg-soft: #151b25;
  --primary: #64ffda;
  --secondary: #7aa2ff;
  --accent: #f7b267;
  --text: #f5f7fa;
  --muted: #9aa4b2;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: rgba(4, 7, 20, 0.4);
  --radius: 18px;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, SFMono-Regular,
    Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
}

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

body {
  font-family: var(--sans);
  background: radial-gradient(circle at 20% 20%, #1a2130, var(--bg))
    fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.bg-orbits {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-orbits span {
  position: absolute;
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 999px;
  animation: orbit 18s linear infinite;
}

.bg-orbits span:nth-child(1) {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
}

.bg-orbits span:nth-child(2) {
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: 10%;
  animation-duration: 24s;
  border-color: rgba(122, 162, 255, 0.24);
}

.bg-orbits span:nth-child(3) {
  width: 620px;
  height: 620px;
  bottom: -220px;
  right: 12%;
  animation-duration: 32s;
  border-color: rgba(247, 178, 103, 0.25);
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(9, 11, 16, 0.7);
  border-bottom: 1px solid var(--stroke);
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  box-shadow: 0 0 12px rgba(100, 255, 218, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  transition: color 0.2s ease;
}

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

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.accent {
  color: var(--primary);
  text-shadow: 0 0 24px rgba(100, 255, 218, 0.5);
}

.eyebrow {
  font-family: var(--mono);
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

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

.btn {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #04070f;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(100, 255, 218, 0.2);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.metric {
  font-size: 1.5rem;
  font-weight: 600;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.terminal {
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.95), rgba(12, 16, 22, 0.9));
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 45px var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--stroke);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f25f5c;
}

.terminal-bar span:nth-child(2) {
  background: #ffe066;
}

.terminal-bar span:nth-child(3) {
  background: #52b788;
}

.terminal pre,
.terminal-body {
  margin: 0;
  padding: 20px 22px 26px;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: #c7d0da;
}

.terminal pre {
  white-space: pre-wrap;
}

.terminal-body h3 {
  font-family: var(--sans);
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.terminal-body p {
  color: var(--muted);
  font-family: var(--sans);
  margin-bottom: 14px;
}

.featured-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.signals div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(12, 16, 22, 0.8);
  border: 1px solid var(--stroke);
}

.signal-title {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.signal-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.signal-caption {
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section.alt {
  background: linear-gradient(120deg, rgba(100, 255, 218, 0.08), transparent);
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 32px;
}

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: start;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(12, 16, 22, 0.85);
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, border 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 162, 255, 0.3);
}

.post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.post-card p {
  color: var(--muted);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 6px;
}

.post-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--secondary);
  border: 1px solid rgba(122, 162, 255, 0.3);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 120px;
}

.sidebar-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(12, 16, 22, 0.85);
  border: 1px solid var(--stroke);
}

.sidebar-card h3 {
  margin-bottom: 10px;
}

.sidebar-card p {
  color: var(--muted);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at top, var(--secondary), var(--primary));
  box-shadow: 0 10px 24px rgba(100, 255, 218, 0.25);
  margin-bottom: 12px;
}

.sidebar-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 22, 0.85);
  transition: transform 0.2s ease, border 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 255, 218, 0.3);
}

.card-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.card p {
  color: var(--muted);
}

.card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.stack-cards {
  display: grid;
  gap: 16px;
}

.stack-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(14, 18, 26, 0.9);
  border: 1px solid var(--stroke);
}

.stack-card h4 {
  margin-bottom: 8px;
}

.stack-card p {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step {
  padding: 20px;
  border-radius: 16px;
  background: rgba(10, 14, 20, 0.9);
  border: 1px solid var(--stroke);
}

.step span {
  font-family: var(--mono);
  color: var(--primary);
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 8px;
}

.step h4 {
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
}

.cta {
  padding: 90px 0 120px;
}

.cta-card {
  background: linear-gradient(120deg, rgba(100, 255, 218, 0.15), rgba(122, 162, 255, 0.08));
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.cta-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.cta-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(9, 12, 18, 0.9);
  color: var(--text);
  font-family: var(--sans);
}

.cta-form input::placeholder {
  color: rgba(154, 164, 178, 0.7);
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 80px 20px auto 20px;
    background: rgba(9, 12, 18, 0.95);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 18px;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero {
    padding-top: 90px;
  }

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

  .sidebar {
    position: static;
  }

  .site-header .container {
    padding: 16px 0;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-btn.active span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-btn.active span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100%, 92vw);
  }

  .hero {
    padding: 90px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .post-card {
    flex-direction: column;
  }

  .post-tag {
    align-self: flex-start;
  }

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

  .cta-card {
    padding: 28px;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
