:root {
  --background: #07111f;
  --surface: #0d1a2c;
  --surface-soft: #12233a;
  --text: #eef6ff;
  --text-muted: #9eb0c7;
  --primary: #55d6be;
  --primary-dark: #1da58e;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --container: 1120px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(85, 214, 190, 0.12), transparent 28rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.7;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(85, 214, 190, 0.35);
  border-radius: 12px;
  background: rgba(85, 214, 190, 0.1);
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.main-nav a {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

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

.hero {
  padding: 110px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 70px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: var(--text-muted);
  font-size: 0.56em;
  line-height: 1.22;
  letter-spacing: -0.035em;
  margin-top: 20px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.35;
}

.hero-description {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 750;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

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

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

.button-primary:hover {
  background: #7ee7d4;
}

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

.button-secondary:hover {
  border-color: rgba(85, 214, 190, 0.5);
  background: rgba(85, 214, 190, 0.08);
}

.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(85, 214, 190, 0.22);
  border-radius: var(--radius);
  background: #07101c;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: #0d1725;
}

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

.terminal-bar span:nth-child(1) {
  background: #ff6b6b;
}

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

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

.terminal-card pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
}

.terminal-card code {
  color: #cfe9ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.9;
}

.terminal-muted {
  color: var(--primary);
}

.section {
  padding: 90px 0;
}

.section-alt {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.text-link,
.read-more {
  color: var(--primary);
  font-weight: 750;
}

.text-link:hover,
.read-more:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

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

.post-card {
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 214, 190, 0.34);
  background: linear-gradient(145deg, rgba(85, 214, 190, 0.09), rgba(255, 255, 255, 0.02));
}

.post-content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 28px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.post-meta span {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h3 {
  margin-bottom: 14px;
}

.post-card h3 a:hover {
  color: var(--primary);
}

.post-card p {
  margin-bottom: 26px;
  color: var(--text-muted);
}

.read-more {
  margin-top: auto;
}

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

.topic-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.topic-card h3 {
  margin: 14px 0 8px;
}

.topic-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.topic-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: rgba(85, 214, 190, 0.1);
  color: var(--primary);
  font-size: 1.35rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 700px);
  align-items: start;
  gap: 42px;
}

.avatar {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(85, 214, 190, 0.28);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(85, 214, 190, 0.18), rgba(85, 214, 190, 0.04)),
    var(--surface);
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.about-grid h2 {
  margin-bottom: 24px;
}

.about-grid p {
  color: var(--text-muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social-links a {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
}

.social-links a:hover {
  border-color: rgba(85, 214, 190, 0.4);
  color: var(--primary);
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .terminal-card {
    max-width: 620px;
    transform: none;
  }

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

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

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding: 76px 0 58px;
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.4rem);
  }

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

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

  .avatar {
    width: 120px;
  }

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