/* Marketing Pages Styles */

/* Base Marketing Styles */
.marketing {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1a202c;
}

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

.container.narrow {
  max-width: 800px;
}

/* Marketing Header */
.marketing-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #2d3748;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: #4299e1;
  color: #ffffff;
}

.btn-primary:hover {
  background: #3182ce;
}

.btn-outline {
  background: transparent;
  color: #4299e1;
  border-color: #4299e1;
}

.btn-outline:hover {
  background: #4299e1;
  color: #ffffff;
}

.btn-large {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: #f7fafc;
}

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

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

.feature-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.feature-card p {
  color: #4a5568;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  text-align: center;
  background: #2d3748;
  color: #ffffff;
}

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

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

/* Page Header */
.page-header {
  padding: 3rem 0;
  text-align: center;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.25rem;
  color: #718096;
}

/* Blog Grid */
.blog-index {
  padding: 4rem 0;
}

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

.blog-card {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.blog-card time {
  color: #718096;
  font-size: 0.875rem;
}

.blog-card h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.blog-card h2 a {
  color: #2d3748;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: #4299e1;
}

.blog-card p {
  color: #4a5568;
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.author {
  color: #718096;
  font-size: 0.875rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #edf2f7;
  color: #4a5568;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.read-more {
  color: #4299e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Blog Post */
.blog-post {
  padding: 4rem 0;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-meta {
  color: #718096;
  font-size: 0.875rem;
}

.separator {
  margin: 0 0.5rem;
}

.post-content {
  margin-bottom: 3rem;
}

.post-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
}

.back-link {
  color: #4299e1;
  text-decoration: none;
  font-weight: 600;
}

/* Markdown Content */
.markdown-content {
  line-height: 1.8;
  color: #2d3748;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
}

.markdown-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.markdown-content h2 {
  font-size: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.markdown-content h3 {
  font-size: 1.5rem;
}

.markdown-content p {
  margin-bottom: 1.5rem;
}

.markdown-content a {
  color: #4299e1;
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

.markdown-content code {
  background: #edf2f7;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Monaco', 'Menlo', monospace;
}

.markdown-content pre {
  background: #2d3748;
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.markdown-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.markdown-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style-type: disc;
}

.markdown-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style-type: decimal;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.header-link {
  opacity: 0;
  margin-left: 0.5rem;
  color: #cbd5e0;
  text-decoration: none;
}

.markdown-content h1:hover .header-link,
.markdown-content h2:hover .header-link,
.markdown-content h3:hover .header-link {
  opacity: 1;
}

/* Docs Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.docs-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.docs-nav {
  padding: 1rem 0;
}

.nav-category {
  margin-bottom: 2rem;
}

.nav-category h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #718096;
  margin-bottom: 0.75rem;
}

.nav-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-category li {
  margin-bottom: 0.5rem;
}

.nav-category li a {
  color: #4a5568;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.nav-category li a:hover {
  background: #edf2f7;
  color: #2d3748;
}

.nav-category li.active a {
  background: #4299e1;
  color: #ffffff;
  font-weight: 600;
}

.docs-content {
  min-width: 0;
}

.table-of-contents {
  float: right;
  width: 200px;
  margin-left: 2rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 0.5rem;
}

.table-of-contents h2 {
  font-size: 0.875rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.table-of-contents a {
  color: #4a5568;
  text-decoration: none;
}

.table-of-contents a:hover {
  color: #4299e1;
}

.toc-level-3 {
  margin-left: 1rem;
}

.toc-level-4 {
  margin-left: 2rem;
}

/* Pricing */
.pricing-section {
  padding: 4rem 0;
}

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

.pricing-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 2rem;
  position: relative;
}

.pricing-card.featured {
  border-color: #4299e1;
  box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
}

.badge {
  position: absolute;
  top: -12px;
  right: 1rem;
  background: #4299e1;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  margin-bottom: 2rem;
}

.amount {
  font-size: 3rem;
  font-weight: 800;
}

.period {
  color: #718096;
}

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

.features-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.features-list li:before {
  content: "✓ ";
  color: #48bb78;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* About Page */
.about-content {
  padding: 4rem 0;
}

.about-content article {
  line-height: 1.8;
}

.about-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: #4a5568;
}

.about-content a {
  color: #4299e1;
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}

/* Features Detail */
.features-detail {
  padding: 4rem 0;
}

.feature-detail-grid {
  display: grid;
  gap: 3rem;
}

.feature-detail h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-detail p {
  color: #4a5568;
  line-height: 1.8;
}

/* Marketing Footer */
.marketing-footer {
  background: #2d3748;
  color: #e2e8f0;
  padding: 3rem 0 1.5rem;
}

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

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

.footer-column h3,
.footer-column h4 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4a5568;
  color: #cbd5e0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #718096;
}

/* Sign In Page */
.signin-page {
  padding: 4rem 0;
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
}

.signin-container {
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.signin-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.signin-header p {
  color: #718096;
}

.signin-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.signin-option {
  width: 100%;
}

.signin-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
  background: #ffffff;
}

.signin-button:hover {
  border-color: #cbd5e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.signin-button.slack {
  border-color: #4a154b;
}

.signin-button.slack:hover {
  background: #4a154b;
  color: #ffffff;
}

.signin-button.google {
  border-color: #4285f4;
}

.signin-button.google:hover {
  background: #4285f4;
  color: #ffffff;
}

.signin-button.zendesk {
  border-color: #03363d;
}

.signin-button.zendesk:hover {
  background: #03363d;
  color: #ffffff;
}

.signin-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin-text {
  flex: 1;
  text-align: left;
}

.signin-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #2d3748;
}

.signin-text span {
  display: block;
  font-size: 0.875rem;
  color: #718096;
}

.signin-button:hover .signin-text strong,
.signin-button:hover .signin-text span {
  color: inherit;
}

.signin-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.signin-footer p {
  margin-bottom: 0.5rem;
  color: #718096;
  font-size: 0.875rem;
}

.signin-footer a {
  color: #4299e1;
  text-decoration: none;
  font-weight: 600;
}

.signin-footer a:hover {
  text-decoration: underline;
}

.privacy-note {
  font-size: 0.75rem !important;
  color: #a0aec0 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }

  .table-of-contents {
    float: none;
    width: auto;
    margin-left: 0;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

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

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

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

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

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

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