/* Pages Stylesheet */

/* Hero Section Base */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
  overflow: hidden;
  position: relative;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-accent);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-visual svg {
  max-width: 100%;
  height: auto;
}

/* Trust Bar / Logos */
.trust-bar {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
  background-color: rgba(253, 251, 247, 0.4);
}

.trust-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 600;
}

.logo-grid-grayscale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.logo-item-grayscale {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-secondary);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.logo-item-grayscale:hover {
  opacity: 0.8;
}

/* Domino Effect Visual */
.domino-effect-container {
  max-width: 760px;
  margin: 60px auto 0;
  padding: 40px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-diffused);
}

.domino-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.domino-flow::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 36px;
  width: 2px;
  background: dashed var(--border-color);
  z-index: 1;
}

.domino-step {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.domino-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--border-color);
}

.domino-step:nth-child(even) .domino-icon {
  background: var(--secondary-accent);
}

.domino-card {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.domino-info h5 {
  font-size: 16px;
  color: var(--primary-accent);
  margin-bottom: 4px;
}

.domino-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.domino-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--primary-accent);
}

.domino-badge.highlight {
  background-color: var(--terracotta-light);
  border-color: rgba(200, 90, 58, 0.2);
  color: var(--secondary-accent);
}

/* Feature Showcase Split (Ingestion & Attrition pages) */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.showcase-grid.reverse {
  direction: rtl;
}

.showcase-grid.reverse .showcase-content {
  direction: ltr;
}

.showcase-grid.reverse .showcase-visual {
  direction: ltr;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.showcase-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.showcase-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Succession Interactive Diagram Mockup */
.succession-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-diffused);
  max-width: 960px;
  margin: 40px auto 0;
}

.succession-left-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--border-color);
  padding-right: 32px;
}

.vacancy-selector-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.succession-btn-item {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.succession-btn-item:hover, .succession-btn-item.active {
  border-color: var(--primary-accent);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(26, 60, 52, 0.05);
}

.succession-btn-item.active {
  box-shadow: 0 4px 16px rgba(26, 60, 52, 0.1);
  border-width: 2px;
}

.succession-btn-item h5 {
  font-size: 15px;
  margin-bottom: 4px;
}

.succession-btn-item p {
  font-size: 12px;
  color: var(--text-secondary);
}

.succession-content-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.succession-candidates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.candidate-row {
  display: grid;
  grid-template-columns: 1fr 120px 80px;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.candidate-row:hover {
  transform: translateX(4px);
  border-color: var(--primary-accent);
  background: var(--white);
}

.candidate-meta h6 {
  font-size: 15px;
  margin-bottom: 2px;
}

.candidate-meta p {
  font-size: 12px;
  color: var(--text-secondary);
}

.candidate-match-gauge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-accent);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.candidate-match-gauge.high {
  color: var(--primary-accent);
}

.candidate-match-gauge.medium {
  color: var(--secondary-accent);
}

/* Integrations Catalog */
.integrations-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary-accent);
  color: var(--white);
  border-color: var(--primary-accent);
}

/* Pricing Layout */
.pricing-section {
  text-align: center;
}

.pricing-toggle-wrap {
  display: inline-flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 9999px;
  margin-bottom: 60px;
}

.pricing-toggle-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-toggle-btn.active {
  background: var(--primary-accent);
  color: var(--white);
}

.price-card {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--primary-accent);
  border-width: 2px;
  box-shadow: var(--shadow-hover);
}

.price-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.price-tier-name {
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.price-value-container {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-accent);
}

.price-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-accent);
  letter-spacing: -0.02em;
}

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

.price-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.price-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.price-features-list li svg {
  color: var(--primary-accent);
  flex-shrink: 0;
}

/* ROI Slider Dashboard */
.roi-calculator-container {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-diffused);
  max-width: 960px;
  margin: 80px auto 0;
}

.slider-group {
  margin-bottom: 40px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.slider-val-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-accent);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-secondary);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-accent);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.roi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.roi-metric-item {
  text-align: center;
}

.roi-metric-num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--secondary-accent);
  line-height: 1.2;
  margin-bottom: 8px;
}

/* Founder Showcase */
.founder-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 60px;
}

.founder-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-diffused);
}

.founder-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-diffused);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
  overflow: hidden;
}

.founder-photo-placeholder svg {
  width: 56px;
  height: 56px;
}

.founder-meta-info {
  margin-bottom: 20px;
}

.founder-meta-info h4 {
  font-size: 24px;
  margin-bottom: 4px;
}

.founder-meta-info p {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.founder-socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.founder-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.founder-socials a:hover {
  background-color: var(--primary-accent);
  color: var(--white);
  border-color: var(--primary-accent);
}

/* Docs / API Hub Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding-top: calc(var(--header-height) + 40px);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  height: calc(100vh - var(--header-height) - 80px);
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  padding-right: 24px;
}

.docs-sidebar-section {
  margin-bottom: 32px;
}

.docs-sidebar-title {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  font-weight: 700;
}

.docs-sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-sidebar-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.docs-sidebar-links a:hover, .docs-sidebar-links .active a {
  color: var(--primary-accent);
  font-weight: 600;
}

.docs-content {
  max-width: 720px;
}

.docs-block {
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 60px;
}

.docs-block:last-child {
  border-bottom: none;
}

.docs-block h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.docs-block p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.code-snippet-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  overflow-x: auto;
  margin-bottom: 24px;
}

/* Blog Layout */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-diffused);
  align-items: center;
}

.blog-thumb-placeholder {
  height: 320px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.blog-meta-row {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Map placeholder in Chirala Contact page */
.map-canvas-mockup {
  height: 400px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-diffused);
}

.map-accent-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-pin-circle {
  width: 24px;
  height: 24px;
  background-color: var(--secondary-accent);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.map-pin-label {
  background-color: var(--primary-accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 8px;
  white-space: nowrap;
}

/* Responsiveness adjustments for custom pages */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase-grid.reverse {
    direction: ltr;
  }
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    display: none; /* Can toggle in small devices if requested */
  }
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
  }
  .succession-grid {
    grid-template-columns: 1fr;
  }
  .succession-left-list {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 24px;
  }
  .candidate-row {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .candidate-match-gauge {
    justify-content: center;
  }
  .founder-profile-grid {
    grid-template-columns: 1fr;
  }
  .roi-calculator-container {
    padding: 24px;
  }
  .roi-metrics-grid {
    grid-template-columns: 1fr;
  }
}
