/* ═══════════════════════════════════════════════════
   HOMEPAGE SPECIFIC SECTION STYLES
   ═══════════════════════════════════════════════════ */

/* Section Spacing */
.section {
  padding: var(--section-spacing) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: var(--font-size-lead);
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════
   1. HERO SECTION & PRODUCT SHOWCASE
   ═══════════════════════════════════════════════════ */
.hero-section {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto 48px auto;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(233, 64, 87, 0.08);
  color: var(--color-accent-mid);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--color-ink);
}

.hero-headline span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: var(--font-size-lead);
  color: var(--color-muted);
  max-width: 680px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-badge-line {
  font-size: var(--font-size-caption);
  color: var(--color-subtle);
}

.hero-support-line {
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* Hero Showcase Frame */
.hero-showcase {
  max-width: 1000px;
  margin: 40px auto 0 auto;
}

.showcase-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
}

.chip-btn:hover,
.chip-btn.active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #ffffff;
}

.showcase-frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: 16px;
  position: relative;
  overflow: hidden;
  height: 480px;
  display: flex;
  flex-direction: column;
}

.frame-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.frame-viewport {
  flex: 1;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-notice {
  text-align: center;
  padding: 40px;
  color: var(--color-subtle);
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════
   2. PRODUCT FACTS BANNER
   ═══════════════════════════════════════════════════ */
.facts-banner {
  background: var(--color-surface);
  border-y: 1px solid var(--color-border);
  padding: 24px 0;
}

.facts-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-muted);
}

.fact-item svg {
  color: var(--color-accent-mid);
}

/* ═══════════════════════════════════════════════════
   3. WHY CIRCO EXISTS (STORY & WORKFLOW COMPARISON)
   ═══════════════════════════════════════════════════ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-subtle);
}

.comp-card.old-way {
  border-color: rgba(225, 29, 72, 0.15);
}

.comp-card.circo-way {
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.05);
}

.comp-card h3 {
  margin-bottom: 20px;
}

.workflow-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.old-way .step-badge {
  background: #ffe4e6;
  color: #e11d48;
}

.circo-way .step-badge {
  background: #dcfce7;
  color: #16a34a;
}

/* ═══════════════════════════════════════════════════
   4. FEATURE HIGHLIGHTS (3 CATEGORIES)
   ═══════════════════════════════════════════════════ */
.category-block {
  margin-bottom: 60px;
}

.category-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

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

.feat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feat-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(233, 64, 87, 0.08);
  color: var(--color-accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feat-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.feat-card p {
  font-size: 14.5px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   5. SECURITY & PRIVACY DEEP DIVE (DARK SECTION)
   ═══════════════════════════════════════════════════ */
.security-section {
  background: #090d16;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  margin: var(--section-spacing) 0;
}

.security-header {
  margin-bottom: 48px;
}

.security-header h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.security-header p {
  color: #94a3b8;
  font-size: var(--font-size-lead);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.sec-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.sec-item p {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   6. NEUTRAL SOFTWARE MATRIX ("WHY CIRCO?")
   ═══════════════════════════════════════════════════ */
.matrix-wrapper {
  overflow-x: auto;
  margin-bottom: 16px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 14.5px;
}

.matrix-table th,
.matrix-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.matrix-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--color-ink);
}

.matrix-table td.highlight {
  font-weight: 600;
  color: var(--color-accent-mid);
  background: rgba(233, 64, 87, 0.03);
}

.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
}

.badge-builtin { background: #dcfce7; color: #15803d; }
.badge-partial { background: #fef9c3; color: #a16207; }
.badge-none { background: #f1f5f9; color: #64748b; }

.matrix-disclaimer {
  font-size: 13px;
  color: var(--color-subtle);
  font-style: italic;
  text-align: right;
}

/* Tooltip UI */
.tooltip-trigger {
  cursor: help;
  border-bottom: 1px dashed var(--color-subtle);
}

/* ═══════════════════════════════════════════════════
   7. WORKFLOW TRANSFORMATIONS
   ═══════════════════════════════════════════════════ */
.trans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.trans-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.trans-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.trans-card p {
  font-size: 14.5px;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════
   8. PRICING & TEAM BANNER
   ═══════════════════════════════════════════════════ */
.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 15px;
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 34px;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .slider-switch {
  background-color: var(--color-accent-mid);
}

input:checked + .slider-switch:before {
  transform: translateX(24px);
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 840px;
  margin: 0 auto 48px auto;
}

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border: 2px solid var(--color-accent-mid);
  box-shadow: var(--shadow-elevated);
}

.price-header {
  margin-bottom: 24px;
}

.price-amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-ink);
}

.price-period {
  font-size: 15px;
  color: var(--color-muted);
  font-weight: 500;
}

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

.price-features li {
  font-size: 14.5px;
  color: var(--color-muted);
}

/* Team Licensing Banner */
.team-banner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}

.team-banner h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-banner p {
  font-size: 14.5px;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════
   9. FAQ ACCORDION
   ═══════════════════════════════════════════════════ */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 44px;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Responsiveness */
@media (max-width: 868px) {
  .hero-headline { font-size: 42px; }
  .comparison-grid,
  .security-grid,
  .trans-grid,
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  .team-banner {
    flex-direction: column;
    text-align: center;
  }
}
