:root {
  --bg: #09111d;
  --bg-2: #0f1a2b;
  --ink: #e8f1ff;
  --muted: #9ab0cd;
  --line: #294365;
  --accent: #17d4a7;
  --accent-soft: rgba(23, 212, 167, 0.18);
  --code: #75d5ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 0%, #143055 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, #1b2a43 0%, transparent 30%),
    linear-gradient(170deg, var(--bg) 0%, #070c15 100%);
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-radial-gradient(circle at 0 0, #fff 0, #fff 1px, transparent 1px, transparent 4px);
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  box-shadow: 0 0 18px rgba(23, 212, 167, 0.24);
}

.brand-text {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

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

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 33, 56, 0.7), rgba(9, 17, 29, 0.8));
  backdrop-filter: blur(4px);
  border-radius: 16px;
}

.panel-head {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: "IBM Plex Mono", monospace;
}

.status {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-code pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
}

.hero code {
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.6;
  color: var(--ink);
}

.kw {
  color: #f589b0;
}

.str {
  color: #f9e37d;
}

.num {
  color: var(--code);
}

.hero-copy {
  padding: 1.2rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1 {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.cta-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #031913;
  background: var(--accent);
  box-shadow: 0 10px 28px var(--accent-soft);
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
}

.grid-3 {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
}

.timeline {
  margin-top: 1.2rem;
  overflow: hidden;
}

.entry {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.entry:first-of-type {
  border-top: 0;
}

.year {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-size: 0.92rem;
}

.entry ul {
  margin-top: 0.5rem;
  padding-left: 1rem;
  color: var(--muted);
}

.about {
  margin-top: 1.2rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.terminal {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #040914;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #17283e;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

.terminal .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.red {
  background: #fe5f57;
}

.amber {
  background: #febb2e;
}

.green {
  background: #27c840;
}

.terminal-body {
  min-height: 185px;
  padding: 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  color: #b8fbff;
  white-space: pre-wrap;
  line-height: 1.6;
}

.contact {
  margin-top: 1.2rem;
  padding: 1rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem 2.4rem;
  color: #88a0c2;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 700ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 120ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 180ms;
}

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

@media (max-width: 960px) {
  .hero,
  .grid-3,
  .about {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .brand-logo {
    width: 1.75rem;
    height: 1.75rem;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  nav {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .cta-row {
    flex-direction: column;
  }

  h1 {
    font-size: 1.8rem;
  }
}
