:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --bg-soft: #0f141b;
  --bg-panel: #121821;
  --bg-panel-strong: #151d27;
  --line: #233040;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #edf2f7;
  --muted: #97a5b5;
  --muted-strong: #bac5d1;
  --accent: #7dd3fc;
  --accent-soft: rgba(125, 211, 252, 0.12);
  --accent-line: rgba(125, 211, 252, 0.24);
  --max-width: 48rem;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(125, 211, 252, 0.08), transparent 28%),
    linear-gradient(180deg, #0b1016 0%, var(--bg) 24%, #090d12 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

h1,
h2,
h3,
p,
ol,
pre {
  margin-top: 0;
}

p:last-child,
ol:last-child,
pre:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header,
.site-footer {
  padding: 1.25rem 0;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.brand:hover,
.brand:focus-visible {
  color: var(--muted-strong);
}

.brand-logo {
  display: block;
  width: 4.2rem;
  height: 4.2rem;
  flex: none;
}

.brand-text {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: lowercase;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.75rem 0 4.5rem;
}

.hero {
  padding: 3.5rem 0 1rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 10vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.subtitle {
  max-width: 34rem;
  margin-bottom: 1rem;
  color: var(--muted-strong);
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  line-height: 1.45;
}

.intro {
  max-width: 40rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.06);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: rgba(125, 211, 252, 0.1);
  border-color: rgba(125, 211, 252, 0.34);
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.94), rgba(15, 20, 27, 0.88));
  box-shadow: var(--shadow);
}

.section-block p {
  color: var(--muted);
}

h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(18, 24, 33, 0.74), rgba(12, 17, 24, 0.78));
}

.project-card h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.project-card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  color: var(--muted-strong);
}

.card-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card strong {
  color: var(--text);
  font-weight: 600;
}

.status-active {
  color: #c4f1c9;
}

.status-foundation {
  color: #d7dcb6;
}

.status-planned {
  color: #c6d0db;
}

.workflow-summary {
  padding-left: 1rem;
  border-left: 2px solid rgba(125, 211, 252, 0.28);
  color: var(--muted-strong);
  font-size: 1.04rem;
}

.section-intro,
.section-copy {
  color: var(--muted);
}

.subsection-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.workflow-list,
.concept-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

ol.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

ol.workflow-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 13, 18, 0.56);
  color: var(--muted);
}

ol.workflow-list li::before {
  content: counter(workflow);
  counter-increment: workflow;
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.07);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

ol.workflow-list strong {
  color: var(--text);
  font-weight: 600;
}

.section-copy {
  color: var(--muted-strong);
  font-size: 1rem;
}

.concept-list {
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 13, 18, 0.44);
}

.concept-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.concept-list strong {
  color: var(--text);
}

pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: var(--radius-sm);
  background: #0b1016;
  color: #dce6f0;
  font-family: "SFMono-Regular", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre;
}

.inline-link,
.footer-content a {
  color: var(--text);
  text-decoration: none;
}

.inline-link {
  border-bottom: 1px solid rgba(125, 211, 252, 0.22);
}

.inline-link:hover,
.inline-link:focus-visible,
.footer-content a:hover,
.footer-content a:focus-visible {
  border-bottom-color: rgba(125, 211, 252, 0.48);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer p,
.footer-content a {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  main {
    gap: 1.9rem;
    padding-top: 3.5rem;
  }

  .hero {
    padding-top: 4.75rem;
  }

  .section-block {
    gap: 1.7rem;
    padding: 2rem;
  }

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

@media (min-width: 980px) {
  .container {
    width: min(100% - 3rem, var(--max-width));
  }

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