/* ============================================================
   LINK-AI — LIGHT THEME  (mostly white, dark text)
   ------------------------------------------------------------
   Loaded LAST, after every other stylesheet. Activated per-page
   by adding  class="theme-light"  to <body>. To revert a page to
   the original dark theme, remove that class (or remove the
   <link> to this file). Nothing here touches pages that don't
   opt in, so rollout is page-by-page and reversible.

   Phase 1: Homepage (index.html) reference conversion.
   ============================================================ */

:root {
  --lt-bg: #ffffff;
  --lt-bg-soft: #f7f8fc;
  --lt-ink: #1a1a2e; /* primary text */
  --lt-ink-soft: #5b6477; /* muted text  */
  --lt-border: rgba(15, 23, 42, 0.08);
  --lt-card: #ffffff;
  --lt-shadow:
    0 10px 30px rgba(20, 23, 42, 0.07), 0 2px 8px rgba(20, 23, 42, 0.04);
  --lt-shadow-hover: 0 18px 50px rgba(20, 23, 42, 0.14);
  --lt-accent: #6d4dff; /* brand purple-ish accent on white */
}

/* ------------------------------------------------------------
   1. BASE
   ------------------------------------------------------------ */
body.theme-light {
  background: var(--lt-bg);
  color: var(--lt-ink);
}

/* ------------------------------------------------------------
   2. HEADER / NAV  (was near-black, white text)
   ------------------------------------------------------------ */
body.theme-light .header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--lt-border) !important;
  box-shadow: 0 1px 14px rgba(20, 23, 42, 0.05) !important;
}
body.theme-light .nav-list a,
body.theme-light .dropdown-toggle {
  color: var(--lt-ink) !important;
}
body.theme-light .nav-list a:hover,
body.theme-light .dropdown-toggle:hover {
  color: var(--lt-accent) !important;
}
body.theme-light .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid var(--lt-border) !important;
  box-shadow: 0 12px 34px rgba(20, 23, 42, 0.12) !important;
}
body.theme-light .dropdown-menu a {
  color: var(--lt-ink) !important;
}
body.theme-light .dropdown-menu a:hover {
  color: var(--lt-accent) !important;
  background: rgba(109, 77, 255, 0.06) !important;
}
body.theme-light .lang-btn {
  color: var(--lt-ink-soft) !important;
}
body.theme-light .lang-btn.active {
  color: var(--lt-accent) !important;
}
body.theme-light .lang-divider {
  color: rgba(15, 23, 42, 0.25) !important;
}
body.theme-light .menu-toggle i {
  color: var(--lt-ink) !important;
}
/* keep the login button as the one strong colored CTA in the bar */

/* ------------------------------------------------------------
   3. HERO  (deep purple/black → soft light)
   ------------------------------------------------------------ */
body.theme-light .revolutionary-hero {
  background: linear-gradient(
    180deg,
    #f6f4fd 0%,
    #eef1fb 55%,
    #f7f8fc 100%
  ) !important;
}
/* dim the dark-tuned glow layers so they read as faint tints on white */
body.theme-light .revolutionary-hero::before {
  opacity: 0.55 !important;
}
body.theme-light .revolutionary-hero::after {
  opacity: 0.4 !important;
}

body.theme-light .hero-hook {
  color: var(--lt-accent) !important;
}
body.theme-light .hero-description {
  color: var(--lt-ink-soft) !important;
}

/* headline gradient was white→light-blue (invisible on white): re-point to a
   dark→accent gradient that pops on a light background */
body.theme-light .hero-title .title-main {
  background: linear-gradient(
    135deg,
    #4f46e5 0%,
    #7c3aed 45%,
    #06b6d4 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* scroll indicator */
body.theme-light .scroll-arrow span {
  color: var(--lt-ink-soft) !important;
}
body.theme-light .arrow-down {
  border-color: var(--lt-ink-soft) !important;
}

/* hero neural visual: rings/labels were tuned for dark — make them visible on white.
   (Most likely area to need a second pass.) */
body.theme-light .orbital-ring {
  border-color: rgba(124, 58, 237, 0.25) !important;
}
body.theme-light .fn-label {
  color: var(--lt-ink) !important;
}
body.theme-light .core-text-line1,
body.theme-light .core-text-line2 {
  color: var(--lt-accent) !important;
  -webkit-text-fill-color: var(--lt-accent) !important;
}
/* AI Hub orb: keep the rainbow morphing border (::before); its inner fill
   (::after) was near-black (rgba(5,10,20,.95)) → make it white on light */
body.theme-light .core-glass {
  background: transparent !important;
  border: none !important;
}
body.theme-light .core-glass::after {
  background: linear-gradient(
    145deg,
    #ffffff 0%,
    #f4f6fd 50%,
    #ffffff 100%
  ) !important;
}

/* ------------------------------------------------------------
   4. CONTENT SECTION BACKGROUNDS  (dark gradients → white)
   ------------------------------------------------------------ */
body.theme-light
  :is(
    .two-paths-section,
    .integrations-section,
    .ai-reality-section,
    .solutions-section-new,
    .departments-section-interactive,
    .faq-section-modern
  ) {
  background: #ffffff !important;
}
body.theme-light .pricing-section-dark {
  background: linear-gradient(180deg, #ffffff 0%, #f5f6fb 100%) !important;
}
body.theme-light .trusted-by-section {
  background: var(--lt-bg-soft) !important;
  border-top: 1px solid var(--lt-border) !important;
  border-bottom: 1px solid var(--lt-border) !important;
}

/* ------------------------------------------------------------
   5. TEXT  → dark.
   Scoped to header / section / footer / main so it reaches ALL
   copy — including classes I didn't enumerate — and kills every
   white-on-white case, while leaving modals (<div class="modal">,
   dark by design) untouched. Icons (<i>/<svg>) are intentionally
   excluded: the white icons sit on coloured gradient circles and
   must stay white. Gradient titles keep their gradient because
   they paint via -webkit-text-fill-color:transparent (we only set
   `color`, which such text ignores).
   ------------------------------------------------------------ */
body.theme-light :is(header, section, footer, main) {
  color: var(--lt-ink);
}
body.theme-light
  :is(header, section, footer, main)
  :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    ul,
    ol,
    blockquote,
    figcaption,
    dt,
    dd,
    th,
    td,
    caption,
    span,
    a,
    strong,
    em,
    small,
    b,
    u,
    label,
    address,
    time,
    cite,
    div
  ) {
  color: var(--lt-ink) !important;
}

/* muted / secondary copy (2 classes → wins over the scoped rule above) */
body.theme-light
  :is(
    .hero-description,
    .section-subtitle,
    .subtitle,
    .lead,
    .card-desc,
    .card-hint,
    .feature-desc,
    .path-desc,
    .dept-desc,
    .pricing-subtitle-dark,
    .pricing-note-dark,
    .trusted-by-label,
    .trust-badge-item,
    .integration-desc,
    .solution-desc,
    .solutions-cta-text,
    .muted,
    .text-muted
  ) {
  color: var(--lt-ink-soft) !important;
}

/* ------------------------------------------------------------
   5b. BUTTONS  (text colour must survive the force-dark above)
   ------------------------------------------------------------ */
/* Solid gradient / accent CTAs keep WHITE text + icon */
body.theme-light
  :is(
    .btn-revolutionary,
    .glow-btn,
    .login-submit-btn,
    .footer-contact-btn,
    .pricing-cta-dark
  ),
body.theme-light
  :is(
    .btn-revolutionary,
    .glow-btn,
    .login-submit-btn,
    .footer-contact-btn,
    .pricing-cta-dark
  )
  :is(span, i, .btn-text, .btn-icon) {
  color: #ffffff !important;
}

/* Ghost / light-tint buttons were transparent or dark-glass with white
   text → give them a light surface + dark text so they read on white */
body.theme-light :is(.btn-login-modern, .dept-panel-btn, .carousel-nav-btn) {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid var(--lt-border) !important;
  color: var(--lt-ink) !important;
}
body.theme-light
  :is(.btn-login-modern, .dept-panel-btn, .carousel-nav-btn)
  :is(span, i) {
  color: var(--lt-ink) !important;
}
body.theme-light
  :is(.btn-login-modern, .dept-panel-btn, .carousel-nav-btn):hover {
  background: rgba(15, 23, 42, 0.07) !important;
  border-color: rgba(109, 77, 255, 0.4) !important;
}

/* Faint-gradient CTA inside solution cards → accent-tinted, accent text */
body.theme-light .expanded-cta,
body.theme-light .expanded-cta :is(span, i) {
  background: rgba(109, 77, 255, 0.08) !important;
  border: 1px solid rgba(109, 77, 255, 0.22) !important;
  color: var(--lt-accent) !important;
}

/* ------------------------------------------------------------
   6. CARDS / GLASS PANELS  (dark glass → white + soft shadow)
   ------------------------------------------------------------ */
body.theme-light
  :is(
    .path-card-clean,
    .path-card,
    .pricing-card-dark,
    .pricing-card-content,
    .info-card-dark,
    .dept-display-card,
    .solution-expand-card,
    .card-inner,
    .glow-form-section,
    .reality-grid
  ) {
  background: #ffffff !important;
  border: 1px solid var(--lt-border) !important;
  box-shadow: var(--lt-shadow) !important;
}
body.theme-light
  :is(
    .path-card-clean,
    .pricing-card-dark,
    .info-card-dark,
    .dept-display-card,
    .solution-expand-card
  ):hover {
  box-shadow: var(--lt-shadow-hover) !important;
}
/* the pricing card's coloured "glow" outline → soft neutral shadow */
body.theme-light .pricing-card-glow {
  background: transparent !important;
  box-shadow: none !important;
}

/* light dividers where white hairlines were used */
body.theme-light
  :is(
    .integrations-section,
    .departments-section-interactive,
    .two-paths-section,
    .solutions-section-new,
    .pricing-section-dark,
    .faq-section-modern
  )
  [style*="rgba(255"],
body.theme-light hr {
  border-color: var(--lt-border) !important;
}

/* ------------------------------------------------------------
   7. FOOTER  (near-black → light)
   ------------------------------------------------------------ */
body.theme-light .footer-compact {
  background: linear-gradient(180deg, #f3f4fa 0%, #e9ebf4 100%) !important;
  border-top: 1px solid var(--lt-border) !important;
}
body.theme-light .footer-compact a {
  color: #3a4256 !important;
}
body.theme-light .footer-compact a:hover {
  color: var(--lt-accent) !important;
}
body.theme-light .footer-social-mini a {
  color: var(--lt-accent) !important;
}
body.theme-light .footer-tagline-mini,
body.theme-light .footer-copyright-mini,
body.theme-light .footer-credit-mini {
  color: var(--lt-ink-soft) !important;
}
body.theme-light .footer-divider {
  color: rgba(15, 23, 42, 0.2) !important;
}
body.theme-light .footer-contact-btn {
  background: var(--lt-accent) !important;
  color: #ffffff !important;
}

/* ------------------------------------------------------------
   8. "WHY QUALITY IMPLEMENTATION MATTERS" 3D CAROUSEL
   The visible card is .card-inner (white via §6). .carousel-card is
   only the 3D wrapper and .card-stat is text — neither should be a
   box (removed from §6). Restore their accent colouring on white.
   ------------------------------------------------------------ */
body.theme-light .carousel-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* The base/hover/active .card-inner all had translucent-white-over-dark
   (looked dark navy on the active card). Force solid white for every state
   — selectors here out-specify the original `.carousel-card.active .card-inner`. */
body.theme-light .carousel-card .card-inner,
body.theme-light .carousel-card:hover .card-inner {
  background: #ffffff !important;
  border: 1px solid var(--lt-border) !important;
  box-shadow: var(--lt-shadow) !important;
}
body.theme-light .carousel-card.active .card-inner {
  background: #ffffff !important;
  border: 1px solid rgba(109, 77, 255, 0.35) !important;
  box-shadow:
    0 20px 60px rgba(20, 23, 42, 0.16),
    0 0 0 1px rgba(109, 77, 255, 0.12) !important;
}
body.theme-light .card-number {
  color: var(--lt-accent) !important;
  opacity: 0.7;
}
body.theme-light .card-stat {
  color: var(--lt-accent) !important;
  text-shadow: none !important;
}

/* ------------------------------------------------------------
   9. LOGO  (white wordmark → black on the light header/footer)
   ------------------------------------------------------------ */
body.theme-light .logo-img,
body.theme-light .footer-logo-img {
  filter: brightness(0) saturate(100%) !important;
}

/* ------------------------------------------------------------
   10. "WORKS SEAMLESSLY WITH" INTEGRATIONS CAROUSEL
   Boxes were dark glass (rgba(15,23,42,.8)) and every icon shared one
   cyan→purple gradient. Per request: no box background, real brand
   colours on the logos.
   ------------------------------------------------------------ */
/* recuadros sin fondo */
body.theme-light .integration-item,
body.theme-light .integration-item:hover {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* drop the shared gradient so each logo can paint its own colour;
   `currentColor` makes the glyph follow `color`. Generic (non-brand)
   icons fall back to a neutral slate. */
body.theme-light .integration-item i {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: #475569 !important;
}

/* real brand colours (out-specify the generic rule above) */
body.theme-light .integration-item i.fa-slack {
  color: #36c5f0 !important;
}
body.theme-light .integration-item i.fa-shopify {
  color: #95bf47 !important;
}
body.theme-light .integration-item i.fa-aws {
  color: #ff9900 !important;
}
body.theme-light .integration-item i.fa-google {
  color: #4285f4 !important;
}
body.theme-light .integration-item i.fa-microsoft {
  color: #0078d4 !important;
}
body.theme-light .integration-item i.fa-stripe {
  color: #635bff !important;
}
body.theme-light .integration-item i.fa-wordpress {
  color: #21759b !important;
}
body.theme-light .integration-item i.fa-node-js {
  color: #339933 !important;
}
/* generic (non-brand) icons → give each its own vivid colour
   instead of the flat slate fallback */
body.theme-light .integration-item i.fa-table {
  color: #0f9d58 !important;
} /* Spreadsheets */
body.theme-light .integration-item i.fa-code {
  color: #f9ab00 !important;
} /* AppScript */
body.theme-light .integration-item i.fa-brain {
  color: #8b5cf6 !important;
} /* RAG */
body.theme-light .integration-item i.fa-database {
  color: #0891b2 !important;
} /* Databases */

/* ------------------------------------------------------------
   10b. CAROUSEL 2 — AI PLATFORMS (SVG brand logos)
   These are monochrome <svg class="brand-logo"> that ALL shared one
   purple gradient (fill: url(#icon-gradient)). No per-brand class
   exists, but the 12-item order repeats twice, so nth-child(12n+k)
   targets each brand. We override `fill` (incl. on hover) with the
   real brand colour. Order: OpenAI, ChatGPT, Gemini, Claude,
   Perplexity, Mercado Libre, HubSpot, Salesforce, Zapier, Make, n8n,
   APIs.
   ------------------------------------------------------------ */
body.theme-light .integrations-track-reverse .integration-item .brand-logo,
body.theme-light
  .integrations-track-reverse
  .integration-item
  .brand-logo
  path {
  transition: fill 0.3s ease;
}
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 1)
  :is(.brand-logo, .brand-logo path) {
  fill: #202123 !important;
} /* OpenAI */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 2)
  :is(.brand-logo, .brand-logo path) {
  fill: #10a37f !important;
} /* ChatGPT */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 3)
  :is(.brand-logo, .brand-logo path) {
  fill: #4285f4 !important;
} /* Gemini */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 4)
  :is(.brand-logo, .brand-logo path) {
  fill: #d97757 !important;
} /* Claude */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 5)
  :is(.brand-logo, .brand-logo path) {
  fill: #20808d !important;
} /* Perplexity */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 6)
  :is(.brand-logo, .brand-logo path) {
  fill: #3483fa !important;
} /* Mercado Libre */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 7)
  :is(.brand-logo, .brand-logo path) {
  fill: #ff7a59 !important;
} /* HubSpot */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 8)
  :is(.brand-logo, .brand-logo path) {
  fill: #00a1e0 !important;
} /* Salesforce */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 9)
  :is(.brand-logo, .brand-logo path) {
  fill: #ff4f00 !important;
} /* Zapier */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 10)
  :is(.brand-logo, .brand-logo path) {
  fill: #6d00cc !important;
} /* Make */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n + 11)
  :is(.brand-logo, .brand-logo path) {
  fill: #ea4b71 !important;
} /* n8n */
body.theme-light
  .integrations-track-reverse
  .integration-item:nth-child(12n)
  :is(.brand-logo, .brand-logo path) {
  fill: #f97316 !important;
} /* APIs (generic) */
