/* ==========================================================================
   nullen.cc — home page
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-24);
  overflow: hidden;
  isolation: isolate;
}

/* decorative backdrop: a fine dot grid, a beam of lime light and a soft glow */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(120% 75% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 0%, transparent 72%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1000px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--beam), transparent 68%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

.hero h1 {
  margin-top: var(--space-6);
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

/* the highlighter sweep behind the key words */
.hero h1 .mark {
  background: linear-gradient(to top, var(--accent) 0 26%, transparent 26%);
  padding: 0 0.08em 0.02em;
  border-radius: 2px;
}

.hero__lead {
  margin-top: var(--space-6);
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.hero__actions {
  margin-top: var(--space-8);
}

/* the numbers strip under the buttons */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
}

.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}

.hero__facts span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ---------- Product panel ---------- */
.hero__panel-wrap {
  position: relative;
}

.hero__panel {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* the lime glow behind the panel */
.hero__panel-wrap::after {
  content: "";
  position: absolute;
  inset: 6% -6% -8% -6%;
  background: radial-gradient(ellipse at center, var(--glow), transparent 66%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--code-line);
  background: var(--code-raised);
}

.panel__dots {
  display: flex;
  gap: 6px;
}

.panel__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.panel__dots i:first-child {
  background: #ff5f57;
}

.panel__dots i:nth-child(2) {
  background: #febc2e;
}

.panel__dots i:nth-child(3) {
  background: #28c840;
}

/* the address pill, browser style */
.panel__url {
  flex: 1;
  max-width: 290px;
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--code-line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--code-muted);
}

.panel__lock {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel__pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(111, 220, 99, 0.35);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.panel__body {
  padding: var(--space-5);
}

.panel__code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.75;
  color: var(--code-fg);
  white-space: pre;
  overflow-x: auto;
}

.panel__code .key {
  color: var(--code-key);
}

/* the empty cells the tool is hunting */
.panel__code .null {
  background: var(--code-null-bg);
  color: var(--code-null);
  border-radius: 3px;
  padding: 1px 3px;
}

.panel__stats {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--code-line);
  border-radius: var(--radius);
  background: var(--code-raised);
}

/* the circular health score */
.score {
  position: relative;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
}

.score svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

.score__track {
  stroke: rgba(255, 255, 255, 0.1);
}

.score__value {
  stroke: var(--accent);
  stroke-dasharray: 83 100;
  animation: score 1.4s var(--ease-out) both;
}

@keyframes score {
  from {
    stroke-dasharray: 0 100;
  }
}

.score__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.score__label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.score__label span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--code-muted);
}

/* per-column emptiness bars */
.panel__bars {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.panel__bars li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 38px;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--code-muted);
}

.panel__bars b {
  color: var(--code-fg);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel__bars em {
  font-style: normal;
  text-align: right;
  color: var(--accent);
}

.panel__bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.panel__bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 3px;
  background: var(--accent);
}

.panel__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid var(--code-line);
}

.chip {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--code-line);
  font-size: var(--text-xs);
  color: var(--code-muted);
}

.chip--on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 500;
}

/* ---------- Tools ---------- */
.tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.tools-stack {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

/* the live tool gets the hero card */
.tool-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.tool-feature:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tool-feature::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 62%);
  pointer-events: none;
}

.tool-feature > * {
  position: relative;
}

.tool-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-feature__name {
  margin-top: var(--space-5);
  font-size: var(--text-3xl);
  letter-spacing: -0.045em;
}

.tool-feature__desc {
  margin-top: var(--space-3);
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--text-lg);
}

.tool-feature .btn {
  margin-top: var(--space-7);
  align-self: flex-start;
}

/* a miniature of the tool, sitting inside the feature card */
.tool-feature__preview {
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--code-bg);
}

.tool-feature__preview pre {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--code-fg);
  white-space: pre;
  overflow-x: auto;
}

.tool-feature__preview .null {
  background: var(--code-null-bg);
  color: var(--code-null);
  border-radius: 3px;
  padding: 1px 3px;
}

/* the small "coming up" cards */
.tool-mini {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.tool-mini:hover {
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.tool-mini__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
}

.tool-mini__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-mini__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.tool-mini__desc {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.tool-mini__status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  white-space: nowrap;
}

/* a live tool gets the green pill */
.tool-mini__status--live {
  color: var(--accent-text);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.step {
  position: relative;
  padding-top: var(--space-7);
  border-top: 2px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

.step__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}

.step h3 {
  margin-top: var(--space-4);
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}

.step p {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-base);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}

/* ---------- Promo panel ---------- */
.promo {
  position: relative;
  overflow: hidden;
  background: var(--panel-bg);
  color: var(--panel-ink);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-xl);
  padding: var(--space-14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.promo::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 220, 99, 0.16), transparent 65%);
  pointer-events: none;
}

.promo__text {
  flex: 1 1 380px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.promo .kicker {
  color: var(--panel-accent);
}

.promo h2 {
  margin-top: var(--space-4);
  font-size: var(--text-display);
  letter-spacing: -0.05em;
}

.promo p {
  margin-top: var(--space-4);
  max-width: 52ch;
  color: var(--panel-muted);
  font-size: var(--text-lg);
}

.promo > .btn-row {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-14);
  }

  .tools-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

@media (max-width: 560px) {
  .hero__facts {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero__facts li {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
  }

  .hero__facts strong {
    font-size: 24px;
  }

  .hero__facts span {
    margin-top: 0;
  }

  .tool-feature {
    padding: var(--space-7);
  }

  .promo {
    padding: var(--space-9) var(--space-7);
  }
}
