:root {
  --primary: #3bacf9;
  --primary-dark: #2196f3;
  --primary-light: #64b5f6;
  --secondary: #ff9800;
  --text: #666666;
  --text-light: #757575;
  --background: #ffffff;
  --background-light: #f5f5f5;
  --shadow: 0 2px 10px rgba(59, 172, 249, 0.1);
  --success: #4caf50;
  --error: #f44336;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--background);
}

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

/* Header and Navigation */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 16px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-block;
}

.logo img {
  width: 100%;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 24px;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary);
}

/* Common Section Styles */
.hero,
.features,
.how-it-works,
.cta {
  padding: 80px 0;
}

.hero {
  padding-top: 160px;
  text-align: center;
  background: var(--background);
  background-image: radial-gradient(
      circle at top right,
      rgba(59, 172, 249, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 152, 0, 0.1) 0%,
      transparent 60%
    );
}

/* Common Heading Styles */
h1,
h2 {
  color: var(--primary);
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
  text-align: center;
  margin-bottom: 40px;
}

/* Common Text Styles */
p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 18px);
  max-width: 800px;
  margin: 0 auto 32px;
}

/* Features Section */
.features {
  background: var(--background-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--background);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary-light);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(59, 172, 249, 0.15);
  border-left-color: var(--primary);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 600;
}

.feature-card p {
  font-size: 14px;
}

/* How It Works Section */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 24px;
  background: var(--background-light);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--background);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  font-weight: bold;
}

.step h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

/* CTA Section */
.cta {
  background-image: radial-gradient(
      circle at top left,
      rgba(59, 172, 249, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 152, 0, 0.1) 0%,
      transparent 60%
    );
  text-align: center;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Button Styles */
.button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--background);
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  opacity: 0.9;
}

.button:active {
  transform: scale(0.98);
}

.button-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.button-outline:hover {
  background: var(--primary);
  color: var(--background);
}

/* Footer */
footer {
  background: var(--background-light);
  padding: 40px 0;
  text-align: center;
}

.copyright {
  margin-bottom: 16px;
}

.footer-links {
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
}

/* Terms of Service Specific Styles */
.tos-content {
  padding: 120px 0 60px;
}

.tos-content h1 {
  margin-bottom: 24px;
}

.tos-content h2 {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--primary-dark);
  margin-top: 32px;
  text-align: left;
}

.tos-content h3 {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.tos-content .email {
  text-decoration: none;
  color: var(--primary-dark);
}

/* Mobile Menu */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon {
  width: 24px;
  height: 24px;
}

.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero,
  .features,
  .how-it-works,
  .cta {
    padding: 60px 0;
  }

  .hero {
    padding-top: 120px;
  }

  .button-group {
    flex-direction: column;
    padding: 0 16px;
  }

  .button {
    width: 100%;
  }

  #menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background);
    box-shadow: var(--shadow);
    padding: 16px;
  }

  nav ul.active {
    display: block;
  }

  nav ul li {
    margin: 16px 0;
  }

  .steps {
    flex-direction: column;
  }
}
