/* CSS Variables - Matching fossoncloud.com */
:root {
  --ast-global-color-0: #6878d6; /* Primary Blue */
  --ast-global-color-1: #4d61d6; /* Secondary Blue */
  --ast-global-color-2: #242a56; /* Dark Navy */
  --ast-global-color-3: #393a56; /* Charcoal Text */
  --ast-global-color-4: #eff2ff; /* Light Purple */
  --ast-global-color-5: #ffffff; /* White */
  --color-border: #dddddd;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --container-width: 1200px;
  --shadow-card: 0 4px 4px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6em;
  color: var(--ast-global-color-3);
  background-color: var(--ast-global-color-5);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3em;
  color: var(--ast-global-color-2);
}

h1 { font-size: 3rem; line-height: 1.4em; }
h2 { font-size: 2.625rem; line-height: 1.3em; }
h3 { font-size: 1.75rem; line-height: 1.3em; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--ast-global-color-0);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ast-global-color-1);
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons - Matching fossoncloud.com exactly */
.btn {
  display: inline-block;
  padding: 17px 35px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--ast-global-color-0);
  color: var(--ast-global-color-5);
  border-color: var(--ast-global-color-0);
}

.btn-primary:hover {
  background-color: var(--ast-global-color-1);
  border-color: var(--ast-global-color-1);
  color: var(--ast-global-color-5);
}

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

.btn-secondary:hover {
  background-color: var(--ast-global-color-0);
  color: var(--ast-global-color-5);
}

.btn-white {
  background-color: var(--ast-global-color-5);
  color: var(--ast-global-color-0);
  border-color: var(--ast-global-color-5);
}

.btn-white:hover {
  background-color: var(--ast-global-color-4);
  border-color: var(--ast-global-color-4);
}

.btn-small {
  padding: 12px 24px;
  font-size: 0.875rem;
}

/* Header */
.site-header {
  background-color: var(--ast-global-color-5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ast-global-color-3);
  padding: 10px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--ast-global-color-0);
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  background-color: var(--ast-global-color-5);
  box-shadow: var(--shadow-card);
  border-radius: 3px;
  padding: 15px 0;
  min-width: 220px;
  list-style: none;
  z-index: 1000;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 25px;
  color: var(--ast-global-color-3);
  font-size: 0.9375rem;
}

.dropdown-menu li a:hover {
  background-color: var(--ast-global-color-4);
  color: var(--ast-global-color-0);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

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

/* Hero Section - Light purple background like fossoncloud.com */
.hero {
  background-color: var(--ast-global-color-4);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  color: var(--ast-global-color-2);
  margin-bottom: 20px;
  font-size: 2.75rem;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--ast-global-color-3);
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* How It Works Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.step-card {
  text-align: center;
  padding: 30px;
  position: relative;
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background-color: var(--ast-global-color-0);
  color: var(--ast-global-color-5);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 50px;
  height: 50px;
  margin: 40px auto 20px;
  background-color: var(--ast-global-color-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.step-icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  fill: var(--ast-global-color-0);
}

.step-card h3 {
  margin-bottom: 15px;
  font-size: 1.375rem;
  color: var(--ast-global-color-2);
}

.step-card p {
  color: var(--ast-global-color-3);
  margin-bottom: 0;
  line-height: 1.7;
}

/* What's Included */
.whats-included {
  background-color: var(--ast-global-color-5);
  border-radius: 10px;
  padding: 50px;
  box-shadow: var(--shadow-card);
}

.whats-included h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
  color: var(--ast-global-color-2);
}

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

.included-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.included-item svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  fill: var(--ast-global-color-0);
}

.included-item span {
  color: var(--ast-global-color-3);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.included-item strong {
  color: var(--ast-global-color-2);
}

/* Section Styles */
.section {
  padding: 100px 0;
}

.section-light {
  background-color: var(--ast-global-color-4);
}

.section-white {
  background-color: var(--ast-global-color-5);
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  color: var(--ast-global-color-3);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Features Grid - Why Choose Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--ast-global-color-5);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 25px;
  background-color: var(--ast-global-color-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--ast-global-color-0);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.375rem;
  color: var(--ast-global-color-2);
}

.feature-card p {
  color: var(--ast-global-color-3);
  margin-bottom: 0;
  line-height: 1.7;
}

/* Featured Product - Alternating Layout */
.featured-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.featured-product:last-child {
  margin-bottom: 0;
}

.featured-product.reverse {
  direction: rtl;
}

.featured-product.reverse > * {
  direction: ltr;
}

.featured-product-image {
  background-color: var(--ast-global-color-4);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.featured-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.featured-product-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--ast-global-color-2);
}

.featured-product-content p {
  color: var(--ast-global-color-3);
  margin-bottom: 25px;
  line-height: 1.7;
}

.featured-product-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--ast-global-color-5);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  width: 100%;
  height: 200px;
  background-color: var(--ast-global-color-4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 15px;
}

.product-image-placeholder {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ast-global-color-0);
}

.product-content {
  padding: 25px;
}

.product-content h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--ast-global-color-2);
}

.product-content h3 a {
  color: inherit;
}

.product-content h3 a:hover {
  color: var(--ast-global-color-0);
}

.product-content p {
  color: var(--ast-global-color-3);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-category {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--ast-global-color-4);
  color: var(--ast-global-color-0);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-buttons {
  display: flex;
  gap: 10px;
}

.product-buttons .btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.8125rem;
}

/* CTA Section - Light purple background */
.cta-section {
  background-color: var(--ast-global-color-4);
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  color: var(--ast-global-color-2);
  margin-bottom: 15px;
}

.cta-section p {
  color: var(--ast-global-color-3);
  margin-bottom: 35px;
  font-size: 1.125rem;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Newsletter */
.newsletter-section {
  background-color: var(--ast-global-color-4);
  padding: 80px 0;
}

.newsletter {
  background-color: var(--ast-global-color-5);
  padding: 50px;
  border-radius: 10px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.newsletter h3 {
  margin-bottom: 10px;
  color: var(--ast-global-color-2);
}

.newsletter p {
  color: var(--ast-global-color-3);
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--ast-global-color-0);
}

.newsletter-form .btn {
  padding: 15px 30px;
}

/* Footer */
.site-footer {
  background-color: var(--ast-global-color-2);
  color: var(--ast-global-color-5);
  padding: 80px 0 30px;
}

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

.footer-brand .logo-img {
  height: 35px;
  width: auto;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin: 20px 0;
  font-size: 0.9375rem;
}

.footer-contact {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-contact a {
  color: var(--ast-global-color-4);
}

.footer-contact a:hover {
  color: var(--ast-global-color-5);
}

.footer-menu h4 {
  color: var(--ast-global-color-5);
  margin-bottom: 25px;
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-menu ul {
  list-style: none;
}

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

.footer-menu ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.footer-menu ul a:hover {
  color: var(--ast-global-color-5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Page Header */
.page-header {
  background-color: var(--ast-global-color-4);
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--ast-global-color-2);
  margin-bottom: 15px;
}

.page-header p {
  color: var(--ast-global-color-3);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-header-cta {
  margin-top: 30px;
}

/* Page Content */
.page-content {
  padding: 80px 0;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--ast-global-color-2);
}

.page-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.375rem;
}

.page-content p {
  max-width: 800px;
  line-height: 1.7;
}

.page-content ul, .page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Product Resources Section */
.product-resources {
  margin-top: 50px;
  padding: 40px;
  background-color: var(--ast-global-color-5);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.product-resources h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.product-resources > p {
  color: var(--ast-global-color-3);
  margin-bottom: 25px;
}

.resource-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.resource-link {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background-color: var(--ast-global-color-4);
  border-radius: 8px;
  text-decoration: none;
  flex: 1;
  min-width: 250px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.resource-link svg {
  flex-shrink: 0;
  fill: var(--ast-global-color-2);
}

.resource-link span {
  color: var(--ast-global-color-3);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.resource-link strong {
  color: var(--ast-global-color-2);
  display: block;
  margin-bottom: 2px;
}

/* Product CTA Section */
.product-cta-section {
  margin-top: 60px;
  padding: 50px;
  background-color: var(--ast-global-color-4);
  border-radius: 10px;
  text-align: center;
}

.product-cta-section h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.product-cta-section p {
  max-width: none;
  margin: 0 auto 25px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ast-global-color-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
}

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

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

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.blog-card {
  background-color: var(--ast-global-color-5);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card-image {
  width: 100%;
  height: 180px;
  background-color: var(--ast-global-color-4);
}

.blog-card-content {
  padding: 20px;
}

.blog-card-content h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: var(--ast-global-color-2);
}

.blog-card-content h3 a:hover {
  color: var(--ast-global-color-0);
}

.blog-meta {
  color: rgba(57, 58, 86, 0.6);
  font-size: 0.8125rem;
  margin-bottom: 10px;
}

/* Why Self Host Page */
.reasons-list {
  display: grid;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.reason-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.reason-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background-color: var(--ast-global-color-0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--ast-global-color-5);
}

.reason-content h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  margin-top: 0;
}

.reason-content p {
  color: var(--ast-global-color-3);
  margin-bottom: 0;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .featured-product {
    gap: 40px;
  }

  .steps-grid {
    gap: 30px;
  }

  .whats-included {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--ast-global-color-5);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-card);
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-item {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu .nav-link {
    display: block;
    padding: 15px 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 20px;
    display: none;
  }

  .nav-item.has-dropdown.active .dropdown-menu {
    display: block;
  }

  .hero {
    padding: 60px 0;
  }

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

  .section {
    padding: 60px 0;
  }

  .features-grid,
  .products-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 20px;
  }

  .step-icon {
    margin-top: 40px;
  }

  .whats-included {
    padding: 30px 20px;
  }

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

  .featured-product {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .featured-product.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-buttons,
  .cta-buttons,
  .featured-product-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .newsletter-form {
    flex-direction: column;
  }

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

  .reason-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .reason-content h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 544px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    margin-bottom: 20px;
  }

  .btn {
    padding: 14px 28px;
  }

  .product-buttons {
    flex-direction: column;
  }

  .product-buttons .btn {
    flex: none;
  }
}
