:root {
  --bg: #f7f9fc;
  --text: #061226;
  --muted: #5f6f82;
  --blue: #1263ff;
  --blue-dark: #0747bd;
  --dark: #061226;
  --card: #ffffff;
  --border: #dde5f0;
  --soft: #eef4ff;
  --green: #12c995;
  --green-soft: #e9fbf6;
  --shadow: 0 18px 48px rgba(6, 18, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(18, 99, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(18, 201, 149, 0.10), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  width: 180px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.resources-page nav {
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--blue);
}

.status {
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid #cfe0ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

main {
  min-width: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 22px 86px;
}

.home-page main {
  padding-top: 0;
}

.home-page .panel-stack {
  display: grid;
  gap: 20px;
}

.resources-page main {
  padding-top: 8px;
}

.hero {
  padding: 56px 0 54px;
}

.resources-page .hero {
  padding: 24px 0 44px;
}

.home-page .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 46px;
  align-items: center;
  margin-top: 0;
  padding-top: 22px;
  padding-bottom: 22px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.home-page h1 {
  max-width: 780px;
}

.resources-page h1 {
  max-width: 920px;
}

.hero p {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.18rem;
  margin: 0 0 20px;
}

.home-page .hero p {
  max-width: 710px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
}

.resources-page .button {
  box-shadow: 0 8px 24px rgba(6, 18, 38, 0.05);
}

.resources-page .button:hover {
  border-color: #b8c9df;
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.caption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  background: white;
}

.hero-feature-card {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-feature-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: white;
  border-bottom: 1px solid var(--border);
}

.hero-feature-copy {
  padding: 14px 18px 16px;
}

.hero-feature-copy h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  min-width: 0;
  max-width: 100%;
  margin-top: 64px;
}

main > section:first-child {
  margin-top: 0;
}

.hero + section {
  margin-top: 36px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-intro {
  max-width: 790px;
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid > *,
.quick-list > *,
.split > *,
.flow > *,
.method > *,
.command-grid > * {
  min-width: 0;
}

.card {
  max-width: 100%;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.home-page .card {
  overflow: hidden;
}

.home-page .linked-card {
  position: relative;
}

.home-page .linked-card:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 22px 58px rgba(6, 18, 38, 0.11);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.linked-card .button {
  position: relative;
  z-index: 2;
}

.resources-page .card {
  padding: 22px;
  min-height: 100%;
}

.resources-page .card:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 22px 58px rgba(6, 18, 38, 0.11);
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  display: block;
  background: white;
  border-bottom: 1px solid var(--border);
}

.card-body {
  min-width: 0;
  max-width: 100%;
  padding: 22px;
}

.card p,
.panel p,
.step-card p,
.flow-step p,
.card li,
.panel li,
.step-card li,
.flow-step li {
  overflow-wrap: anywhere;
}

.about-page #next .card {
  display: flex;
  flex-direction: column;
}

.about-page #next .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.about-page #next .card-body .button {
  align-self: flex-start;
  margin-top: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid #cfe0ff;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.tag.green {
  background: var(--green-soft);
  border-color: #c5f2e5;
  color: #08795d;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.resources-page .card p {
  margin-bottom: 14px;
}

.mini-title {
  display: block;
  margin: 16px 0 6px;
  color: var(--text);
  font-weight: 900;
}

ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

li {
  margin-bottom: 7px;
}

.clean-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.clean-list li {
  margin: 8px 0;
}

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.method-step {
  max-width: 100%;
  min-width: 0;
  background: var(--dark);
  color: white;
  border-radius: 18px;
  padding: 22px;
  min-height: 190px;
  overflow-wrap: anywhere;
}

.method-step span {
  display: block;
  color: #8fb7ff;
  font-weight: 900;
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.method-step h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.method-step p {
  margin: 0;
  color: #c9d6e7;
  font-size: 0.95rem;
}

.coming {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
  box-shadow: var(--shadow);
}

.coming h3 {
  margin-top: 0;
}

.coming li {
  margin-bottom: 8px;
}

.path {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.path-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.path-row:last-child {
  border-bottom: 0;
}

.level {
  color: var(--blue);
  font-weight: 900;
}

.tools {
  color: var(--muted);
}

.callout {
  margin-top: 26px;
  background: var(--dark);
  color: white;
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.callout strong {
  color: white;
}

.callout p {
  margin: 0;
  color: #f3f7ff;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.7;
}

.callout p + p {
  margin-top: 18px;
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Shared guide and project page patterns */

.project-hero,
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: 46px;
  align-items: start;
  padding: 28px 0 54px;
}

.visual-card {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow);
}

.visual-inner {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 15%, rgba(18, 99, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 80% 70%, rgba(18, 201, 149, 0.14), transparent 18rem),
    #ffffff;
}

.stack {
  width: min(100%, 440px);
  display: grid;
  gap: 12px;
}

.stack-layer {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  padding: 16px 18px;
  box-shadow: 0 14px 34px rgba(6, 18, 38, 0.08);
}

.stack-layer.dark {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.stack-layer strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.stack-layer span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.stack-layer.dark span {
  color: #c9d6e7;
}

.guide-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid #cfe0ff;
  color: var(--muted);
}

.guide-note strong {
  color: var(--text);
}

.warning-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff7e8;
  border: 1px solid #ffd89a;
  color: var(--muted);
}

.warning-note strong {
  color: var(--text);
}

.action-item {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--green-soft);
  border: 1px solid #c5f2e5;
  color: var(--muted);
}

.action-item strong {
  color: var(--text);
}

.action-item a,
.docs-list a,
.inline-link {
  color: var(--blue-dark);
  font-weight: 900;
}

.page-end-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.page-end-nav .button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.panel {
  max-width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.panel h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

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

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flow.three {
  grid-template-columns: repeat(3, 1fr);
}

.flow-step {
  max-width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(6, 18, 38, 0.06);
  min-height: 180px;
  overflow-wrap: anywhere;
}

.flow-step span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.flow-step h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.simple-table th,
.simple-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.simple-table th {
  background: var(--soft);
  color: var(--text);
}

.simple-table td {
  color: var(--muted);
}

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

.simple-table strong {
  color: var(--text);
}

.code-card {
  max-width: 100%;
  min-width: 0;
  background: var(--dark);
  color: white;
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.code-card pre {
  margin: 0;
  color: #d8e6ff;
  line-height: 1.55;
  font-size: 0.95rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  color: var(--text);
}

pre code {
  color: inherit;
  font-weight: inherit;
}

.code-card code {
  color: #d8e6ff;
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  max-width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.step-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.step-card li {
  color: var(--muted);
}

pre {
  max-width: 100%;
  min-width: 0;
  margin: 14px 0 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: 14px;
  background: #061226;
  color: #d8e6ff;
  font-size: 0.92rem;
  line-height: 1.5;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  margin: 0;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  border: 1px solid #cfe0ff;
}

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

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tech-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--soft);
  border: 1px solid #cfe0ff;
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 0.82rem;
}

/* Linux terminal intro page */

.terminal-card {
  background: #061226;
  color: #d8e6ff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-card p {
  color: #c9d6e7;
  margin: 0 0 14px;
}

.terminal-card strong {
  color: #ffffff;
}

.prompt {
  display: block;
  margin-top: 10px;
  color: #8fb7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.command-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.command-table th,
.command-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.command-table th {
  background: var(--soft);
  color: var(--text);
}

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

.safe-box {
  margin-top: 24px;
  background: white;
  border: 1px solid var(--border);
  border-left: 6px solid var(--green);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.safe-box h3 {
  margin-top: 0;
}

.safe-box p {
  color: var(--muted);
  margin-bottom: 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mini {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.mini strong {
  display: block;
  margin-bottom: 6px;
}

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

.guide-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: white;
}

.image-expand {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.image-expand:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 18px;
}

.image-hint {
  display: block;
  margin-top: 8px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.image-dialog {
  width: min(96vw, 1180px);
  max-height: 94vh;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.image-dialog::backdrop {
  background: rgba(6, 18, 38, 0.72);
}

.image-dialog img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.image-dialog form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.ssh-list {
  grid-template-columns: 1fr;
}

.apt-step-list {
  margin-top: 18px;
}

/* Top 25 book recommendations page */

.book-list {
  display: grid;
  gap: 18px;
}

.book-row {
  display: grid;
  grid-template-columns: 52px 150px 1fr;
  gap: 20px;
  align-items: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.book-rank {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue-dark);
  font-weight: 900;
  border: 1px solid var(--border);
}

.book-row .book-cover-wrap {
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--soft);
}

.book-row .book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info h3 {
  margin: 10px 0 4px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.book-author {
  color: var(--muted);
  font-weight: 800;
  margin-top: 0;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 14px 0;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.book-chip {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.book-cover-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 34%),
    var(--soft);
}

.book-cover-placeholder span {
  max-width: 18ch;
}

.empty-state {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

/* Start page */

.start-page {
  background:
    radial-gradient(circle at top left, rgba(38, 105, 232, 0.08), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(24, 190, 150, 0.08), transparent 34rem),
    var(--bg);
}

.start-page main {
  max-width: none;
  padding: 0;
}

.start-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 22px 48px;
}

.start-hero-copy {
  max-width: 760px;
}

.start-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.start-lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.55;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid var(--border);
}

.primary-action {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 18px 42px rgba(18, 99, 255, 0.24);
}

.secondary-action {
  color: var(--text);
  background: white;
}

.start-hero-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(6, 18, 38, 0.12);
}

.path-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}

.path-preview-top span:first-child {
  color: var(--text);
}

.path-preview-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.path-preview-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #e2ebf6;
  border-radius: 16px;
}

.path-preview-list strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--blue-dark);
  background: var(--soft);
  border-radius: 999px;
  font-size: 0.85rem;
}

.path-preview-list span {
  color: var(--text);
  font-weight: 850;
}

.start-method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px clamp(4rem, 7vw, 5rem);
}

.start-method article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 44px rgba(6, 18, 38, 0.07);
}

.start-method span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 950;
}

.start-method p {
  margin: 0;
  color: var(--muted);
}

.start-section-heading {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 24px;
}

.start-section-heading h2,
.start-next h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.start-section-heading p,
.start-next p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.launch-path {
  display: grid;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px clamp(4rem, 7vw, 5rem);
}

.launch-step {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 44px rgba(6, 18, 38, 0.07);
}

.launch-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid #cfe0ff;
  border-radius: 18px;
  font-size: 1.2rem;
  font-weight: 950;
}

.step-kicker {
  margin: 0 0 6px;
  color: #11876f;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-body h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.step-body p {
  max-width: 820px;
  margin: 10px 0 16px;
  color: var(--muted);
}

.step-body a {
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration: none;
}

.step-body a:hover {
  text-decoration: underline;
}

.start-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
  max-width: 1076px;
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--dark);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(6, 18, 38, 0.18);
}

.start-next .eyebrow {
  color: #7db2ff;
}

.start-next h2 {
  color: white;
}

.start-next p {
  color: #c6d2e1;
}

.next-links {
  display: grid;
  gap: 12px;
}

.next-links a {
  display: block;
  padding: 16px 18px;
  color: var(--text);
  background: white;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
}

.next-links a:hover {
  background: var(--soft);
}

/* Responsive layout */

@media (max-width: 1020px) {
  .project-hero,
  .guide-hero,
  .split {
    grid-template-columns: 1fr;
  }

  .flow,
  .flow.three {
    grid-template-columns: 1fr;
  }

  .visual-inner {
    min-height: 320px;
  }
}

@media (max-width: 920px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .resources-page main {
    padding-top: 20px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero + section {
    margin-top: 28px;
  }

  .home-page .hero {
    grid-template-columns: 1fr;
  }

  .start-hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .start-hero h1 {
    font-size: clamp(3.4rem, 15vw, 5.5rem);
  }

  .start-method,
  .start-next {
    grid-template-columns: 1fr;
  }

  .launch-step {
    grid-template-columns: 1fr;
  }

  .launch-step .step-number {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

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

  .method {
    grid-template-columns: 1fr;
  }

  .coming {
    grid-template-columns: 1fr;
  }

  .hero-card img {
    height: auto;
  }

  .path-row {
    grid-template-columns: 1fr;
  }

  .quick-list,
  .mini-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .book-row {
    grid-template-columns: 44px 96px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .book-meta {
    display: grid;
  }
}

@media (max-width: 700px) {
  .simple-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .simple-table thead,
  .simple-table tbody,
  .simple-table tr {
    width: 100%;
  }

  .simple-table th,
  .simple-table td {
    min-width: 180px;
    padding: 13px 14px;
  }

  .simple-table th {
    white-space: nowrap;
  }

  .simple-table td {
    font-size: 0.95rem;
  }

  .simple-table td::before {
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 560px) {
  main {
    padding-right: 18px;
    padding-left: 18px;
  }

  .step-card,
  .panel,
  .card-body {
    padding: 20px;
  }

  .step-card h3,
  .panel h3,
  .card h3 {
    font-size: 1.2rem;
  }

  .step-card p,
  .panel p,
  .card p,
  .step-card li,
  .panel li,
  .card li {
    font-size: 1rem;
  }

  .book-row {
    grid-template-columns: 40px 76px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .book-rank {
    width: 36px;
    height: 36px;
  }

  .book-row .book-cover-wrap {
    max-width: 76px;
  }
}

/* Termius mobile SSH guide */

.guide-page .guide-hero {
  margin-top: 24px;
}

.termius-page .guide-hero {
  align-items: center;
}

.termius-page .guide-hero h1 {
  max-width: 760px;
}

.termius-page .guide-lead {
  max-width: 720px;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.termius-terminal-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.phone-shell {
  max-width: 360px;
  margin: 0 auto;
  padding: 16px;
  background: var(--dark);
  border-radius: 30px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(6, 18, 38, 0.18);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px 14px;
  color: #c9d6e7;
  font-size: 0.82rem;
  font-weight: 900;
}

.phone-terminal {
  min-height: 360px;
  padding: 18px;
  color: #d8e6ff;
  background: #020817;
  border: 1px solid rgba(143, 183, 255, 0.24);
  border-radius: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
}

.phone-terminal p {
  margin: 0 0 10px;
}

.phone-terminal .prompt {
  color: var(--green);
}

.phone-terminal .ok {
  color: var(--green);
  font-weight: 900;
}

.guide-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-intro-grid article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.guide-intro-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 950;
}

.guide-intro-grid p {
  margin: 0;
  color: var(--muted);
}

.guide-callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--green-soft);
  border: 1px solid #c5f2e5;
  color: var(--muted);
}

.guide-callout strong {
  color: var(--text);
}

.guide-warning {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff7e8;
  border: 1px solid #ffd89a;
  color: var(--muted);
}

.guide-warning strong {
  color: var(--text);
}

.guide-steps,
.guide-list {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.guide-steps li,
.guide-list li {
  margin-bottom: 8px;
}

.command-block {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin-top: 18px;
  background: var(--dark);
  border: 1px solid #203047;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.command-title {
  padding: 12px 16px;
  color: #c9d6e7;
  font-size: 0.9rem;
  font-weight: 900;
  border-bottom: 1px solid #203047;
}

.command-block pre {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.command-grid article {
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.command-grid h3 {
  margin: 0;
  padding: 16px 16px 0;
  font-size: 1.05rem;
}

.command-grid pre {
  margin: 0;
  background: transparent;
  color: var(--blue-dark);
  box-shadow: none;
}

.automation-flow,
.safety-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.automation-flow article,
.safety-list article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.automation-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  font-weight: 950;
}

.automation-flow h3,
.safety-list h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.automation-flow p,
.safety-list p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .guide-intro-grid,
  .command-grid,
  .automation-flow,
  .safety-list {
    grid-template-columns: 1fr;
  }

  .phone-terminal {
    min-height: 280px;
  }
}

/* About page project section spacing */

.about-page .split + .method {
  margin-top: 28px;
}

.about-page .method + .callout {
  margin-top: 28px;
}

/* Homepage JSON-rendered cards */

.home-page .grid {
  align-items: stretch;
}

.home-page .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-page .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-page .card-body .button {
  align-self: flex-start;
  margin-top: auto;
}

.home-page .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.home-page .card-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.home-page .section-footer {
  margin-top: 22px;
}

/* JSON-rendered index pages */

.index-page main {
  padding-top: 12px;
}

.index-page .hero {
  padding: 28px 0 24px;
}

.index-page .hero + section {
  margin-top: 36px;
}

.index-page section {
  margin-top: 48px;
}

.index-page .section-intro {
  margin-bottom: 22px;
}

.index-page .grid {
  align-items: stretch;
}

.index-page .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.index-page .linked-card {
  position: relative;
}

.index-page .linked-card:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 22px 58px rgba(6, 18, 38, 0.11);
}

.index-page .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.index-page .card-body .button {
  align-self: flex-start;
  margin-top: auto;
}

.index-page .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.index-page .card-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.index-page .method {
  margin-top: 18px;
}

.index-page #guide-index,
.index-page #project-index,
.index-page #resource-index {
  margin-top: 36px;
}

@media (max-width: 920px) {
  .index-page .hero {
    padding: 18px 0;
  }

  .index-page .hero + section {
    margin-top: 28px;
  }

  .index-page section {
    margin-top: 38px;
  }
}
/* JSON project note bubble */

.home-page .index-upgrade-note,
.index-page .index-upgrade-note {
  margin: 0 0 34px;
  padding: 20px 24px;
  border-radius: 20px;
  background: #eefaf6;
  border: 1px solid #bdebdc;
  color: var(--muted);
}

.home-page .index-upgrade-note strong,
.index-page .index-upgrade-note strong {
  color: var(--text);
}

.home-page .index-upgrade-note a,
.index-page .index-upgrade-note a {
  color: var(--blue-dark);
  font-weight: 900;
}

.home-page .index-upgrade-note + .grid,
.index-page .index-upgrade-note + .grid {
  margin-top: 34px;
}


/* Reduce excessive gap after project and guide hero sections */

.project-page .project-hero,
.guide-page .guide-hero {
  padding-bottom: 28px;
}

.project-hero + section,
.guide-hero + section {
  margin-top: 28px;
}

/* Site-wide soft background glow */

body {
  position: relative;
}

/* body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(18, 99, 255, 0.055), transparent 30rem),
    radial-gradient(circle at 88% 24%, rgba(18, 201, 149, 0.050), transparent 28rem),
    radial-gradient(circle at 18% 78%, rgba(18, 99, 255, 0.040), transparent 34rem),
    radial-gradient(circle at 92% 84%, rgba(18, 201, 149, 0.045), transparent 32rem);
} */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(18, 99, 255, 0.075), transparent 30rem),
    radial-gradient(circle at 82% 26%, rgba(18, 99, 255, 0.060), transparent 32rem),
    radial-gradient(circle at 88% 24%, rgba(18, 201, 149, 0.038), transparent 28rem),
    radial-gradient(circle at 18% 78%, rgba(18, 99, 255, 0.060), transparent 34rem),
    radial-gradient(circle at 92% 84%, rgba(18, 201, 149, 0.035), transparent 32rem),
    radial-gradient(circle at 58% 64%, rgba(18, 99, 255, 0.035), transparent 36rem);
}
body {
  position: relative;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}