:root {
  --claymorphism-style: soft;
  --clay-depth: 3d;
  --clay-feel: friendly tactile;
  --bg: #010B13;
  --surface: #041C2C;
  --text: #E0FBFC;
  --muted: #98C1D9;
  --primary: #3D5A80;
  --secondary: #293241;
  --accent: #EE6C4D;
  --border: rgba(152, 193, 217, 0.1);
  --radius-clay: 32px;
  --shadow-clay: 0 12px 40px rgba(1, 11, 19, 0.55), inset 0 2px 4px rgba(224, 251, 252, 0.06);
  --shadow-clay-hover: 0 18px 48px rgba(1, 11, 19, 0.65), inset 0 3px 6px rgba(224, 251, 252, 0.08);
  --font-stack: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-stack);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(61, 90, 128, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(238, 108, 77, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #010B13 0%, #041C2C 50%, #010B13 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  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.9' 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");
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(152, 193, 217, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.disclosure-banner {
  position: relative;
  z-index: 10;
  max-width: fit-content;
  margin: 6px auto;
  padding: 6px 20px;
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  line-height: 1.4;
}

.site-header {
  position: relative;
  z-index: 100;
  background: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2398C1D9' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  border-bottom: 2px solid var(--accent);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.nav-logo img {
  max-height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.04);
}

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: var(--secondary);
  z-index: 105;
  padding: 100px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4);
}

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

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-drawer a {
  display: block;
  padding: 12px 16px;
  border-radius: 20px;
  color: var(--text);
  font-weight: 500;
}

.nav-drawer a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 11, 19, 0.7);
  z-index: 104;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.visible {
  opacity: 1;
}

.site-footer {
  position: relative;
  z-index: 10;
  background: var(--secondary);
  border-top: 2px solid var(--accent);
  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;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-logo img {
  max-height: 36px;
}

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

.footer-badges a {
  display: block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-badges a:hover {
  transform: scale(1.06);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 11, 19, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-clay);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-clay);
  border: 1px solid var(--border);
}

.modal-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-card p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-clay {
  padding: 12px 28px;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  box-shadow: var(--shadow-clay);
}

.btn-clay:active {
  transform: scale(0.95);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  box-shadow: var(--shadow-clay-hover);
  transform: scale(1.04);
}

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

.btn-secondary:hover {
  box-shadow: var(--shadow-clay-hover);
  transform: scale(1.04);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 20px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.cookie-inner p {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 24px;
  color: var(--text);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: var(--muted);
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--muted);
}

.legal-content ul {
  margin: 0 0 14px 24px;
  color: var(--muted);
}

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

.legal-content strong {
  color: var(--text);
}

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

  .burger-btn {
    display: flex;
  }

  .nav-drawer {
    display: block;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.visible {
    pointer-events: auto;
  }
}
