:root {
  --bg: #F0F4EF;
  --surface: #FFFFFF;
  --text: #1E2923;
  --muted: #5C6B61;
  --primary: #86A384;
  --secondary: #B3C1AD;
  --accent: #D4A373;
  --border: rgba(30, 41, 35, 0.08);
  --nav-bg: #1E2923;
  --hero-bg: #152019;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: linear-gradient(160deg, var(--bg) 0%, rgba(134, 163, 132, 0.12) 45%, var(--bg) 100%);
  position: relative;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 10% 0%, rgba(212, 163, 115, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(134, 163, 132, 0.1), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--accent);
}

.disclosure-banner {
  max-width: fit-content;
  margin: 8px auto;
  padding: 5px 18px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(212, 163, 115, 0.15);
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: 4px;
  text-align: center;
  line-height: 1.45;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  height: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 32px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-desktop a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  color: var(--surface);
  width: 28px;
  height: 28px;
  position: relative;
}

.nav-desktop a:hover {
  opacity: 1;
  color: var(--secondary);
}

.nav-desktop a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-desktop a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.nav-desktop a[data-tooltip]:hover::after {
  opacity: 1;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--surface);
}

.burger-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-bg);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  color: var(--surface);
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a:hover {
  color: var(--secondary);
}

.site-footer {
  background: var(--nav-bg);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 20px 32px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 13px;
  max-width: 280px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-badges a img,
.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

.age-overlay,
.cookie-banner {
  position: fixed;
  z-index: 10000;
}

.age-overlay {
  inset: 0;
  background: rgba(21, 32, 25, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-overlay.hidden {
  display: none;
}

.age-modal {
  background: var(--surface);
  border-radius: 12px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.age-modal h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text);
}

.age-modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.age-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.age-buttons button {
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.age-confirm {
  background: var(--primary);
  color: var(--surface);
}

.age-confirm:hover {
  background: #6d8a6b;
}

.age-decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.cookie-banner {
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  max-width: 600px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-actions button {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.cookie-accept {
  background: var(--primary);
  color: var(--surface);
}

.cookie-reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.legal-page main,
.subpage-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.legal-page h1,
.subpage-main h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}

.legal-page h2,
.subpage-main h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-page h3,
.subpage-main h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-page p,
.legal-page li,
.subpage-main p,
.subpage-main li {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-page ul,
.subpage-main ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 16px;
  background: var(--bg);
  color: var(--text);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .form-error {
  color: #c0392b;
  font-size: 13px;
  margin: -10px 0 12px;
  display: none;
}

.contact-form .form-error.visible {
  display: block;
}

.contact-form button[type="submit"] {
  padding: 12px 32px;
  background: var(--primary);
  color: var(--surface);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  background: #6d8a6b;
}

.form-success {
  padding: 32px;
  background: rgba(134, 163, 132, 0.12);
  border: 1px solid rgba(134, 163, 132, 0.3);
  border-radius: 10px;
  text-align: center;
}

.form-success h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.form-success.hidden,
.contact-form.hidden {
  display: none;
}

.page-404 {
  text-align: center;
  padding: 80px 20px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-404 h1 {
  font-size: 72px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-404 p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--surface);
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
}

.btn-primary:hover {
  background: #6d8a6b;
  color: var(--surface);
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }
}

.slots-hero-rail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 280px;
}

.slots-hero-text {
  background: var(--nav-bg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slots-hero-text h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.slots-hero-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.slots-image-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-width: 100%;
}

.slots-image-rail .rail-img {
  flex: 1;
  width: 100%;
  min-height: 140px;
  max-height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slots-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 60px;
}

.slots-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}

.slots-body p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.slots-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.slots-body li {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.slots-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.slots-feature {
  padding: 18px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.slots-feature h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.slots-feature p {
  font-size: 13px;
  margin-bottom: 0;
}

.startup-growth-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 163, 115, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .slots-hero-rail {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .slots-image-rail {
    flex-direction: row;
    height: 120px;
    max-width: 100%;
  }

  .slots-image-rail .rail-img {
    min-height: 120px;
    max-height: 120px;
    object-fit: cover;
  }

  .slots-feature-grid {
    grid-template-columns: 1fr;
  }
}
