:root {
  --bg: #0d1318;
  --bg-2: #121a21;
  --surface: rgba(34, 43, 51, 0.55);
  --surface-solid: #1a232b;
  --border: rgba(130, 152, 168, 0.18);
  --border-strong: rgba(130, 152, 168, 0.32);
  --text: #e7eef2;
  --muted: #a3b4c0;
  --teal: #45d6d2;
  --teal-deep: #0f8ea6;
  --grey-1: #8298a8;
  --grey-2: #566a79;
  --plate-1: #3b4853;
  --plate-2: #222b33;
  --focus: #8ff3ef;
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 10px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 36rem at 78% -6%, rgba(69, 214, 210, 0.16), transparent 60%),
    radial-gradient(40rem 30rem at 4% 18%, rgba(15, 142, 166, 0.12), transparent 65%),
    radial-gradient(50rem 40rem at 50% 108%, rgba(69, 214, 210, 0.08), transparent 60%);
  background-repeat: no-repeat;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

a:hover {
  color: #7fe8e5;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(130, 152, 168, 0.14);
  color: #d4e3eb;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.45em;
  margin: 0 0.08em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(34, 43, 51, 0.8);
  color: var(--text);
  text-align: center;
  line-height: 1.45;
}

.wrap {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #03181b;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 19, 24, 0.72);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.site-header nav {
  margin-left: auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #5ae0dc 0%, #2bb6c2 55%, #1aa1b6 100%);
  color: #031a1d;
  text-decoration: none;
  font-weight: 650;
  box-shadow: 0 10px 30px -10px rgba(69, 214, 210, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  color: #031a1d;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(69, 214, 210, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-main {
  font-size: 1.05rem;
  line-height: 1.3;
}

.btn-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: #073338;
}

.btn-small {
  flex-direction: row;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-left: 0.25rem;
}

.btn-large {
  padding: 1rem 1.7rem;
  border-radius: 16px;
}

.btn-large .btn-main {
  font-size: 1.15rem;
}

/* Hero */

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 14px 28px rgba(69, 214, 210, 0.25));
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 30%, #b9cbd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pitch {
  margin: 1.1rem 0 2rem;
  max-width: 34rem;
  color: #c6d4dd;
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.download-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-status.is-ready {
  color: #bfeeed;
}

/* Hero mockup (illustrative) */

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(69, 214, 210, 0.28), transparent);
  filter: blur(30px);
}

.mock {
  border-radius: 22px;
  padding: 0 10px 10px;
  background: linear-gradient(180deg, var(--plate-1), var(--plate-2));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: clamp(8px, 1.05vw, 11.5px);
  user-select: none;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 3.2em;
  padding: 0 0.3em;
  color: #9fb1be;
}

.mock-titlebar img {
  width: 1.45em;
  height: 1.45em;
}

.mock-title {
  font-size: 1em;
  letter-spacing: 0.01em;
}

.mock-buttons {
  display: flex;
  gap: 1.4em;
  margin-left: auto;
  padding-right: 0.5em;
}

.mock-buttons i {
  display: block;
  width: 0.95em;
  height: 0.95em;
  border: 1.5px solid rgba(159, 177, 190, 0.6);
  border-radius: 3px;
}

.mock-buttons i:first-child {
  height: 0;
  border-width: 1.5px 0 0;
  margin-top: 0.5em;
}

.mock-body {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #151c22;
}

.pane {
  position: absolute;
  padding: 3px;
  overflow: hidden;
  animation-duration: 20s;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  animation-iteration-count: infinite;
}

.pane-in {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: #1c252d;
  border: 1px solid rgba(130, 152, 168, 0.16);
  overflow: hidden;
}

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.2em;
  flex: none;
  height: 2.6em;
  padding: 0 0.5em;
  background: #161e24;
  border-bottom: 1px solid rgba(130, 152, 168, 0.14);
  white-space: nowrap;
  overflow: hidden;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  height: 2.05em;
  padding: 0 0.8em;
  border-radius: 6px 6px 0 0;
  color: #8a9daa;
}

.tab.on {
  background: #1c252d;
  color: #dbe6ec;
  box-shadow: inset 0 2px 0 var(--teal);
}

.plus {
  align-self: center;
  padding: 0 0.5em;
  color: #6f8494;
}

.dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--grey-2);
}

.dot-teal { background: var(--teal); }
.dot-blue { background: #6aa7e8; }
.dot-amber { background: #e2b35c; }
.dot-grey { background: var(--grey-1); }

.pane-content {
  flex: 1;
  min-height: 0;
  padding: 0.8em 1em;
  overflow: hidden;
}

.pane-content p {
  margin: 0 0 0.35em;
  white-space: nowrap;
}

.term {
  font-family: var(--mono);
  color: #c9d6de;
  background: #12181d;
}

.term b {
  font-weight: 400;
  color: var(--teal);
}

.term .dim {
  color: #6f8494;
}

.term .hi {
  color: #f0c38a;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: #c9d6de;
  animation: blink 1.2s steps(1) infinite;
}

.web .url {
  height: 1.7em;
  margin-bottom: 0.9em;
  border-radius: 999px;
  background: #27323b;
}

.blk {
  border-radius: 6px;
  background: #27323b;
  height: 3em;
}

.blk-hero {
  height: 5.5em;
  margin-bottom: 0.7em;
  background: linear-gradient(120deg, rgba(69, 214, 210, 0.35), rgba(15, 142, 166, 0.18));
}

.blk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
  margin-bottom: 0.9em;
}

.line {
  height: 0.6em;
  margin-bottom: 0.75em;
  border-radius: 999px;
  background: #2c3943;
}

.w40 { width: 40%; }
.w50 { width: 50%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w80 { width: 80%; }

.git {
  display: flex;
  gap: 0.6em;
}

.graph {
  flex: none;
  width: 2.8em;
  height: auto;
  align-self: flex-start;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
}

.graph circle {
  fill: #1c252d;
}

.graph .head {
  fill: var(--teal);
}

.graph .alt {
  stroke: #e2b35c;
}

.commits {
  flex: 1;
  padding-top: 0.2em;
}

.commits .line {
  margin-bottom: 1.05em;
}

.md {
  font-family: var(--mono);
  color: #b8c7d1;
}

.md .h {
  color: #e7eef2;
  font-weight: 600;
}

.sash {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 42%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--teal);
  box-shadow: 0 0 12px 2px rgba(69, 214, 210, 0.6);
  opacity: 0;
  animation: sash 20s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Static layout: all four panes, as under reduced motion. */
.pane-term { left: 0;   top: 0;   width: 42%; height: 60%; animation-name: pane-term; }
.pane-md   { left: 0;   top: 60%; width: 42%; height: 40%; animation-name: pane-md; }
.pane-web  { left: 42%; top: 0;   width: 58%; height: 55%; animation-name: pane-web; }
.pane-git  { left: 42%; top: 55%; width: 58%; height: 45%; animation-name: pane-git; }

/* One group; the right group split down; the left split down; the bar dragged left; back. */
@keyframes pane-term {
  0%, 35%   { left: 0; top: 0; width: 60%; height: 100%; }
  41%, 58%  { left: 0; top: 0; width: 60%; height: 60%; }
  64%, 82%  { left: 0; top: 0; width: 42%; height: 60%; }
  90%, 100% { left: 0; top: 0; width: 60%; height: 100%; }
}

@keyframes pane-md {
  0%, 35%   { left: 0; top: 100%; width: 60%; height: 0; opacity: 0; }
  41%, 58%  { left: 0; top: 60%; width: 60%; height: 40%; opacity: 1; }
  64%, 82%  { left: 0; top: 60%; width: 42%; height: 40%; opacity: 1; }
  90%, 100% { left: 0; top: 100%; width: 60%; height: 0; opacity: 0; }
}

@keyframes pane-web {
  0%, 12%   { left: 60%; top: 0; width: 40%; height: 100%; }
  18%, 58%  { left: 60%; top: 0; width: 40%; height: 55%; }
  64%, 82%  { left: 42%; top: 0; width: 58%; height: 55%; }
  90%, 100% { left: 60%; top: 0; width: 40%; height: 100%; }
}

@keyframes pane-git {
  0%, 12%   { left: 60%; top: 100%; width: 40%; height: 0; opacity: 0; }
  18%, 58%  { left: 60%; top: 55%; width: 40%; height: 45%; opacity: 1; }
  64%, 82%  { left: 42%; top: 55%; width: 58%; height: 45%; opacity: 1; }
  90%, 100% { left: 60%; top: 100%; width: 40%; height: 0; opacity: 0; }
}

@keyframes sash {
  0%, 54%   { left: 60%; opacity: 0; }
  57%, 58%  { left: 60%; opacity: 1; }
  64%, 66%  { left: 42%; opacity: 1; }
  70%, 82%  { left: 42%; opacity: 0; }
  90%, 100% { left: 60%; opacity: 0; }
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-visual figcaption {
  margin-top: 0.9rem;
  color: #8fa2b0;
  font-size: 0.82rem;
  text-align: center;
}

/* Sections */

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card,
.panel,
.note {
  background: linear-gradient(180deg, rgba(59, 72, 83, 0.42), rgba(34, 43, 51, 0.38));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px -28px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.card {
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(69, 214, 210, 0.35);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 650;
  margin: 1rem 0 0.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card strong {
  color: #d5e1e8;
  font-weight: 600;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(69, 214, 210, 0.22), rgba(15, 142, 166, 0.12));
  border: 1px solid rgba(69, 214, 210, 0.28);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon-text {
  color: var(--teal);
  font-size: 1.35rem;
  line-height: 1;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.2rem 0 0 3.2rem;
  color: #c6d4dd;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--plate-1), var(--plate-2));
  border: 1px solid var(--border-strong);
  color: var(--teal);
  font-family: var(--display);
  font-weight: 650;
}

.steps b,
.install-steps b,
.notes b {
  color: var(--text);
  font-weight: 600;
}

/* Install */

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.panel {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
}

.install-steps {
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
  counter-reset: install;
}

.install-steps li {
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.05rem;
  color: #c6d4dd;
  counter-increment: install;
}

.install-steps li::before {
  content: counter(install);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(69, 214, 210, 0.16);
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 650;
}

.notes {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.note {
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
}

.note dt {
  font-family: var(--display);
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.note dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Requirements */

.reqs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reqs li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.reqs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}

.reqs b {
  color: var(--text);
  font-weight: 600;
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-small {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: left;
  }

  .mock {
    font-size: clamp(7px, 1.9vw, 11px);
  }

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

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

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .btn-small {
    margin-left: auto;
  }

  .cards,
  .steps,
  .reqs {
    grid-template-columns: 1fr;
  }

  .hero-icon {
    width: 72px;
    height: 72px;
  }

  .panel {
    padding: 1.4rem 1.2rem;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 1.75rem);
  }

  .btn-large {
    width: 100%;
  }

  .mock {
    padding: 0 6px 6px;
    border-radius: 16px;
  }

  .mock-body {
    border-radius: 10px;
  }

  .pane-in {
    border-radius: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pane,
  .sash,
  .cursor {
    animation: none;
  }

  .btn,
  .card {
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card,
  .panel,
  .note {
    background: var(--surface-solid);
  }
}
