/* ===== CSS Variables ===== */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #10b981;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.875rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

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

button {
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

/* ===== Button Styles ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-outline {
  background-color: white;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ===== Header Styles ===== */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ===== Footer Styles ===== */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
}

.footer-description {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ===== Home Page Styles ===== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.features {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

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

.feature-card {
  padding: 2rem;
  background-color: var(--bg-white);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.use-cases {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.use-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.use-case-reverse {
  direction: rtl;
}

.use-case-reverse > * {
  direction: ltr;
}

.use-case-content h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.use-case-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.use-case-list {
  list-style: none;
  margin-bottom: 2rem;
}

.use-case-list li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.use-case-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image {
  width: 100%;
  height: 400px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  line-height: 1.3;
  padding: 2rem;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ===== Pricing Page Styles ===== */
.pricing-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.pricing-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pricing-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 0;
}

.pricing-plans {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

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

.pricing-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 2.5rem;
  border: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
  max-width: 380px;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card-featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.plan-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-header h3 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.plan-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.plan-price {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.period {
  color: var(--text-secondary);
  font-size: 1rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features li {
  padding: 0.75rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--bg-light);
}

.plan-button {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
}

.pricing-faq {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

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

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

.faq-item {
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 0.5rem;
}

.faq-item h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== Blog Page Styles ===== */
.blog-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 0;
}

.blog-content {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.placeholder-blog-image {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.blog-date {
  color: var(--text-secondary);
}

.blog-category {
  color: var(--primary-color);
  font-weight: 600;
}

.blog-card h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}

.blog-link:hover {
  gap: 0.5rem;
}

.blog-empty-state {
  text-align: center;
  padding: 2rem;
}

.text-muted {
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== Legal Pages Styles ===== */
.legal-page {
  background-color: var(--bg-white);
  padding: 3rem 0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border-color);
}

.legal-content h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--primary-hover);
}

/* ===== Blog Post Page Styles ===== */
.blog-post-page {
  background-color: var(--bg-white);
  padding: 3rem 0;
}

.blog-post-page article {
  max-width: 800px;
}

.blog-post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.blog-post-header .blog-meta {
  margin-bottom: 1rem;
}

.blog-post-header h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
}

.blog-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.blog-post-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.blog-post-content p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: var(--primary-color);
}

.blog-post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

/* ===== Modal Styles ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 0.75rem;
  max-width: 600px;
  max-height: calc(100vh - 4rem);
  width: 90%;
  position: relative;
  animation: slideIn 0.3s;
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  z-index: 10;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-content h2 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 1.75rem;
}

.modal-content > div > p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-fields-wrapper {
  padding-bottom: 0.5rem;
}

.sticky-button-wrapper {
  position: sticky;
  bottom: -1.5rem;
  margin: 0 -1.5rem -1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,1) 20%, rgba(249,250,251,1) 100%);
  border-top: 1px solid var(--border-color);
  text-align: right;
}

.btn-full-width {
  min-width: 200px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-of-type {
  margin-bottom: 0.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.error-message {
  background-color: #fee2e2;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.success-message {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-message h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ===== Mobile Menu Styles ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu.active {
  max-height: 400px;
  padding: 1rem 0;
}

.mobile-menu-link {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px solid var(--bg-light);
  transition: all 0.2s;
}

.mobile-menu-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 2rem;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem 0.5rem;
}

.btn-mobile {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .use-case {
    grid-template-columns: 1fr;
  }

  .use-case-reverse {
    direction: ltr;
  }

  .placeholder-image {
    height: 250px;
    font-size: 2rem;
    padding: 1.5rem;
    line-height: 1.3;
  }

  .pricing-hero h1,
  .blog-hero h1 {
    font-size: 2rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 1rem;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.5rem;
  }

  .legal-content h3 {
    font-size: 1.125rem;
  }

  .blog-post-header h1 {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 1.125rem;
  }

  .blog-post-content {
    font-size: 1rem;
  }

  .blog-post-content p:first-of-type::first-letter {
    font-size: 3rem;
  }

  .modal-content {
    margin: 1rem auto;
    padding: 1rem;
    width: 95%;
    max-height: calc(100vh - 2rem);
  }

  .sticky-button-wrapper {
    margin: 0 -1rem -1rem;
    padding: 0.75rem 1rem;
  }

  .btn-full-width {
    min-width: 150px;
  }

  .modal-close {
    right: 0.75rem;
    top: 0.75rem;
    font-size: 1.5rem;
  }
}

