/* STOZN's public-site visual language, scoped to the Gitea start page. */
.stozn-home {
  --stozn-brand: #4f46e5;
  --stozn-brand-hover: #4338ca;
  --stozn-brand-soft: #eef2ff;
  --stozn-brand-ring: #c7d2fe;
  --stozn-slate-950: #0f172a;
  --stozn-slate-800: #1e293b;
  --stozn-slate-700: #334155;
  --stozn-slate-600: #475569;
  --stozn-slate-500: #64748b;
  --stozn-slate-400: #94a3b8;
  --stozn-slate-300: #cbd5e1;
  --stozn-slate-200: #e2e8f0;
  --stozn-slate-100: #f1f5f9;
  --stozn-slate-50: #f8fafc;
  margin-bottom: -1px;
  padding: 0 !important;
  color: var(--stozn-slate-600);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stozn-home *,
.stozn-home *::before,
.stozn-home *::after {
  box-sizing: border-box;
}

.stozn-home h1,
.stozn-home h2,
.stozn-home h3,
.stozn-home p {
  margin: 0;
}

.stozn-home h1,
.stozn-home h2,
.stozn-home h3 {
  color: var(--stozn-slate-950);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  text-wrap: balance;
}

.stozn-container {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.stozn-hero {
  border-bottom: 1px solid var(--stozn-slate-200);
  background:
    radial-gradient(circle at 78% 25%, rgb(199 210 254 / 45%), transparent 27rem),
    var(--stozn-slate-50);
}

.stozn-hero > .stozn-container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(30rem, 1.1fr);
  align-items: center;
  gap: 4rem;
  padding-block: 6rem;
}

.stozn-eyebrow {
  margin-bottom: 0.75rem !important;
  color: var(--stozn-brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stozn-hero-copy h1 {
  max-width: 42rem;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.stozn-lead {
  max-width: 40rem;
  margin-top: 1.5rem !important;
  color: var(--stozn-slate-600);
  font-size: 1.12rem;
  line-height: 1.75;
}

.stozn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stozn-button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.stozn-button:hover {
  transform: translateY(-1px);
}

.stozn-button-primary {
  color: #fff !important;
  background: var(--stozn-brand);
}

.stozn-button-primary:hover {
  background: var(--stozn-brand-hover);
}

.stozn-button-secondary {
  border-color: var(--stozn-slate-300);
  color: var(--stozn-slate-800) !important;
  background: #fff;
}

.stozn-button-secondary:hover {
  border-color: var(--stozn-slate-400);
  background: var(--stozn-slate-50);
}

.stozn-button:focus-visible,
.stozn-card:focus-visible {
  outline: 3px solid var(--stozn-brand-ring);
  outline-offset: 3px;
}

.stozn-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.stozn-signals li {
  border: 1px solid var(--stozn-slate-200);
  border-radius: 0.4rem;
  padding: 0.3rem 0.6rem;
  color: var(--stozn-slate-600);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 600;
}

.stozn-workspace {
  overflow: hidden;
  border: 1px solid var(--stozn-slate-200);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 24px 55px -28px rgb(15 23 42 / 42%);
}

.stozn-window-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  border-bottom: 1px solid var(--stozn-slate-200);
  padding: 0.75rem 1rem;
  background: var(--stozn-slate-50);
}

.stozn-window-bar > span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--stozn-slate-300);
}

.stozn-window-bar strong {
  margin-left: 0.45rem;
  color: var(--stozn-slate-500);
  font-size: 0.75rem;
  font-weight: 600;
}

.stozn-workspace-grid {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  min-height: 19rem;
}

.stozn-room-list {
  border-right: 1px solid var(--stozn-slate-200);
  padding: 1rem 0.75rem;
  background: var(--stozn-slate-50);
}

.stozn-room-list > p,
.stozn-activity-label {
  margin: 0 0 0.65rem !important;
  color: var(--stozn-slate-400);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stozn-room-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  padding: 0.55rem 0.6rem;
  color: var(--stozn-slate-700);
  font-size: 0.72rem;
  font-weight: 600;
}

.stozn-room-list > div.is-active {
  border-color: var(--stozn-brand-ring);
  background: var(--stozn-brand-soft);
}

.stozn-room-list b {
  display: grid;
  min-width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--stozn-brand);
  font-size: 0.62rem;
}

.stozn-activity {
  padding: 1.1rem;
}

.stozn-commit {
  display: flex;
  gap: 0.75rem;
  border: 1px solid var(--stozn-slate-200);
  border-radius: 0.5rem;
  padding: 0.85rem;
}

.stozn-avatar {
  display: grid;
  flex: 0 0 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.45rem;
  color: #fff;
  background: var(--stozn-brand);
  font-size: 0.78rem;
  font-weight: 700;
}

.stozn-commit strong,
.stozn-commit small {
  display: block;
}

.stozn-commit strong {
  color: var(--stozn-slate-800);
  font-size: 0.78rem;
}

.stozn-commit small {
  margin-top: 0.25rem;
  color: var(--stozn-slate-500);
  font: 0.68rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stozn-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.stozn-checks span {
  border: 1px solid var(--stozn-slate-200);
  border-radius: 0.35rem;
  padding: 0.24rem 0.45rem;
  color: var(--stozn-slate-600);
  background: var(--stozn-slate-50);
  font-size: 0.65rem;
  font-weight: 600;
}

.stozn-checks span.is-passed {
  border-color: #a7f3d0;
  color: #047857;
  background: #ecfdf5;
}

.stozn-agent-note {
  margin-top: 0.85rem;
  border: 1px solid var(--stozn-brand-ring);
  border-radius: 0.5rem;
  padding: 0.85rem;
  background: var(--stozn-brand-soft);
}

.stozn-agent-note strong {
  color: var(--stozn-brand);
  font-size: 0.72rem;
}

.stozn-agent-note p {
  margin-top: 0.25rem !important;
  color: var(--stozn-slate-600);
  font-size: 0.7rem;
  line-height: 1.5;
}

.stozn-tools {
  padding-block: 6rem;
  background: #fff;
}

.stozn-section-heading {
  max-width: 47rem;
  margin-inline: auto;
  text-align: center;
}

.stozn-section-heading h2,
.stozn-closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.stozn-section-heading > p:last-child {
  margin-top: 1rem !important;
  font-size: 1.05rem;
  line-height: 1.7;
}

.stozn-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.stozn-card {
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--stozn-slate-200);
  border-radius: 0.7rem;
  padding: 1.5rem;
  color: inherit !important;
  background: #fff;
  box-shadow: 0 8px 24px -20px rgb(15 23 42 / 32%);
  text-decoration: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.stozn-card:hover {
  border-color: var(--stozn-slate-300);
  box-shadow: 0 18px 35px -25px rgb(15 23 42 / 45%);
  transform: translateY(-2px);
}

.stozn-card-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 0.6rem;
  color: var(--stozn-brand);
  background: var(--stozn-brand-soft);
  font: 700 0.9rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stozn-card h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.stozn-card p {
  margin-top: 0.6rem !important;
  line-height: 1.65;
}

.stozn-card > strong {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--stozn-brand);
  font-size: 0.85rem;
}

.stozn-closing {
  border-block: 1px solid var(--stozn-slate-200);
  padding-block: 4.5rem;
  background: var(--stozn-slate-50);
}

.stozn-closing > .stozn-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.stozn-closing p:last-child {
  max-width: 42rem;
  margin-top: 0.85rem !important;
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .stozn-hero > .stozn-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 4.5rem;
  }

  .stozn-hero-copy {
    text-align: center;
  }

  .stozn-lead {
    margin-inline: auto;
  }

  .stozn-actions,
  .stozn-signals {
    justify-content: center;
  }

  .stozn-workspace {
    width: min(42rem, 100%);
    margin-inline: auto;
  }

  .stozn-card-grid {
    grid-template-columns: 1fr;
  }

  .stozn-card {
    min-height: 14rem;
  }
}

@media (max-width: 600px) {
  .stozn-container {
    width: min(100% - 1.25rem, 72rem);
  }

  .stozn-hero > .stozn-container,
  .stozn-tools {
    padding-block: 3.5rem;
  }

  .stozn-hero-copy h1 {
    font-size: 2.45rem;
  }

  .stozn-actions {
    flex-direction: column;
  }

  .stozn-button {
    width: 100%;
  }

  .stozn-workspace-grid {
    grid-template-columns: 1fr;
  }

  .stozn-room-list {
    display: none;
  }

  .stozn-closing > .stozn-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stozn-home *,
  .stozn-home *::before,
  .stozn-home *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
