:root {
  --ink: #2c2a2a;
  --muted: #807f7f;
  --muted-strong: #6b6a6a;
  --muted-soft: #ababaa;
  --white: #ffffff;
  --wash: #f8f8f8;
  --wash-alt: #f7f7f7;
  --line: #dddddd;
  --coral: #ff886d;
  --coral-hover: #f87159;
  --blue: #7091df;
  --light-blue: #cae0e3;
  --radius: 10px;
  --font-sans: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --gutter: max(28px, calc((100% - 1240px) / 2));
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.wordmark {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.brand-product {
  color: var(--muted);
  font-size: 13px;
}

.nav nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  color: var(--muted-strong);
  font-size: 14px;
}

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

.nav-cta {
  margin-left: 32px;
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--white);
  background: var(--coral);
  font-size: 14px;
  font-weight: 500;
  transition: background 160ms ease;
}

.nav-cta:hover {
  background: var(--coral-hover);
}

.hero,
.wedge,
.catalog,
.principles,
.final-cta,
footer {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 112px;
  padding-bottom: 104px;
  background: var(--white);
}

.hero-arc {
  position: absolute;
  top: 128px;
  right: max(28px, calc((100% - 1240px) / 2));
  width: 520px;
  height: 260px;
  border-radius: 260px 260px 0 0;
  background: conic-gradient(
    from 270deg at 50% 100%,
    var(--blue) 0deg,
    var(--light-blue) 48deg,
    var(--coral) 106deg,
    var(--coral) 180deg,
    transparent 180deg
  );
  -webkit-mask: radial-gradient(
    260px 260px at 50% 100%,
    transparent 0 89%,
    #000 89% 100%
  );
  mask: radial-gradient(
    260px 260px at 50% 100%,
    transparent 0 89%,
    #000 89% 100%
  );
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

h1 {
  position: relative;
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.05;
}

h1 em {
  font-style: normal;
}

.hero-copy {
  position: relative;
  max-width: 520px;
  margin-bottom: 44px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.6;
}

.install {
  position: relative;
  max-width: 700px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.install-label {
  display: flex;
  justify-content: space-between;
  padding: 2px 6px 12px;
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.install-status {
  color: var(--blue);
}

.command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 10px 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wash-alt);
}

.command code {
  overflow: auto;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}

.command code span {
  margin-right: 10px;
  color: var(--coral);
}

.copy {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-left: 16px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--coral);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease;
}

.copy:hover,
.copy.copied {
  background: var(--coral-hover);
}

.copy svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 190px));
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 0 0;
}

.hero-meta strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-meta span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.wedge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 40px;
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.wedge > :first-child {
  grid-column: 1 / 3;
}

.wedge h2,
.catalog h2,
.principles h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
}

.wedge > p {
  align-self: end;
  margin: 0 0 4px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.65;
}

.rail {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.rail span {
  display: block;
  margin-bottom: 40px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 11px;
}

.rail strong,
.rail small {
  display: block;
}

.rail strong {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
}

.rail small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
}

.catalog {
  padding-top: 104px;
  padding-bottom: 104px;
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: end;
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.65;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px 0 24px;
}

.filter {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.filter:hover {
  border-color: var(--muted-soft);
  color: var(--ink);
}

.filter.active {
  color: var(--white);
  border-color: var(--coral);
  background: var(--coral);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.skill-card {
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: 30px;
  background: var(--white);
  transition: background 160ms ease;
}

.skill-card:hover {
  background: var(--wash-alt);
}

.skill-card:hover .card-link span {
  transform: translateX(3px);
}

.skill-card.hidden {
  display: none;
}

.skill-card.featured {
  background: linear-gradient(180deg, rgba(255, 136, 109, 0.08), transparent 44%),
    var(--white);
}

.skill-card.gap-card {
  background: linear-gradient(180deg, rgba(112, 145, 223, 0.09), transparent 44%),
    var(--white);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
}

.number {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.skill-card p {
  margin-bottom: 28px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.62;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-link span {
  color: var(--coral);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: transform 160ms ease;
}

.principles {
  padding-top: 104px;
  padding-bottom: 104px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 68px;
}

.principle-grid article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.principle-grid article > span {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 11px;
}

.principle-grid h3 {
  margin: 36px 0 10px;
  font-size: 18px;
}

.principle-grid p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.62;
}

.final-cta {
  padding-top: 112px;
  padding-bottom: 112px;
  background: var(--white);
  text-align: center;
}

.final-cta .command {
  max-width: 600px;
  margin: 36px auto 0;
  text-align: left;
}

footer {
  display: flex;
  align-items: center;
  min-height: 104px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  background: var(--white);
}

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

footer .footer-brand .wordmark {
  font-size: 17px;
}

footer p {
  margin: 0 auto;
  font-size: 13px;
}

footer > div {
  display: flex;
  gap: 26px;
}

@media (max-width: 960px) {
  .hero-arc {
    right: -160px;
    opacity: 0.85;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .nav nav {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .brand-divider,
  .brand-product {
    display: none;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-arc {
    top: 20px;
    right: -230px;
    width: 400px;
    height: 200px;
    opacity: 0.6;
  }

  .hero-copy {
    font-size: 16px;
  }

  .install-label {
    display: none;
  }

  .install {
    padding: 8px;
  }

  .command {
    min-height: 56px;
    padding-left: 14px;
  }

  .command code {
    font-size: 11px;
  }

  .copy span {
    display: none;
  }

  .copy {
    padding: 9px 12px;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }

  .wedge {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .wedge > :first-child,
  .wedge > p,
  .rail-a,
  .rail-b,
  .rail-c {
    grid-column: 1;
  }

  .rail span {
    margin-bottom: 22px;
  }

  .catalog,
  .principles {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .skill-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 240px;
  }

  .principle-grid {
    gap: 28px;
    margin-top: 44px;
  }

  .principle-grid h3 {
    margin-top: 24px;
  }

  .final-cta {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  footer {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  footer p {
    width: 100%;
    margin: 0;
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
