/* =============================================================
   Home (index.html) page-specific styles
   ============================================================= */

/* ── Bento section ── */
.bento-section { padding: 120px 0; position: relative; }
.bento-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(217, 70, 239, 0.12) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent); -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent); pointer-events: none; }
.bento-section .section-glow { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(217, 70, 239, 0.08), transparent 70%); pointer-events: none; }
.bento-header { text-align: center; margin-bottom: 60px; }
.bento-header .section-desc { margin: 0 auto; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento-card.w2 { grid-column: span 2; }
.bento-card { position: relative; padding: 28px; border-radius: 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); overflow: hidden; transition: all 0.35s ease; }
.bento-card::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent2), var(--accent), var(--accent2), transparent); opacity: 0; transition: all 0.4s ease; pointer-events: none; }
.bento-card:hover { transform: translateY(-3px); border-color: rgba(217, 70, 239, 0.25); background: rgba(255,255,255,0.035); box-shadow: 0 8px 32px rgba(217, 70, 239, 0.08), 0 0 0 1px rgba(217, 70, 239, 0.05); }
.bento-card:hover::before { opacity: 1; left: 10%; right: 10%; }
.bento-card h3 { margin-bottom: 8px; }
.bento-card p { color: var(--text-muted); margin-bottom: 20px; }

.widget-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; padding-top: 8px; }
.widget-bars .bar { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--accent), var(--accent2)); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bento-card.animated .widget-bars .bar { animation: bar-grow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.widget-status { display: flex; flex-direction: column; gap: 6px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,0.02); font-family: var(--font-mono); opacity: 0; transform: translateX(-12px); }
.bento-card.animated .status-row { animation: slideInRow 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.status-row .label { color: var(--text-muted); }
.status-row .value.green { color: var(--gold); }
.widget-progress { display: flex; flex-direction: column; gap: 12px; }
.progress-item { display: flex; flex-direction: column; gap: 4px; }
.progress-label { display: flex; justify-content: space-between; color: var(--text-muted); font-family: var(--font-mono); }
.progress-track { width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.05); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0; position: relative; }
.progress-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%); background-size: 200% 100%; animation: line-shimmer 2s ease-in-out infinite; }
.bento-card.animated .progress-fill { animation: progress-fill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.widget-logs { display: flex; flex-direction: column; gap: 4px; }
.log-line { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; background: rgba(0,0,0,0.3); font-family: var(--font-mono); opacity: 0; }
.bento-card.animated .log-line { animation: fadeInLine 0.4s ease forwards; }
.log-time { color: var(--text-dim); }
.log-method { padding: 1px 6px; border-radius: 3px; text-transform: uppercase; }
.log-method.get { background: rgba(45, 212, 191, 0.15); color: var(--gold); }
.log-method.post { background: rgba(0, 229, 255, 0.15); color: var(--accent); }
.log-method.put { background: rgba(255, 170, 0, 0.15); color: var(--pink); }
.log-msg { color: var(--text-muted); }
.widget-nodes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.node-dot { width: 100%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.06); opacity: 0; transform: scale(0); }
.node-dot.active { background: var(--accent); animation: node-pulse 2s ease-in-out infinite; }
.bento-card.animated .node-dot { animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.widget-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-metric { padding: 12px 10px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(217, 70, 239, 0.08); text-align: center; }
.mini-metric .metric-value { font-family: var(--font-heading); color: var(--text); }
.mini-metric .metric-label { color: var(--text-dim); margin-top: 2px; font-family: var(--font-mono); }

/* ── Showcase ── */
.showcase-section { padding: 120px 0; position: relative; overflow: hidden; }
.showcase-section .section-glow { position: absolute; top: 30%; right: 0; width: 500px; height: 500px; background: radial-gradient(ellipse, rgba(0, 229, 255, 0.06), transparent 70%); pointer-events: none; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.showcase-features { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.showcase-feature { display: flex; gap: 16px; align-items: flex-start; }
.showcase-feature-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(0, 229, 255, 0.1); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1rem; flex-shrink: 0; }
.showcase-feature h3 { margin-bottom: 4px; }
.showcase-feature p { color: var(--text-muted); }
.dashboard-mock { border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); overflow: hidden; position: relative; }
.dashboard-mock::before { content: ''; position: absolute; inset: -1px; border-radius: 17px; background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), transparent 50%, rgba(217, 70, 239, 0.1)); z-index: -1; }
.dashboard-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.dashboard-dot { width: 8px; height: 8px; border-radius: 50%; }
.dashboard-dot.red { background: #f87171; }
.dashboard-dot.yellow { background: var(--pink); }
.dashboard-dot.green { background: var(--gold); }
.dashboard-header-title { color: var(--text-dim); font-family: var(--font-mono); margin-left: 8px; }
.dashboard-body { padding: 20px; }
.dashboard-table { width: 100%; }
.dashboard-table th { text-align: left; padding: 8px 12px; color: var(--text-dim); font-family: var(--font-mono); border-bottom: 1px solid var(--border); }
.dashboard-table td { padding: 10px 12px; color: var(--text-muted); border-bottom: 1px solid rgba(217, 70, 239, 0.05); font-family: var(--font-mono); }
.dashboard-table tr:last-child td { border-bottom: none; }
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 100px; }
.status-badge.running { background: rgba(45, 212, 191, 0.1); color: var(--gold); }
.status-badge.pending { background: rgba(255, 170, 0, 0.1); color: var(--pink); }
.status-badge.stopped { background: rgba(217, 70, 239, 0.1); color: var(--accent2); }
.mini-bars { display: flex; align-items: flex-end; gap: 2px; height: 20px; }
.mini-bars .mb { width: 4px; border-radius: 1px; background: var(--accent); opacity: 0.6; }

/* ── Showcase right column wrapper (dashboard graphic + briefing CTA) ── */
.showcase-right { display: flex; flex-direction: column; gap: 48px; }

/* ── Showcase CTA — briefing thumbnail + button (stacked under graphic) ── */
.showcase-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.showcase-cta__thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  padding: 2px;
  box-sizing: border-box;
  background: conic-gradient(from var(--angle, 0deg), var(--accent), var(--accent2), var(--accent3), var(--accent2), var(--accent));
  box-shadow: 0 16px 48px -16px rgba(168, 85, 247, 0.4), 0 0 24px rgba(0, 229, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.showcase-cta__thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px -16px rgba(168, 85, 247, 0.55), 0 0 32px rgba(0, 229, 255, 0.18);
}
.showcase-cta__btn { align-self: center; }
.showcase-cta__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-alt);
}
.showcase-cta__placeholder {
  position: absolute;
  inset: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 229, 255, 0.10), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(217, 70, 239, 0.10), transparent 55%),
    linear-gradient(135deg, var(--bg-alt) 0%, #1a0e2e 100%);
}
.showcase-cta__placeholder-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.showcase-cta__placeholder-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 200;
  color: var(--text);
  line-height: 1.2;
}
.showcase-cta__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease;
}
.showcase-cta__thumb:hover .showcase-cta__play { transform: translate(-50%, -50%) scale(1.08); }
.showcase-cta__live {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(11, 5, 20, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent);
  backdrop-filter: blur(6px);
}
.showcase-cta__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@media (max-width: 768px) {
  .showcase-right { gap: 20px; }
  .showcase-cta { gap: 12px; }
}

/* ── How (3-step) ── */
.how-section { padding: 120px 0; position: relative; background: var(--bg-alt); }
.how-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.how-header { text-align: center; margin-bottom: 80px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.how-steps::before { content: ''; position: absolute; top: 40px; left: calc(16.67% + 20px); right: calc(16.67% + 20px); height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--pink)); background-size: 200% 100%; animation: line-shimmer 3s linear infinite; transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(0.16,1,0.3,1); }
.how-steps.line-visible::before { transform: scaleX(1); }
.how-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; position: relative; }
.step-node { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; position: relative; z-index: 1; animation: glow-pulse 3s ease-in-out infinite; }
.step-node .step-num { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; color: white; }
.step-node i[data-lucide] { font-size: 1.6rem; color: var(--accent); }
.how-step h3 { margin-bottom: 8px; }
.how-step p { color: var(--text-muted); max-width: 260px; }

/* ── Metrics row ── */
.metrics-section { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.metric-item { text-align: center; }
.metric-number {
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.metric-label { color: var(--text-muted); margin-top: 4px; }

/* ── Testimonials ── */
.testimonials-section { padding: 120px 0; position: relative; }
.testimonials-section .section-glow { position: absolute; top: 40%; left: 20%; width: 500px; height: 400px; background: radial-gradient(ellipse, rgba(217, 70, 239, 0.06), transparent 70%); pointer-events: none; }
.testimonials-header { text-align: center; margin-bottom: 60px; }
.testimonial-featured { padding: 40px; border-radius: 20px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); margin-bottom: 20px; position: relative; overflow: hidden; }
.testimonial-featured::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--pink)); }
.testimonial-quote { color: var(--text); margin-bottom: 24px; font-family: var(--font-heading); }
.testimonial-quote::before { content: '\201C'; display: block; font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: 8px; font-family: Georgia, serif; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; color: white; }
.testimonial-role { color: var(--text-muted); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card { padding: 24px; border-radius: 14px; background: rgba(255,255,255,0.015); border: 1px solid var(--border); transition: transform 0.3s, border-color 0.3s; }
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(217, 70, 239, 0.3); }
.testimonial-card .testimonial-quote { margin-bottom: 16px; }
.testimonial-card .testimonial-quote::before { font-size: 2rem; margin-bottom: 4px; }

/* ── Pricing ── */
.pricing-section { padding: 120px 0; background: var(--bg-alt); position: relative; }
.pricing-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.pricing-header { text-align: center; margin-bottom: 60px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; }
.pricing-card { padding: 36px; border-radius: 18px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); position: relative; transition: transform 0.3s; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured { transform: scale(1.05); border: none; z-index: 1; box-shadow: 0 8px 60px rgba(0, 229, 255, 0.15); animation: borderSpin 4s linear infinite; }
.pricing-card.featured::before { content: ''; position: absolute; inset: -2px; border-radius: 20px; background: conic-gradient(from var(--border-angle), var(--accent), var(--accent2), var(--pink), var(--accent3), var(--accent)); z-index: -2; animation: borderSpin 4s linear infinite; }
.pricing-card.featured::after { content: ''; position: absolute; inset: 2px; border-radius: 16px; background: var(--bg-alt); z-index: -1; }
.pricing-card.featured:hover { transform: scale(1.07) translateY(-4px); }
.pricing-badge { display: inline-block; padding: 4px 12px; border-radius: 100px; background: linear-gradient(135deg, var(--accent), var(--accent2)); margin-bottom: 16px; color: white; }
.pricing-name { margin-bottom: 8px; color: var(--text); }
.pricing-price { font-family: var(--font-heading); margin-bottom: 4px; }
.pricing-price span { color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-feature { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.pricing-feature i[data-lucide] { color: var(--accent); flex-shrink: 0; }
.pricing-btn { display: block; width: 100%; padding: 12px; border-radius: 10px; text-align: center; border: 1px solid rgba(217, 70, 239, 0.2); background: rgba(217, 70, 239, 0.06); color: var(--text); transition: all 0.3s; }
.pricing-btn:hover { background: rgba(217, 70, 239, 0.12); border-color: rgba(217, 70, 239, 0.3); box-shadow: 0 0 20px rgba(217, 70, 239, 0.15); }
.pricing-card.featured .pricing-btn { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; color: white; }
.pricing-card.featured .pricing-btn:hover { box-shadow: 0 4px 30px rgba(0, 229, 255, 0.3); }

/* ── CTA ── */
.cta-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.cta-section .section-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 500px; background: radial-gradient(ellipse, rgba(0, 229, 255, 0.1), transparent 70%); pointer-events: none; }
.cta-content { position: relative; z-index: 1; max-width: 600px; }
.cta-title { margin-bottom: 20px; }
.cta-desc { color: var(--text-muted); margin-bottom: 32px; }
.cta-terminal { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 10px; background: rgba(0,0,0,0.4); border: 1px solid var(--border); font-family: var(--font-mono); color: var(--text-muted); margin-bottom: 32px; }
.cta-terminal .prompt { color: var(--accent); }
.cta-terminal .cmd { color: var(--text); }
.cta-terminal .copy-btn { padding: 4px 8px; border-radius: 4px; background: rgba(0, 229, 255, 0.1); color: var(--accent); transition: background 0.2s; }
.cta-terminal .copy-btn:hover { background: rgba(0, 229, 255, 0.2); }
.cta-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.trust-badges { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 8px; color: var(--text-dim); }
.trust-badge i[data-lucide] { color: var(--accent); }

/* ── Home responsive ── */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.w2 { grid-column: span 1; }
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { gap: 16px; }
  .pricing-card.featured { transform: scale(1.02); }
  .pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }
}
@media (max-width: 768px) {
  .metrics-section { padding: 32px 0 !important; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.w2 { grid-column: span 1; }
  .bento-card { padding: 22px; }
  .bento-header { margin-bottom: 40px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-steps { grid-template-columns: 1fr; gap: 48px; }
  .how-steps::before { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-featured { padding: 28px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .cta-section { min-height: auto; padding-top: 80px !important; padding-bottom: 80px !important; }
}
@media (max-width: 480px) {
  .bento-card { padding: 18px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonial-featured { padding: 20px; }
  .testimonial-card { padding: 18px; }
  .pricing-card { padding: 24px; }
  .cta-terminal { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .trust-badges { flex-direction: column; align-items: center; }
}
