:root {
  --green: #0b8f55;
  --green-dark: #087a49;
  --green-darker: #05603a;
  --forest: #12372a;
  --forest-deep: #0a2419;
  --green-tint: #e7f5ee;
  --green-tint-strong: #cfeadd;
  --red: #d62828;
  --red-tint: #fdecec;
  --gold: #f4c430;
  --gold-dark: #c79100;
  --gold-tint: #fef6e0;
  --bg: #f7faf8;
  --surface: #ffffff;
  --muted: #f1f5f2;
  --border: #e3eae6;
  --border-strong: #d3ddd7;
  --text: #11221b;
  --text-2: #5a6b62;
  --text-3: #8b9a92;
  --on-brand: #ffffff;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-card: 0 6px 18px rgba(18, 55, 42, 0.06);
  --shadow-raised: 0 10px 28px rgba(18, 55, 42, 0.1);
  --header-h: 72px;
  --max: 1120px;
  --prose: 72ch;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-darker);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--green);
  color: var(--on-brand);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--forest-deep) 0%, var(--forest) 48%, var(--green-dark) 100%);
  color: var(--on-brand);
  box-shadow: var(--shadow-raised);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.4px;
  font-size: 1.15rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(255, 255, 255, 0.14);
}

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

.nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--on-brand);
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-brand);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--forest-deep), var(--forest) 42%, var(--green-dark));
  color: var(--on-brand);
  padding: 56px 0 64px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.22), transparent 68%);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--on-brand);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kicker i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--gold);
}

.hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.6px;
  line-height: 1.15;
  font-weight: 700;
  max-width: 16ch;
}

.hero p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.meta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Landing */
.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}

.contact-action {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-action:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
  color: inherit;
}

.contact-action .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 600;
}

.contact-action strong {
  display: block;
  margin: 8px 0 14px;
  font-size: 1.05rem;
  color: var(--green-darker);
  letter-spacing: -0.2px;
}

.delete-page {
  max-width: 720px;
  margin: 36px auto 80px;
}

.delete-page p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
  color: inherit;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--green-tint);
  color: var(--green-dark);
  margin-bottom: 14px;
  font-weight: 700;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.3px;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.card .go {
  margin-top: 16px;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.intro-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  margin-bottom: 64px;
}

.intro-panel h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.intro-panel p {
  color: var(--text-2);
  margin: 0 0 12px;
}

.demo-panel p {
  margin-bottom: 18px;
}

.demo-video {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0b1f14;
  border: 1px solid var(--border);
}

.demo-video video {
  display: block;
  width: 100%;
  height: auto;
}

.gold-bar {
  width: 3px;
  height: 16px;
  background: var(--gold);
  border-radius: 99px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* Document layout */
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  padding: 36px 0 80px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px 12px;
}

.toc h2 {
  margin: 0 12px 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.toc a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 7px 12px;
  border-radius: 10px;
  border-left: 3px solid transparent;
}

.toc a:hover,
.toc a.is-active {
  background: var(--green-tint);
  color: var(--green-darker);
  border-left-color: var(--green);
}

.prose {
  max-width: var(--prose);
}

.prose > h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
  font-size: 1.28rem;
  letter-spacing: -0.3px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.7;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.note {
  background: var(--green-tint);
  border: 1px solid var(--green-tint-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--forest);
  font-size: 0.92rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  margin: 16px 0;
}

.callout h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.placeholder {
  display: inline;
  background: var(--gold-tint);
  border-bottom: 2px dashed var(--gold-dark);
  color: var(--forest);
  padding: 0 5px;
  font-weight: 700;
  font-size: 0.94em;
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer h3 {
  margin: 0 0 10px;
  color: var(--on-brand);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.copyright {
  padding-top: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: var(--on-brand);
  box-shadow: 0 8px 20px rgba(11, 143, 85, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: 0;
    max-height: none;
  }

  .footer-grid,
  .cards,
  .contact-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) + 8px);
    background: var(--surface);
    color: var(--text);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
  }

  .nav.is-open {
    display: flex;
  }

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

  .nav a:hover,
  .nav a[aria-current="page"] {
    color: var(--green-darker);
    background: var(--green-tint);
  }

  .hero {
    padding: 36px 0 48px;
  }
}
