:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #111827;
  --text: #17202f;
  --muted: #697586;
  --line: #ded8cd;
  --accent: #0f8f73;
  --accent-strong: #0b6b59;
  --blue: #2255d3;
  --amber: #c96a26;
  --shadow: 0 24px 80px rgba(17, 24, 39, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(201, 106, 38, 0.12), transparent 32%),
    radial-gradient(circle at 84% 14%, rgba(34, 85, 211, 0.12), transparent 30%),
    var(--bg);
  background-size:
    44px 44px,
    44px 44px,
    auto,
    auto,
    auto;
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  width: calc(100% - 32px);
  margin: 16px auto 0;
  border: 1px solid rgba(222, 216, 205, 0.78);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(251, 250, 247, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 36px rgba(17, 24, 39, 0.07);
}

.brand,
.nav,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}

.nav {
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.hero,
.section,
.footer {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 76px 28px;
}

.hero {
  display: grid;
  min-height: calc(100vh - 86px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 52px;
}

.hero-copy,
.profile-panel {
  min-width: 0;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.85rem, 4.8vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.headline-line {
  display: block;
}

h1 em {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-style: normal;
}

h1 em::after {
  content: "";
  position: absolute;
  right: -0.04em;
  bottom: 0.09em;
  left: -0.04em;
  z-index: -1;
  height: 0.28em;
  border-radius: 999px;
  background: rgba(15, 143, 115, 0.18);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(251, 250, 247, 0.78);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 32, 52, 0.12);
}

.profile-panel {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  padding: 18px;
  background: rgba(251, 250, 247, 0.88);
  box-shadow: var(--shadow);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-top img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.16);
}

.profile-top strong,
.profile-top span {
  display: block;
}

.profile-top strong {
  font-size: 1.08rem;
}

.profile-top span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signal-grid div {
  display: grid;
  gap: 4px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
}

.signal-grid strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.signal-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.terminal-card {
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  padding: 52px 22px 22px;
  background:
    linear-gradient(135deg, rgba(15, 143, 115, 0.28), transparent 42%),
    linear-gradient(160deg, #111827, #1b2738);
  color: #d9fff3;
  overflow: hidden;
}

.terminal-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -52px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(217, 255, 243, 0.22);
  border-radius: 999px;
}

.terminal-dot {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  background: #f97316;
}

.terminal-dot:nth-child(2) {
  background: #facc15;
}

.terminal-dot:nth-child(3) {
  background: #22c55e;
}

.terminal-card code {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 28px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.45;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.feature,
.project {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 250, 247, 0.84);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.feature {
  padding: 24px;
}

.feature p,
.project p,
.split p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 24px;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(15, 143, 115, 0.1);
  color: var(--accent-strong);
  font-weight: 850;
  font-size: 0.8rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: start;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  background: rgba(251, 250, 247, 0.86);
  color: #26364c;
  font-weight: 700;
}

.project-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.project-type {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project a {
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 42px;
  border-top: 1px solid var(--line);
}

.footer-links {
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: auto;
  }

  .hero,
  .split,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .feature-grid,
  .project-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    width: 100vw;
  }

  .site-header,
  .hero,
  .section,
  .footer {
    max-width: 100vw;
    width: 100vw;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero,
  .section,
  .footer {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-copy,
  .profile-panel,
  h1,
  .lead,
  .hero-actions {
    max-width: calc(100vw - 36px);
    width: calc(100vw - 36px);
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .headline-line {
    display: inline;
  }

  .headline-line::after {
    content: " ";
  }

  .headline-line:last-child::after {
    content: "";
  }

  .lead {
    font-size: 1.08rem;
  }

  .feature-grid,
  .project-row {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    width: calc(100vw - 16px);
    margin-top: 8px;
    margin-right: 8px;
    margin-left: 8px;
  }

  .brand {
    width: 100%;
  }

  .nav {
    max-width: calc(100vw - 36px);
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.05rem;
    line-height: 1.06;
  }
}
