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

:root {
  --bg: #0F140C;
  --surface: #1C2415;
  --text: #ECFDF5;
  --muted: #A7F3D0;
  --primary: #4D7C0F;
  --secondary: #65A30D;
  --accent: #FACC15;
  --border: rgba(236, 253, 245, 0.12);
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --header-h: 86px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--secondary);
}

.disclosure {
  width: 100%;
  background: #E8F0E4;
  color: #1C2415;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  border-top: 1px dotted rgba(28, 36, 21, 0.35);
  border-bottom: 1px dotted rgba(28, 36, 21, 0.35);
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}

.site-header__top {
  height: 50px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__bottom {
  height: 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-header__logo-link img {
  height: 38px;
  width: auto;
}

.site-header__nav {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  flex-wrap: wrap;
}

.site-header__nav a {
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  transition: color 0.2s;
}

.site-header__nav a:hover {
  color: var(--accent);
}

.mobile-nav__burger {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav__burger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav__burger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 72px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__link {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 12, 0.75);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.subpage-header__logo {
  height: 36px;
  width: auto;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer__brand img {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
}

.site-footer__brand p {
  color: var(--muted);
  font-size: 13px;
  max-width: 300px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.site-footer__badges img {
  height: 40px;
  width: auto;
  opacity: 0.9;
}

.site-footer__legal {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  opacity: 0.85;
}

.site-footer__copy {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 12, 0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.is-hidden {
  display: none;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--primary);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
}

.modal::before,
.modal::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
}

.modal::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.modal::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.modal h2 {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--accent);
}

.modal p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn--primary {
  background: var(--primary);
  color: var(--text);
  border-color: var(--primary);
}

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

.btn--ghost {
  background: transparent;
  color: var(--muted);
}

.btn--ghost:hover {
  border-color: var(--muted);
  color: var(--text);
}

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.legal-page h1 {
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.legal-page__updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.legal-page h2 {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.contact-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.contact-page h1 {
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-page__intro {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 15px;
}

.contact-form__group {
  margin-bottom: 20px;
}

.contact-form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--primary);
}

.contact-form__input.is-error,
.contact-form__textarea.is-error {
  border-color: #ef4444;
}

.contact-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__error {
  display: block;
  color: #f87171;
  font-size: 13px;
  margin-top: 6px;
}

.contact-success {
  background: rgba(77, 124, 15, 0.12);
  border: 1px solid var(--primary);
  padding: 28px;
}

.contact-success.is-hidden {
  display: none;
}

.contact-success h2 {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 10px;
}

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

.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.page-404 h1 {
  font-family: var(--font-mono);
  font-size: 72px;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-404 p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 400px;
}

@media (max-width: 768px) {
  :root {
    --header-h: 50px;
  }

  .site-header__bottom {
    display: none;
  }

  .site-header__inner {
    justify-content: flex-start;
  }

  .mobile-nav__burger {
    display: flex;
  }
}
