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

:root {
  --bg-main: #020308;
  --bg-panel: #050815;
  --accent: #4fd1c5;
  --accent-soft: rgba(79, 209, 197, 0.15);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
}

body {
  min-height: 100vh;
  font-family: "Fira Code", "JetBrains Mono", monospace;
  background: radial-gradient(circle at top, #111827 0, #020308 55%, #000 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 3, 8, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.brand {
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.78rem;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 0;
  border-radius: 999px;
  transition: color 0.25s ease, transform 0.2s ease;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

main {
  padding: 96px 18px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  margin-bottom: 72px;
  max-width: 100%;
}

.hero {
  display: flex;
  gap: 32px;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 100%;
}

.hero-text {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 100%;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  font-size: 1.9rem;
  line-height: 1.35;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.tag {
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

.tag span {
  color: var(--accent);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.82rem;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn span {
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(79, 209, 197, 0.28);
  box-shadow: 0 10px 30px rgba(79, 209, 197, 0.24);
}

.code-shell {
  flex: 1 1 320px;
  border-radius: 24px;
  padding: 14px 14px 18px;
  background: radial-gradient(circle at top left, rgba(79, 209, 197, 0.18), transparent 45%), rgba(5, 8, 21, 0.98);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.code-shell::before {
  content: "";
  position: absolute;
  inset: -80%;
  background: radial-gradient(circle at 0 0, rgba(79, 209, 197, 0.08), transparent 50%);
  opacity: 0;
  animation: glowMove 8s linear infinite;
  pointer-events: none;
}

@keyframes glowMove {
  0% {
    transform: translate3d(-20%, -10%, 0);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(20%, 10%, 0);
    opacity: 0.04;
  }
  100% {
    transform: translate3d(-20%, -10%, 0);
    opacity: 0.18;
  }
}

.code-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.code-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.dot.red {
  background: #f97373;
}

.dot.yellow {
  background: #facc15;
}

.dot.green {
  background: #4ade80;
}

.code-title {
  opacity: 0.8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.code-main {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020308);
  border-radius: 18px;
  padding: 14px 16px 16px;
  font-size: 0.8rem;
  line-height: 1.45;
  overflow: hidden;
  position: relative;
  max-height: 210px;
  max-width: 100%;
}

.code-main pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
}

.code-main code {
  display: block;
  color: #e5e7eb;
}

.cursor {
  display: inline-block;
  width: 9px;
  animation: blink 1s step-start infinite;
  background: var(--accent);
  border-radius: 2px;
  margin-left: 1px;
  transform: translateY(2px);
  height: 1em;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.line-number {
  color: rgba(148, 163, 184, 0.6);
}

.token-keyword {
  color: #60a5fa;
}

.token-var {
  color: #a5b4fc;
}

.token-string {
  color: #f97373;
}

.token-fn {
  color: #34d399;
}

.token-op {
  color: #e5e7eb;
}

.section-title {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--accent);
}

.section-heading {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.section-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
}

.section-body p + p {
  margin-top: 10px;
}

.section-body ul {
  margin-top: 8px;
  padding-left: 18px;
}

.section-body li + li {
  margin-top: 4px;
}

.highlight {
  color: var(--accent);
}

.tools-list {
  list-style: none;
  padding-left: 0;
}

.tools-list li {
  margin-bottom: 4px;
}

.tools-subtitle {
  margin-top: 14px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.social-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

.social-item img {
  width: 20px;
  height: 20px;
}

.social-item a {
  color: var(--text-main);
  font-size: 0.78rem;
  text-decoration: none;
}

.social-item a:hover {
  color: var(--accent);
}

footer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 16px 0 6px;
  opacity: 0.8;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeIn 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.22s;
}

.delay-3 {
  animation-delay: 0.34s;
}

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

@media (max-width: 840px) {
  header {
    padding-inline: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
  }

  main {
    padding-inline: 14px;
    padding-top: 92px;
  }

  .hero {
    flex-direction: column;
  }

  .code-shell {
    order: -1;
  }
}