/* ---------- Home: hero ---------- */

.home {
  overflow-x: clip;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 56px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--color-chalk);
}

.hero-lead {
  max-width: 420px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ash);
}

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

/* ---------- Floating disc object ---------- */

.hero-art-wrap {
  justify-self: end;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 620px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1;
  transform: translate3d(var(--par-x, 0px), var(--par-y, 0px), 0);
  transition: transform 0.35s var(--ease-out);
}

.art-glow {
  position: absolute;
  width: min(660px, 126%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(185, 160, 126, 0.22),
    rgba(51, 214, 166, 0.08) 46%,
    transparent 70%
  );
  filter: blur(14px);
  pointer-events: none;
}

.art-beam {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(185, 160, 126, 0.5),
    rgba(51, 214, 166, 0.28),
    transparent
  );
  opacity: 0.55;
  pointer-events: none;
}

.art-grid {
  position: absolute;
  left: 50%;
  bottom: 1%;
  width: min(640px, 130%);
  height: 330px;
  transform: translateX(-50%) perspective(760px) rotateX(64deg) rotateZ(45deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(to right, rgba(185, 160, 126, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185, 160, 126, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  opacity: 0.9;
  pointer-events: none;
}

.disc-stack {
  position: relative;
  width: min(600px, 100%);
  aspect-ratio: 1;
}

.disc {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--iris-35);
  background: radial-gradient(
    circle at 40% 35%,
    rgba(185, 160, 126, 0.22),
    rgba(51, 214, 166, 0.07) 55%,
    transparent 76%
  );
  box-shadow:
    inset 0 0 60px rgba(185, 160, 126, 0.12),
    0 0 70px rgba(51, 214, 166, 0.08);
  transform: translate(-50%, -50%) rotateX(66deg);
  will-change: transform;
}

.disc-1 {
  width: 80%;
  height: 80%;
  top: 62%;
  animation: floatDisc1 11s ease-in-out infinite;
}

.disc-2 {
  width: 60%;
  height: 60%;
  top: 48%;
  animation: floatDisc2 9s ease-in-out infinite;
  animation-delay: -1.8s;
}

.disc-3 {
  width: 43.4%;
  height: 43.4%;
  top: 34%;
  animation: floatDisc3 8s ease-in-out infinite;
  animation-delay: -3.2s;
}

.disc-4 {
  width: 28.4%;
  height: 28.4%;
  top: 21%;
  animation: floatDisc4 6.5s ease-in-out infinite;
  animation-delay: -2.4s;
}

@keyframes floatDisc1 {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotateX(66deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-9px) rotateX(66deg);
  }
}

@keyframes floatDisc2 {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotateX(66deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px) rotateX(66deg);
  }
}

@keyframes floatDisc3 {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotateX(66deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-8px) rotateX(66deg);
  }
}

@keyframes floatDisc4 {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotateX(66deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-14px) rotateX(66deg);
  }
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
  pointer-events: none;
}

.orbit-a {
  width: 83.3%;
  height: 83.3%;
  border: 1px solid rgba(51, 214, 166, 0.22);
}

.orbit-b {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(185, 160, 126, 0.16);
}

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-chalk);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 22px 7px rgba(185, 160, 126, 0.55),
    0 0 60px 20px rgba(51, 214, 166, 0.18);
  animation: corePulse 5s ease-in-out infinite;
}

@keyframes corePulse {
  0%,
  100% {
    box-shadow:
      0 0 22px 7px rgba(185, 160, 126, 0.55),
      0 0 60px 20px rgba(51, 214, 166, 0.18);
  }
  50% {
    box-shadow:
      0 0 26px 9px rgba(185, 160, 126, 0.7),
      0 0 74px 26px rgba(51, 214, 166, 0.26);
  }
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(51, 214, 166, 0.8);
  opacity: 0.7;
  animation: sparkDrift 9s ease-in-out infinite;
}

.spark-1 {
  top: 29%;
  left: 21%;
  animation-delay: -2s;
}

.spark-2 {
  top: 63%;
  left: 79%;
  background: var(--accent-iris);
  box-shadow: 0 0 10px rgba(185, 160, 126, 0.8);
  animation-delay: -5s;
}

.spark-3 {
  top: 16%;
  left: 63%;
  animation-delay: -7s;
}

@keyframes sparkDrift {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.85;
  }
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Tool registry ---------- */

.tools-section {
  position: relative;
  padding: 96px 0 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, var(--color-void) 0%, #0a0a11 100%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 480;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-chalk);
}

.section-lead {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-slate);
}

.registry {
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
}

.registry-head,
.registry-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 110px 130px 40px;
  gap: 20px;
  align-items: center;
  padding: 0 24px;
}

.registry-head {
  height: 46px;
  border-bottom: 1px solid var(--color-hairline);
  color: var(--color-slate);
  font-size: 13px;
  font-weight: 500;
}

.reg-col-count {
  text-align: right;
}

.registry-row {
  min-height: 84px;
  border-bottom: 1px solid var(--color-hairline);
  transition: background 0.15s var(--ease);
}

.registry-row:last-child {
  border-bottom: 0;
}

.registry-row:hover {
  background: var(--color-row-wash);
}

.reg-tool {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.reg-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-chip);
  background: var(--color-graphite);
  color: var(--accent-iris);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.registry-row:hover .reg-icon {
  border-color: var(--color-hairline-strong);
  color: var(--accent-emerald);
}

.reg-tool-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.reg-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-chalk);
}

.reg-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dim);
}

.reg-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ash);
}

.reg-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-chalk);
  text-align: right;
}

.reg-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--color-ash);
}

.reg-status .dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--color-dim);
}

.reg-status.is-available .dot {
  background: var(--status-online);
  box-shadow: 0 0 10px rgba(51, 214, 166, 0.7);
}

.reg-status.is-available {
  color: var(--color-ash);
}

.reg-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-slate);
  text-align: right;
  transition: transform 0.15s var(--ease), color 0.15s var(--ease);
}

.registry-row:hover .reg-arrow {
  transform: translateX(4px);
  color: var(--accent-iris);
}

.registry-hint {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--color-dim);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-art-wrap {
    max-width: 520px;
  }
}

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

  .hero {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .hero-art-wrap {
    justify-self: center;
    max-width: 460px;
    margin-top: 8px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-lead {
    max-width: 520px;
  }

  .registry-head {
    display: none;
  }

  .registry-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    grid-template-areas:
      "tool arrow"
      "desc desc"
      "count status";
    gap: 10px 16px;
    padding: 20px;
  }

  .reg-tool {
    grid-area: tool;
  }

  .reg-desc {
    grid-area: desc;
  }

  .reg-count {
    grid-area: count;
    text-align: left;
    font-size: 12px;
    color: var(--color-slate);
  }

  .reg-status {
    grid-area: status;
    justify-self: end;
  }

  .reg-arrow {
    grid-area: arrow;
  }
}

@media (max-width: 560px) {
  .hero-art-wrap {
    max-width: 330px;
    margin: 0 0 -8px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

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

  .tools-section {
    padding: 64px 0 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .disc,
  .core,
  .spark {
    animation: none;
  }
}
