/* Gerdoo get.gerdoo.cloud — shared tokens with landing/dashboard. */
@font-face {
  font-family: "Estedad";
  src: url("/fonts/Estedad-Regular.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("/fonts/Estedad-ExtraBold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f6f9fc;
  --foreground: #14171d;
  --card: #ffffff;
  --muted: #eef1f5;
  --muted-foreground: #5c6678;
  --border: rgb(20 24 32 / 8%);
  --primary: #f6821f;
  --primary-action: #ea6d0c;
  --primary-hover: #f6821f;
  --gerdoo-50: #fff7ed;
  --gerdoo-200: #fed6a8;
  --gerdoo-700: #c2570b;
  --ink-800: #2c313b;
  --ink-950: #0e1014;
  --radius: 0.625rem;
  --code-bg: #0f1218;
  --code-border: #20252e;
  --code-muted: #8b95a7;
  --code-fg: #e3e8f0;
}

.dark {
  --background: #111318;
  --foreground: #f4f5f7;
  --card: #1a1d24;
  --muted: #252a33;
  --muted-foreground: #a8b0bd;
  --border: rgb(255 255 255 / 9%);
  --gerdoo-50: rgb(246 130 31 / 10%);
  --gerdoo-200: rgb(246 130 31 / 22%);
  --gerdoo-700: #fb9a3c;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Estedad", sans-serif;
  background: var(--background);
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

::selection {
  background: rgb(246 130 31 / 20%);
  color: var(--ink-950);
}

.shell {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.shell-narrow {
  max-width: 48rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(16px);
}

.dark .site-header {
  background: rgb(26 29 36 / 90%);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--primary-action);
  color: #fff;
}

.brand-mark svg {
  width: 1.25rem;
  height: 1.05rem;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--muted);
  color: var(--foreground);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.icon-btn svg {
  width: 1rem;
  height: 1rem;
}

.icon-btn .icon-sun {
  display: none;
}

.dark .icon-btn .icon-sun {
  display: block;
}

.dark .icon-btn .icon-moon {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  border-color: var(--primary-action);
  background: var(--primary-action);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  color: #fff;
}

.btn-outline {
  border-color: var(--border);
  background: var(--card);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-atmosphere,
.hero-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero-atmosphere {
  background:
    radial-gradient(ellipse 90% 55% at 70% 0%, rgb(246 130 31 / 9%), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 20%, rgb(20 24 32 / 4%), transparent 50%);
}

.dark .hero-atmosphere {
  background:
    radial-gradient(ellipse 90% 55% at 70% 0%, rgb(246 130 31 / 12%), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 20%, rgb(255 255 255 / 3%), transparent 50%);
}

.hero-grid {
  background-image:
    linear-gradient(to left, rgb(20 24 32 / 5%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(20 24 32 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 75%);
}

.dark .hero-grid {
  background-image:
    linear-gradient(to left, rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 4%) 1px, transparent 1px);
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.hero-inner.start {
  text-align: start;
  margin: 0;
  max-width: 48rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.hero h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--gerdoo-700);
}

.hero .lead {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-inner.start .cta-row {
  justify-content: flex-start;
}

/* Install command */
.cmd {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 1.75rem auto 0;
  max-width: 36rem;
  padding: 0.75rem 0.875rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.cmd code {
  color: var(--foreground);
  font-size: 0.875rem;
  overflow-x: auto;
  white-space: nowrap;
}

.cmd code .p {
  color: var(--gerdoo-700);
  font-weight: 700;
}

.copy {
  flex: none;
  cursor: pointer;
  border: 1px solid var(--primary-action);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  font-size: 0.8125rem;
  background: var(--primary-action);
  color: #fff;
  transition: background 0.15s;
}

.copy:hover {
  background: var(--primary-hover);
}

.copy.done {
  border-color: #16a34a;
  background: #16a34a;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-muted {
  background: rgb(238 241 245 / 55%);
  border-block: 1px solid var(--border);
}

.dark .section-muted {
  background: rgb(37 42 51 / 35%);
}

.section-head {
  margin-bottom: 2rem;
  text-align: center;
}

.section-head.start {
  text-align: start;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
  font-size: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

.card code {
  font-size: 0.8125em;
  padding: 0.1rem 0.35rem;
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
  color: var(--gerdoo-700);
}

/* Code block */
.block {
  direction: ltr;
  text-align: left;
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  background: var(--code-bg);
  padding: 1.25rem 1.375rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--code-fg);
  overflow-x: auto;
  white-space: pre;
}

.block .c {
  color: var(--code-muted);
}

.block .p {
  color: var(--primary);
  font-weight: 700;
}

/* Releases */
.release {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.125rem);
  background: var(--card);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .release {
    padding: 2rem;
  }
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.release h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.release .date {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.release .date code {
  font-size: 0.8125em;
  padding: 0.1rem 0.4rem;
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
  color: var(--gerdoo-700);
}

.release h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.changes {
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.changes li {
  margin: 0.4rem 0;
}

.changes code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
  color: var(--gerdoo-700);
}

.dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

@media (min-width: 560px) {
  .dl {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dl a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.15s, background 0.15s;
}

.dl a:hover {
  border-color: var(--gerdoo-200);
  background: var(--gerdoo-50);
}

.dl .os {
  font-weight: 700;
}

.dl .arch {
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.dl a.checks {
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
}

.release .note {
  margin-top: 1.25rem;
}

/* Page content padding under sticky header */
.page {
  padding-bottom: 4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgb(238 241 245 / 50%);
  margin-top: auto;
}

.dark .site-footer {
  background: var(--ink-950);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.footer-inner a {
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.footer-inner a:hover {
  color: var(--gerdoo-700);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner .pill,
  .hero-inner h1,
  .hero-inner .lead,
  .hero-inner .cmd,
  .hero-inner .cta-row {
    animation: rise-in 0.55s ease-out both;
  }
  .hero-inner h1 {
    animation-delay: 80ms;
  }
  .hero-inner .lead {
    animation-delay: 160ms;
  }
  .hero-inner .cmd {
    animation-delay: 240ms;
  }
  .hero-inner .cta-row {
    animation-delay: 320ms;
  }
}

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