:root {
  color-scheme: light;
  --ink: #18181b;
  --muted: #71717a;
  --paper: #fafafa;
  --surface: #ffffff;
  --surface-subtle: #f4f4f5;
  --line: #e4e4e7;
  --zinc-700: #3f3f46;
  --zinc-900: #18181b;
  --code: #09090b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(10px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--zinc-900);
  color: #fff;
  font-size: 0.8rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

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

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.language-switch button {
  min-width: 38px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--zinc-900);
  color: #fff;
}

.lang-da {
  display: none;
}

body[data-lang="da"] .lang-en {
  display: none;
}

body[data-lang="da"] .lang-da {
  display: contents;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px max(24px, calc((100vw - 1120px) / 2)) 64px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/form-preview.png");
  background-repeat: no-repeat;
  background-position: right max(24px, calc((100vw - 1120px) / 2)) center;
  background-size: auto 76%;
  opacity: 0.08;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fafafa 0%, rgba(250, 250, 250, 0.95) 52%, rgba(250, 250, 250, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--zinc-700);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 4rem;
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.1rem;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.lede {
  max-width: 680px;
  color: #3f3f46;
  font-size: 1.2rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--zinc-900);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  background: var(--zinc-900);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--zinc-900);
}

.quick-command,
.command-panel,
.terminal-panel {
  border: 1px solid rgba(16, 35, 31, 0.16);
  border-radius: 8px;
  background: var(--code);
  color: #f4f4f5;
  box-shadow: none;
}

.quick-command {
  max-width: 780px;
  padding: 18px;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.quick-command .command-head span,
.terminal-panel .command-head span {
  color: #a1a1aa;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-command code {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-heading {
  max-width: 770px;
  margin-bottom: 34px;
}

.section-heading p,
.agent-copy p,
.disclaimer-section p {
  color: var(--muted);
}

.install-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.command-panel,
.terminal-panel {
  padding: 22px;
}

.command-panel h3 {
  margin: 0;
  color: #f4f4f5;
}

.copy-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #3f3f46;
  border-radius: 7px;
  background: #18181b;
  color: #d4d4d8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  border-color: #71717a;
  color: #fff;
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

pre code {
  color: #f4f4f5;
  font-size: 0.92rem;
}

.feature-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-grid p {
  color: var(--muted);
}

.agents-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 34px;
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  background: var(--surface-subtle);
}

.disclaimer-section {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.1fr);
  gap: 34px;
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  color: var(--muted);
}

.site-footer a {
  color: var(--zinc-900);
  font-weight: 700;
  text-decoration: none;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.not-found-panel {
  max-width: 620px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 116px;
    padding: 20px 22px;
  }

  nav {
    gap: 14px;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero {
    min-height: 560px;
    padding: 54px 22px 48px;
  }

  .hero-media {
    background-position: right -130px bottom -40px;
    background-size: auto 62%;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lede {
    font-size: 1.12rem;
  }

  .section {
    width: min(100% - 44px, 1120px);
    padding: 54px 0;
  }

  .install-grid,
  .feature-grid,
  .agents-section,
  .disclaimer-section {
    grid-template-columns: 1fr;
  }

  .agents-section,
  .disclaimer-section {
    width: 100%;
    padding-right: 22px;
    padding-left: 22px;
  }
}
