:root {
  color-scheme: dark;
  --background: #070a08;
  --surface: #111613;
  --surface-alt: #191f1b;
  --text: #f3f5f1;
  --muted: #b5bdb7;
  --line: #39423c;
  --brand: #87f3a0;
  --accent: #70c9d2;
  --signal: #e5a85a;
  --max-width: 1120px;
  font-family: "IBM Plex Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: #a6e8ee;
}

.topbar {
  min-height: 66px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #090d0a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark img {
  display: block;
  width: auto;
  height: 30px;
  object-fit: contain;
}

.product-link {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: min(68svh, 700px);
  padding: 72px max(32px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: #0b0f0c;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  inset: 0;
  background-image: url("https://rattie.pl/brand/rattie-logo-white.png");
  background-position: right 8% center;
  background-repeat: no-repeat;
  background-size: min(42vw, 560px) auto;
  opacity: 0.08;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 15ch;
  font-size: 5.2rem;
}

h1 span,
footer span {
  color: var(--brand);
}

h2 {
  font-size: 2.55rem;
}

.lead {
  max-width: 62ch;
  margin: 28px 0;
  color: #d7dcd8;
  font-size: 1.08rem;
}

.access-status {
  margin: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

.access-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(135, 243, 160, 0.12);
  flex: 0 0 auto;
}

.band {
  padding: 84px 32px;
  border-bottom: 1px solid var(--line);
}

.band-alt {
  background: var(--surface);
}

.section-grid {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
}

.copy,
.permission-list {
  color: var(--muted);
  font-size: 1rem;
}

.copy > :first-child,
.company-data > :first-child {
  margin-top: 0;
}

.copy > :last-child,
.company-data > :last-child {
  margin-bottom: 0;
}

.permission-list {
  margin: 0;
}

.permission-list > div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
}

.permission-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.permission-list dt {
  color: var(--text);
  font-weight: 700;
}

.permission-list dd {
  margin: 0;
}

footer {
  padding: 28px 32px;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

footer p {
  margin: 0;
}

.legal-page {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 76px 0 112px;
}

.legal-header {
  max-width: 840px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  max-width: none;
  font-size: 4.4rem;
}

.legal-header > p:last-child {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.legal-layout {
  padding-top: 52px;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 72px;
  align-items: start;
}

.legal-layout aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 10px;
}

.legal-layout aside a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.legal-copy section {
  scroll-margin-top: 24px;
}

.legal-copy section + section {
  margin-top: 52px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.legal-copy h2 {
  margin-bottom: 20px;
  font-size: 1.55rem;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy ul {
  padding-left: 22px;
}

@media (max-width: 760px) {
  .topbar {
    min-height: 62px;
    padding: 0 20px;
  }

  .wordmark img {
    height: 26px;
  }

  .product-link {
    max-width: 140px;
    font-size: 0.78rem;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.76rem;
  }

  .hero {
    min-height: 72svh;
    padding: 56px 20px;
  }

  .hero-mark {
    background-position: center 18%;
    background-size: 86vw auto;
    opacity: 0.06;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .band {
    padding: 62px 20px;
  }

  .section-grid,
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .permission-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-page {
    width: min(100% - 40px, var(--max-width));
    padding-top: 54px;
  }

  .legal-header h1 {
    font-size: 3rem;
  }

  .legal-layout aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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