/* ============================================================
   Quizontal Cloud — v3 modern skin (loaded AFTER styles.css)
   Overrides + new components: page heroes, product trios,
   hosting cards, compare tables, pricing nav, dark bands,
   reveal animations. Existing classes keep working underneath.
   ============================================================ */

:root {
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --ink: #14101f;
  --dark: #150a26;
  --dark-2: #1d0f33;
  --grad: linear-gradient(135deg, var(--pink), var(--violet-2));
  --grad-soft: linear-gradient(135deg, rgba(227, 28, 100, .12), rgba(168, 85, 247, .12));
  --ring: 0 0 0 3px var(--pink-soft);
  --ease: cubic-bezier(.22, .72, .24, 1);
}

/* ---------- Base polish ---------- */
body { background: #f8f7fc; }
::selection { background: var(--pink); color: #fff; }
h1, h2, h3 { text-wrap: balance; }

/* subtle page mesh behind the glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52rem 32rem at 85% -10%, rgba(227, 28, 100, .07), transparent 60%),
    radial-gradient(46rem 30rem at -12% 30%, rgba(124, 58, 237, .07), transparent 55%),
    radial-gradient(40rem 40rem at 55% 115%, rgba(227, 28, 100, .05), transparent 60%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 34px rgba(21, 10, 38, .07);
}
.nav-menu a { position: relative; }
.nav-menu a.nav-active { color: var(--pink); }
@media (min-width: 701px) {
  .nav-menu a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transition: right .22s var(--ease);
  }
  .nav-menu a:hover::after, .nav-menu a.nav-active::after { right: 0; }
}

/* ---------- Buttons ---------- */
.button { letter-spacing: .01em; }
.button-primary {
  background: var(--grad);
  border: 0;
  box-shadow: 0 12px 30px rgba(227, 28, 100, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.button-primary:hover {
  background: var(--grad);
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(227, 28, 100, .36), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.button-primary:active { transform: translateY(0); }
.button-ghost { background: #fff; }
.button-ghost:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); box-shadow: var(--ring); }
.button-small { padding: 8px 13px; font-size: 12.5px; }
.button:focus-visible, .category-tab:focus-visible, .tool-chip:focus-visible, a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { text-align: center; padding: 84px 0 30px; position: relative; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font: 700 clamp(38px, 5.4vw, 60px)/1.06 var(--display); letter-spacing: -.04em; margin: 18px auto 18px; max-width: 780px; }
.page-hero h1 em, .hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero > p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 640px; margin: 0 auto 30px; }

/* stat chips under heroes */
.chip-stat-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip-stat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; color: #333943;
  box-shadow: 0 6px 18px rgba(21, 10, 38, .05);
}
.chip-stat i { font-style: normal; color: var(--pink); }
.chip-stat b { font-family: var(--display); }

/* ---------- Product trio ---------- */
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio-card {
  position: relative; overflow: hidden;
  padding: 30px; border-radius: 20px;
  background: #fff; border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.trio-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad); opacity: 0; transition: opacity .3s ease;
}
.trio-card:hover { transform: translateY(-6px); border-color: rgba(227, 28, 100, .35); box-shadow: 0 24px 55px rgba(21, 10, 38, .11); }
.trio-card:hover::before { opacity: 1; }
.trio-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px; color: var(--pink);
  background: var(--grad-soft); border: 1px solid rgba(227, 28, 100, .18);
  margin-bottom: 20px;
}
.trio-card h3 { font: 600 22px var(--display); margin: 0 0 6px; letter-spacing: -.02em; }
.trio-tag { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 16px; }
.trio-from { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.trio-from b { display: block; font: 700 30px var(--display); color: var(--text); letter-spacing: -.02em; margin-top: 2px; text-transform: none; }
.trio-from b small { font: 400 13px var(--body); color: var(--muted); }
.trio-feats { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.trio-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #3b4048; }
.trio-feats .check { color: var(--pink); font-weight: 700; flex: none; }
.trio-card .button { width: 100%; }

/* ---------- Hosting plan cards ---------- */
.hosting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.h-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 27px; border-radius: 20px;
  background: #fff; border: 1.5px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.h-card:hover { transform: translateY(-6px); box-shadow: 0 24px 55px rgba(21, 10, 38, .12); }
.h-card.featured {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: 0 26px 60px rgba(227, 28, 100, .16);
}
.h-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; white-space: nowrap;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(227, 28, 100, .35);
}
.h-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--pink); background: var(--grad-soft); border: 1px solid rgba(227, 28, 100, .18); margin-bottom: 16px; }
.h-card h3 { font: 600 21px var(--display); margin: 0 0 4px; }
.h-note { color: var(--muted); font-size: 13px; margin: 0 0 16px; min-height: 20px; }
.h-price { font: 700 38px var(--display); letter-spacing: -.03em; margin-bottom: 18px; }
.h-price small { font: 400 14px var(--body); color: var(--muted); letter-spacing: 0; }
.h-mini { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 12px 6px; border-radius: 12px; background: var(--surface-2); margin-bottom: 18px; }
.h-mini b { display: block; font: 700 14px var(--display); }
.h-mini span { font-size: 10.5px; color: var(--muted); }
.h-feats { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.h-feats li { display: flex; gap: 10px; font-size: 13.5px; color: #3b4048; align-items: flex-start; }
.h-feats .check { color: var(--pink); font-weight: 700; flex: none; }
.h-feats .no { color: #b9bec7; text-decoration: line-through; }
.h-feats .no .check { color: #d03b3b; }
.h-card .button { width: 100%; margin-top: auto; }
.h-skel { height: 430px; border-radius: 20px; background: linear-gradient(100deg, #eef0f4 35%, #fafbfd 50%, #eef0f4 65%); background-size: 200% 100%; animation: h-shimmer 1.3s infinite; border: 1px solid var(--border); }
@keyframes h-shimmer { to { background-position: -200% 0; } }
.hosting-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); background: #fff; box-shadow: 0 14px 40px rgba(21, 10, 38, .05); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare-table th, .compare-table td { padding: 15px 20px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-family: var(--display); font-size: 15px; background: var(--surface-2); }
.compare-table thead th.head-pro { color: var(--pink); }
.compare-table tbody tr:hover { background: var(--pink-soft); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { color: var(--muted); font-weight: 600; }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no { color: #d03b3b; font-weight: 700; }
.compare-table .pills { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--pink-soft); color: var(--pink); font-size: 11px; font-weight: 700; }

/* ---------- Pricing page ---------- */
.pricing-nav { position: sticky; top: 76px; z-index: 30; display: flex; gap: 8px; justify-content: center; padding: 14px 10px; margin: 10px 0 20px; }
.pricing-nav a {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700; color: #4a5058; transition: .2s;
  box-shadow: 0 6px 16px rgba(21, 10, 38, .05);
}
.pricing-nav a:hover { border-color: var(--pink); color: var(--pink); }
.pricing-nav a i { font-style: normal; margin-right: 7px; }
.catalog-note.center { text-align: center; margin: 0 auto 22px; max-width: 640px; }

/* ---------- Dark band (final CTA) ---------- */
.band-dark {
  position: relative; overflow: hidden;
  background: radial-gradient(60rem 30rem at 80% -20%, rgba(124, 58, 237, .35), transparent 60%), radial-gradient(50rem 26rem at 10% 120%, rgba(227, 28, 100, .3), transparent 60%), var(--dark);
  color: #fff;
  border-radius: 26px;
  padding: 70px 60px;
  margin-bottom: 105px;
}
.band-dark h2 { color: #fff; }
.band-dark p { color: rgba(255, 255, 255, .68); }
.band-dark .section-kicker { color: #ff8fb8; }
.band-dark .button-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.band-dark .button-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); box-shadow: none; }

/* ---------- Dark footer ---------- */
.site-footer { background: linear-gradient(180deg, #180b2b, var(--dark)); color: rgba(255, 255, 255, .72); }
.site-footer .footer-grid > div > p { color: rgba(255, 255, 255, .55); }
.site-footer .footer-grid strong { color: #fff; }
.site-footer .footer-grid a { color: rgba(255, 255, 255, .72); }
.site-footer .footer-grid a:hover { color: var(--pink); }
.site-footer .footer-meta { color: rgba(255, 255, 255, .5); }
.site-footer .footer-status { color: rgba(255, 255, 255, .66); }

/* ---------- Component refinements ---------- */
.plan.featured { border-width: 1.5px; border-color: var(--pink); box-shadow: 0 22px 50px rgba(227, 28, 100, .13); }
.plan-badge { background: var(--grad); font-weight: 700; }
.plan:hover { box-shadow: 0 24px 55px rgba(21, 10, 38, .12); }
.plans-table .price-cell { color: var(--pink-2); font-weight: 700; }
.feature-icon { background: var(--grad-soft); border: 1px solid rgba(227, 28, 100, .16); color: var(--pink); }
.category-tab.active { color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(227, 28, 100, .25); }
.section-surface { background: #f1eff8; }
.steps-grid article span { background: var(--grad-soft); color: var(--pink); border: 1px solid rgba(227, 28, 100, .16); }
.step-icon { background: var(--grad-soft); border: 1px solid rgba(227, 28, 100, .16); color: var(--pink); }
.faq-list details { transition: box-shadow .2s ease, border-color .2s ease; }
.faq-list details[open] { border-color: rgba(227, 28, 100, .3); box-shadow: 0 10px 30px rgba(21, 10, 38, .06); }
.tld-card, .domain-result-card { transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease; }
.tld-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(21, 10, 38, .1); border-color: rgba(227, 28, 100, .3); }

/* hero float chip for hosting */
.hero-float {
  position: absolute; z-index: 4; padding: 13px 17px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(20, 22, 28, .88);
  backdrop-filter: blur(16px); box-shadow: var(--shadow); color: #fff;
  display: flex; gap: 10px; align-items: center;
}
.hero-float h-name { display: block; }
.hero-float small { display: block; color: #9aa1ad; font-size: 10px; }
.hero-float strong { display: block; font-size: 13px; margin-top: 2px; }
.hero-float .hf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.hosting-float { right: -6px; top: 64px; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.location-float { animation: floaty 7s ease-in-out infinite; }
.price-float { animation: floaty 6.5s ease-in-out infinite; }

/* dark hero copy colors (home hero sits on light mesh; keep text dark) */
.hero-copy p { color: var(--muted); }
.hero h1 { color: var(--ink); }

/* ---------- Domain page hero polish ---------- */
.domain-search-box { box-shadow: 0 18px 45px rgba(21, 10, 38, .08); }
.domain-search input:focus { outline: none; }
.domain-search-box:focus-within { border-color: var(--pink); box-shadow: var(--ring); }

/* ---------- Empty/skeleton states ---------- */
.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state h3 { color: var(--text); font: 600 19px var(--display); margin: 0 0 8px; }
.empty-state p { margin: 0; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hosting-grid, .trio-grid { grid-template-columns: 1fr 1fr; }
  .h-card.featured { order: -1; grid-column: 1 / -1; }
  .band-dark { padding: 56px 36px; }
}
@media (max-width: 860px) {
  .page-hero { padding: 60px 0 22px; }
  .compare-table, .plans-table { min-width: 640px; }
  .pricing-nav { top: 64px; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .hosting-grid, .trio-grid { grid-template-columns: 1fr; }
  .h-card.featured { grid-column: auto; order: 0; }
  .h-card.featured { box-shadow: 0 18px 44px rgba(227, 28, 100, .14); }
  .band-dark { padding: 44px 24px; border-radius: 20px; margin-bottom: 75px; }
  .chip-stat-row { gap: 8px; }
  .hosting-float { top: 14px; right: -4px; }
  .reveal { transform: translateY(18px); }
}
@media (max-width: 440px) {
  .h-price { font-size: 32px; }
  .band-dark { padding: 38px 20px; }
}

/* ---------- Shared toolbar controls (pricing page uses these too) ---------- */
.tld-filter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 11px; background: #fff; min-width: 240px; transition: .18s; }
.tld-filter:focus-within { border-color: var(--pink); box-shadow: var(--ring); }
.tld-filter span { color: var(--pink); font-weight: 700; }
.tld-filter input { border: 0; outline: 0; font: 500 13px var(--body); color: var(--text); background: transparent; width: 100%; }
.tool-select { padding: 9px 34px 9px 13px; border: 1px solid var(--border); border-radius: 11px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23e31c64' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center; -webkit-appearance: none; appearance: none; font: 600 12.5px var(--body); color: var(--text); cursor: pointer; transition: .18s; }
.tool-select:hover, .tool-select:focus { border-color: var(--pink); box-shadow: var(--ring); outline: none; }
.compare-table .head-pro { background: rgba(227, 28, 100, .035); }
.compare-table td.head-pro { color: var(--pink-2); }
