:root {
  color-scheme: light;
  --bg: #faf9f4;
  --surface: #ffffff;
  --surface-soft: #f1efe7;
  --surface-muted: #ebe8de;
  --text: #1b1c19;
  --text-soft: #4b5563;
  --muted: #77767b;
  --border: #dedbd2;
  --primary: #0a0b10;
  --primary-text: #ffffff;
  --accent: #6366f1;
  --accent-soft: #e1e0ff;
  --shadow: 0 18px 60px rgba(10, 11, 16, 0.07);
  --shadow-soft: 0 10px 30px rgba(10, 11, 16, 0.04);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0d12;
  --surface: #15161d;
  --surface-soft: #1d1f29;
  --surface-muted: #292b36;
  --text: #f6f3ec;
  --text-soft: #c8c4ba;
  --muted: #98948d;
  --border: #30323d;
  --primary: #f6f3ec;
  --primary-text: #0c0d12;
  --accent: #8b8dff;
  --accent-soft: #22234a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(99, 102, 241, 0.13), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(235, 232, 222, 0.75), transparent 28rem),
    var(--bg);
  line-height: 1.6;
  transition: background-color 220ms ease, color 220ms ease;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(99, 102, 241, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(139, 141, 255, 0.09), transparent 28rem),
    var(--bg);
}

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

p {
  margin: 0;
}

strong {
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}

nav a,
.theme-toggle {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

nav a:hover,
.theme-toggle:hover {
  color: var(--accent);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

main {
  overflow: hidden;
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 390px;
  gap: 48px;
  align-items: center;
  padding-top: 86px;
  padding-bottom: 100px;
}

.eyebrow,
.mono-label,
.tag,
time,
.service-card span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 880px;
  margin-top: 18px;
  font-size: clamp(3.2rem, 8vw, 4rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  letter-spacing: -0.025em;
}

.hero-lede,
.section-heading p,
.section-copy,
.contact-section p {
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.hero-lede {
  margin-top: 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cta-row.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

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

.button.primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.secondary {
  color: var(--text);
  background: transparent;
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.inverted {
  border-color: var(--primary-text);
  background: var(--primary-text);
  color: var(--primary);
}

.button.ghost {
  border-color: color-mix(in srgb, var(--primary-text) 55%, transparent);
  color: var(--primary-text);
}

.button.ghost:hover {
  background: var(--primary-text);
  color: var(--primary);
}

.hero-panel {
  position: relative;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  pointer-events: none;
}

.panel-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel ul {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  padding: 15px 0;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 700;
}

.hero-panel li:first-child {
  border-top: 0;
}

.proof-strip {
  margin-bottom: 120px;
}

.proof-strip > div,
.support-box {
  padding: 28px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.proof-strip p,
.support-box span {
  margin-top: 8px;
  color: var(--text-soft);
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 140px;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading h2,
.split-section h2,
.contact-section h2 {
  margin-top: 12px;
  margin-bottom: 20px;
}

.service-grid,
.plugin-grid {
  display: grid;
  gap: 20px;
}

.service-card,
.plugin-card,
.job {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-card {
  padding: 28px;
}

.service-card h3 {
  margin-top: 18px;
  margin-bottom: 12px;
}

.service-card p,
.plugin-card p,
.job p {
  color: var(--text-soft);
}

#plugins {
  margin-bottom: 140px;
}

.plugin-grid {
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
}

.plugin-card {
  min-height: 330px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.plugin-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: var(--shadow);
}

.featured-card {
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 80%, var(--accent)));
  color: var(--primary-text);
}

.featured-card p,
.featured-card .tag {
  color: color-mix(in srgb, var(--primary-text) 74%, transparent);
}

.plugin-card .tag {
  width: fit-content;
  margin-bottom: 24px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.featured-card .tag {
  background: color-mix(in srgb, var(--primary-text) 14%, transparent);
}

.plugin-card h3 {
  margin-bottom: 18px;
}

.plugin-card p {
  flex: 1;
}

.plugin-card a {
  width: fit-content;
  margin-top: 28px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.featured-card a {
  color: var(--primary-text);
}

.plugin-card a:hover,
.support-box a,
footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.support-box {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 11px;
  width: 2px;
  background: var(--surface-muted);
}

.job {
  position: relative;
  margin-left: 46px;
  padding: 26px;
}

.job::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 27px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid var(--primary);
  background: var(--bg);
  transition: border-color 180ms ease;
}

.job:hover::before {
  border-color: var(--accent);
}

.job h3 {
  margin-top: 8px;
  margin-bottom: 10px;
}

#skills {
  margin-bottom: 140px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-grid span {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.skills-grid span:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-section {
  margin-bottom: 90px;
  padding: clamp(42px, 7vw, 84px);
  border-radius: 28px;
  background: var(--primary);
  color: var(--primary-text);
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-section .eyebrow,
.contact-section p {
  color: color-mix(in srgb, var(--primary-text) 72%, transparent);
}

.contact-section h2,
.contact-section p {
  margin-left: auto;
  margin-right: auto;
}

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 46px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .hero {
    padding-top: 56px;
  }

  .proof-strip,
  .split-section,
  #plugins,
  #skills {
    margin-bottom: 96px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-shell,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  nav a {
    font-size: 0.86rem;
  }

  .theme-label {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 76px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4rem);
  }

  .hero-panel,
  .plugin-card,
  .service-card,
  .job {
    padding: 24px;
  }

  .job {
    margin-left: 34px;
  }

  .job::before {
    left: -38px;
  }

  .timeline::before {
    left: 9px;
  }

  .contact-section {
    border-radius: 22px;
  }

  footer {
    flex-direction: column;
  }
}
