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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #020403;
  color: #D1FAE5;
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

main {
  flex: 1;
}

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

a {
  color: #22C55E;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: #A7F3D0;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.disclosure-banner {
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  color: #04100A;
  background: #A7F3D0;
  border-bottom: 1px solid rgba(209, 250, 229, 0.3);
  line-height: 1.5;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 110;
}

.disclosure-banner .banner-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.disclosure-banner .banner-text {
  text-align: center;
  max-width: 900px;
}

.page-wrap {
  margin-left: 72px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 100vh;
  background: #04100A;
  border-right: 1px solid rgba(209, 250, 229, 0.14);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
}

.sidebar-logo {
  display: block;
  padding: 8px;
  margin-bottom: 12px;
}

.sidebar-logo img {
  width: 48px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.4));
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  width: 100%;
  padding: 0 8px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: #6EE7B7;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-links a:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(209, 250, 229, 0.14);
  color: #D1FAE5;
  text-shadow: 0 0 10px rgba(167, 243, 208, 0.6);
}

.sidebar-links a::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #04100A;
  color: #D1FAE5;
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(209, 250, 229, 0.14);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  transition: opacity 0.2s ease;
  z-index: 200;
}

.sidebar-links a:hover::after {
  opacity: 1;
}

.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: #04100A;
  border-bottom: 1px solid rgba(209, 250, 229, 0.14);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mobile-logo img {
  height: 32px;
  width: auto;
}

.nav-toggle {
  display: none;
}

.burger-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 120;
}

.burger-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: #D1FAE5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-overlay {
  display: none;
}

.site-footer {
  margin-top: auto;
  background: #04100A;
  border-top: 1px solid rgba(209, 250, 229, 0.14);
  padding: 48px 24px 32px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 243, 208, 0.4), rgba(139, 92, 246, 0.3), transparent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3));
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.footer-badges a {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-badges a:hover {
  opacity: 1;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(209, 250, 229, 0.14);
}

.footer-links a {
  color: #6EE7B7;
  font-size: 13px;
  font-style: italic;
}

.footer-links a:hover {
  color: #A7F3D0;
}

.footer-disclosure {
  font-size: 11px;
  color: #6EE7B7;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.85;
}

.footer-disclosure p + p {
  margin-top: 12px;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(110, 231, 183, 0.5);
  margin-top: 24px;
  font-style: italic;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #04100A;
  border-top: 1px solid rgba(209, 250, 229, 0.14);
  padding: 20px 24px;
  z-index: 200;
  transform: translateY(0);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 30px rgba(139, 92, 246, 0.15);
}

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

.cookie-banner p {
  font-size: 13px;
  color: #6EE7B7;
  flex: 1;
  min-width: 240px;
}

.cookie-banner a {
  color: #22C55E;
  text-decoration: underline;
}

.cookie-accept-label {
  display: inline-block;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #020403;
  padding: 10px 24px;
  font-size: 13px;
  font-family: inherit;
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
  transition: box-shadow 0.2s ease;
}

.cookie-accept-label:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
  color: #020403;
}

.cookie-accept-label input {
  display: none;
}

body:has(.cookie-accept-toggle:checked) .cookie-banner {
  transform: translateY(100%);
  pointer-events: none;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.page-content h1 {
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  color: #D1FAE5;
  text-shadow: 2px 0 rgba(139, 92, 246, 0.3), -2px 0 rgba(34, 197, 94, 0.3);
}

.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  margin: 32px 0 16px;
  color: #A7F3D0;
}

.page-content h3 {
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  margin: 24px 0 12px;
  color: #D1FAE5;
}

.page-content p {
  margin-bottom: 16px;
  color: #6EE7B7;
  max-width: 72ch;
}

.page-content ul {
  margin: 0 0 16px 24px;
  color: #6EE7B7;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content a {
  text-decoration: underline;
}

.contact-form {
  margin-top: 40px;
  max-width: 520px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  color: #6EE7B7;
  margin-bottom: 20px;
  font-style: italic;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: #04100A;
  border: 1px solid rgba(209, 250, 229, 0.14);
  color: #D1FAE5;
  font-family: inherit;
  font-size: 15px;
  margin-top: 6px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #22C55E;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

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

.contact-form button {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #020403;
  border: none;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: box-shadow 0.2s ease;
}

.contact-form button:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.form-error {
  color: #A7F3D0;
  font-size: 13px;
  margin-top: -12px;
  margin-bottom: 16px;
}

.form-error[hidden] {
  display: none;
}

.form-success {
  padding: 32px;
  background: #04100A;
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-top: 40px;
  max-width: 520px;
}

.form-success[hidden] {
  display: none;
}

.form-success p {
  color: #D1FAE5;
  font-size: 16px;
}

.error-page {
  text-align: center;
  padding: 120px 24px;
}

.error-page h1 {
  font-size: 72px;
  font-weight: 700;
  font-style: italic;
  color: #22C55E;
  margin-bottom: 16px;
  text-shadow: 3px 0 rgba(139, 92, 246, 0.4), -3px 0 rgba(34, 197, 94, 0.4);
}

.error-page p {
  color: #6EE7B7;
  margin-bottom: 32px;
  font-size: 18px;
}

.error-page a {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #020403;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.error-page a:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
  color: #020403;
}

@media (max-width: 900px) {
  .page-wrap {
    margin-left: 0;
  }

  .sidebar-nav {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .burger-label {
    display: flex;
  }

  .mobile-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 3, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 110;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    padding: 80px 32px;
  }

  .mobile-overlay a {
    color: #D1FAE5;
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    padding: 12px 24px;
    border: 1px solid rgba(209, 250, 229, 0.14);
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .mobile-overlay a:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22C55E;
  }

  .mobile-header:has(.nav-toggle:checked) .mobile-overlay {
    transform: translateX(0);
  }

  .mobile-header:has(.nav-toggle:checked) .burger-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-header:has(.nav-toggle:checked) .burger-label span:nth-child(2) {
    opacity: 0;
  }

  .mobile-header:has(.nav-toggle:checked) .burger-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
