:root {
  color-scheme: dark;
  --ink: #f7f3ff;
  --muted: #afa9be;
  --panel: rgba(24, 19, 37, 0.72);
  --panel-strong: #1d172b;
  --line: rgba(255, 255, 255, 0.1);
  --violet: #ad8cff;
  --pink: #ff8fc7;
  --mint: #76e5c3;
  --orange: #ffb86b;
  --background: #0d0a13;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(173, 140, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 35%, rgba(255, 143, 199, 0.12), transparent 30rem),
    linear-gradient(160deg, #0d0a13 0%, #120d1c 56%, #09070e 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(173, 140, 255, 0.35), rgba(255, 143, 199, 0.18));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
}

.links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.links a {
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: 680px;
  align-items: center;
  padding: 64px 0 110px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8d0e8;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.84rem;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
  content: "";
}

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

h1 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 9vw, 7.6rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.gradient {
  color: transparent;
  background: linear-gradient(90deg, #d8c7ff, var(--pink) 48%, var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
}

.lede {
  max-width: 720px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button.primary {
  color: #120d1c;
  border-color: transparent;
  background: linear-gradient(120deg, #c8afff, #ff9bcc);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 42px;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-head p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

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

.card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.card::after {
  position: absolute;
  width: 150px;
  height: 150px;
  right: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--accent, var(--violet));
  opacity: 0.12;
  filter: blur(18px);
  content: "";
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card.wide {
  grid-column: span 2;
}

.project-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.project-card .kicker {
  padding-right: 2rem;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.card-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  text-decoration: none;
}

.card-link:focus-visible {
  outline: 3px solid var(--accent, var(--violet));
  outline-offset: -3px;
}

.card-link span {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--accent, var(--violet));
  font-size: 1.35rem;
  line-height: 1;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 60px;
  color: var(--muted);
  font-size: 0.9rem;
}

.kicker {
  margin-bottom: 18px;
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero {
  padding: 86px 0 80px;
}

.page-hero h1 {
  max-width: 1000px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid rgba(173, 140, 255, 0.25);
  border-radius: 16px;
  background: rgba(9, 7, 14, 0.72);
}

.command code {
  overflow-x: auto;
  color: #e6dcf8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  white-space: nowrap;
}

.copy {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.tool-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #130e1d;
  background: var(--accent, var(--violet));
  font-weight: 850;
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
  }

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

  .card.wide {
    grid-column: auto;
  }

  .hero {
    min-height: 600px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .links {
    gap: 14px;
    font-size: 0.84rem;
  }

  .links .optional {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  .hero {
    padding-top: 34px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: none;
  }

  .project-card:hover,
  .project-card:focus-within {
    transform: none;
  }
}
