:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #ffffff;
  --white: #ffffff;
  --light-background: #f3f4f6;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --headingfont: "Urbanist", sans-serif;
  --bodyfont: "Inter", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--headingfont);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  vertical-align: middle;
}
body {
  font-family: var(--bodyfont);
  color: var(--text-color);
  line-height: 1.5;
  background: var(--background);
}

/* Header & Navigation */
header {
  background: var(--background);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* Navigation Container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo */
.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: block;
  z-index: 1001;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--primary-color);
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  color: var(--text-color);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  transform: translateY(-100%);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  width: 100%;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
  text-align: left;
  width: 100%;
  padding: 0.75rem 0;
}

.mobile-nav a:hover {
  color: var(--primary-color);
}

/* Sign Up Button */
.signup-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: var(--success-color);
  color: #00140e !important;
  transition: all 0.2s ease;
  text-align: center !important;
}

.signup-btn:hover {
  background: #0ea371;
  transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-container {
    padding-inline: 1rem;
  }
  .signup-btn {
    margin-top: 16px;
  }
  .mobile-menu-toggle {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(to bottom right, #f3f4f6, #f9fafb);
  text-align: center;
}

.hero-content {
  max-width: 992px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.primary-btn,
.secondary-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
  display: inline-block;
}
.lg {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
}

.primary-btn {
  background: var(--success-color);
  color: #00140e;
}

.primary-btn:hover {
  background: #0ea371;
  transform: translateY(-1px);
}

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

/* Features Section */
.features {
  padding: 6rem 0;
  background: var(--background);
  scroll-margin-top: 6rem;
}

.features h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(584px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--white);
  text-align: left;
  transition: transform 0.2s;
  border: 1px solid var(--border-color);
}
.feature-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.feature-card .icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}
.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 2rem;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

/* resources */
.resources {
  padding: 6rem 0;
  background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
}
.resources .cta-buttons {
  margin-top: 1.5rem;
}
.resources .feature-card {
  position: relative;
}
.resources .feature-card a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.resources .feature-card a span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.resources .feature-card h3 {
  transition: color 0.2s ease;
}
.resources .feature-card:hover h3 {
  color: var(--success-color);
}
.cta {
  padding: 6rem 0;
  text-align: center;
}
.cta h2 {
  font-size: 3rem;
}
.cta p {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 2.5rem;
}
.cta .cta-buttons {
  margin-top: 1.5rem;
}

/* Pricing Section */
.pricing {
  padding: 4rem 2rem;
  background: var(--light-background);
}

.pricing h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--background);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary-color);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.price span {
  font-size: 1rem;
  color: var(--light-text);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card li {
  margin-bottom: 0.75rem;
  color: var(--light-text);
}

.pricing-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background 0.2s;
}

/* Footer */
footer {
  background: var(--light-background);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--success-color);
}

.copyright {
  color: var(--light-text);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1,
  .cta h2 {
    font-size: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero,
  .cta {
    padding: 3rem 1rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .features h2,
  .pricing h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features,
  .pricing {
    padding: 3rem 1rem;
  }

  .feature-card,
  .pricing-card {
    padding: 1.5rem;
  }

  .footer-content {
    padding: 0 1rem;
  }
}

/* Cross-browser compatibility */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color); /* Fallback */
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .feature-card:hover,
  .pricing-card:hover {
    transform: none;
  }

  .primary-btn:hover,
  .secondary-btn:hover,
  .signup-btn:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ee;
    --secondary-color: #551a8b;
    --text-color: #000000;
    --light-text: #444444;
    --background: #ffffff;
    --light-background: #eeeeee;
    --border-color: #000000;
    --success-color: #006400;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  img {
    opacity: 0.8;
    transition: opacity 0.2s;
  }

  img:hover {
    opacity: 1;
  }
}

/* Print styles */
@media print {
  .hero {
    padding: 1rem;
    background: none;
  }

  .feature-card,
  .pricing-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .footer {
    display: none;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.features,
.pricing {
  animation: fadeIn 0.8s ease-out;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
