
/* =========================================================
   CoreDriveAI public-page premium harmonization layer
   Keeps existing page content and functionality intact.
   ========================================================= */

body.premium-public-page {
  isolation: isolate;
}

body.premium-public-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 7%, rgba(139, 92, 246, .15), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(34, 211, 238, .10), transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(236, 72, 153, .07), transparent 30%);
}

body.premium-public-page .site-header {
  box-shadow: 0 16px 50px rgba(0,0,0,.14);
}

body.premium-public-page .nav a[aria-current="page"] {
  color: var(--text);
}

body.premium-public-page .nav a[aria-current="page"]::after {
  width: 70%;
}

body.premium-public-page h1,
body.premium-public-page h2,
body.premium-public-page h3 {
  text-wrap: balance;
}

body.premium-public-page .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(124,58,237,.08);
  font-size: 11px;
  letter-spacing: .10em;
}

body.light.premium-public-page .eyebrow {
  color: #6d28d9;
}

body.premium-public-page .page-hero,
body.premium-public-page .products-hero,
body.premium-public-page .pricing-hero,
body.premium-public-page .contact-hero,
body.premium-public-page .about-hero,
body.premium-public-page .docs-hero {
  position: relative;
  overflow: hidden;
}

body.premium-public-page .page-hero::before,
body.premium-public-page .products-hero::before,
body.premium-public-page .pricing-hero::before,
body.premium-public-page .contact-hero::before,
body.premium-public-page .about-hero::before,
body.premium-public-page .docs-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 320px;
  left: 50%;
  top: -170px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(124,58,237,.18);
  filter: blur(80px);
  pointer-events: none;
}

body.premium-public-page .products-hero h1,
body.premium-public-page .pricing-hero h1,
body.premium-public-page .contact-hero h1,
body.premium-public-page .about-hero h1,
body.premium-public-page .docs-hero h1 {
  color: transparent;
  background: linear-gradient(90deg, var(--text), #7dd3fc 48%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
}

body.premium-public-page .intro-card,
body.premium-public-page .product-panel,
body.premium-public-page .value-card,
body.premium-public-page .comparison-card,
body.premium-public-page .products-faq,
body.premium-public-page .about-card,
body.premium-public-page .about-story-card,
body.premium-public-page .docs-sidebar,
body.premium-public-page .docs-quick-card,
body.premium-public-page .docs-section,
body.premium-public-page .contact-department-card,
body.premium-public-page .contact-form-card,
body.premium-public-page .contact-service-card {
  border-color: rgba(148,163,184,.15);
  box-shadow: 0 22px 65px rgba(0,0,0,.23);
}

body.premium-public-page .product-panel,
body.premium-public-page .intro-card,
body.premium-public-page .value-card,
body.premium-public-page .about-card,
body.premium-public-page .docs-quick-card,
body.premium-public-page .contact-department-card,
body.premium-public-page .contact-service-card {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

body.premium-public-page .product-panel:hover,
body.premium-public-page .intro-card:hover,
body.premium-public-page .value-card:hover,
body.premium-public-page .about-card:hover,
body.premium-public-page .docs-quick-card:hover,
body.premium-public-page .contact-department-card:hover,
body.premium-public-page .contact-service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(56,189,248,.40);
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
}

body.premium-public-page .product-visual {
  position: relative;
  isolation: isolate;
}

body.premium-public-page .product-visual::after {
  content: "";
  position: absolute;
  inset: 12% 17%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(59,130,246,.12);
  filter: blur(35px);
}

body.premium-public-page .product-window {
  transform: perspective(900px) rotateX(2deg);
  transition: transform .28s ease, box-shadow .28s ease;
}

body.premium-public-page .product-panel:hover .product-window {
  transform: perspective(900px) rotateX(0) translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
}

body.premium-public-page .feature-list li,
body.premium-public-page .about-list li {
  position: relative;
}

body.premium-public-page .platform-card,
body.premium-public-page .products-cta,
body.premium-public-page .about-story-card {
  border-color: rgba(139,92,246,.25);
  background:
    radial-gradient(circle at 0 0, rgba(139,92,246,.17), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(34,211,238,.10), transparent 31%),
    linear-gradient(145deg, rgba(15,23,42,.90), rgba(5,11,25,.82));
}

body.light.premium-public-page .platform-card,
body.light.premium-public-page .products-cta,
body.light.premium-public-page .about-story-card {
  background:
    radial-gradient(circle at 0 0, rgba(139,92,246,.10), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(34,211,238,.07), transparent 31%),
    rgba(255,255,255,.90);
}

body.premium-public-page .comparison-table th {
  background: rgba(124,58,237,.10);
}

body.premium-public-page details[open] {
  border-color: rgba(56,189,248,.26);
}

body.premium-public-page summary {
  position: relative;
}

body.premium-public-page .contact-card-icon,
body.premium-public-page .about-card-icon,
body.premium-public-page .docs-section-icon,
body.premium-public-page .product-icon {
  box-shadow: 0 14px 32px rgba(14,165,233,.12);
}

body.premium-public-page .docs-search {
  min-height: 58px;
  box-shadow: 0 24px 75px rgba(0,0,0,.25);
}

body.premium-public-page .docs-nav a {
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

body.premium-public-page .docs-nav a:hover {
  transform: translateX(3px);
}

body.premium-public-page .footer {
  margin-top: 30px;
}

/* Pricing page's self-contained navigation and cards */
body.premium-public-page .pricing-header {
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
}

body.premium-public-page .pricing-brand img {
  filter: drop-shadow(0 10px 22px rgba(124,58,237,.35));
}

body.premium-public-page .plan-card {
  overflow: hidden;
}

body.premium-public-page .plan-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: rgba(56,189,248,.08);
  filter: blur(22px);
  pointer-events: none;
}

body.premium-public-page .plan-card.featured::before {
  background: rgba(168,85,247,.17);
}

body.premium-public-page .plan-button {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.premium-public-page .plan-button:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.42);
  box-shadow: 0 15px 38px rgba(37,99,235,.18);
}

/* Authenticated support page polish without changing its data logic */
body.premium-support-page {
  background:
    radial-gradient(circle at 80% 0, rgba(37,99,235,.13), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(124,58,237,.11), transparent 30%),
    #050914;
}

body.premium-support-page .dash-content {
  max-width: 1500px;
  width: 100%;
  margin-inline: auto;
}

body.premium-support-page .support-stat,
body.premium-support-page .support-panel,
body.premium-support-page .ticket-card,
body.premium-support-page .knowledge-card,
body.premium-support-page .product-support-card,
body.premium-support-page .status-card {
  border-color: rgba(148,163,184,.14);
  background: linear-gradient(145deg, rgba(15,23,42,.78), rgba(7,13,28,.64));
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

body.premium-support-page .support-stat,
body.premium-support-page .ticket-card,
body.premium-support-page .knowledge-card,
body.premium-support-page .product-support-card,
body.premium-support-page .status-card {
  transition: transform .22s ease, border-color .22s ease;
}

body.premium-support-page .support-stat:hover,
body.premium-support-page .ticket-card:hover,
body.premium-support-page .knowledge-card:hover,
body.premium-support-page .product-support-card:hover,
body.premium-support-page .status-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.34);
}

@media (max-width: 760px) {
  body.premium-public-page .products-hero,
  body.premium-public-page .pricing-hero,
  body.premium-public-page .contact-hero,
  body.premium-public-page .about-hero,
  body.premium-public-page .docs-hero {
    padding-top: 76px;
  }
}

/* =========================================================
   Public header action visibility fix
   Desktop: show only .header-actions
   Mobile: show only .mobile-nav-actions inside the open menu
   ========================================================= */
body.premium-public-page .mobile-nav-actions {
  display: none !important;
}

body.premium-public-page .header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 900px) {
  body.premium-public-page .header-actions > a {
    display: none !important;
  }

  body.premium-public-page .mobile-nav-actions {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
  }

  body.premium-public-page .mobile-nav-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   Documentation heading spacing fix
   Restores normal spaces in dynamic and static documentation headings.
   ========================================================= */
body.premium-public-page .docs-content h1,
body.premium-public-page .docs-content h2,
body.premium-public-page .docs-content h3,
body.premium-public-page .docs-content h4,
body.premium-public-page .docs-quick-card h3,
body.premium-public-page .docs-section h2,
body.premium-public-page .docs-step h3,
body.premium-public-page .docs-trouble-card h3,
body.premium-public-page .docs-article-card h2,
body.premium-public-page .docs-article-card h3 {
  word-spacing: normal !important;
  letter-spacing: normal !important;
  white-space: normal !important;
}
