/* Girder · rungirder.com
   Design language: industrial-modern. Dark steel base, one safety-orange accent,
   all-sharp corners (beams are not rounded), Geist + Geist Mono, no build step.
   z-index scale: 50 = sticky nav. Nothing else uses z-index. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0d0e11;
  --surface: #14161a;
  --surface-2: #1a1d22;
  --line: #262a31;
  --text: #eceef1;
  --muted: #a2a9b2;
  --faint: #6d747d;
  --accent: #f06423;
  --accent-ink: #170e06;
  --accent-soft: rgba(240, 100, 35, 0.09);
  --code-bg: #101216;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f3f1;
    --surface: #ffffff;
    --surface-2: #ecebe8;
    --line: #dcdad5;
    --text: #16181c;
    --muted: #4d545d;
    --faint: #7b828b;
    --accent: #c2410c;
    --accent-ink: #ffffff;
    --accent-soft: rgba(194, 65, 12, 0.07);
    --code-bg: #17191d;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports not (backdrop-filter: blur(1px)) {
  .nav {
    background: var(--bg);
  }
}

.nav .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--faint);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

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

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100dvh - 64px);
  padding-top: clamp(40px, 7vh, 88px);
  padding-bottom: 64px;
}

.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.6rem, 4.2vw + 1rem, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 24px;
}

.hero .sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* code panel: a real code sample, not a fake terminal window */

.code-panel {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 24px 28px;
  overflow-x: auto;
}

.code-panel pre {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #c8ced6;
  white-space: pre;
}

.code-panel .c {
  color: #5c636d;
}

.code-panel .r {
  color: #8a9199;
}

.code-panel .a {
  color: var(--accent);
}

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

#top > section {
  padding: 96px 0;
}

.section-head {
  max-width: 65ch;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.4vw + 0.6rem, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- platform bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cell-wide {
  grid-column: span 4;
  background: var(--surface-2);
}

.cell-sm {
  grid-column: span 2;
}

.cell-full {
  grid-column: span 6;
}

.cell-accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.cell svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.cell h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cell p {
  color: var(--muted);
  font-size: 15px;
}

.cell .tag {
  margin-top: auto;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--faint);
}

.cell .tag .a {
  color: var(--accent);
}

/* ---------- how it works ---------- */

.how .wrap {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: start;
}

.how-copy {
  position: sticky;
  top: 128px;
}

.how-copy h2 {
  font-size: clamp(1.8rem, 2.4vw + 0.6rem, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.how-copy p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ---------- comparison ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  text-align: left;
  padding: 18px 16px;
  font-size: 15px;
  vertical-align: top;
}

.compare thead th {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.compare thead th.girder-col {
  color: var(--accent);
}

.compare tbody tr + tr th,
.compare tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.compare tbody th {
  font-weight: 500;
  color: var(--text);
  width: 22%;
}

.compare td {
  color: var(--muted);
  width: 26%;
}

.compare td.girder-col {
  color: var(--text);
}

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

.compare-scroll .compare {
  min-width: 720px;
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan.featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.plan-name {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.plan.featured .plan-name {
  color: var(--accent);
}

.plan-price {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.plan li {
  color: var(--muted);
  font-size: 15px;
  padding-left: 20px;
  position: relative;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.plan .btn {
  margin-top: auto;
  justify-content: center;
}

.pricing-note {
  margin-top: 24px;
  color: var(--faint);
  font-size: 14px;
  max-width: 65ch;
}

/* ---------- waitlist ---------- */

.waitlist .wrap {
  max-width: 640px;
}

.waitlist h2 {
  font-size: clamp(1.8rem, 2.4vw + 0.6rem, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.waitlist p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
}

.waitlist p a {
  color: var(--text);
}

.wait-form {
  display: flex;
  gap: 12px;
}

.wait-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wait-form input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}

.wait-form input::placeholder {
  color: var(--faint);
}

.wait-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.wait-help {
  margin-top: 14px;
  font-size: 14px;
  color: var(--faint);
}

.wait-help a {
  color: var(--muted);
}

.wait-help.success {
  color: var(--accent);
}

.wait-help.error {
  color: #e5484d;
}

/* honeypot field: present in the DOM for bots, invisible to humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

footer nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

footer .copy {
  color: var(--faint);
  font-size: 13px;
  width: 100%;
}

footer .badge {
  opacity: 0.85;
  transition: opacity 0.2s;
}

footer .badge:hover {
  opacity: 1;
}

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

/* ---------- reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .cell-wide,
  .cell-sm,
  .cell-full {
    grid-column: span 1;
  }
  .how .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .how-copy {
    position: static;
  }
  .plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  #top > section {
    padding: 72px 0;
  }
  .cell {
    padding: 24px;
  }
  .plan {
    padding: 28px;
  }
  .wait-form {
    flex-direction: column;
  }
}

/* ---------- docs page ---------- */

.docs-hero {
  padding: 64px 0 0;
}

.docs-hero h1 {
  font-size: clamp(2rem, 3vw + 0.8rem, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.docs-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 65ch;
}

.docs .wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 72px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.docs-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0 6px 16px;
  border-left: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}

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

.docs-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.doc-body {
  min-width: 0;
  max-width: 760px;
}

.doc-section {
  margin-bottom: 80px;
  scroll-margin-top: 88px;
}

.doc-section h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.doc-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 10px;
}

.doc-section p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 14px;
  max-width: 68ch;
}

.doc-section p code,
.doc-section li code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  color: var(--text);
}

.doc-section .code-panel {
  margin: 18px 0;
}

.doc-list {
  list-style: none;
  margin: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-list li {
  color: var(--muted);
  font-size: 15.5px;
  padding-left: 20px;
  position: relative;
  max-width: 68ch;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.doc-note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 68ch;
}

.doc-note strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .docs .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .docs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 20px;
  }
  .docs-nav a {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
  }
  .docs-nav a.active {
    border-bottom-color: var(--accent);
  }
}

/* ---------- changelog page ---------- */

.changelog .wrap {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.release {
  margin-bottom: 64px;
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.release-version {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}

.release-date {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--faint);
}
