/* ==========================================================================
   EXIFIO DESIGN SYSTEM: CORE UI COMPONENTS
   Harmonized Frosted Obsidian Glass with Clean Golden Borders
   ========================================================================== */

/* Bento Grid Capabilities */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 26, 40, 0.30) 40%, rgba(10, 14, 22, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 20px rgba(245, 158, 11, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  pointer-events: none;
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent, rgba(245, 158, 11, 0.2));
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.8), 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 25px rgba(245, 158, 11, 0.25);
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: var(--gold-glass);
  border: 1px solid var(--gold-glass-border);
  color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Comparison Section */
.comparison-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 26, 40, 0.30) 40%, rgba(10, 14, 22, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.comp-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.comp-table th, 
.comp-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  vertical-align: middle;
}

.comp-table th:not(:first-child),
.comp-table td:not(:first-child) {
  text-align: center;
}

.comp-table th:first-child,
.comp-table td:first-child {
  white-space: normal;
  width: 22%;
  text-align: left;
}

.comp-table th {
  background: rgba(10, 14, 22, 0.45);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.highlight-col {
  background: rgba(245, 158, 11, 0.06);
  color: var(--gold-bright);
  font-weight: 600;
}

/* Pricing Grid (4 Tiers) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 26, 40, 0.30) 40%, rgba(10, 14, 22, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: visible;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 20px rgba(245, 158, 11, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 100%;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  pointer-events: none;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent, rgba(245, 158, 11, 0.2));
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.9), 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 25px rgba(245, 158, 11, 0.2);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(13, 17, 26, 0.9) 100%);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 
    0 0 45px rgba(245, 158, 11, 0.25), 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 30px 60px -15px rgba(0, 0, 0, 0.9);
  transform: scale(1.03);
}

.pricing-card-header {
  min-height: 80px;
  display: flex;
  flex-direction: column;
}

.pricing-card-header p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 4px;
  min-height: 48px;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px var(--gold-glow);
  white-space: nowrap;
  z-index: 10;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
  white-space: normal;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 14px 0 20px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #fff;
  line-height: 1;
}

.pricing-price span {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pricing-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-bright);
}

/* FAQ Accordion */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.faq-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 26, 40, 0.30) 40%, rgba(10, 14, 22, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  position: relative;
}

.faq-item:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.15);
}

.faq-item.active {
  border-color: var(--gold-primary);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.2);
}

.faq-question {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #f8fafc;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--text-dim);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--gold-bright);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

/* Contributor Success Manifesto Card */
.manifesto-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 26, 40, 0.30) 40%, rgba(10, 14, 22, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  padding: 26px 32px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.manifesto-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.02rem;
  text-align: center;
}

.manifesto-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0 0 16px 0;
}

.manifesto-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.manifesto-item .dot {
  color: var(--gold-bright);
  font-size: 1.1rem;
  line-height: 1;
}

.manifesto-item strong {
  color: var(--text-main);
}

.manifesto-footer {
  text-align: center;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

@media (max-width: 1250px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 992px) {
  .bento-card.col-8, 
  .bento-card.col-4 { grid-column: span 12; }
}

@media (max-width: 650px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card { padding: 28px 18px; }
  .bento-card { padding: 24px 18px; }
  .faq-question { padding: 18px 20px; font-size: 0.98rem; }
  .faq-answer { padding: 0 20px; font-size: 0.9rem; }
}
