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

:root {
  --bg: #052E16;
  --surface: #064E3B;
  --text: #F0FDF4;
  --muted: #4ADE80;
  --primary: #22C55E;
  --secondary: #14532D;
  --accent: #86EFAC;
  --border: rgba(255, 255, 255, 0.1);
  --glassmorphism-blur: 42px;
  --light-glass-bg: rgba(255, 255, 255, 0.08);
  --airy-spacing: 1.75rem;
  --ios-like-radius: 18px;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", monospace;
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1200px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-system);
  font-weight: 300;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(134, 239, 172, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, #031a0d 50%, var(--secondary) 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(134, 239, 172, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.05) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.disclosure-banner {
  width: 100%;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: #86EFAC;
  background: #020f08;
  position: relative;
  z-index: 10;
}

.disclosure-banner::before {
  content: "> ";
  color: #FBBF24;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 46, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 52px;
  border-bottom: 1px solid var(--border);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(255, 255, 255, 0.02) 1px,
    rgba(255, 255, 255, 0.02) 2px
  );
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link img {
  height: 30px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  padding: 4px 6px;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--accent);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 15, 8, 0.95);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #020f08;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(134, 239, 172, 0.04) 1px,
    rgba(134, 239, 172, 0.04) 2px
  );
  padding: 72px 32px 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.mobile-nav a {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 12px 0;
  text-decoration: none;
  transition: color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav a:hover {
  color: var(--primary);
}

.nav-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: transparent;
  border: 1px solid rgba(134, 239, 172, 0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
}

.glassmorphism-panel {
  background: var(--light-glass-bg);
  backdrop-filter: blur(var(--glassmorphism-blur));
  -webkit-backdrop-filter: blur(var(--glassmorphism-blur));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ios-like-radius);
}

.light-airy-wrap {
  padding: var(--airy-spacing);
}

.clean-layout {
  display: grid;
  gap: var(--airy-spacing);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 300;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-badges a,
.footer-badges span {
  display: block;
}

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-disclosure {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 800px;
  font-weight: 300;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 15, 8, 0.94);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: rgba(6, 78, 59, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ios-like-radius);
  max-width: 440px;
  width: 100%;
  padding: 32px;
}

.modal-box h2 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--accent);
}

.modal-box p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border: none;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  cursor: pointer;
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 78, 59, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 8000;
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-inner p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  flex: 1;
  min-width: 200px;
}

.cookie-inner a {
  color: var(--accent);
}

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

.legal-page {
  padding: 48px 24px 64px;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 24px;
}

.legal-inner h2 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin: 28px 0 12px;
}

.legal-inner h3 {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  margin: 20px 0 10px;
}

.legal-inner p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-inner ul {
  margin: 0 0 14px 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

.legal-inner li {
  margin-bottom: 8px;
}

.legal-inner a {
  color: var(--accent);
}

.redirect-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.redirect-card {
  background: rgba(6, 78, 59, 0.75);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ios-like-radius);
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
}

.ad-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 400;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.redirect-card h1 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 12px;
}

.redirect-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 10px;
}

.redirect-meta {
  font-size: 12px;
}

.redirect-meta a {
  color: var(--accent);
}

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

.page-404 h1 {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-404 p {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 24px;
}

.contact-page {
  padding: 48px 24px 64px;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-inner h1 {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-intro {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(5, 46, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-system);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 20px;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.email-error {
  color: #FBBF24;
  font-size: 12px;
  margin: -14px 0 14px;
  display: none;
}

.email-error.visible {
  display: block;
}

.form-success {
  display: none;
  background: rgba(6, 78, 59, 0.75);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ios-like-radius);
  padding: 32px;
  text-align: center;
}

.form-success.visible {
  display: block;
}

.form-success h2 {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 300;
}

.form-success p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

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

.subpage-hero {
  padding: 32px 24px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.subpage-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.subpage-hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 8px;
}

.subpage-hero p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  max-width: 640px;
}

.subpage-content {
  padding: 48px 24px 64px;
}

.subpage-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.subpage-inner h2 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin: 32px 0 14px;
}

.subpage-inner h3 {
  font-size: 1rem;
  font-weight: 300;
  color: var(--accent);
  margin: 24px 0 10px;
}

.subpage-inner p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.subpage-inner ul {
  margin: 0 0 16px 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
}

.subpage-inner li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 12px 16px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    flex-direction: column;
  }
}
