:root {
  --font-main: 'Inter', sans-serif;
  --color-bg: #FEFEFE;
  --color-text: #070707;
  --color-muted: #9E9E9E;
  --color-accent: #4BA6FD;
  --color-border: #414141;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  padding: 20px 40px;
  border-bottom: 1px solid var(--color-border);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
.nav-links a:hover {
  text-decoration: underline;
}
.cta {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: 0.3s ease;
}
.cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  background: var(--color-text);
  width: 24px;
  border-radius: 2px;
  transition: 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}
.hamburger.open span:nth-child(2) {
  transform: rotate(-45deg) translateY(-5px);
}

/* Hero */
.hero {
  padding: 60px 40px 40px;
}
.hero-content {
  max-width: 1280px;
  margin: auto;
}
.hero-text h1 {
  font-size: 42px;
  margin-bottom: 12px;
}
.hero-text p {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--color-muted);
}
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}
.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  text-decoration: none;
}
.hero-icons {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  animation: fadeUp 1s ease-in-out;
  flex-wrap: wrap;
}
.hero-icons img {
  width: 48px;
  height: 48px;
  filter: brightness(0) saturate(100%) invert(0%);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form */
.formcheck-section {
  padding: 40px 40px 60px;
}
.container {
  max-width: 960px;
  margin: auto;
}
form-checker textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fdfdfd;
  font-family: monospace;
  margin-bottom: 16px;
}
form-checker button {
  padding: 12px 22px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font-weight: 500;
  transition: all 0.3s ease;
}
form-checker button:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: #F9FAFB;
  padding: 60px 40px;
  border-top: 1px solid var(--color-border);
}
.footer-container {
  max-width: 1280px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 24px;
}
.footer-links h4 {
  margin-bottom: 12px;
}
.footer-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-social a {
  margin-right: 16px;
}
.footer-extra {
  margin-top: 40px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 960px;
}
.footer-bottom {
  margin-top: 40px;
  font-size: 14px;
  text-align: center;
  color: var(--color-muted);
}

/* Mobile Navigation & Responsiveness */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    background: var(--color-bg);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-container {
    flex-wrap: wrap;
  }
  .hero {
    padding: 40px 20px;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .formcheck-section {
    padding: 20px;
  }
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 24px;
  }
  .hero-text p {
    font-size: 15px;
  }
  .btn, .cta {
    padding: 8px 14px;
    font-size: 14px;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
  .footer-extra {
    font-size: 14px;
  }
  .footer-bottom {
    font-size: 13px;
  }
}

/* =======================
   DARK MODE SUPPORT
   ======================= */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode a {
  color: #4BA6FD;
}

body.dark-mode a:hover {
  color: #90d2ff;
}

body.dark-mode .btn,
body.dark-mode .cta,
body.dark-mode form-checker button {
  color: #ffffff;
  border-color: #4BA6FD;
  background: transparent;
}

body.dark-mode .btn:hover,
body.dark-mode .cta:hover,
body.dark-mode form-checker button:hover {
  background: #4BA6FD;
  color: #ffffff;
  border-color: #4BA6FD;
}

body.dark-mode .navbar {
  background: #1c1c1c;
  border-color: #333;
}

body.dark-mode .nav-links {
  background: #1c1c1c;
}

body.dark-mode .hero {
  background: #1c1c1c;
}

body.dark-mode .formcheck-section {
  background: #1a1a1a;
}

body.dark-mode .site-footer {
  background: #181818;
}

body.dark-mode .footer-links a,
body.dark-mode .footer-extra,
body.dark-mode .footer-bottom {
  color: #ccc;
}

body.dark-mode input,
body.dark-mode textarea {
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
}

body.dark-mode .hamburger span {
  background: #fff;
}

/* Make SVG icons white in dark mode */
body.dark-mode img[src$=".svg"] {
  filter: invert(100%) brightness(200%);
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #070707;
  color: #FEFEFE;
  padding: 16px 24px;
  border-radius: 8px;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cookie-banner a {
  color: #4BA6FD;
  text-decoration: underline;
}

.cookie-banner button {
  background: transparent;
  border: 1px solid #FEFEFE;
  color: #FEFEFE;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.cookie-banner button:hover {
  background: #4BA6FD;
  border-color: #4BA6FD;
  color: #ffffff;
}

body.dark-mode .cookie-banner {
  background: #181818;
  color: #ffffff;
  border: 1px solid #444;
}

body.dark-mode .cookie-banner a {
  color: #8FCBFF;
}

body.dark-mode .cookie-banner button {
  border-color: #ffffff;
  color: #ffffff;
}

body.dark-mode .cookie-banner button:hover {
  background: #4BA6FD;
  color: #ffffff;
  border-color: #4BA6FD;
}

/* =======================
   Spinner & Audit Results
   ======================= */
.spinner {
  border: 4px solid #333;
  border-top: 4px solid #4BA6FD;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#audit-results h3 {
  font-size: 20px;
  margin-bottom: 16px;
}
#audit-results ul {
  list-style: disc;
  padding-left: 20px;
}
#audit-results li {
  margin-bottom: 8px;
  color: #4BA6FD;
}
#audit-results .success {
  color: #ffffff;
  font-weight: bold;
}
