/* =========================================
   VoomlyCompare — Custom Stylesheet
   Modern gradients + Bootstrap 5 overlay
   ========================================= */

:root {
  --primary:      #6C47FF;
  --primary-dark: #4f2fe8;
  --blue:         #3B82F6;
  --teal:         #06B6D4;
  --pink:         #EC4899;
  --orange:       #F97316;
  --green:        #22C55E;
  --red:          #EF4444;
  --dark:         #0B0B18;
  --dark-2:       #13131F;
  --dark-3:       #1C1C2E;
  --card-bg:      #1A1A2C;
  --border:       rgba(255,255,255,0.08);
  --text-muted:   rgba(255,255,255,0.55);
  --grad-hero:    linear-gradient(135deg, #6C47FF 0%, #3B82F6 100%);
  --grad-warm:    linear-gradient(135deg, #F97316 0%, #EC4899 100%);
  --grad-cool:    linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
  --grad-green:   linear-gradient(135deg, #22C55E 0%, #06B6D4 100%);
  --grad-purple:  linear-gradient(135deg, #9333EA 0%, #6C47FF 100%);
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 40px rgba(108, 71, 255, 0.25);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark);
  color: #E2E8F0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: #a78bfa; text-decoration: none; }
a:hover { color: #c4b5fd; text-decoration: none; }

img { max-width: 100%; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  color: #F1F5F9;
  font-weight: 700;
  line-height: 1.25;
}

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

.gradient-text-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Navbar ---- */
.navbar {
  background: rgba(11, 11, 24, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar-brand span {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: rgba(255,255,255,0.75) !important;
  font-weight: 500;
  transition: color .2s;
  padding: 0.5rem 0.85rem !important;
}

.nav-link:hover, .nav-link.active {
  color: #fff !important;
}

.dropdown-menu {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  min-width: 220px;
}

.dropdown-item {
  color: rgba(255,255,255,0.8);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  transition: background .15s;
}

.dropdown-item:hover {
  background: rgba(108, 71, 255, 0.18);
  color: #fff;
}

.btn-nav-cta {
  background: var(--grad-hero);
  color: #fff !important;
  border-radius: 50px;
  padding: 0.45rem 1.25rem !important;
  font-weight: 600;
  transition: opacity .2s, transform .2s;
  border: none;
}

.btn-nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background: var(--dark-2);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,71,255,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(108,71,255,0.18);
  border: 1px solid rgba(108,71,255,0.35);
  color: #a78bfa;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---- Section ---- */
section { padding: 5rem 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ---- Cards ---- */
.card-dark {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}

.card-dark:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(108,71,255,0.35);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.tool-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}

/* ---- Tool color themes ---- */
.theme-doodly  { --t-color: #6C47FF; --t-bg: rgba(108,71,255,0.15); }
.theme-toonly  { --t-color: #F97316; --t-bg: rgba(249,115,22,0.15); }
.theme-talkia  { --t-color: #06B6D4; --t-bg: rgba(6,182,212,0.15); }
.theme-people  { --t-color: #EC4899; --t-bg: rgba(236,72,153,0.15); }
.theme-pyks    { --t-color: #22C55E; --t-bg: rgba(34,197,94,0.15); }
.theme-voomly  { --t-color: #3B82F6; --t-bg: rgba(59,130,246,0.15); }

[class*="theme-"] .card-icon { background: var(--t-bg); color: var(--t-color); }
[class*="theme-"] .tool-tag  { background: var(--t-bg); color: var(--t-color); }
[class*="theme-"] .card-dark:hover { box-shadow: 0 0 40px color-mix(in srgb, var(--t-color) 20%, transparent); }

/* ---- Comparison Table ---- */
.compare-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
}

.compare-table thead th {
  background: var(--dark-3);
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table thead th:first-child { text-align: left; }

.compare-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.compare-table tbody tr:last-child { border-bottom: none; }

.compare-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.compare-table td {
  padding: 0.9rem 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}

.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #E2E8F0;
}

.icon-yes  { color: var(--green); font-size: 1.1rem; }
.icon-no   { color: var(--red);   font-size: 1.1rem; }
.icon-part { color: var(--orange); font-size: 1rem; }

.col-winner {
  background: rgba(108,71,255,0.08);
  position: relative;
}

.winner-badge {
  display: inline-block;
  background: var(--grad-hero);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---- Verdict box ---- */
.verdict-box {
  background: linear-gradient(135deg, rgba(108,71,255,0.12) 0%, rgba(59,130,246,0.12) 100%);
  border: 1px solid rgba(108,71,255,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
}

.verdict-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

/* ---- Feature list ---- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.feature-list li .fi { flex-shrink: 0; margin-top: 0.15rem; }
.feature-list .fi-yes  { color: var(--green); }
.feature-list .fi-no   { color: var(--red); }

/* ---- Stat chip ---- */
.stat-chip {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.stat-chip .value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-chip .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- FAQ ---- */
.faq-wrap .accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-wrap .accordion-button {
  background: var(--card-bg);
  color: #F1F5F9;
  font-weight: 600;
  font-size: 0.97rem;
  box-shadow: none;
  padding: 1.1rem 1.5rem;
}

.faq-wrap .accordion-button:not(.collapsed) {
  background: rgba(108,71,255,0.1);
  color: #a78bfa;
}

.faq-wrap .accordion-button::after {
  filter: invert(1) brightness(0.7);
}

.faq-wrap .accordion-body {
  background: var(--card-bg);
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  padding: 0 1.5rem 1.25rem;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(108,71,255,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card {
  background: linear-gradient(135deg, rgba(108,71,255,0.15) 0%, rgba(59,130,246,0.15) 100%);
  border: 1px solid rgba(108,71,255,0.3);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,71,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Buttons ---- */
.btn-primary-grad {
  background: var(--grad-hero);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
}

.btn-primary-grad:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,71,255,0.4);
  color: #fff;
  text-decoration: none;
}

.btn-outline-light-custom {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all .2s;
  text-decoration: none;
}

.btn-outline-light-custom:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  text-decoration: none;
}

/* ---- Keyword pills ---- */
.kw-pill {
  display: inline-block;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 0.25rem 0.75rem;
  margin: 0.2rem;
}

/* ---- Comparison hero (2-col) ---- */
.vs-hero {
  background: var(--dark-2);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.vs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(108,71,255,0.25) 0%, transparent 65%);
}

.vs-badge {
  width: 52px; height: 52px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tool-vs-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  flex: 1;
}

/* ---- Score bar ---- */
.score-bar-wrap { margin-bottom: 0.6rem; }

.score-bar-wrap .label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
  color: rgba(255,255,255,0.7);
}

.score-bar {
  height: 8px;
  background: var(--dark-3);
  border-radius: 50px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: var(--grad-hero);
}

/* ---- Breadcrumb ---- */
.breadcrumb-dark {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--dark-2);
}

.breadcrumb-dark .breadcrumb {
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb-dark .breadcrumb-item a { color: #a78bfa; }
.breadcrumb-dark .breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ---- Footer ---- */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

footer .footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #F1F5F9;
}

footer p { color: var(--text-muted); font-size: 0.88rem; }

footer .footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.4rem;
  transition: color .15s;
}

footer .footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Scroll Animations ---- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--anim-delay, 0s);
}

.anim-fade-up.anim-in {
  opacity: 1;
  transform: translateY(0);
}

.score-bar-fill {
  transition: width 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Misc ---- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.bg-dark-2 { background: var(--dark-2); }
.bg-dark-3 { background: var(--dark-3); }

.rounded-pill-sm { border-radius: 50px; }

.text-muted-custom { color: var(--text-muted) !important; }

@media (max-width: 576px) {
  .hero { padding: 4rem 0 3rem; }
  section { padding: 3.5rem 0; }
  .cta-card { padding: 2.5rem 1.5rem; }
}
