:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #f8f8f8;
  --text: #2d2d2d;
  --muted: #666666;
  --line: #e5e5e5;
  --accent: #2271b2;
  --accent-soft: #4a6c8c;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Serif Pro", serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
}

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0 0 72px;
}

#navbar-main {
  background-color: rgba(0, 0, 0, 0.75) !important;
}

#navbar-main .navbar-brand {
  font-family: "Lora", serif;
}

#navbar-main .nav-link {
  font-family: "Lora", serif;
}

#navbar-main .dropdown-item,
#navbar-main .dropdown-item span {
  font-family: "Lora", serif;
}

.page-section {
  width: 100%;
}

.page-section-white {
  background: #ffffff;
}

.page-section-gray {
  background: #f7f7f7;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-shell main {
  padding-top: 70px;
}

#navbar-main .dropdown-menu {
  background: #ffffff;
}

#navbar-main .dropdown-item,
#navbar-main .dropdown-item span {
  color: #212529 !important;
}

#navbar-main .dropdown-item:hover,
#navbar-main .dropdown-item:focus {
  background: #f7f7f7;
  color: #212529 !important;
}

.hero {
  padding-top: 40px;
  padding-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.card h3,
.tool-card h3,
.faq-item h3 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.08;
}

.hero h1 {
  max-width: 28ch;
  margin-bottom: 18px;
  font-size: clamp(1.48rem, 3vw, 2.15rem);
}

.hero-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--accent-soft);
  font-size: 0.48em;
  font-weight: 400;
  line-height: 1.2;
}

.lead,
.section-note,
.tool-card p,
.faq-item p,
.example-box p,
.card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

.hero-meta {
  margin: 18px 0 0;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 16px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: #ffffff;
}

.section {
  margin-top: 0;
  padding-top: 44px;
  padding-bottom: 44px;
}

.section-heading {
  margin-bottom: 22px;
}

.section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.16rem, 1.95vw, 1.52rem);
}

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

.card,
.tool-card,
.example-box,
.faq-item,
.install-primer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.card {
  padding: 20px;
}

.card h3,
.tool-card h3,
.faq-item h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.tool-card {
  padding: 22px;
  margin-bottom: 14px;
}

.install-primer {
  padding: 22px;
  margin-bottom: 18px;
}

.install-primer h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.install-primer p {
  color: var(--muted);
  line-height: 1.75;
}

.concepts-disclosure {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.concepts-disclosure summary {
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: "Lora", serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.concepts-disclosure summary::-webkit-details-marker {
  display: none;
}

.concepts-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.concepts-body {
  padding: 20px 22px 22px;
}

.concepts-intro {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.75;
}

.concept-map {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 36px minmax(260px, 0.9fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f7;
}

.terminal-frame {
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
}

.terminal-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.terminal-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.terminal-caption {
  color: var(--muted);
  line-height: 1.6;
}

.terminal-stack {
  display: grid;
  gap: 12px;
}

.concept-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fcfcfc;
}

.concept-box-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.concept-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.concept-down-arrow,
.concept-side-arrow {
  color: var(--accent-soft);
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.concept-targets {
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
}

.concept-target-title {
  margin-bottom: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.concept-target-list {
  display: grid;
  gap: 10px;
}

.concept-target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fcfcfc;
  border: 1px solid var(--line);
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

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

.concept-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
}

.concept-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.windows-section + .windows-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.windows-section > h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.sub-disclosure {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfc;
}

.sub-disclosure + .sub-disclosure {
  margin-top: 14px;
}

.sub-disclosure summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-family: "Lora", serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
}

.sub-disclosure summary::-webkit-details-marker {
  display: none;
}

.sub-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.sub-disclosure-body {
  padding: 16px;
}

.specificity-item + .specificity-item {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.specificity-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.specificity-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.platform-switcher {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.platform-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: "Lora", serif;
  font-size: 0.94rem;
  cursor: pointer;
}

.platform-tab.is-active {
  background: var(--accent);
  color: #ffffff;
}

.platform-guidance {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.tool-selector {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tool-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}

.brand-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

.tool-chip.is-active {
  border-color: var(--accent);
  background: #eef5fb;
  color: var(--accent);
}

.tool-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tool-meta p {
  margin: 0;
  color: var(--accent-soft);
  font-family: "Montserrat", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.tool-link {
  display: inline-block;
  margin-bottom: 2px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.tool-link:hover,
.tool-link:focus {
  text-decoration: underline;
}

.tool-panel {
  display: none;
}

.tool-panel.is-active {
  display: block;
}

.install-alt {
  margin: 12px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfc;
}

.install-alt summary {
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.install-alt summary::-webkit-details-marker {
  display: none;
}

.install-alt[open] summary {
  border-bottom: 1px solid var(--line);
}

.install-alt-body {
  padding: 0 14px 4px;
}

pre {
  overflow-x: auto;
  margin: 16px 0 10px;
  border-radius: 8px;
  padding: 16px 18px;
  background: #f7f7f7;
  color: #1f1f1f;
  border: 1px solid #e0e0e0;
}

.platform-pane {
  display: none;
}

.platform-pane.is-active {
  display: block;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
}

.tool-note,
.section-note,
.example-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
}

.tool-note {
  margin-bottom: 0;
}

.oss-callout {
  margin-top: 18px;
  padding-top: 8px;
}

.oss-callout h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

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

.mini-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.example-box {
  padding: 24px;
  background: var(--surface-strong);
}

.example-label {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.faq-item {
  padding: 20px;
}

.faq-item-wide {
  grid-column: 1 / -1;
}

.sources ul {
  margin: 0;
  padding-left: 20px;
}

.sources li {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .page-shell {
    padding-bottom: 56px;
  }

  .section-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-shell main {
    padding-top: 50px;
  }

  .grid.two,
  .faq-list,
  .concept-list,
  .oss-grid {
    grid-template-columns: 1fr;
  }

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

  .concept-map {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .concept-side-arrow {
    transform: rotate(90deg);
  }

  .platform-switcher {
    width: 100%;
    justify-content: space-between;
    border-radius: 14px;
  }

  .platform-tab {
    flex: 1 1 0;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero {
    padding: 38px 20px 28px;
  }

  .tool-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
