/* Articles Page */
.articles-page .navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
}

.articles-hero {
  padding: 160px 0 80px;
  background:
    radial-gradient(circle at top, rgba(79, 70, 229, 0.2), transparent),
    var(--bg-dark);
  text-align: center;
  position: relative;
}

.articles-hero .eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.articles-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.articles-hero .hero-subtitle {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

.articles-hero .hero-actions {
  justify-content: center;
}

.articles-filters {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-dark);
}

.articles-filters .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  text-align: center;
}

.filter-chip {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.articles-list {
  padding: 80px 0;
  background: var(--bg-dark);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.articles-grid .insight-card {
  scroll-margin-top: 140px;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.highlight-article {
  border-color: var(--primary-color) !important;
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.35);
}

.newsletter-section--articles {
  background: var(--bg-dark);
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.service-card.featured-service {
  border-color: var(--primary-color);
  border-width: 2px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.service-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 700;
}

.service-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Brokerage Section */
.brokerage-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

.brokerage-content {
  max-width: 900px;
  margin: 0 auto;
}

.brokerage-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.brokerage-benefits h3,
.brokerage-pricing h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.benefits-grid {
  display: grid;
  gap: 1.5rem;
}

.benefit-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.benefit-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.benefit-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.brokerage-pricing {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.pricing-tier {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-tier:last-child {
  border-bottom: none;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tier-name {
  font-weight: 600;
  color: var(--text-primary);
}

.tier-commission {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-tier p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.pricing-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.pricing-note p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

.brokerage-form {
  margin-top: 3rem;
}

.brokerage-form .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

.brokerage-form .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Hosting Plans Section */
.hosting-section {
  padding: 4rem 0;
  margin: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hosting-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hosting-plan {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
  contain: layout paint;
}

.hosting-plan:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.hosting-plan.featured {
  border-color: var(--primary-color);
  border-width: 2px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.plan-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.plan-features {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
}

.plan-features li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 700;
}

.plan-cta {
  width: 100%;
  padding: 1rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  will-change: transform;
}

.plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
  background: rgba(99, 102, 241, 0.05);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.newsletter-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 2rem;
  text-align: center;
  max-width: 420px;
  color: var(--text-secondary);
}

.newsletter-highlights li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
  font-weight: 500;
}

.newsletter-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.newsletter-form {
  margin-top: 2rem;
}

.newsletter-input-group {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input-group input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.newsletter-submit {
  padding: 1rem 2rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.newsletter-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.insights-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.insights-cta p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 500;
}

.insights-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  background: var(--gradient);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.insights-cta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Hosting Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  contain: layout paint style;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light);
  border-radius: 16px 16px 0 0;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
}

.hosting-form .form-group {
  margin-bottom: 1.5rem;
}

.hosting-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.hosting-form .form-group input,
.hosting-form .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hosting-plans {
    grid-template-columns: 1fr;
  }

  .articles-hero {
    padding: 120px 0 60px;
  }

  .articles-hero h1 {
    font-size: 2.25rem;
  }

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

  .brokerage-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-submit {
    width: 100%;
    justify-content: center;
  }

  .newsletter-highlights {
    text-align: left;
    margin-left: 0;
  }

  .insights-cta {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1rem 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}
