@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Roboto:wght@400;500;700&display=swap");

:root {
  --bg: #ffffff;
  --bg-elevated: #e0e5eb;
  --bg-card: #ffffff;
  --bg-band: #b9c1cc;
  --text: #111111;
  --muted: #333333;
  --nav: #b3b3b3;
  --line: #c5c5c5;
  --accent: #478ac9;
  --accent-2: #db545a;
  --link: #478ac9;
  --radius: 0;
  --shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
  --max: 1140px;
  --header: 5rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
button, input, textarea, select { font: inherit; }
strong { font-weight: 700; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
}

.menu-bar {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.25rem;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 1.15rem;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand strong { font-weight: 700; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.nav a,
.nav-explore summary {
  color: var(--nav);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 2px solid transparent;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  white-space: nowrap;
}

.nav a:hover,
.nav-explore summary:hover { color: #4a4a4a; }

.nav a[aria-current="page"] {
  color: var(--accent-2);
  border-color: var(--accent);
}

.nav-explore { position: relative; }
.nav-explore summary {
  list-style: none;
  cursor: pointer;
}
.nav-explore summary::-webkit-details-marker { display: none; }
.nav-explore summary::after {
  content: "";
  display: inline-block;
  margin-left: 0.4rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.nav-explore ul {
  position: absolute;
  right: 0;
  margin: 0.35rem 0 0;
  padding: 0.45rem;
  list-style: none;
  background: #fff;
  border: 2px solid #e6e6e6;
  min-width: 15rem;
  box-shadow: var(--shadow);
  z-index: 5;
}
.nav-explore a {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: #444;
  border-color: transparent;
}
.nav-explore a:hover { background: var(--bg-elevated); color: #111; }
.nav-explore a[aria-current="page"] {
  color: var(--accent-2);
  border-color: transparent;
}

.icon-btn {
  background: transparent;
  border: 2px solid transparent;
  color: var(--nav);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { color: #333; }

.menu-toggle { display: none; }

.is-collapsed .menu-toggle {
  display: grid;
  margin-left: auto;
  color: #333;
  border-color: var(--line);
}
.is-collapsed .nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  margin-left: 0;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  padding: 0.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow-y: auto;
}
.site-header .is-collapsed .nav { top: 100%; }
.site-footer .is-collapsed .nav { bottom: 100%; }
.is-collapsed .nav.open { display: flex; }
.is-collapsed .nav-explore ul { position: static; box-shadow: none; }

h1, h2, h3, h4 {
  font-family: Roboto, "Segoe UI", sans-serif;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 0.8rem; font-weight: 700; }
.page-hero.explore h1 { font-size: clamp(3rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.8rem; }
h3, h4 { font-size: 1.35rem; margin: 0 0 0.55rem; font-weight: 700; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

p code,
li code {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.92em;
  font-weight: 700;
  letter-spacing: 0;
  color: #14324d;
  background: #fff;
  border: 2px solid #478ac9;
  padding: 0.08em 0.38em;
}

.page-hero, section { padding: 3.25rem 0; }
.page-hero { padding-top: 2.4rem; padding-bottom: 0.5rem; }
.hero { padding: 1.5rem 0 3rem; overflow-x: clip; }
.hero-copy { animation: hero-from-left 1s ease-out both; }
.hero-art { animation: hero-from-right 1.5s ease-out both; }
@keyframes hero-from-left {
  from { opacity: 0; transform: translateX(-5.5rem); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-from-right {
  from { opacity: 0; transform: translateX(5.5rem); }
  to { opacity: 1; transform: none; }
}

.hero-grid, .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 { margin: 0 0 1rem; }
.display {
  display: block;
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.subtitle {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
}
.hero p { max-width: 34rem; margin: 0; }

.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; margin-top: 1.6rem; }
.btn-version {
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  margin-left: 0.45rem;
  padding-left: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #111; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #111; color: #111; }

.hero-art {
  position: relative;
  min-height: 420px;
}
.hero-shape {
  position: absolute;
  top: 6%;
  right: 0;
  width: 72%;
  height: 62%;
  background: var(--bg-elevated);
}
.hero-dots {
  position: absolute;
  left: 6%;
  bottom: 4%;
  width: 58%;
  height: 46%;
  background-image: url("../images/u_150.png");
  background-repeat: repeat;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: 82%;
  margin-left: 14%;
  margin-top: 8%;
  border: 2px solid #b5b5b5;
  background: #fff;
}

.feature-panel {
  background: var(--bg-elevated);
  padding: 2.5rem 1.5rem 2rem;
}
.cards.feature-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.card {
  background: #fff;
  padding: 1.35rem 1.25rem 1.5rem;
}
.card p, .muted { color: var(--text); }
.card img, .media img, .media video {
  width: 100%;
  border: 2px solid #b5b5b5;
  background: #fff;
}

.band { background: var(--bg-elevated); }

.companion { padding-top: 0; }
.companion-bar {
  height: 22px;
  background: var(--bg-band);
  margin-bottom: 2.75rem;
}
.companion-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
.companion-head h2 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 500;
  margin: 0;
}
.companion-head img {
  width: 100%;
  border: 2px solid #b5b5b5;
  background: #fff;
}

.launch-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}
.launch-steps li {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1.5rem;
  align-items: center;
}
.launch-steps img {
  width: 100%;
  border: 2px solid #b5b5b5;
  background: #fff;
}
.launch-steps li.launch-close {
  grid-template-columns: 1fr;
  background: var(--bg-elevated);
  padding: 1.25rem 1.4rem;
}
.step-label {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.launch-steps h3 { margin-bottom: 0.4rem; }
.launch-steps p { margin: 0.35rem 0 0; }
.icon-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  align-items: start;
}
.icon-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #d5e4f2;
  color: #5d6b78;
  display: grid;
  place-items: center;
}
.icon-bubble svg { width: 28px; height: 28px; }
.icon-item p { margin: 0.25rem 0 0; }

.config-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}
.file-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.file-tile {
  position: relative;
  border: 2px solid #b5b5b5;
  overflow: hidden;
  background: #111;
}
.file-tile img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.file-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  text-align: center;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.config-copy {
  background: var(--bg-band);
  padding: 1.35rem 1.4rem 1.5rem;
  margin: 0;
}
.statement {
  margin: 1.75rem 0 0;
  padding: 1.4rem 1.5rem;
  background: var(--bg-elevated);
  border: 2px solid #b5b5b5;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
  text-align: center;
  max-width: none;
}

.setup-art {
  background: var(--bg-elevated);
  padding: 2.2rem 1.5rem;
}
.setup-art img {
  width: min(100%, 460px);
  margin-inline: auto;
  background: transparent;
  border: 0;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 0.35rem 0.75rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step-num {
  width: 2rem; height: 2rem;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 0.6rem;
}

.ini { display: grid; }
.ini article {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.ini h3 {
  margin: 0 0 0.3rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: #111;
}
.ini code {
  color: #111;
  font-size: inherit;
  font-weight: 700;
}
.ini p { margin: 0; max-width: 46rem; }

.site-footer {
  position: relative;
  z-index: 30;
  border-top: 1px solid #eee;
  padding-bottom: 0.5rem;
}
.site-footer .nav-explore ul {
  top: auto;
  bottom: calc(100% + 0.35rem);
  margin: 0;
}
.footer-copy {
  margin: 0;
  padding: 0 0 1rem;
  color: #666;
}

.search-panel[hidden] { display: none; }
.search-panel {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  z-index: 50;
  padding: 8vh 1rem 1rem;
}
.search-box {
  width: min(40rem, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.search-box input {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.8rem 0.9rem;
}
.search-results { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.search-results a {
  display: block;
  padding: 0.7rem;
  color: inherit;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  border: 0;
}
.search-results a:hover { background: var(--bg-elevated); }
.search-results small { color: #555; display: block; font-weight: 400; }

.form {
  display: grid;
  gap: 0.8rem;
  max-width: 36rem;
}
.form label { font-weight: 650; }
.form input, .form textarea {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.75rem;
}
.form button { justify-self: start; cursor: pointer; }

@media (min-width: 861px) {
  .split.clip:has(> article:first-child) {
    grid-template-columns: minmax(14rem, 0.58fr) minmax(0, 1.42fr);
  }
  .split.clip:has(> .media:first-child) {
    grid-template-columns: minmax(0, 1.42fr) minmax(14rem, 0.58fr);
  }
}

@media (max-width: 980px) {
  .cards.feature-cards { grid-template-columns: 1fr 1fr; }
  .companion-head,
  .config-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-grid, .split, .steps, .icon-grid, .launch-steps li { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .file-tile img { height: 140px; }
}

@media (max-width: 640px) {
  .cards.feature-cards,
  .file-gallery { grid-template-columns: 1fr; }
  .file-tile img { height: auto; }
  .file-tile span { font-size: 1.2rem; }
}

.error-hero {
  position: relative;
  width: min(980px, calc(100% - 3rem));
  margin: 2.5rem auto 3rem;
  padding: 0;
}
.error-hero img {
  width: 100%;
  max-width: none;
  height: auto;
  border: 0;
}
.error-copy {
  position: absolute;
  top: 11%;
  right: 8%;
  width: min(24rem, calc(100% - 4.5rem));
  text-align: center;
  padding: 0;
}
.error-copy > div {
  max-width: 36rem;
  background: #fff;
  padding: 1.35rem 1.6rem 1.2rem;
}
.error-copy h1 { margin: 0 0 0.45rem; }
.error-copy p { margin: 0 0 0.7rem; }
.error-copy p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-art { animation: none; }
}
