.landing .hero {
  padding: var(--space-20) 0 var(--space-16);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-12);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.2vw, 60px);
}

.hero-copy .lede {
  font-size: 17px;
}

.hero-search {
  max-width: 520px;
  margin-top: var(--space-8);
}

.hero-search .search-field.large {
  width: 100%;
  height: 46px;
  box-shadow: var(--shadow-medium);
}

.hero-copy .actions {
  margin-top: var(--space-5);
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-large);
  font-size: 12px;
}

.hero-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 38px;
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--border);
  background: var(--background-subtle);
}

.hero-dots {
  display: flex;
  gap: 5px;
}

.hero-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.hero-title .logo svg {
  width: 16px;
  height: 16px;
}

.hero-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.hero-pill.accent {
  border-color: transparent;
  background: var(--accent-fill);
  color: var(--accent-contrast);
}

.hero-body {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 176px;
  height: 330px;
}

.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  border-right: 1px solid var(--border);
  background: var(--background-subtle);
}

.hero-tool {
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-subtle);
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.hero-tool .glyph,
.hero-tool .icon {
  width: 15px;
  height: 15px;
}

.hero-tool[data-active] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.hero-canvas {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background-image: radial-gradient(var(--grid-line) 1.1px, transparent 1.1px);
  background-size: 18px 18px;
}

.hero-structure {
  width: 92%;
  height: 92%;
}

.hero-structure [data-step] {
  transition: opacity 260ms ease, stroke-dashoffset 380ms var(--ease-out);
}

.hero-window.animating .hero-structure line[data-step] {
  stroke-dasharray: 70;
}

.hero-window.animating .hero-structure [data-step]:not(.shown) {
  opacity: 0;
}

.hero-window.animating .hero-structure line[data-step]:not(.shown) {
  stroke-dashoffset: 70;
}

.hero-window.animating .hero-structure line[data-step].shown {
  stroke-dashoffset: 0;
}

.hero-guide {
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-dasharray: 3 4;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 200ms ease;
}

.hero-guide.shown {
  opacity: 0.9;
}

.hero-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  transition: opacity 200ms ease;
}

.hero-cursor {
  position: absolute;
  left: calc(var(--x, 0.5) * 92% + 4%);
  top: calc(var(--y, 0.5) * 92% + 4%);
  fill: var(--text);
  stroke: var(--surface);
  stroke-width: 1.4;
  opacity: 0;
  transition: left 520ms var(--ease-out), top 520ms var(--ease-out), opacity 200ms ease;
  pointer-events: none;
}

.hero-window.animating .hero-cursor {
  opacity: 1;
}

.hero-cursor.press {
  transform: scale(0.85);
}

.hero-inspector {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border-left: 1px solid var(--border);
}

.hero-label {
  color: var(--text-subtle);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-name {
  min-height: 18px;
  font-size: 14px;
  font-weight: 650;
  transition: opacity 200ms ease;
}

.hero-inspector dl {
  display: grid;
  margin: 4px 0 0;
}

.hero-inspector dl div {
  display: grid;
  gap: 1px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.hero-inspector dt {
  color: var(--text-subtle);
  font-size: 10.5px;
}

.hero-inspector dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hero-smiles {
  margin-top: auto;
  overflow: hidden;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

.hero-toast {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-medium);
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms var(--ease-out);
}

.hero-toast .icon {
  color: var(--accent-text);
}

.hero-toast.shown {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .hero-body {
    grid-template-columns: 32px minmax(0, 1fr);
    height: 260px;
  }

  .hero-inspector,
  .hero-actions .hero-pill:not(.accent) {
    display: none;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-8) var(--space-6);
}

.category-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-tools {
  display: grid;
  gap: 2px;
}

.category-tool {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: var(--radius);
  transition: background-color 150ms ease;
}

@media (max-width: 640px) {
  .category-tool {
    margin: 0;
    padding: 10px 0;
  }
}

.category-tool:hover {
  background: var(--surface-hover);
}

.category-tool > .icon {
  margin-top: 2px;
  color: var(--accent-text);
}

.category-tool span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.category-tool strong {
  font-size: 14px;
  font-weight: 600;
}

.category-tool small {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.highlight {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
}

.highlight h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.highlight p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: var(--accent-text);
  font-size: 13.5px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .highlights {
    grid-template-columns: minmax(0, 1fr);
  }
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
}

.featured-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.featured-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.featured-art {
  display: grid;
  place-items: center;
  height: 96px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--background-subtle);
}

.featured-art .structure {
  width: auto;
  max-width: 100%;
  max-height: 90px;
}

.featured-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.featured-body strong {
  font-size: 14.5px;
  font-weight: 600;
}

.featured-body .mono {
  color: var(--text-subtle);
  font-size: 11.5px;
}

.featured-body small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.closing-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-10);
  background: radial-gradient(600px 240px at 0% 0%, var(--accent-soft), transparent 70%), var(--surface);
}

.closing-card h2 {
  max-width: 640px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.closing-card p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  color: var(--text-muted);
}
