/* Narwatt landing page. Scoped to .narwatt-home so no other Forgejo page is affected.
   The palette is fixed and ignores the visitor's light/dark theme on purpose. */
.narwatt-home {
  --nw-white: #f7f7f7;
  --nw-night: #111827;
  --nw-navy: #0d1b2e;
  --nw-blue: #0057ff;
  --nw-orange: #ff7a00;
  --nw-cyan: #00d1ff;

  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--nw-white);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgb(0 87 255 / 0.28), transparent 70%),
    var(--nw-navy);
}

.narwatt-home .nw-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 3.5rem 1rem 3rem;
  text-align: center;
}

.narwatt-home .nw-logo {
  width: min(320px, 70vw);
  height: auto;
}

.narwatt-home .nw-title {
  margin: 0;
  color: var(--nw-white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.narwatt-home .nw-rule {
  width: 8rem;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--nw-blue), var(--nw-cyan) 60%, var(--nw-orange));
}

.narwatt-home .nw-intro {
  max-width: 40rem;
  margin: 0;
  color: rgb(247 247 247 / 0.82);
  font-size: 1.15rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.narwatt-home .nw-cta {
  margin-top: 0.5rem;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  color: #fff;
  background: var(--nw-blue);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.narwatt-home .nw-cta:hover,
.narwatt-home .nw-cta:focus-visible {
  color: #fff;
  background: #1a6bff;
  box-shadow: 0 0 0 3px rgb(0 209 255 / 0.35);
  outline: none;
}

.narwatt-home .nw-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  border-top: 1px solid rgb(0 209 255 / 0.18);
  background: var(--nw-night);
}

.narwatt-home .nw-stats[hidden] {
  display: none;
}

.narwatt-home .nw-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2rem 1rem;
  text-align: center;
}

.narwatt-home .nw-stat + .nw-stat {
  border-left: 1px solid rgb(247 247 247 / 0.08);
}

.narwatt-home .nw-stat-value {
  display: flex;
  align-items: center;
  min-height: calc(1.1 * clamp(1.8rem, 5vw, 2.6rem)); /* keeps labels aligned with the smaller date */
  color: var(--nw-cyan);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.narwatt-home .nw-stat-date {
  color: var(--nw-orange);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
}

.narwatt-home .nw-stat-label {
  color: rgb(247 247 247 / 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .narwatt-home .nw-stats {
    grid-template-columns: 1fr;
  }

  .narwatt-home .nw-stat + .nw-stat {
    border-left: 0;
    border-top: 1px solid rgb(247 247 247 / 0.08);
  }
}
