/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color-scheme: light;
  --bg: #0b0f14;
  --panel: #121826;
  --text: #e6eefc;
  --muted: #9fb0c6;
  --border: rgba(230, 238, 252, 0.12);
  --link: #7dd3fc;
  --accent: #34d399;
  --danger: #fb7185;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: radial-gradient(1200px 500px at 20% -10%, rgba(52, 211, 153, 0.18), transparent 60%),
              radial-gradient(900px 600px at 85% 0%, rgba(125, 211, 252, 0.14), transparent 60%),
              var(--bg);
  color: var(--text);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.flash {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: rgba(18, 24, 38, 0.75);
}

.flash--alert {
  border-color: rgba(251, 113, 133, 0.35);
}

.flash--notice {
  border-color: rgba(52, 211, 153, 0.35);
}

.card {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  border-color: rgba(52, 211, 153, 0.7);
}

.btn--ghost {
  border-color: var(--border);
  background: transparent;
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.55);
  color: var(--text);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.35);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.pill:hover {
  text-decoration: none;
  border-color: rgba(125, 211, 252, 0.35);
}

.stack {
  display: grid;
  gap: 12px;
  padding: 18px 0 30px;
}

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.two-col {
  display: grid;
  gap: 12px;
  align-items: start;
}

@media (min-width: 980px) {
  .two-col {
    grid-template-columns: 1fr 360px;
    gap: 16px;
  }
}

.markdown > :first-child {
  margin-top: 0;
}

.markdown > :last-child {
  margin-bottom: 0;
}

.markdown p,
.markdown ul,
.markdown ol,
.markdown pre,
.markdown blockquote,
.markdown table {
  margin: 0 0 12px;
}

.markdown ul,
.markdown ol {
  padding-left: 1.2rem;
}

.markdown pre {
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.65);
}

.markdown code {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.markdown pre code {
  font-size: 0.92em;
}

.markdown blockquote {
  margin-left: 0;
  padding-left: 12px;
  border-left: 3px solid rgba(125, 211, 252, 0.35);
  color: var(--muted);
}

.markdown table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.25);
  border-radius: 14px;
  overflow: hidden;
}

.markdown th,
.markdown td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
}

.markdown th:last-child,
.markdown td:last-child {
  border-right: 0;
}

.markdown tr:last-child td {
  border-bottom: 0;
}

.landing {
  position: relative;
  isolation: isolate;
}

.landing::before {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  height: 260px;
  z-index: -1;
  background:
    radial-gradient(500px 180px at 0% 0%, rgba(255, 168, 120, 0.18), transparent 75%),
    radial-gradient(650px 240px at 95% 0%, rgba(41, 224, 173, 0.16), transparent 75%);
  pointer-events: none;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(14, 20, 30, 0.88);
  padding: 24px;
  animation: rise 560ms ease-out both;
}

.landing-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 168, 120, 0.32), rgba(255, 168, 120, 0));
  pointer-events: none;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 238, 252, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

.landing-hero h1 {
  margin: 14px 0 0;
  max-width: 18ch;
  line-height: 1.05;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

.landing-lead {
  margin: 14px 0 0;
  max-width: 64ch;
  color: rgba(230, 238, 252, 0.84);
  font-size: 1.05rem;
  line-height: 1.55;
}

.landing-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-proof {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-proof__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  color: rgba(230, 238, 252, 0.86);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #34d399, #7dd3fc);
}

.landing-link-grid {
  display: grid;
  gap: 12px;
}

.landing-link-tile {
  display: grid;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(165deg, rgba(11, 15, 20, 0.7), rgba(18, 24, 38, 0.9));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.landing-link-tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.landing-link-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-link-tile__head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.landing-link-tile p {
  margin: 0;
  color: rgba(230, 238, 252, 0.8);
  line-height: 1.45;
}

.landing-link-tile__path {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(230, 238, 252, 0.88);
  background: rgba(255, 255, 255, 0.05);
}

.landing-link-tile__art {
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  background: #180f14;
}

.landing-link-tile__art img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-grid {
  display: grid;
  gap: 12px;
}

.landing-feature {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(11, 15, 20, 0.55), rgba(18, 24, 38, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: rise 640ms ease-out both;
}

.landing-feature:nth-child(2) {
  animation-delay: 60ms;
}

.landing-feature:nth-child(3) {
  animation-delay: 120ms;
}

.landing-feature h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.landing-feature p {
  margin: 0;
  color: rgba(230, 238, 252, 0.82);
  line-height: 1.45;
}

.landing-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  color: #f7b267;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-section-title {
  margin: 0;
  font-size: 1.35rem;
}

.landing-orgs {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.landing-org-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(11, 15, 20, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-org-card__name {
  font-size: 1.05rem;
  font-weight: 700;
}

.landing-org-card code {
  font-family: var(--font-mono);
}

.landing-org-card__actions form {
  margin: 0;
}

@media (min-width: 900px) {
  .landing-link-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .landing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .site-header__row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding: 18px;
  }

  .landing-org-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
