/* Orchevian — orchevian.com */

:root {
  color-scheme: dark;

  --bg: #0b0c0e;
  --bg-soft: #101216;
  --surface: #14171c;
  --surface-hi: #1a1e24;
  --border: #23282f;
  --border-hi: #2f353e;

  --fg: #e9e7e3;
  --fg-dim: #b4afa8;
  --muted: #8a857e;

  /* Sampled from the app icon: violet gradient with a cyan node. */
  --accent: #8b7ff7;
  --accent-hi: #a79dfa;
  --accent-dim: rgba(139, 127, 247, 0.14);
  --accent-node: #8cf4ff;

  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 1080px;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.38em;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.6rem 1rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.86rem;
}
.brand:hover { color: var(--fg); text-decoration: none; }

.mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-node);
  box-shadow: 0 0 10px rgba(140, 244, 255, 0.55);
  flex: none;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
}
.site-nav a { color: var(--fg-dim); }
.site-nav a:hover { color: var(--fg); text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  border: 1px solid var(--border-hi);
  background: var(--surface-hi);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.btn:hover {
  background: #20252c;
  border-color: #3a414b;
  color: var(--fg);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #120c2e;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: #120c2e;
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.86rem; }

/* ---------- hero ---------- */

.hero {
  padding: 5.5rem 0 3rem;
  text-align: center;
}

.hero-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  box-shadow: 0 16px 40px -12px rgba(123, 110, 242, 0.55);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(139, 127, 247, 0.32);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 auto 1.1rem;
  max-width: 17ch;
}

.hero .lede {
  color: var(--fg-dim);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  max-width: 54ch;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- shot ---------- */

.shot {
  margin: 3.5rem auto 0;
  max-width: 1000px;
}

.shot-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.85);
}

.shot-toggle {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.shot-toggle button[aria-pressed="true"] {
  background: var(--accent-dim);
  border-color: rgba(139, 127, 247, 0.45);
  color: var(--accent-hi);
}

/* ---------- sections ---------- */

section { padding: 4.5rem 0; }

.section-head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--fg-dim);
  margin: 0;
}

.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

/* ---------- feature grid ---------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card h3 svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.94rem;
}

/* ---------- split ---------- */

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

.split img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ticks {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  color: var(--fg-dim);
  font-size: 0.95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.ticks strong { color: var(--fg); font-weight: 600; }

/* ---------- download ---------- */

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

.dl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.dl-os {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}
.dl-os h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.dl-os span { font-size: 0.82rem; color: var(--muted); }

.dl-file {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
  margin: 0.6rem 0 1rem;
}

.dl p.dl-how {
  font-size: 0.9rem;
  color: var(--fg-dim);
  margin: 0 0 1.25rem;
}

.dl .btn { margin-top: auto; width: 100%; }

.checksums {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.checksums summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}
.checksums summary::marker { color: var(--accent); }
.checksums table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.8rem;
}
.checksums td {
  padding: 0.45rem 0.75rem 0.45rem 0;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.checksums td:first-child { white-space: nowrap; color: var(--fg-dim); }
.checksums td:last-child {
  font-family: var(--mono);
  color: var(--muted);
  word-break: break-all;
}
.checksums p { font-size: 0.88rem; color: var(--fg-dim); margin: 1rem 0 0; }

.scroll-x { overflow-x: auto; }

/* ---------- requirements ---------- */

.reqs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.reqs h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.reqs p { margin: 0; font-size: 0.94rem; color: var(--fg-dim); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}
.site-footer nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-footer a { color: var(--fg-dim); }
.site-footer a:hover { color: var(--accent-hi); }
.site-footer .legal { max-width: 46ch; line-height: 1.5; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split .split-art { order: 2; }
  section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 2rem; }
}

@media (max-width: 620px) {
  .site-nav { gap: 1rem; font-size: 0.85rem; }
  .site-nav .hide-sm { display: none; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
