:root {
  --bg: #030712;
  --surface: #020617;
  --text: #ECFEFF;
  --muted: #67E8F9;
  --primary: #22D3EE;
  --secondary: #A3E635;
  --accent: #F97316;
  --border: rgba(236, 254, 255, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  background-image:
    linear-gradient(165deg, var(--bg) 0%, rgba(2, 6, 23, 0.97) 40%, var(--surface) 100%),
    radial-gradient(ellipse 70% 45% at 10% 20%, rgba(34, 211, 238, 0.08) 0%, transparent 55%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(163, 230, 53, 0.02) 120px,
      rgba(163, 230, 53, 0.02) 121px
    );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 92% 8%, rgba(249, 115, 22, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

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(--secondary);
}

.disclosure-banner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 400;
  font-family: "Segoe UI", system-ui, sans-serif;
  text-align: center;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.15) 0%,
    rgba(163, 230, 53, 0.15) 100%
  );
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.96);
  border-bottom: 1px solid var(--border);
  height: 50px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.navbar-logo img {
  height: 26px;
  width: auto;
}

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  color: var(--muted);
  transition: opacity 0.2s;
}

.nav-icon-link:hover {
  opacity: 1;
  color: var(--primary);
}

.nav-icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-icon-link .nav-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.nav-icon-link:hover .nav-tooltip {
  opacity: 1;
}

.burger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 2px;
}

.burger-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 7, 18, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
}

.site-footer {
  position: relative;
  z-index: 5;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  max-width: 220px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.footer-links a {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-badges a,
.footer-badges img {
  max-height: 48px;
  width: auto;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.modal-box h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--secondary);
}

.btn-secondary {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 10px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.legal-page {
  position: relative;
  z-index: 5;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 24px;
  color: var(--text);
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--primary);
}

.legal-page h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
  color: var(--muted);
}

.legal-page p,
.legal-page li {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  font-size: 12px;
  color: var(--accent);
  display: none;
}

.form-error.visible {
  display: block;
}

.contact-form.hidden {
  display: none;
}

.form-success {
  display: none;
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
}

.form-success.visible,
.form-success:not(.hidden) {
  display: block;
}

.form-success.hidden {
  display: none;
}

.form-success p {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--secondary);
  font-size: 15px;
}

@media (max-width: 768px) {
  .navbar-icons {
    display: none;
  }

  .burger-btn {
    display: flex;
    align-items: center;
  }

  .mobile-menu {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-badges {
    align-items: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
