:root {
  --text:#111;
  --muted:#555;
  --border:#ddd;
  --accent:#000;
}

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

body {
  font-family:Inter,system-ui,sans-serif;
  background:#fff;
  color:var(--text);
}

/* HEADER */
.header {
  border-bottom:1px solid var(--border);
}
.container {
  max-width:1100px;
  margin:auto;
  padding:40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.logo {
  font-weight:900;
  font-size:1.4rem;
}
.logo span {
  font-weight:700;
}
nav a {
  margin-left:26px;
  text-decoration:none;
  color:#000;
  font-weight:600;
  position:relative;
}
nav a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:#000;
  transition:.3s;
}
nav a:hover::after { width:100%; }

/* HERO */
.hero {
  text-align:center;
  padding:80px 20px 40px;
}
.hero h1 {
  font-size:40px;
}
.hero p {
  color:var(--muted);
  margin-top:10px;
  font-size:18px;
}

/* MAIN */
.speed-wrapper {
  max-width:900px;
  margin:60px auto;
  padding:0 20px;
}

.speed-console {
  border:1px solid var(--border);
  padding:50px 30px;
  text-align:center;
  background:#fafafa;
}

/* SPEEDOMETER */
.speedometer {
  position:relative;
  width:280px;
  height:280px;
  margin:0 auto;
}

.dial {
  width:100%;
  height:100%;
  border-radius:50%;
  background:conic-gradient(
    #00ff99 0deg,
    #00ff99 90deg,
    #ffaa00 140deg,
    #ff3b3b 200deg,
    #e6e6e6 200deg,
    #e6e6e6 360deg
  );
  mask: radial-gradient(circle, transparent 58%, black 60%);
}

.ticks span {
  position:absolute;
  top:50%;
  left:50%;
  transform:
    translateX(-6px)
    rotate(calc(-120deg + var(--i) * 40deg))
    translate(0, -120px)
    rotate(calc(120deg - var(--i) * 40deg));
  font-size:12px;
  font-weight:600;
  color:#777;
}

.needle {
  position:absolute;
  width:4px;
  height:120px;
  background:#000;
  top:50%;
  left:50%;
  transform-origin:50% 100%;
  transform:translate(-50%, -100%) rotate(-90deg);
  transition:transform .15s ease-out;
}

.speed-readout {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}
.speed-readout span {
  font-size:3.2rem;
  font-weight:700;
}
.speed-readout small {
  color:var(--muted);
}

/* BUTTON */
.btn {
  margin-top:30px;
  padding:14px 28px;
  border:1px solid #000;
  background:#000000;
  color: #ffffff;
  font-weight:600;
  cursor:pointer;
}
.btn:hover {
  background:#ffffff;
  color:#000000;
}

/* STATS */
.stats {
  margin-top:40px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.stats div {
  border:1px solid var(--border);
  padding:18px;
}
.stats span {
  font-size:1.4rem;
  font-weight:700;
}
.stats small {
  display:block;
  color:var(--muted);
  margin-top:6px;
}

/* ================================
   FOOTER – DARK TEXT
================================ */
.footer {
  border-top: 1px solid var(--border);
  background: transparent;
  padding: 28px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* LEFT */
.footer-left {
  font-size: 14px;
  color: #111; /* dark text */
  white-space: nowrap;
}

/* CENTER – SOCIAL ICONS */
.footer-center {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-center a {
  font-size: 18px;
  color: #111; /* dark */
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-center a:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

/* RIGHT – TERMS & PRIVACY */
.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-right a {
  font-size: 13px;
  color: #111; /* dark text */
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* SAME hover as center */
.footer-right a:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

.hamburger {
    display: none;
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {

  /* ===================== MOBILE HEADER / NAV ===================== */

  .hamburger {
      display: block;
      cursor: pointer;
      font-size: 28px;
      margin-right: 15px;
  }

  /* Hide Desktop Nav */
  nav, 
  .nav-right nav {
      display: none !important;
  }
  /* -------------------------------
   MOBILE DARK MODE NAV
    ---------------------------------*/
    body.dark .mobile-nav {
        background: var(--card); /* dark background */
    }

    body.dark .mobile-nav a {
        color: var(--text); /* white text */
    }

    body.dark .mobile-nav a:hover {
        background: var(--accent); /* hover background in dark mode */
        color: var(--bg);           /* hover text in dark mode */
    }

    body.dark .mobile-close {
        color: var(--text); /* close button white */
    }

    body.dark .mobile-close:hover {
        color: var(--accent); /* hover color for close button */
    }

  /* Mobile Nav Dropdown */
  .mobile-nav {
      display: none;
      flex-direction: column;
      background: #fff;
      position: fixed;
      top: 60px;
      left: 0;
      width: 100%;
      padding: 10px 0;
      border-bottom: 1px solid #ccc;
      z-index: 9999 !important;
  }

  .mobile-nav.open {
      display: flex;
  }

  .mobile-nav a {
      padding: 12px 20px;
      color: #000;
      font-weight: 600;
      text-decoration: none;
      border-top: 1px solid #eee;
  }

  .mobile-nav a:first-child {
      border-top: none;
  }

  .mobile-nav a:hover {
      background: #000;
      color: #fff;
      transition: 0.2s ease;
  }

  .mobile-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text);
    text-align: right;
    width: 100%;
    padding: 10px 20px;
    cursor: pointer;
}

.mobile-close:hover {
    color: var(--accent);
}
.footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-center,
  .footer-right {
    justify-content: center;
  }
}