/* =========================================================
   PROVALO.AI – Global Styles
   ========================================================= */

/* --- Brand design tokens --- */
:root {
  /* Legacy palette (if you still use it anywhere) */
  --brand: #111827;
  --accent: #2563EB;
  --muted: #6B7280;

  /* Backgrounds (primary) */
  --pv-bg-deep-indigo: #1C1F4A;
  --pv-bg-midnight:    #0C0C0F;

  /* Text (secondary) */
  --pv-text-light: #E8E8EC;
  --pv-text-white: #FFFFFF;

  /* Accent / CTA options */
  --pv-accent-pink-soft:   #DCABBE;
  --pv-accent-pink-strong: #B34B73;
  --pv-accent-orange:      #C4941D;
  --pv-accent-green:       #008121;

  /* Defaults in use */
  --pv-body-bg:      var(--pv-bg-deep-indigo);
  --pv-body-color:   var(--pv-text-light);
  --pv-primary-accent:      var(--pv-accent-pink-strong);
  --pv-primary-accent-soft: var(--pv-accent-pink-soft);
}

/* Smooth scroll for anchors */
html,
body {
  scroll-behavior: smooth;
}

/* Global typography */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--pv-body-bg);
  color: var(--pv-body-color);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Text / contrast defaults on dark background */
.text-muted {
  color: rgba(232, 232, 236, 0.78) !important;
}

.small {
  font-size: 0.875em;
  color: rgba(232, 232, 236, 0.7);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Utility for page heroes (inner pages) */
.pt-6 {
  padding-top: 6rem;
}

/* Badges / pills */
.badge-pill {
  border-radius: 9999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

/* Eyebrow label */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Light sections (e.g. contact, alternating blocks) */
.bg-light {
  background-color: #f3f4f6 !important;
  color: #111827;
}

.bg-light .text-muted,
.bg-light .small {
  color: #4b5563 !important;
}

/* --- Navbar --- */

.navbar-transparent {
  background: transparent !important;
  transition: background 0.25s, box-shadow 0.25s;
}

.navbar-transparent .nav-link {
  color: #ffffff !important;
  opacity: 0.9;
}

.navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .nav-link {
  color: #111827 !important;
}

.navbar.scrolled .navbar-brand img {
  filter: none;
}

/* Logo switch visibility */
.logo-dark {
  display: none;
}
.navbar.scrolled .logo-light {
  display: none;
}
.navbar.scrolled .logo-dark {
  display: inline-block;
}

/* Brand micro-tuning */
.navbar-brand strong {
  letter-spacing: 0.5px;
}

.navbar-brand img {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* --- Hero --- */

.hero {
  position: relative;
  background: #0b1020;
  color: #ffffff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-full {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero video,
.hero-full video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: grayscale(10%);
}

/* If you want an overlay, uncomment and add .hero-overlay in HTML
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55));
}
*/

.hero-center {
  position: relative;
  z-index: 2;
}

.hero .content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 3rem 1rem;
}

.hero-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.hero-play:hover {
  transform: scale(1.05);
}

/* Hero preview card on the right */
.hero-preview-card {
  background: rgba(12, 12, 15, 0.75);
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

/* Ensure hero CTAs don’t wrap badly */
.hero-cta-group .btn {
  white-space: nowrap;
}

/* --- Buttons --- */

/* Brand primary button – rounded + gradient */
.btn-primary {
  background-image: linear-gradient(
    135deg,
    var(--pv-primary-accent) 0%,
    var(--pv-primary-accent-soft) 100%
  );
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding-inline: 1.75rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background-image: linear-gradient(
    135deg,
    var(--pv-primary-accent-soft) 0%,
    var(--pv-primary-accent) 100%
  );
  border: none;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.35);
}

/* Outline button on dark backgrounds */
.btn-outline-light {
  border-radius: 999px;
  font-weight: 500;
  padding-inline: 1.75rem;
}

/* --- Cards, placeholders, team --- */

/* Base value card */
.value-card {
  position: relative;
  height: 100%;
  border-radius: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  isolation: isolate;
}

/* Force dark text on white cards for readability */
.value-card,
.value-card h3,
.value-card h5,
.value-card p,
.value-card .small {
  color: #111827;
}

/* Gradient border on hover */
.value-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(123, 167, 255, 0.5), rgba(160, 227, 255, 0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
  border-color: rgba(123, 167, 255, 0.35);
}

.value-card:hover::after {
  opacity: 0.9;
}

/* Icon circle */
.icon-circle {
  flex: 0 0 48px;
  height: 48px;
  width: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #3d5cff;
  background: radial-gradient(120% 120% at 0% 0%, #eaf0ff 0%, #f5f7ff 50%, #eef3ff 100%);
  border: 1px solid rgba(61, 92, 255, 0.25);
}

/* Team cards hover micro-interaction */
.team-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}

/* Logo wall (if/when added) */
.logo-wall img {
  max-height: 44px;
  margin: 12px;
  opacity: 0.85;
  filter: grayscale(100%);
}

/* Placeholder media blocks */
.object-fit-cover {
  object-fit: cover;
}

/* Pretty placeholder with subtle stripes and label */
.bg-placeholder {
  position: relative;
  background: linear-gradient(180deg, #e9edf3, #dfe5ee);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  overflow: hidden;
}

.bg-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.06),
    rgba(0, 0, 0, 0.06) 12px,
    rgba(255, 255, 255, 0.08) 12px,
    rgba(255, 255, 255, 0.08) 24px
  );
}

.ph-label {
  position: absolute;
  inset: auto 0 8px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Step numbers (used on How It Works) */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA band (full-width callouts) */
.cta-band {
  background: linear-gradient(120deg, #111827, #1f2937 60%, #0b1020);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Footer --- */

footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* --- Dark mode support for value cards / icons (optional) --- */

@media (prefers-color-scheme: dark) {
  .value-card {
    background: #141821;
    border-color: #262b3d;
    color: #e5e7eb;
  }
  .value-card h3,
  .value-card h5,
  .value-card p,
  .value-card .small {
    color: #e5e7eb;
  }
  .value-card:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
  }
  .icon-circle {
    background: radial-gradient(120% 120% at 0% 0%, #1a1f33 0%, #1f2540 50%, #1b2140 100%);
    color: #9fc0ff;
    border-color: #33417a;
  }
}

.card-lightbox {
  color: #111827 !important;
}

.card-lightbox h1,
.card-lightbox h2,
.card-lightbox h3,
.card-lightbox h4,
.card-lightbox h5,
.card-lightbox p,
.card-lightbox span,
.card-lightbox small,
.card-lightbox .text-muted,
.card-lightbox .small {
  color: #111827 !important;
}

/* =========================================================
   PRICING CARDS – equal height + aligned bottom buttons
   ========================================================= */

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.5rem;
}

.pricing-card-body {
  flex: 1 1 auto;        /* stretch this part */
}

.pricing-card-footer {
  margin-top: 1.5rem;    /* space above button */
}

/* Optional: highlighted middle plan */
.pricing-card-highlight {
  background: #2A2F63;
  color: #F9FAFB;
  border-color: rgba(255, 255, 255, 0.45);
}

.pricing-card-highlight .small,
.pricing-card-highlight p,
.pricing-card-highlight li,
.pricing-card-highlight h2,
.pricing-card-highlight h5 {
  color: #F9FAFB;
}

/* =========================================================
   PAGE HERO – static image + overlay + text
   Used on inner pages: Pricing, Product, How It Works, About, Contact
   ========================================================= */

.page-hero {
  position: relative;
  padding: 7rem 0 4rem;   /* space for navbar + hero */
  color: #ffffff;
  background-color: #1C1F4A;  /* fallback if image not loaded */
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;                  /* image is subtle, text readable */
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 55%),
              linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 55%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Slightly tighter hero on very small screens */
@media (max-width: 575.98px) {
  .page-hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}

/* =========================================================
   HOW-IT-WORKS STEP CARDS
   ========================================================= */

.hiw-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(4px);
}

.hiw-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.2);
}

.step-number {
  height: 38px;
  width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.5rem;
}