/* Homepage Styles */

/* Override page width for homepage */
.page,
.content,
main .container,
article.page,
.single .content {
  max-width: 1400px !important;
}

.homepage-tools-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 2rem 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(9, 105, 218, 0.05) 0%, rgba(9, 105, 218, 0.02) 100%);
  border-radius: 16px;
  margin-top: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #24292f;
  line-height: 1.2;
}

[theme='dark'] .hero-title {
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #57606a;
  margin: 0 0 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

[theme='dark'] .hero-subtitle {
  color: #c9d1d9;
}

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

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.cta-primary {
  background: #0969da !important;
  color: #ffffff !important;
  border: 2px solid #0969da !important;
}

.cta-primary:hover {
  background: #0550ae !important;
  color: #ffffff !important;
  border-color: #0550ae !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(9, 105, 218, 0.3);
}

.cta-secondary {
  background: transparent !important;
  color: #0969da !important;
  border: 2px solid #0969da !important;
}

.cta-secondary:hover {
  background: rgba(9, 105, 218, 0.1) !important;
  color: #0550ae !important;
  transform: translateY(-2px);
}

/* Quick Stats Section */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[theme='dark'] .stat-item {
  background: #161b22 !important;
  border-color: #30363d !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(9, 105, 218, 0.12);
  border-color: #0969da;
}

[theme='dark'] .stat-item:hover {
  box-shadow: 0 8px 24px rgba(9, 105, 218, 0.3);
  border-color: #58a6ff;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #24292f;
  margin-bottom: 0.25rem;
}

[theme='dark'] .stat-title {
  color: #ffffff;
}

.stat-desc {
  font-size: 0.875rem;
  color: #57606a;
}

[theme='dark'] .stat-desc {
  color: #c9d1d9;
}

/* Section Headings */
.section-heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  margin-top: 3rem;
  color: #24292f;
  font-weight: 700;
}

[theme='dark'] .section-heading {
  color: #ffffff;
}

.homepage-tools-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  margin-top: 3rem;
  color: #24292f;
  font-weight: 700;
}

[theme='dark'] .homepage-tools-section h2 {
  color: #ffffff;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.tool-card {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[theme='dark'] .tool-card {
  background: #161b22 !important;
  border-color: #30363d !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tool-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 32px rgba(9, 105, 218, 0.15) !important;
  border-color: #0969da !important;
}

[theme='dark'] .tool-card:hover {
  box-shadow: 0 12px 32px rgba(9, 105, 218, 0.4) !important;
  border-color: #58a6ff !important;
}

.tool-preview {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(9, 105, 218, 0.05) 0%, rgba(9, 105, 218, 0.02) 100%);
  border-bottom: 1px solid #e1e4e8;
}

[theme='dark'] .tool-preview {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(88, 166, 255, 0.05) 100%);
  border-bottom-color: #30363d !important;
}

.tool-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon-large {
  font-size: 5rem;
  opacity: 0.7;
}

.tool-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.tool-content h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: #24292f;
  font-weight: 700;
}

[theme='dark'] .tool-content h3 {
  color: #ffffff;
}

.tool-content p {
  color: #57606a;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

[theme='dark'] .tool-content p {
  color: #c9d1d9 !important;
}

.tool-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tool-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(9, 105, 218, 0.1);
  color: #0969da;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-link {
  display: inline-block;
  color: #0969da !important;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0.625rem 1.5rem;
  border: 2px solid #0969da;
  border-radius: 6px;
  transition: all 0.2s ease;
}

[theme='dark'] .tool-link {
  color: #58a6ff !important;
  border-color: #58a6ff;
}

.tool-link:hover {
  background: #0969da !important;
  color: #ffffff !important;
  border-color: #0969da !important;
  transform: scale(1.05);
  text-decoration: none !important;
}

[theme='dark'] .tool-link:hover {
  background: #58a6ff !important;
  color: #ffffff !important;
  border-color: #58a6ff !important;
}

/* Use Cases Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.use-case-card {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[theme='dark'] .use-case-card {
  background: #161b22 !important;
  border-color: #30363d !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(9, 105, 218, 0.12);
  border-color: #0969da;
}

[theme='dark'] .use-case-card:hover {
  box-shadow: 0 8px 24px rgba(9, 105, 218, 0.3);
  border-color: #58a6ff;
}

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

.use-case-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: #24292f;
  font-weight: 700;
}

[theme='dark'] .use-case-card h3 {
  color: #ffffff;
}

.use-case-card p {
  color: #57606a;
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

[theme='dark'] .use-case-card p {
  color: #c9d1d9;
}

/* Why OpsKit Section */
.why-opskit-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(9, 105, 218, 0.03) 0%, rgba(9, 105, 218, 0.01) 100%);
  padding: 4rem 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  border: 1px solid rgba(9, 105, 218, 0.1);
}

[theme='dark'] .why-opskit-section {
  background: linear-gradient(135deg, rgba(9, 105, 218, 0.15) 0%, rgba(9, 105, 218, 0.05) 100%);
  border-color: rgba(9, 105, 218, 0.2);
}

.why-opskit-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.why-opskit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 105, 218, 0.1);
  border-radius: 50%;
  font-size: 2rem;
}

[theme='dark'] .why-opskit-icon {
  background: rgba(9, 105, 218, 0.2);
}

.why-opskit-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #24292f;
}

[theme='dark'] .why-opskit-title {
  color: #ffffff;
}

.why-opskit-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #57606a;
  margin: 0;
}

[theme='dark'] .why-opskit-text {
  color: #c9d1d9;
}

/* More Coming Soon Section */
.coming-soon-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  padding: 4rem 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  border: 1px solid #93c5fd;
}

[theme='dark'] .coming-soon-section {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(129, 140, 248, 0.2) 100%);
  border-color: rgba(96, 165, 250, 0.3);
}

.coming-soon-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.coming-soon-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  font-size: 2rem;
}

[theme='dark'] .coming-soon-icon {
  background: rgba(99, 102, 241, 0.25);
}

.coming-soon-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #1e293b;
}

[theme='dark'] .coming-soon-title {
  color: #ffffff;
}

.coming-soon-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 1rem;
  font-weight: 500;
}

[theme='dark'] .coming-soon-text {
  color: #e2e8f0;
}

.coming-soon-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

[theme='dark'] .coming-soon-subtitle {
  color: #cbd5e1;
}

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

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

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

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

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

  .homepage-tools-section h2,
  .section-heading {
    font-size: 2rem;
  }

  .hero-section {
    padding: 3rem 1.5rem 2rem;
  }

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

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

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

  .cta-button {
    text-align: center;
  }
}
