:root {
  --indigo: #4f46e5;
  --blue: #2563eb;
  --teal: #0ea5e9;
  --purple: #a855f7;
  --slate: #0f172a;
  --glass: rgba(255, 255, 255, 0.08);
  --glow: 0 10px 40px rgba(79, 70, 229, 0.3);
  --nav-offset: 0px;
}

* { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  transition: opacity 0.2s ease;
  padding-top: var(--nav-offset);
}
body.app-loading {
  opacity: 0;
  visibility: hidden;
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}
.nav-chip {
  padding: 0.55rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(79, 70, 229, 0.12);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.05), rgba(168, 85, 247, 0.05));
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.08);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--blue); transform: translateY(-1px); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--blue); font-weight: 700; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  padding: 0;
  transition: padding 0.3s ease;
}

.main-navbar {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  background: #fff;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: max-width 0.3s ease, margin 0.3s ease, border-radius 0.3s ease,
    background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  padding: 0.75rem 0 0.5rem;
}

.site-header.is-scrolled .main-navbar {
  max-width: 72rem;
  width: calc(100% - 2rem);
  margin: 0 auto;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}
.top-ribbon { text-align: center; background: linear-gradient(90deg, rgba(37,99,235,0.15), rgba(168,85,247,0.15)); color: #312e81; font-weight: 700; letter-spacing: 0.01em; padding: 0.4rem 1rem; border-bottom: 1px solid rgba(79, 70, 229, 0.2); }
.logo-glow { display: inline-flex; padding: 0.35rem; border-radius: 16px; background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.14), transparent 50%); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.18); }
.brand-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.7rem; background: linear-gradient(120deg, rgba(59,130,246,0.15), rgba(168,85,247,0.18)); border: 1px solid rgba(79, 70, 229, 0.2); border-radius: 9999px; font-size: 0.8rem; color: #4338ca; }

.mobile-menu-panel { position: fixed; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(224, 231, 255, 0.96)); box-shadow: 0 20px 80px rgba(15, 23, 42, 0.15); border-right: 1px solid #e2e8f0; transform: translateX(-100%); transition: transform 0.35s ease, opacity 0.35s ease; opacity: 0; pointer-events: none; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.5rem 2rem; z-index: 60; }
.mobile-menu-panel.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.5rem; border-bottom: 1px solid #e2e8f0; }
.mobile-menu-links { display: grid; gap: 0.5rem; margin-top: 1rem; }
.mobile-link { display: block; padding: 0.7rem 0; border-radius: 0; text-align: left; color: #0f172a; transition: background 0.3s ease, color 0.3s ease; border: none; background: transparent; box-shadow: none; }
.mobile-link:hover { background: rgba(15, 23, 42, 0.04); color: var(--blue); }
.no-scroll { overflow: hidden; }

.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--purple));
  padding: 0.75rem 1.35rem;
  border-radius: 9999px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.3s ease, opacity 0.3s;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 20px 60px rgba(79, 70, 229, 0.35); opacity: 0.95; }
.btn-primary:focus-visible { outline: 3px solid rgba(79, 70, 229, 0.35); outline-offset: 2px; }

.ghost-btn {
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--blue);
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-weight: 600;
  background: white;
  transition: all 0.25s ease;
}
.ghost-btn:hover { background: rgba(79, 70, 229, 0.08); box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15); }

.glass-panel { background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)); border: 1px solid #e2e8f0; box-shadow: 0 15px 80px rgba(15, 23, 42, 0.08); backdrop-filter: blur(10px); }
.shadow-glow { box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25); }

.section-label { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border-radius: 9999px; background: rgba(79, 70, 229, 0.1); color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.gradient-text { background: linear-gradient(120deg, #38bdf8, #6366f1, #a855f7); -webkit-background-clip: text; color: transparent; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.feature-card { background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95)); border: 1px solid #e0e7ff; border-radius: 18px; padding: 1.5rem; position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15), transparent 40%); opacity: 0; transition: opacity 0.35s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12); }
.feature-card:hover::before { opacity: 1; }

.chart-card { border-radius: 18px; padding: 1.25rem; border: 1px solid #e2e8f0; background: linear-gradient(145deg, #fff, #f8fafc); box-shadow: 0 14px 50px rgba(15, 23, 42, 0.08); }
.chart-canvas {
  width: 360px;
  height: 220px;
  max-width: 100%;
  max-height: 220px;
  display: block;
}
.chart-donut-wrapper {
  width: 200px;
  height: 200px;
  max-width: 100%;
  max-height: 200px;
}
.chart-donut {
  width: 100%;
  height: 100%;
  display: block;
}

.social-link { transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease; color: inherit; }
.social-link:hover { color: #fff; transform: translateY(-2px) scale(1.03); background: linear-gradient(120deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2)); }
.footer-link { color: inherit; transition: color 0.25s ease; }
.footer-link:hover { color: #fff; }
.footer-highlight { padding: 0.85rem 1rem; border-radius: 14px; background: linear-gradient(120deg, rgba(16,185,129,0.16), rgba(56,189,248,0.12)); color: #e0f2fe; font-weight: 700; border: 1px solid rgba(56,189,248,0.3); box-shadow: 0 12px 30px rgba(14,165,233,0.18); }
.fancy-footer::before { content: ""; position: absolute; inset: 18% auto auto 8%; width: 180px; height: 180px; background: radial-gradient(circle, rgba(96,165,250,0.18), transparent 55%); filter: blur(6px); opacity: 0.8; }
.fancy-footer::after { content: ""; position: absolute; inset: auto 8% 10% auto; width: 200px; height: 200px; background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 60%); filter: blur(10px); opacity: 0.75; }

.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.8rem; border-radius: 9999px; background: rgba(15, 23, 42, 0.06); color: #0f172a; font-weight: 700; font-size: 0.8rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.shimmer { position: relative; overflow: hidden; }
.shimmer::after { content: ""; position: absolute; top: 0; left: -150%; width: 120%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent); animation: shine 2.5s infinite; }

@keyframes shine { 0% { left: -150%; } 50% { left: 150%; } 100% { left: 150%; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } .feature-card, .btn-primary, .ghost-btn { transition: none; } .shimmer::after { display: none; } }

/* Home page styles */
.hero-title { font-size: clamp(2.8rem, 4vw, 3.8rem); }
.animate-float { animation: floaty 6s ease-in-out infinite; }

.status-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid #e2e8f0; background: #f8fafc; }
.status-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; }

.icon-pill { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; margin-bottom: 0.65rem; }

.line-connector { position: absolute; left: 24px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(to bottom, rgba(79,70,229,0.2), rgba(59,130,246,0.15)); }
.step-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid #e0e7ff; background: rgba(255, 255, 255, 0.85); position: relative; }
.step-index { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #4f46e5; background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(37, 99, 235, 0.15)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }

.stat-card { background: linear-gradient(145deg, #fff, #f8fafc); border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.25rem; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 12px 40px rgba(15,23,42,0.08); color: #0f172a; }
.quote-card { padding: 1.25rem 1.4rem; border-radius: 16px; color: #0f172a; background: linear-gradient(145deg, #fff, #f8fafc); border: 1px solid #e2e8f0; }
.avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #4f46e5, #06b6d4); display: grid; place-items: center; font-weight: 800; color: #fff; }

.logo-chip { border: 1px solid #e2e8f0; border-radius: 14px; padding: 0.85rem 1rem; text-align: center; font-weight: 700; color: #0f172a; background: linear-gradient(145deg, #fff, #f8fafc); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); position: relative; overflow: hidden; }
.logo-chip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(79, 70, 229, 0.12), transparent 45%); opacity: 0; transition: opacity 0.35s ease; }
.logo-chip:hover { transform: translateY(-3px); box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12); }
.logo-chip:hover::before { opacity: 1; }

.floating-blob { position: absolute; filter: blur(50px); opacity: 0.5; border-radius: 9999px; animation: floaty 8s ease-in-out infinite; }
.blob-one { width: 180px; height: 180px; background: rgba(59, 130, 246, 0.3); top: -30px; right: -50px; animation-delay: 0.4s; }
.blob-two { width: 140px; height: 140px; background: rgba(168, 85, 247, 0.25); bottom: -40px; left: -30px; animation-delay: 1s; }

/* Pricing page styles */
.billing-toggle { display: inline-flex; gap: 0.35rem; padding: 0.35rem; border-radius: 9999px; background: #e0e7ff; border: 1px solid #c7d2fe; margin: 0 auto; }
.billing-btn { border: none; background: transparent; padding: 0.6rem 1.2rem; border-radius: 9999px; font-weight: 800; color: #4338ca; transition: all 0.2s ease; }
.billing-btn.active { background: #fff; color: #0f172a; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2); }
.billing-btn:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }

.toggle-thumb { border-radius: 9999px; background: #0ea5e9; color: #fff; padding: 0.5rem 1rem; font-weight: 700; transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease; box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35); }
.toggle-thumb[aria-pressed="true"] { background: linear-gradient(120deg, #22c55e, #0ea5e9); box-shadow: 0 12px 36px rgba(34, 197, 94, 0.35); }
.toggle-thumb:hover { transform: translateY(-1px); }

.price-card { background: linear-gradient(150deg, #fff, #f8fafc); border: 1px solid #e0e7ff; border-radius: 20px; padding: 1.75rem; box-shadow: 0 16px 60px rgba(15, 23, 42, 0.08); display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: visible; }
.price-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.12), transparent 45%); opacity: 0; transition: opacity 0.35s ease; }
.price-card:hover::after { opacity: 1; }
.price-card.featured { border: 1px solid rgba(79, 70, 229, 0.4); box-shadow: 0 20px 80px rgba(79, 70, 229, 0.15); transform: translateY(-4px); }
.price-card .price-amount { font-size: 2.6rem; font-weight: 900; color: #0f172a; }
.price-card .per { font-size: 0.9rem; color: #64748b; margin-left: 4px; }
.feature-list { display: grid; gap: 0.5rem; color: #475569; }
.feature-list li { display: flex; gap: 0.5rem; align-items: center; }
.feature-list i { color: #22c55e; }

.plan-card { height: 100%; gap: 1.25rem; isolation: isolate; }
.plan-card .plan-head { display: grid; gap: 0.35rem; }
.plan-name { font-size: 1.25rem; font-weight: 900; color: #0f172a; }
.plan-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; }
.price-strike { text-decoration: line-through; color: #94a3b8; font-weight: 700; }
.price-current { font-size: 2.2rem; font-weight: 900; color: #0f172a; }
.plan-note { color: #475569; }
.plan-subtitle { color: #475569; }
.plan-features { display: grid; gap: 0.45rem; padding: 0; }
.plan-feature { display: flex; align-items: center; gap: 0.65rem; padding: 0; border: none; background: transparent; }
.feature-label { font-weight: 700; color: #0f172a; flex: 1 1 auto; }
.status { width: 28px; height: 28px; border-radius: 9999px; display: grid; place-items: center; font-size: 1rem; }
.status.check { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.status.cross { background: rgba(248, 113, 113, 0.12); color: #b91c1c; }
.info-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #475569; display: grid; place-items: center; font-size: 0.95rem; transition: all 0.2s ease; }
.info-btn:hover, .info-btn:focus-visible { color: #6366f1; border-color: #c7d2fe; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.18); outline: none; }
.feature-info { position: relative; }
.feature-tooltip { position: absolute; top: 110%; right: 0; width: min(320px, 70vw); background: #0f172a; color: #e2e8f0; padding: 0.75rem 0.85rem; border-radius: 12px; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25); opacity: 0; transform: translateY(6px); pointer-events: none; transition: all 0.2s ease; z-index: 30; }
.feature-tooltip::before { content: \"\"; position: absolute; top: -8px; right: 16px; width: 14px; height: 14px; background: #0f172a; transform: rotate(45deg); }
.feature-info:hover .feature-tooltip, .feature-info:focus-within .feature-tooltip { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tooltip-text { font-size: 0.9rem; line-height: 1.45; }
.tooltip-link { display: inline-block; margin-top: 0.45rem; color: #c7d2fe; font-weight: 700; }
.popular { background: linear-gradient(150deg, #0f172a, #0b1224); border: 1px solid rgba(99, 102, 241, 0.5); color: #e2e8f0; }
.popular .plan-name, .popular .plan-subtitle, .popular .plan-note, .popular .feature-label, .popular .feature-value { color: #e2e8f0; }
.popular .price-strike { color: rgba(148, 163, 184, 0.8); }
.popular .price-current { color: #c7d2fe; }
.popular .plan-feature { background: transparent; border-color: transparent; }
.popular .info-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #e2e8f0; }
.popular .info-btn:hover, .popular .info-btn:focus-visible { border-color: rgba(199, 210, 254, 0.65); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3); }
.popular .feature-tooltip { background: #111827; }
.popular .feature-tooltip::before { background: #111827; }
.custom-pricing-card { display: flex; flex-direction: column; gap: 1rem; border-radius: 20px; border: 1px solid #cbd5e1; padding: 1.5rem; background: linear-gradient(120deg, rgba(59, 130, 246, 0.08), rgba(168, 85, 247, 0.08)); box-shadow: 0 18px 70px rgba(15, 23, 42, 0.08); }
.custom-pricing-card .section-label { background: rgba(59,130,246,0.18); color: #1d4ed8; }

.comparison-grid { display: grid; gap: 0.75rem; }
.compare-row { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); }
.pill { border-radius: 9999px; padding: 0.45rem 0.9rem; text-align: center; font-weight: 700; }
.pill.on { background: rgba(22, 163, 74, 0.08); color: #15803d; }
.pill.off { background: #e2e8f0; color: #475569; }
.pill.highlight { box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15); border: 1px solid rgba(79, 70, 229, 0.25); }

.faq-item { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); }
.faq-question { width: 100%; text-align: left; padding: 1rem 1.1rem; font-weight: 700; color: #0f172a; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '\eae7'; font-family: 'tabler-icons'; transition: transform 0.25s ease; color: #6366f1; }
.faq-question[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq-answer { padding: 0 1.1rem 1rem; color: #475569; display: none; }
.faq-answer.open { display: block; }

/* Support page styles */
.status-banner { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; gap: 0.75rem; justify-content: center; padding: 0.75rem 1rem; background: linear-gradient(120deg, rgba(34, 197, 94, 0.12), rgba(14, 165, 233, 0.12)); border: 1px solid rgba(14, 165, 233, 0.2); color: #0f172a; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18); }

.channel-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.25rem; box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden; }
.channel-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.12), transparent 45%); opacity: 0; transition: opacity 0.35s ease; }
.channel-card:hover { transform: translateY(-4px); box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12); }
.channel-card:hover::after { opacity: 1; }

.faq-grid { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06); }
.faq-question { width: 100%; text-align: left; padding: 1rem 1.1rem; font-weight: 700; color: #0f172a; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '\eae7'; font-family: 'tabler-icons'; transition: transform 0.25s ease; color: #6366f1; }
.faq-question[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq-answer { padding: 0 1.1rem 1rem; color: #475569; display: none; }
.faq-answer.open { display: block; }

.form-label { display: block; font-weight: 700; color: #0f172a; margin-bottom: 0.35rem; }
.input-field { width: 100%; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.75rem 0.85rem; outline: none; transition: border 0.3s ease, box-shadow 0.3s ease; background: #fff; }
.input-field:focus { border-color: #6366f1; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15); }

.toast { position: fixed; bottom: 24px; right: 24px; background: #0f172a; color: #fff; padding: 1rem 1.2rem; border-radius: 14px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25); display: flex; align-items: center; gap: 0.6rem; opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: linear-gradient(135deg, #22c55e, #0ea5e9); }

/* Modal styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 60;
}

.modal-backdrop.register-backdrop {
  z-index: 80;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  width: min(520px, 90vw);
  position: relative;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
}

.modal-body {
  display: grid;
  gap: 0.5rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #475569;
  cursor: pointer;
}

.flow-modal {
  width: min(640px, 92vw);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.flow-progress {
  display: grid;
  gap: 0.45rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148,163,184,0.35);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(120deg, var(--blue), var(--purple));
  border-radius: 999px;
  width: 0%;
  transition: width 0.3s ease;
}

.flow-form {
  flex: 1;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.status-badge {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.2);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
}

.success-card {
  text-align: center;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.loader {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  display: inline-block;
  margin-right: 0.45rem;
  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Blog styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.3);
}

.blog-image {
  position: relative;
  padding-top: 58%;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
}

.blog-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 1.1rem 1.1rem 1.25rem;
  display: grid;
  gap: 0.6rem;
  flex: 1;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
  align-items: center;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}

.blog-excerpt {
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.blog-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.65rem 0.75rem 0.65rem 0.85rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.blog-search i {
  color: #4338ca;
  font-size: 1.05rem;
}

.blog-search input {
  border: none;
  outline: none;
  font-size: 1rem;
  color: #0f172a;
  padding: 0.35rem;
  width: 100%;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #4338ca;
  background: #4338ca;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(67, 56, 202, 0.35);
}

.btn.ghost {
  background: #fff;
  color: #4338ca;
  border-color: #cbd5e1;
  box-shadow: none;
}

.search-helper {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 0.95rem;
}

.blog-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #475569;
  margin-bottom: 1rem;
}

.blog-status .loader {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.page-btn {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.page-btn:hover:enabled {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.14);
}

.page-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-info {
  font-weight: 800;
  color: #0f172a;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.empty-state.hidden,
.blog-status.hidden {
  display: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #475569;
}

.breadcrumb-link {
  color: #4338ca;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-current {
  font-weight: 700;
  color: #0f172a;
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title { font-size: 2rem; line-height: 1.2; }
  .section-label { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
  .btn-primary, .ghost-btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.25rem; }
  .chart-canvas { width: 100%; height: 180px; max-height: 180px; }
  .chart-donut-wrapper { width: 160px; height: 160px; }
  .step-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .flow-modal { width: 95vw; padding: 1.25rem; }
  .modal { width: 95vw; padding: 1.25rem; }
  .status-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .glass-panel { padding: 1rem; }
  .nav-chip { padding: 0.45rem 0.6rem; font-size: 0.85rem; }
  .brand-pill { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
  .top-ribbon { font-size: 0.85rem; padding: 0.3rem 0.75rem; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title { font-size: 2.5rem; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .step-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .flow-modal { width: 92vw; padding: 1.5rem; }
  .chart-canvas { width: 100%; height: 200px; max-height: 200px; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title { font-size: 3rem; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .chart-canvas { width: 100%; height: 210px; max-height: 210px; }
  .flow-modal { width: 85vw; max-width: 600px; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .mobile-menu-panel { display: none; }
  #menuBtn { display: none; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title { font-size: 3.8rem; }
  .container-max { max-width: 1200px; margin: 0 auto; }
}

/* Orientation specific */
@media (orientation: landscape) and (max-height: 600px) {
  .flow-modal { max-height: 90vh; overflow-y: auto; }
  .modal { max-height: 90vh; overflow-y: auto; }
  .hero-title { font-size: 2.2rem; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-primary, .ghost-btn, .nav-link, .mobile-link {
    min-height: 44px;
    min-width: 44px;
  }
  .input-field, .form-label { font-size: 16px; }
  .nav-chip { padding: 0.6rem 0.8rem; }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-glow img, .avatar { image-rendering: -webkit-optimize-contrast; }
}

/* Print styles */
@media print {
  .site-header, .mobile-menu-panel, .btn-primary, .ghost-btn, 
  .modal-backdrop, .toast, app-navbar, app-footer { display: none !important; }
  body { background: white; color: black; }
  .glass-panel { background: white; border: 1px solid #ccc; }
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
  background: #e0e7ff;
  transform: translateY(-1px);
}

.article-hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.article-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.article-body {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-weight: 800;
  color: #0f172a;
  margin: 1.2rem 0 0.5rem;
}

.article-body p {
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-body a {
  color: #4338ca;
  font-weight: 700;
  text-decoration: underline;
}

/* ================================================================
   INNJOY BRAND SYSTEM — Dark Theme for PixiePorto v2
   ================================================================ */

:root {
  --bg-base:            #0A0B0F;
  --bg-surface:         #111318;
  --bg-elevated:        #181B23;
  --border-dark:        rgba(255,255,255,0.08);
  --border-dark-hover:  rgba(255,255,255,0.16);
  --brand-blue:         #2170DE;
  --brand-coral:        #FF6A6A;
  --brand-mint:         #00D68F;
  --accent-glow-blue:   rgba(33,112,222,0.25);
  --accent-glow-coral:  rgba(255,106,106,0.25);
  --text-primary:       #F0F2F7;
  --text-secondary:     #8B91A0;
  --text-muted:         #4A4F5E;
}

/* ===== DARK PAGE SCOPE ===== */
body.dark-page {
  background: var(--bg-base);
  color: var(--text-primary);
}

/* ===== DARK NAVBAR ===== */
body.dark-page .site-header {
  border-bottom-color: rgba(255,255,255,0.05);
}
body.dark-page .main-navbar {
  background: rgba(10,11,15,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
body.dark-page .site-header.is-scrolled .main-navbar {
  background: rgba(10,11,15,0.94);
  border-color: var(--border-dark);
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
}
body.dark-page .nav-link { color: var(--text-secondary); }
body.dark-page .nav-link:hover,
body.dark-page .nav-link.active { color: var(--text-primary); }
body.dark-page .nav-link::after {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-coral));
}
body.dark-page #menuBtn { color: var(--text-primary); }
body.dark-page .mobile-menu-panel {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  border-right-color: var(--border-dark);
}
body.dark-page .mobile-menu-header { border-bottom-color: var(--border-dark); }
body.dark-page .mobile-link { color: var(--text-secondary); }
body.dark-page .mobile-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
body.dark-page .brand-pill {
  background: rgba(33,112,222,0.15);
  border-color: rgba(33,112,222,0.3);
  color: #93b8f5;
}

/* ===== DARK FOOTER ===== */
body.dark-page .fancy-footer {
  background: var(--bg-surface) !important;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-dark);
}
body.dark-page .fancy-footer::before,
body.dark-page .fancy-footer::after { opacity: 0.3; }
body.dark-page .footer-link { color: var(--text-secondary); }
body.dark-page .footer-link:hover { color: var(--text-primary); }
body.dark-page .fancy-footer h4 { color: var(--text-primary); }
body.dark-page .footer-highlight {
  background: rgba(33,112,222,0.1);
  border-color: rgba(33,112,222,0.18);
  color: var(--text-secondary);
}
body.dark-page .social-link {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-secondary) !important;
}
body.dark-page .social-link:hover { color: var(--text-primary) !important; background: rgba(255,255,255,0.12) !important; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: linear-gradient(90deg, #070d1a, #0c1e3d, #070d1a);
  background-size: 200% 100%;
  animation: shimmerBar 5s linear infinite;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(33,112,222,0.15);
  flex-wrap: wrap;
}
.announcement-icon { color: var(--brand-blue); font-size: 11px; }
.announcement-cta {
  color: var(--brand-coral);
  font-weight: 700;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.announcement-cta:hover { opacity: 0.8; }

/* ===== NEW KEYFRAMES ===== */
@keyframes shimmerBar {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(255,106,106,0.3); }
  50%       { box-shadow: 0 16px 40px rgba(255,106,106,0.55); }
}
@keyframes progressPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 4px rgba(0,214,143,0.2); }
  50%       { opacity: 0.6; transform: scale(0.85); box-shadow: 0 0 0 8px rgba(0,214,143,0.05); }
}
@keyframes spinSlow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== BUTTONS — DARK THEME ===== */
.btn-coral {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  background: var(--brand-coral);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(255,106,106,0.3);
}
.btn-coral:hover {
  transform: translateY(-2px);
  animation: pulseGlow 1.5s ease-in-out infinite;
}
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.5rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dark-hover);
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
}
.btn-blue-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
  font-weight: 700;
  transition: all 0.25s ease;
}
.btn-blue-outline:hover {
  background: rgba(33,112,222,0.1);
  box-shadow: 0 0 0 4px rgba(33,112,222,0.12);
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(33,112,222,0.32);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* ===== SECTION LABEL DARK ===== */
.section-label-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(33,112,222,0.12);
  color: #93b8f5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  border: 1px solid rgba(33,112,222,0.2);
}

/* ===== HERO DARK ===== */
.hero-dark {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-title-dark {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(33,112,222,0.12);
  color: #93b8f5;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(33,112,222,0.22);
  letter-spacing: 0.02em;
}
.trust-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

/* ===== APP MOCK ===== */
.app-mock-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-mock {
  transform: perspective(1200px) rotateX(5deg) rotateY(-6deg);
  animation: floaty 4s ease-in-out infinite;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-dark-hover);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  display: flex;
  width: 100%;
  max-width: 520px;
  min-height: 300px;
  background: var(--bg-surface);
}
.app-mock-sidebar {
  width: 52px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  gap: 12px;
  flex-shrink: 0;
}
.mock-sidebar-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(33,112,222,0.18);
}
.mock-sidebar-dot:first-child {
  background: rgba(33,112,222,0.7);
}
.app-mock-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-top-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.mock-top-title { width: 90px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.14); }
.mock-top-badge { width: 40px; height: 8px; border-radius: 4px; background: rgba(33,112,222,0.45); }
.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
}
.mock-stat {
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-stat-num { height: 10px; width: 55%; border-radius: 3px; background: rgba(255,255,255,0.2); }
.mock-stat-label { height: 5px; width: 80%; border-radius: 3px; background: rgba(255,255,255,0.07); }
.mock-cards-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  flex: 1;
}
.mock-card {
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mock-card-thumb { border-radius: 6px; height: 52px; background: linear-gradient(135deg, rgba(33,112,222,0.28), rgba(255,106,106,0.15)); }
.mock-card:nth-child(2) .mock-card-thumb { background: linear-gradient(135deg, rgba(0,214,143,0.22), rgba(33,112,222,0.2)); }
.mock-card:nth-child(3) .mock-card-thumb { background: linear-gradient(135deg, rgba(255,106,106,0.22), rgba(168,85,247,0.18)); }
.mock-card:nth-child(4) .mock-card-thumb { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(33,112,222,0.2)); }
.mock-card:nth-child(5) .mock-card-thumb { background: linear-gradient(135deg, rgba(0,214,143,0.16), rgba(255,106,106,0.2)); }
.mock-card:nth-child(6) .mock-card-thumb { background: linear-gradient(135deg, rgba(33,112,222,0.16), rgba(0,214,143,0.25)); }
.mock-card-label { width: 65%; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.13); }
.mock-card-sub   { width: 42%; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.06); }

/* ===== LAUNCH STATUS SECTION ===== */
.launch-status-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 4rem 1.5rem;
  text-align: center;
}
.launch-label {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-mint);
  display: inline-block;
  animation: progressPulse 2s ease-in-out infinite;
}
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
}
.progress-step + .progress-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: var(--border-dark);
}
.progress-step.done   { color: var(--brand-mint); }
.progress-step.active { color: var(--brand-blue); }
.progress-step.locked { color: var(--text-muted); }
.spin-icon { display: inline-block; animation: spinSlow 2s linear infinite; }

/* ===== WAITLIST SECTION ===== */
.waitlist-section {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.waitlist-section::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 350px;
  background: radial-gradient(ellipse, rgba(255,106,106,0.07), transparent 65%);
  pointer-events: none;
}
.waitlist-accent-line {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-coral);
  margin: 0 auto 1.5rem;
}
.waitlist-input-row {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: 9999px;
  padding: 6px 6px 6px 20px;
  align-items: center;
}
.waitlist-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  min-width: 0;
}
.waitlist-input-row input::placeholder { color: var(--text-muted); }
.waitlist-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.waitlist-avatars {
  display: flex;
  align-items: center;
}
.waitlist-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  margin-right: -8px;
}
.waitlist-avatar:nth-child(1) { background: linear-gradient(135deg, var(--brand-blue), #0a3d8f); }
.waitlist-avatar:nth-child(2) { background: linear-gradient(135deg, var(--brand-coral), #b94040); }
.waitlist-avatar:nth-child(3) { background: linear-gradient(135deg, var(--brand-mint), #008f5e); }

/* ===== COMPANY STRIP ===== */
.company-strip {
  border-top: 1px solid var(--border-dark);
  padding: 1.4rem 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-base);
  flex-wrap: wrap;
}
.company-strip a { color: var(--text-secondary); font-weight: 600; transition: color 0.2s; }
.company-strip a:hover { color: var(--text-primary); }

/* ===== BLOG HERO DARK ===== */
.blog-hero-dark {
  background: var(--bg-base);
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}
.blog-hero-dark::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(33,112,222,0.12), transparent 65%);
  pointer-events: none;
}
.blog-hero-dark h1 { color: var(--text-primary); }
.blog-hero-dark p { color: var(--text-secondary); }

/* ===== CATEGORY FILTERS ===== */
.category-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-pill {
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--border-dark-hover); color: var(--text-primary); }
.filter-pill.active {
  background: rgba(33,112,222,0.13);
  border-color: rgba(33,112,222,0.38);
  color: #93b8f5;
}

/* ===== DARK BLOG CARD OVERRIDES ===== */
body.dark-page .blog-card {
  background: var(--bg-surface);
  border-color: var(--border-dark);
  box-shadow: none;
}
body.dark-page .blog-card:hover {
  border-color: rgba(33,112,222,0.38);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
body.dark-page .blog-title   { color: var(--text-primary); }
body.dark-page .blog-excerpt { color: var(--text-secondary); }
body.dark-page .blog-meta    { color: var(--text-muted); }
body.dark-page .tag-pill { background: rgba(33,112,222,0.12); color: #93b8f5; }
body.dark-page .blog-image { background: var(--bg-elevated); }
body.dark-page .blog-search {
  background: var(--bg-surface);
  border-color: var(--border-dark);
  box-shadow: none;
}
body.dark-page .blog-search i { color: var(--brand-blue); }
body.dark-page .blog-search input { background: transparent; color: var(--text-primary); }
body.dark-page .blog-search input::placeholder { color: var(--text-muted); }
body.dark-page .blog-status {
  background: var(--bg-surface);
  border-color: var(--border-dark);
  color: var(--text-secondary);
}
body.dark-page .blog-status .loader {
  border-color: var(--border-dark);
  border-top-color: var(--brand-blue);
}
body.dark-page .page-btn {
  background: var(--bg-surface);
  border-color: var(--border-dark);
  color: var(--text-primary);
  box-shadow: none;
}
body.dark-page .page-btn:hover:enabled {
  border-color: var(--border-dark-hover);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
body.dark-page .page-info  { color: var(--text-primary); }
body.dark-page .empty-state {
  background: var(--bg-surface);
  border-color: var(--border-dark);
  color: var(--text-secondary);
  box-shadow: none;
}
body.dark-page .search-helper { color: var(--text-muted); }
body.dark-page .btn { background: var(--brand-blue); border-color: var(--brand-blue); }
body.dark-page .btn.ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-dark);
}
body.dark-page .btn.ghost:hover { border-color: var(--border-dark-hover); color: var(--text-primary); }

/* Blog featured card */
.blog-featured-card { grid-column: 1 / -1; border-radius: 18px; overflow: hidden; display: grid; }
@media (min-width: 768px) { .blog-featured-card { grid-template-columns: 1.5fr 1fr; } }
.blog-featured-card .blog-image { padding-top: 0; min-height: 260px; }
.blog-featured-card .blog-content { padding: 2rem; }
.blog-featured-card .blog-title { font-size: 1.4rem; }

/* ===== APP PREVIEW SECTION ===== */
.app-preview-section {
  background: var(--bg-base);
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border-dark);
}
.app-preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.preview-card {
  border-radius: 16px;
  border: 1px solid var(--border-dark);
  background: var(--bg-surface);
  padding: 1.1rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.preview-card:hover { border-color: rgba(33,112,222,0.32); transform: translateY(-4px); }
.preview-card-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}

/* ===== STAGGER REVEAL ===== */
.reveal[data-reveal-delay="100"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="200"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="300"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="400"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="500"] { transition-delay: 0.5s; }

/* ===== RESPONSIVE DARK PAGE ===== */
@media (max-width: 767.98px) {
  .app-mock {
    transform: perspective(800px) rotateX(3deg) rotateY(-2deg);
    max-width: 340px;
  }
  .progress-step { padding: 0.5rem 0.85rem; font-size: 0.82rem; }
  .waitlist-input-row { flex-direction: column; border-radius: 14px; padding: 12px 14px; align-items: stretch; }
  .waitlist-input-row input { padding: 0.5rem 0; }
  .hero-title-dark { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .announcement-bar { font-size: 12px; gap: 8px; padding: 8px 16px; }
}
@media (max-width: 575.98px) {
  .app-mock { display: none; }
  .progress-steps { flex-direction: column; }
  .progress-step + .progress-step::before { display: none; }
  .app-preview-cards { grid-template-columns: 1fr; }
}
