/* Base Styles */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --secondary: #0f172a;
  --accent: #f59e0b;
}

/* Performance: reduce layout shift */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Performance: smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #14b8a6;
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0d9488;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #1f2937;
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #374151;
}

/* Navbar */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  height: 100px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  height: 120px;
}

.navbar-logo img {
  height: 180px;
  width: auto;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-link {
  color: #374151;
  font-size: 1.25rem;
  font-weight: 500;
}

.navbar-link:hover {
  color: #14b8a6;
}

.navbar-login {
  background-color: #14b8a6;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
}

.navbar-login:hover {
  background-color: #0d9488;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background-color: white;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  color: #374151;
  font-size: 1.125rem;
  padding: 0.5rem 0;
}

.mobile-menu a:hover {
  color: #14b8a6;
}

.mobile-menu .btn-primary {
  width: 100%;
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(15, 23, 42, 0.05));
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  text-align: center;
  max-width: 800px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 100%;
}

.hero-title-part1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0;
  line-height: 1;
}

.hero-title-part2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .hero-title-part1,
  .hero-title-part2 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title-part1,
  .hero-title-part2 {
    font-size: 3.5rem;
  }
}

.hero-text p {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.hero-image {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-button-container {
  text-align: right;
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: white;
}

.features .container {
  text-align: center;
}

.features-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .features-header h2 {
    font-size: 2.5rem;
  }
}

.features-header p {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: #d1fae5;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #4b5563;
}

/* Who Is It For Section */
.who-is-it-for {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.who-is-it-for .container {
  text-align: center;
}

.who-is-it-for h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .who-is-it-for h2 {
    font-size: 2.5rem;
  }
}

.who-is-it-for-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .who-is-it-for-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.who-is-it-for-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.who-is-it-for-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.check-icon {
  width: 24px;
  height: 24px;
  background-color: #14b8a6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.check-icon svg {
  width: 16px;
  height: 16px;
  color: white;
}

.who-is-it-for-item p {
  color: #374151;
  font-size: 1.125rem;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background-color: #14b8a6;
}

.cta .container {
  text-align: center;
}

.cta-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .cta-card {
    padding: 4rem;
  }
}

.cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .cta h2 {
    font-size: 2.5rem;
  }
}

.cta p {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.cta .btn-primary {
  background-color: #14b8a6;
}

.cta .btn-primary:hover {
  background-color: #0d9488;
}

/* Modules Page */
.modules-page {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.modules-header {
  text-align: center;
  margin-bottom: 4rem;
}

.modules-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .modules-header h1 {
    font-size: 3rem;
  }
}

.modules-header p {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto;
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.module-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.module-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
}

.module-icon {
  width: 64px;
  height: 64px;
  background-color: #d1fae5;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.module-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.module-card p {
  color: #4b5563;
  margin-bottom: 1rem;
}

.module-link {
  color: #14b8a6;
  font-weight: 500;
}

.module-link:hover {
  color: #0d9488;
}

/* Contact Page */
.contact-page {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .contact-header h1 {
    font-size: 3rem;
  }
}

.contact-header p {
  font-size: 1.25rem;
  color: #4b5563;
}

.contact-form {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  color: #14b8a6;
}

.form-checkbox label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-submit {
  width: 100%;
  background-color: #14b8a6;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background-color: #0d9488;
}

.form-submit:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
  padding: 3rem 0 2rem;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 1rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .features-header h2,
  .who-is-it-for h2,
  .modules-header h1,
  .contact-header h1 {
    font-size: 2rem;
  }
}
