:root {
  --bg: #05070c;
  --bg-soft: #0f1420;
  --card: #11192b;
  --line: #2a3954;
  --text: #ecf3ff;
  --muted: #9dafd0;
  --blue: #5cc7ff;
  --green: #59ffca;
  --amber: #ffb36a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Sora", sans-serif;
  background: linear-gradient(170deg, #0a0e18 0%, #05070c 45%, #090d18 100%);
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 40vw;
  aspect-ratio: 1 / 1;
  filter: blur(60px);
  opacity: 0.25;
}

.orb-a {
  top: -18%;
  left: -6%;
  background: #2c74ff;
}

.orb-b {
  right: -8%;
  top: 16%;
  background: #1fd7b5;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 20%, black 20%, transparent 75%);
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(5, 7, 12, 0.62);
  z-index: 10;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--green);
  font-size: 0.95rem;
}

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

nav a {
  color: #c5d7f8;
  text-decoration: none;
  font-size: 0.92rem;
}

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

.hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
  padding: 4rem 0 2.3rem;
}

.kicker {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.06;
}

.name-line {
  display: block;
}

.name-line-shift {
  padding-left: clamp(0.8rem, 2.5vw, 2.4rem);
}

.title-switch {
  display: block;
  margin-top: 0.55rem;
  color: var(--amber);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  min-height: 1.6em;
}

.subtitle {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  color: #032228;
  background: linear-gradient(130deg, #61ffe2, #55beff);
  box-shadow: 0 8px 32px rgba(86, 199, 255, 0.25);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: #d7e4ff;
  background: rgba(255, 255, 255, 0.03);
}

.stats {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.6rem;
}

.stats article {
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.stats strong {
  display: block;
  font-size: 1.02rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.terminal {
  border: 1px solid #34517c;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1220;
  box-shadow: 0 16px 42px rgba(2, 9, 22, 0.45);
  align-self: start;
}

.term-head {
  margin: 0;
  padding: 0.75rem 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  color: #bed1f3;
  background: linear-gradient(90deg, #16243a, #121e31);
  border-bottom: 1px solid #34517c;
}

.term-body {
  padding: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
}

.term-body p {
  margin: 0.3rem 0;
}

.term-body span {
  color: #9fd4ff;
}

.response {
  color: #c8dbff;
  margin-bottom: 0.8rem;
}

.response.ok {
  color: #7cf3c2;
}

.section {
  padding: 1.7rem 0;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.section p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.chips span {
  border: 1px solid #37527b;
  background: linear-gradient(160deg, #111d31, #0f1626);
  color: #d7e6ff;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.stack-chips span {
  border-color: #40608a;
  background: linear-gradient(160deg, #102038, #13263f);
}

.focus-grid,
.cards,
.timeline {
  display: grid;
  gap: 0.85rem;
}

.focus-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.focus-card,
.card,
.timeline article,
.cta {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(93, 121, 255, 0.08));
}

.focus-card,
.card,
.timeline article {
  padding: 1rem;
}

.focus-card h3,
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

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

.card small {
  display: block;
  margin-top: 0.2rem;
}

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

.cert-card a {
  display: inline-block;
  margin-top: 0.7rem;
  color: #8ee6ff;
  text-decoration: none;
  font-size: 0.84rem;
}

.cert-card a:hover {
  text-decoration: underline;
}

.cert-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #334f76;
  margin-bottom: 0.75rem;
  background: #0a1324;
}

.credential-id {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #93a9cf;
}

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

.timeline span {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  color: var(--green);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.links {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.links a {
  text-decoration: none;
  font-weight: 600;
  color: #93def8;
  border: 1px solid #35547a;
  background: #0f192c;
  padding: 0.56rem 0.84rem;
  border-radius: 999px;
}

.links a:hover {
  background: #142441;
}

.cta {
  margin-top: 1rem;
  padding: 1rem;
}

.cta p {
  margin: 0;
  color: #c4d6f7;
}

.footer {
  padding: 2.2rem 0 3rem;
  color: #90a4c8;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .terminal {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  nav {
    flex-wrap: wrap;
  }

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

  .name-line-shift {
    padding-left: 0.5rem;
  }
}
