/* SciTeX Web - Landing Page Styles */

/* Hero Section */
.hero-landing {
  background-color: var(--silver-light);
  background-image: linear-gradient(135deg, var(--silver-light) 0%, var(--light-color) 100%);
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-landing .hero-content {
  text-align: left;
}

.hero-landing .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-landing .hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--text-color);
  max-width: 540px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  color: white;
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--primary-color);
  background: rgba(255,255,255,0.9);
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline-light:hover {
  background: white;
  border-color: white;
  color: var(--primary-color);
  transform: translateY(-1px);
}

.hero-landing .hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-buttons .btn-primary {
  font-size: 1.125rem;
  padding: 0.875rem 2rem;
  box-shadow: 0 4px 12px rgba(26, 35, 50, 0.2);
  font-weight: 600;
  border: none;
  background: var(--primary-color);
}

.hero-buttons .btn-primary:hover {
  background: var(--scitex-color-01-dark);
  box-shadow: 0 6px 20px rgba(26, 35, 50, 0.3);
  transform: translateY(-1px);
}

.hero-landing .hero-image {
  text-align: center;
}

.hero-landing .hero-image img {
  max-width: 100%;
  height: auto;
  /* Remove the floating animation */
  animation: none;
}

.hero-brands {
  background-color: var(--white);
  padding: var(--spacing-lg) 0;
  box-shadow: 0 -10px 30px rgba(var(--black-rgb), 0.05);
}

.hero-brands p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.brand-logos span {
  color: var(--dark-gray);
  font-weight: 600;
}

/* Animation removed to keep manuscript static */

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section .container {
  max-width: 1400px;
}

.section-alt {
  background-color: var(--gray-700);
  color: var(--white);
}

.section-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

.section-heading h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-heading p {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
}

.click-hint {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-500);
  padding: 0.25rem 0.75rem;
  background-color: var(--gray-100);
  border-radius: 20px;
  cursor: help;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Product Card Link Wrapper */
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1;
  padding-bottom: var(--spacing-sm);
}

.product-card-link:hover {
  text-decoration: none;
}

.product-card {
  background-color: var(--scitex-color-07);
  border: 1px solid var(--scitex-color-06);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  text-align: left;
  box-shadow: var(--box-shadow-sm);
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
  outline: none;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-md);
  background-color: var(--scitex-color-06);
  border-color: var(--scitex-color-05);
}

/* Prevent card hover effects when hovering GitHub button */
.product-card:has(.btn-github:hover) {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-md);
  background-color: var(--scitex-color-07);
  border-color: var(--scitex-color-06);
}

.product-card:active, .product-card.card-active {
  transform: translateY(0);
  box-shadow: var(--box-shadow-sm);
  background-color: var(--scitex-color-05);
  transition: all 0.1s ease;
}

.product-card:hover .card-link-indicator {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(var(--black-rgb), 0.1);
}

.product-card:active .card-link-indicator, .product-card.card-active .card-link-indicator {
  background-color: var(--scitex-color-01-dark);
  transform: scale(0.95);
}


.product-icon {
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: center;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  text-align: center;
}

.product-card p {
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

/* Module Features List */
.module-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md) 0;
  text-align: left;
}

.module-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  line-height: 1.5;
  font-size: 0.95rem;
}

.module-features li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--scitex-color-04);
  font-weight: bold;
  font-size: 1.2rem;
}

.module-features li:last-child {
  margin-bottom: 0;
}

/* Pricing link within module card */
.module-pricing-link {
  text-align: center;
  margin-top: 0.5rem;
}

/* Integrated Ecosystem Section */
.integrated-ecosystem-section {
  padding: 2rem 0;
  background-color: var(--bg-color);
}

/* Horizontal Architecture Layout */
.ecosystem-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Deployment Options - Vertical */
.ecosystem-deployment {
  margin-bottom: 2rem;
  position: relative;
}

/* Deployment Options - Horizontal */
.ecosystem-deployment-horizontal {
  flex: 0 0 auto;
}

.ecosystem-deployment-horizontal .deployment-options {
  flex-direction: column;
  gap: 1rem;
}

.ecosystem-deployment-horizontal .deployment-or {
  margin: 0.5rem 0;
}

/* Horizontal Connectors */
.horizontal-connector {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: var(--scitex-color-05);
  padding: 0 1rem;
}

/* Engine in Horizontal Layout */
.ecosystem-orchestration-horizontal {
  flex: 0 0 auto;
}

.ecosystem-orchestration-horizontal .engine-card {
  max-width: 220px;
  min-height: 200px;
}

/* Functional Modules in Horizontal Layout */
.ecosystem-modules-horizontal {
  flex: 0 0 auto;
}

.products-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 480px;
}

.products-grid-2x2 .product-card {
  padding: 0.75rem;
  width: 100%;
  max-width: none;
  min-height: 200px;
}

.products-grid-2x2 .module-features {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.products-grid-2x2 .module-features li {
  margin-bottom: 0.2rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide GitHub buttons in grid to save space */
.products-grid-2x2 .product-card-actions {
  display: none;
}

.deployment-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--scitex-color-03);
  margin-bottom: 1.5rem;
}

.deployment-options {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
}

.deployment-option {
  background: var(--white);
  border: 2px solid var(--scitex-color-06);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  min-width: 200px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Deployment Cards */
.cloud-card-deployment,
.local-card-deployment {
  max-width: 180px;
  min-height: 200px;
}

.ecosystem-deployment-horizontal .cloud-card-deployment,
.ecosystem-deployment-horizontal .local-card-deployment {
  max-width: 180px;
  margin-bottom: 0.5rem;
}

/* Compact cards in horizontal layout */
.ecosystem-horizontal .product-card {
  padding: 0.75rem;
  font-size: 0.9rem;
}

.ecosystem-horizontal .product-icon {
  margin-bottom: 0.5rem;
}

.ecosystem-horizontal .product-icon img,
.ecosystem-horizontal .product-icon i {
  width: 40px;
  height: 40px;
  font-size: 40px;
}

.ecosystem-horizontal h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Local Modules Preview */
.local-modules-preview {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--scitex-color-06);
  text-align: center;
}

.local-modules-preview small {
  color: var(--scitex-color-03);
  font-size: 0.85rem;
}

/* Coming Soon Badge */
.coming-soon {
  position: relative;
}

.coming-soon-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.coming-soon-text {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  background: var(--scitex-color-02);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.deployment-option:hover {
  border-color: var(--scitex-color-04);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-sm);
}

.deployment-option i {
  font-size: 2.5rem;
  color: var(--scitex-color-02);
  display: block;
  margin-bottom: 0.75rem;
}

.deployment-option h4 {
  margin-bottom: 0.5rem;
  color: var(--scitex-color-01);
}

.deployment-option p {
  margin: 0;
  color: var(--scitex-color-03);
  font-size: 0.9rem;
}

.deployment-or {
  font-weight: 600;
  color: var(--scitex-color-03);
  padding: 0 1rem;
}

/* Remove old vertical deployment connector styles */

.engine-highlight {
  max-width: 350px;
}

.engine-card {
  border: 3px solid var(--scitex-color-01);
  background: var(--scitex-color-07);
  position: relative;
}

.orchestration-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--scitex-color-01);
  color: var(--white);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--border-radius);
}

/* Remove old vertical connector styles */

.modules-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--scitex-color-03);
  margin-bottom: 2rem;
}

/* Remove old grid styles for ecosystem modules */

/* Research Workflow */
.research-workflow {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-sm);
}

.research-workflow h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--scitex-color-01);
}

.workflow-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.workflow-step {
  text-align: center;
  flex: 1;
  position: relative;
}

.workflow-step i {
  font-size: 2.5rem;
  color: var(--scitex-color-02);
  display: block;
  margin-bottom: 0.75rem;
}

.workflow-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--scitex-color-01);
}

.workflow-step p {
  font-size: 0.875rem;
  color: var(--scitex-color-03);
  margin: 0;
}

/* Workflow Arrows */
.workflow-arrow {
  position: absolute;
  top: 25%;
  width: 100px;
  height: 2px;
  background: var(--scitex-color-05);
}

.workflow-arrow::after {
  content: "▶";
  position: absolute;
  right: -10px;
  top: -9px;
  color: var(--scitex-color-05);
  font-size: 1rem;
}

.workflow-arrow.arrow-1 {
  left: 20%;
}

.workflow-arrow.arrow-2 {
  left: 45%;
}

.workflow-arrow.arrow-3 {
  left: 70%;
}

/* Integration Note */
.integration-note {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--scitex-color-07);
  border-radius: var(--border-radius);
  text-align: center;
}

.integration-note h4 {
  color: var(--scitex-color-01);
  margin-bottom: 1rem;
}

.integration-note p {
  color: var(--scitex-color-03);
  margin: 0;
}

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

  .workflow-steps {
    flex-direction: column;
    gap: 2rem;
  }

  .workflow-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .deployment-options {
    flex-direction: column;
  }

  .connector-branch {
    display: none;
  }

  .connector-branch.center-left {
    display: block;
    left: 50%;
  }
}

/* Ecosystem Architecture Section */
.ecosystem-architecture {
  padding: 4rem 0;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* New Horizontal Layout */
.ecosystem-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Deployment section as flex item */
.ecosystem-deployment-horizontal {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Engine section as flex item */
.ecosystem-orchestration {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

/* Modules section as flex item */
.ecosystem-modules {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Horizontal Connector Arrow */
.horizontal-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
}

.horizontal-connector i {
  font-size: 1.5rem;
  color: var(--scitex-color-05);
}

/* 2x2 Grid for Modules */
.products-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
}

/* Adjust product cards for 2x2 layout */
.products-grid-2x2 .product-card {
  width: 280px;
  height: auto;
}

/* Update deployment label styling */
.deployment-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--scitex-color-03);
  margin-bottom: 1rem;
  text-align: center;
}

/* Ensure engine card maintains proper styling */
.ecosystem-horizontal .engine-card {
  width: 350px;
}

/* Responsive adjustments for horizontal layout */
@media (max-width: 1200px) {
  .ecosystem-horizontal {
    padding: 1rem;
    gap: 1rem;
  }

  .products-grid-2x2 .product-card {
    width: 240px;
  }

  .horizontal-connector {
    width: 40px;
  }

  .horizontal-connector i {
    font-size: 1.5rem;
  }
}

@media (max-width: 992px) {
  .ecosystem-horizontal {
    flex-direction: column;
    overflow-x: visible;
  }

  .horizontal-connector {
    transform: rotate(90deg);
    height: 40px;
    width: auto;
  }

  .products-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

.architecture-diagram {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
}

.arch-layer {
  margin-bottom: 2rem;
  text-align: center;
}

.arch-layer h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--scitex-color-03);
  margin-bottom: 1rem;
}

/* Deployment Layer */
.arch-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.arch-option {
  background: var(--scitex-color-07);
  border: 2px solid var(--scitex-color-06);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 180px;
}

.arch-option i {
  font-size: 2rem;
  color: var(--scitex-color-02);
  display: block;
  margin-bottom: 0.5rem;
}

.arch-option span {
  display: block;
  font-weight: 600;
  color: var(--scitex-color-01);
  margin-bottom: 0.25rem;
}

.arch-option small {
  color: var(--scitex-color-03);
  font-size: 0.875rem;
}

.arch-separator {
  font-weight: 600;
  color: var(--scitex-color-03);
}

/* Connectors */
.arch-connector {
  width: 2px;
  height: 40px;
  background: var(--scitex-color-05);
  margin: 0 auto;
  position: relative;
}

.arch-connector::after {
  content: "▼";
  position: absolute;
  bottom: -12px;
  left: -7px;
  color: var(--scitex-color-05);
  font-size: 1rem;
}

.arch-connector-multiple {
  position: relative;
  height: 40px;
  margin-bottom: 1rem;
}

.connector-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: var(--scitex-color-05);
  top: 0;
}

.connector-line.left {
  left: 20%;
}

.connector-line.center-left {
  left: 40%;
}

.connector-line.center-right {
  left: 60%;
}

.connector-line.right {
  left: 80%;
}

.connector-line::after {
  content: "▼";
  position: absolute;
  bottom: -12px;
  left: -7px;
  color: var(--scitex-color-05);
  font-size: 1rem;
}

/* Engine Module */
.engine-module {
  background: var(--scitex-color-01);
  color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 300px;
  margin: 0 auto;
}

.engine-module i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.engine-module h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.engine-module p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Functional Modules Grid */
.arch-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.arch-module {
  background: var(--scitex-color-07);
  border: 1px solid var(--scitex-color-06);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.arch-module:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-sm);
  border-color: var(--scitex-color-04);
}

.arch-module i {
  font-size: 2rem;
  color: var(--scitex-color-02);
  margin-bottom: 0.75rem;
  display: block;
}

.arch-module h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--scitex-color-01);
}

.arch-module p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--scitex-color-03);
}

/* Workflow Description */
.workflow-arrows {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--scitex-color-06);
}

.workflow-description h4 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--scitex-color-02);
}

.workflow-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.workflow-step {
  background: var(--scitex-color-04);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.9rem;
}

.workflow-steps i {
  color: var(--scitex-color-03);
  font-size: 1rem;
}

/* Architecture Details */
.architecture-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.detail-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--scitex-color-07);
  border-radius: var(--border-radius);
}

.detail-card h4 {
  color: var(--scitex-color-01);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.detail-card p {
  color: var(--scitex-color-03);
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .arch-options {
    flex-direction: column;
  }

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

  .architecture-details {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    flex-direction: column;
  }

  .workflow-steps i {
    transform: rotate(90deg);
  }
}

/* Product Card Actions */
.product-card-actions {
  margin-top: auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--scitex-color-06);
  text-align: center;
}

.btn-github {
  background-color: var(--scitex-900);
  color: var(--white);
  border: 1px solid var(--scitex-900);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-github:hover {
  background-color: var(--scitex-800);
  color: var(--white);
  border-color: var(--scitex-800);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-github i {
  font-size: 1rem;
}

/* Special styling for pricing link in Cloud card */
.pricing-link {
  color: var(--scitex-color-04);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.pricing-link:hover {
  color: var(--scitex-color-03);
  border-bottom-color: var(--scitex-color-03);
}

.card-link-indicator {
  margin-top: auto;
  padding: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  position: relative;
  transform-origin: center;
  border: 1px solid transparent;
}

/* Slight button appearance in normal state */
.product-card .card-link-indicator::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 60%;
  height: 2px;
  background-color: rgba(var(--primary-color-rgb, 0, 123, 255), 0.2);
  transform: translateX(-50%);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Add a subtle button-like appearance to the card */
.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--scitex-color-05);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  transition: all 0.2s ease;
}

/* Add inset shadow for pressed appearance */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius);
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.2s ease;
  pointer-events: none;
}

.product-card.card-active::before {
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Add focus styles for keyboard navigation */
.product-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 0, 123, 255), 0.25), var(--box-shadow-sm);
  border-color: var(--primary-color);
}

.product-card:focus:not(:focus-visible) {
  box-shadow: var(--box-shadow-sm);
  border-color: var(--gray-300);
}

.product-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 0, 123, 255), 0.25), var(--box-shadow-sm);
  border-color: var(--primary-color);
}

.product-card:hover::after {
  background-color: var(--scitex-color-04);
  height: 4px;
}

.product-card:active::after, .product-card.card-active::after {
  background-color: var(--scitex-color-03);
  height: 2px;
}

/* Manuscript preview styling */
.manuscript-preview {
  max-width: 100%;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.manuscript-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.manuscript-display {
  width: 350px;
  max-width: 100%;
  height: 350px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.manuscript-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transform: none;
  animation: none;
  transition: none;
}

.manuscript-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.manuscript-link:hover .manuscript-overlay {
  opacity: 1;
}

.view-pdf-text {
  color: var(--white);
  background: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-landing .container {
    grid-template-columns: 1fr;
  }

  .hero-landing .hero-content {
    text-align: center;
    order: 1;
  }

  .hero-landing .hero-buttons {
    justify-content: center;
  }

  .hero-landing .hero-image {
    order: 0;
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .hero-landing .hero-title {
    font-size: 2.25rem;
  }

  .section-heading h2 {
    font-size: 1.875rem;
  }

  .product-icon img {
    width: 56px;
    height: 56px;
  }

  .emoji-icon {
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
  }

  .manuscript-preview pre {
    font-size: 0.6rem !important;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-landing .hero-buttons {
    flex-direction: column;
  }

  .hero-landing .hero-buttons .btn {
    width: 100%;
  }

  .brand-logos {
    justify-content: center;
  }
}

/* Modularity Section */
.modularity-section {
  background-color: var(--scitex-color-07);
  padding: var(--spacing-xxl) 0;
  margin-top: var(--spacing-xxl);
}

.modularity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xxl);
}

.modularity-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--box-shadow-sm);
  transition: all 0.3s ease;
}

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

.modularity-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  background: var(--scitex-color-06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--scitex-color-04);
}

.modularity-card h3 {
  color: var(--scitex-color-01);
  margin-bottom: var(--spacing-md);
}

.modularity-card p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Deployment Options */
.modularity-examples {
  margin-top: var(--spacing-xxl);
}

.deployment-option {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  height: 100%;
  box-shadow: var(--box-shadow-sm);
}

.deployment-option h4 {
  color: var(--scitex-color-01);
  margin-bottom: var(--spacing-md);
}

.deployment-option pre {
  background: var(--scitex-color-07);
  border: 1px solid var(--scitex-color-06);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  font-size: 0.875rem;
  overflow-x: auto;
}

.deployment-option code {
  color: var(--scitex-color-01);
  background: transparent;
}

/* Research Workflow Section */
.research-workflow {
  background-color: var(--white);
  padding: var(--spacing-xxl) 0;
}

.workflow-visualization {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-xxl) 0;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.workflow-step-card {
  background: var(--silver-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  text-align: center;
  position: relative;
  flex: 0 1 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--black-rgb), 0.1);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.workflow-step-card h3 {
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.workflow-step-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.workflow-arrow {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.5;
}

.workflow-integration {
  text-align: center;
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-xl);
  background: var(--silver-light);
  border-radius: var(--border-radius);
}

.integration-highlight {
  max-width: 600px;
  margin: 0 auto;
}

.integration-highlight i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.integration-highlight h4 {
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

.integration-highlight p {
  color: var(--text-light);
  margin: 0;
}

/* Fix: Remove focus rectangle on product cards */
.product-card:focus-within,
.product-card-link:focus,
.product-card-link:active,
.product-card a:focus,
.product-card a:active,
.product-card button:focus,
.product-card button:active {
  outline: none !important;
  text-decoration: none !important;
}

/* Prevent active state visual issues */
.product-card:active {
  transform: translateY(-2px);
}

/* Simplified Ecosystem Section */
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* Hierarchical Ecosystem Layout */
.ecosystem-hierarchy {
  max-width: 900px;
  margin: 0 auto 3rem;
  position: relative;
}

.engine-top-level {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
}

/* Engine card uses same styling as other modules */
.engine-top-level .module-card-simple {
    margin-top: 30px;
    max-width: 280px;
}

/* Hierarchical connections from Engine to modules */
.tournament-connections {
  position: relative;
  width: 100%;
  height: 60px;
  pointer-events: none;
  margin-top: 30px;
  margin-bottom: 30px;
  z-index: 1;
}

/* Main vertical line from Engine */
.connection-line.center {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 30px;
  background: var(--scitex-color-04);
  transform: translateX(-50%);
}

/* Horizontal connector */
.horizontal-connector-line {
  position: absolute;
  height: 3px;
  background: var(--scitex-color-04);
  top: 30px;
  left: 12.5%;
  right: 12.5%;
}

/* Branch lines to modules */
.connection-line {
  position: absolute;
  width: 3px;
  background: var(--scitex-color-04);
  height: 30px;
  top: 30px;
}

/* Add arrow heads pointing down */
.connection-line::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--scitex-color-04);
}

.connection-line.left-branch {
  left: 12.5%;
}

.connection-line.center-left-branch {
  left: 37.5%;
}

.connection-line.center-right-branch {
  right: 37.5%;
}

.connection-line.right-branch {
  right: 12.5%;
}

/* Lower level modules grid */
.ecosystem-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  margin-top: -20px;
}

.module-card-simple {
  background: var(--white);
  border: 1px solid var(--scitex-color-06);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.module-card-simple:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--scitex-color-04);
}

.module-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1;
}

.module-card-simple .module-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.module-card-simple h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.module-tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

/* GitHub button on module cards */
.module-github-btn {
  background-color: var(--scitex-800);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.module-github-btn:hover {
  background-color: var(--scitex-900);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.module-github-btn i {
  font-size: 1.1em;
}

/* Simplified Deployment Options */
.ecosystem-deployment-simple {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--scitex-color-06);
  max-width: 600px;
  margin: 0 auto;
}

.deployment-intro {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.deployment-options-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.deployment-option-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--scitex-color-07);
  border: 1px solid var(--scitex-color-05);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.deployment-option-link:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.deployment-option-link i {
  font-size: 1.2rem;
}

.deployment-separator {
  color: var(--text-light);
  font-style: italic;
}

/* Timeline Styles */
.timeline-item {
  border-left: 2px solid var(--scitex-color-05);
  padding-left: 2rem;
  margin-bottom: 2rem;
  position: relative;
  transition: border-color 0.3s ease;
}

.timeline-item:hover {
  border-left-color: var(--scitex-color-02);
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--scitex-color-04);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--scitex-color-05);
}

.timeline-date {
  font-weight: 600;
  color: var(--scitex-color-02);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Improved Module Cards */
.module-card-simple {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.08);
}

.module-card-simple:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.12);
  border-color: var(--scitex-color-04);
}

/* Section Background Variations */
.integrated-ecosystem-section {
  background: linear-gradient(to bottom, var(--white), var(--scitex-color-07));
}

.research-workflow {
  background: var(--white);
}

/* Better Focus States */
*:focus-visible {
  outline: 2px solid var(--scitex-color-04);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--scitex-color-04);
  outline-offset: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-landing .hero-content {
    text-align: center;
  }

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

  .hero-landing .hero-buttons {
    justify-content: center;
  }

  .ecosystem-modules-grid {
    grid-template-columns: repeat(2, 2fr);
    gap: 1rem;
  }

  .module-card-simple {
    padding: 1rem;
  }

  .deployment-options-simple {
    flex-direction: column;
    gap: 1rem;
  }

  .deployment-separator {
    display: none;
  }

  .workflow-visualization {
    flex-direction: column;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }

  /* Hide connection lines on mobile */
  .tournament-connections {
    display: none;
  }

  .engine-top-level {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .ecosystem-modules-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA Section Improvements */
.vision-section {
  background: var(--scitex-color-07);
  padding: 4rem 0;
}

.vision-section h2 {
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.vision-section .lead {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.vision-section .btn-primary {
  font-size: 1.125rem;
  padding: 0.875rem 2rem;
  box-shadow: 0 4px 12px rgba(26, 35, 50, 0.2);
  font-weight: 600;
  margin: 0 0.5rem;
}

.vision-section .btn-outline-dark {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border-width: 2px;
}

.vision-section .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(26, 35, 50, 0.3);
  transform: translateY(-1px);
}
