:root {
  --speedometer-blue: #1a73e8;
  --speedometer-dark-blue: #0d47a1;
  --speedometer-accent: #f5f9ff;
  --speedometer-background: #ffffff;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: var(--speedometer-background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animation for Speedometer Needle */
@keyframes needleAnimation {
  0% { transform: translateX(-50%) rotate(-120deg); }
  50% { transform: translateX(-50%) rotate(60deg); }
  100% { transform: translateX(-50%) rotate(-120deg); }
}

.animate-needle {
  animation: needleAnimation 3s ease-in-out;
}

/* Fade-in animation for content */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Staggered fade-in for multiple elements */
.stagger-fade-in > * {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.stagger-fade-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade-in > *:nth-child(4) { animation-delay: 0.4s; }

/* Pulse animation for call-to-action elements */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Improved speedometer styles */
.speedometer-pulse {
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(5px);
  transition: all var(--transition-speed);
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid #e5e5e5;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--speedometer-blue);
}

.desktop-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-link:hover {
  color: var(--speedometer-blue);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform 0.15s;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--speedometer-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--speedometer-dark-blue);
}

.btn-outline {
  border: 1px solid #e5e5e5;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: #f5f5f5;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background-color: white;
  transition: right 0.3s ease-in-out;
  z-index: 100;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
}

.mobile-menu-link {
  padding: 16px 0;
  font-size: 1rem;
  border-bottom: 1px solid #f1f1f1;
}

.mobile-menu-btn {
  margin-top: 24px;
  width: 100%;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.overlay.active {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(to bottom right, var(--speedometer-blue), var(--speedometer-dark-blue));
  color: white;
  overflow: hidden;
  padding: 64px 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 71, 161, 0.2);
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--speedometer-dark-blue), transparent);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
  }
}

.hero-text {
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .hero-text {
    width: 50%;
    text-align: left;
    margin-bottom: 0;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  margin-bottom: 24px;
}

.hero-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 8px;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-btn {
  padding: 12px 24px;
  font-size: 1rem;
}

.hero-image {
  position: relative;
}

@media (min-width: 768px) {
  .hero-image {
    width: 50%;
    display: flex;
    justify-content: center;
  }
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid rgba(26, 115, 232, 0.5);
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring-1 {
  width: 100%;
  height: 100%;
}

.pulse-ring-2 {
  width: 95%;
  height: 95%;
  top: 2.5%;
  left: 2.5%;
  animation-delay: 0.5s;
}

.hero-image-container {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Table of Contents */
.toc {
  background-color: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 24px 0;
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.toc-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  transition: color var(--transition-speed);
}

.toc-link:hover {
  color: var(--speedometer-blue);
}

/* Section Container */
.section {
  padding: 48px 0;
}

@media (min-width: 640px) {
  .section {
    padding: 64px 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 16px;
  color: var(--speedometer-blue);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-description {
  color: #666;
  font-size: 0.95rem;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  position: relative;
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #f0f0f0;
  height: 100%;
  transition: border-color 0.3s;
}

.step-card:hover {
  border-color: var(--speedometer-blue);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(26, 115, 232, 0.2);
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-description {
  color: #666;
  font-size: 0.95rem;
}

.step-connector {
  display: none;
}

@media (min-width: 1024px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 50%;
    left: 100%;
    width: 24px;
    height: 2px;
    background-color: #f0f0f0;
    transform: translateY(-50%);
  }
  
  .step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--speedometer-blue);
    transform: translateY(-50%);
  }
  
  .step-card:last-child .step-connector {
    display: none;
  }
}

/* Speedometer Section */
.speedometer-container {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 24px;
  max-width: 400px;
  margin: 0 auto;
}

.speedometer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.speedometer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

.speedometer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.unit-select {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
  background-color: white;
  cursor: pointer;
}

.info-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: white;
  color: #666;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.info-button:hover {
  background-color: #f5f5f5;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  width: 240px;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.speedometer-dial {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: 24px;
}

.speedometer-background {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #f5f5f5;
}

.speedometer-ticks {
  position: absolute;
  inset: 0;
}

.tick {
  position: absolute;
  width: 2px;
  top: 0;
  left: 50%;
  transform-origin: bottom;
  background-color: #ccc;
}

.tick.major {
  height: 12px;
  background-color: #666;
}

.tick.minor {
  height: 8px;
}

.speedometer-needle {
  position: absolute;
  width: 4px;
  height: 45%;
  background-color: #e53935;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%) rotate(-120deg);
  transform-origin: bottom;
  border-radius: 4px 4px 0 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speedometer-center {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #e53935;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.speedometer-value {
  position: absolute;
  font-size: 2.5rem;
  font-weight: 700;
  left: 50%;
  bottom: 35%;
  transform: translateX(-50%);
  color: #333;
}

.speedometer-unit {
  position: absolute;
  font-size: 1rem;
  left: 50%;
  bottom: 25%;
  transform: translateX(-50%);
  color: #666;
}

.speedometer-max {
  position: absolute;
  font-size: 0.875rem;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  color: #666;
}

.speedometer-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .use-cases-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.use-case-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.use-case-image {
  height: 160px;
  width: 100%;
}

.use-case-content {
  padding: 20px;
}

.use-case-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.use-case-description {
  color: #666;
  font-size: 0.95rem;
}

/* Help Section */
.bg-gray {
  background-color: #f9f9f9;
}

.help-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.help-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  color: #333;
}

.help-title svg {
  margin-right: 8px;
}

.help-content {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .help-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.help-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.help-section ol {
  list-style-position: inside;
  margin-left: 8px;
}

.help-section li {
  margin-bottom: 8px;
  color: #555;
}

.help-note {
  grid-column: 1 / -1;
  background-color: #f0f7ff;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.help-note p {
  color: #1a73e8;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  background-color: white;
  padding: 16px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #fafafa;
}

.faq-question svg {
  transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
  padding: 0 16px 16px;
  max-height: 500px;
}

.faq-answer p {
  color: #666;
}

/* Footer */
footer {
  background-color: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--speedometer-blue);
}

.footer-tagline {
  color: #666;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #666;
  font-size: 0.95rem;
  transition: color var(--transition-speed);
}

.footer-nav a:hover {
  color: var(--speedometer-blue);
}

.footer-text {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-form {
  display: flex;
}

.footer-input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 0.875rem;
}

.footer-submit {
  padding: 8px 12px;
  background-color: var(--speedometer-blue);
  color: white;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.footer-submit:hover {
  background-color: var(--speedometer-dark-blue);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid #e5e5e5;
  padding-top: 24px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  color: #777;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .copyright {
    margin-bottom: 0;
  }
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #666;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.social-link:hover {
  background-color: var(--speedometer-blue);
  color: white;
}

@media (max-width: 768px) {
  .desktop-nav, .header-actions {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
}