/* LeadFlow portfolio theme continuation
   Loaded after page-specific styles so every existing route uses one system. */

:root {
  --lf-canvas: #0c0c0c;
  --lf-surface: #11141b;
  --lf-surface-soft: rgba(17, 20, 27, .82);
  --lf-silver: #d7e2ea;
  --lf-silver-deep: #646973;
  --lf-copy: #aeb8c3;
  --lf-line: rgba(215, 226, 234, .14);
  --lf-blue: #7fb5ff;
  --lf-violet: #b600a8;
  --lf-orange: #ff765c;
}

body {
  background: var(--lf-canvas);
  color: var(--lf-silver);
  font-family: "Kanit", Inter, ui-sans-serif, system-ui, sans-serif;
}

main {
  background: var(--lf-canvas);
}

/* Shared chrome */
.topbar {
  background: linear-gradient(90deg, #111823 0%, #111421 48%, #190d21 100%);
  color: var(--lf-copy);
  box-shadow: inset 0 -1px 0 var(--lf-line);
}

.topbar a,
.topbar-contact a {
  color: var(--lf-silver);
  letter-spacing: .025em;
}

.topbar a:hover,
.topbar-contact a:hover {
  color: #fff;
}

.nav {
  background: rgba(9, 10, 13, .93);
  border-bottom-color: var(--lf-line);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.nav-links a {
  color: rgba(215, 226, 234, .82);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-cta {
  border: 1px solid rgba(215, 226, 234, .5);
  background: transparent;
  color: #fff !important;
}

.nav-toggle {
  color: var(--lf-silver);
}

.nav-inner > a:first-child,
.footer-inner > a:first-child {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-inner > a:first-child::after,
.footer-inner > a:first-child::after {
  content: "LeadFlow AI";
  color: var(--lf-silver);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Buttons */
.btn,
.mobile-cta a,
.chat-contact-btn {
  border-radius: 999px;
  font-family: "Kanit", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.btn-primary {
  border: 2px solid rgba(255, 255, 255, .86);
  background: linear-gradient(100deg, #8f00cc 0%, #b600a8 58%, var(--lf-orange) 100%);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(182, 0, 168, .24), 0 0 26px rgba(182, 0, 168, .38);
}

.btn-primary:hover {
  background: linear-gradient(100deg, #a10cda 0%, #c50bb7 58%, #ff876e 100%);
  box-shadow: 0 0 0 3px rgba(182, 0, 168, .3), 0 0 34px rgba(182, 0, 168, .48);
}

.btn-outline,
.lp-cta .btn-outline,
.work-note .btn-outline,
.blog-cta-box .btn-outline {
  border-color: rgba(215, 226, 234, .82);
  background: rgba(12, 12, 12, .28);
  color: var(--lf-silver);
}

.btn-outline:hover,
.lp-cta .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* Portfolio hero treatment on every inner route */
main > .hero:not(.lf-hero),
.blog-hero,
.blog-post-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(680px, 78svh);
  padding: clamp(116px, 12vw, 148px) 0 clamp(68px, 8vw, 92px);
  background:
    radial-gradient(circle at 72% 28%, rgba(182, 0, 168, .18), transparent 30%),
    radial-gradient(circle at 28% 78%, rgba(96, 165, 250, .14), transparent 32%),
    var(--lf-canvas);
  color: var(--lf-silver);
  text-align: center;
}

main > .hero:not(.lf-hero)::before,
.blog-hero::before,
.blog-post-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
  background-position: center calc(var(--lf-page-hero-shift, 0) * 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  opacity: .34;
}

main > .hero:not(.lf-hero)::after,
.blog-hero::after,
.blog-post-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -190px;
  width: min(70vw, 820px);
  aspect-ratio: 1;
  border: 1px solid rgba(96, 165, 250, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(96, 165, 250, .025), 0 0 120px rgba(96, 165, 250, .12);
  transform: translateX(-50%);
}

main > .hero:not(.lf-hero) .container,
.blog-hero .container,
.blog-post-hero .container {
  position: relative;
  z-index: 1;
}

main > .hero:not(.lf-hero) h1,
.blog-hero h1,
.blog-post-hero h1 {
  max-width: 1000px;
  margin: 0 auto clamp(18px, 2.6vw, 28px);
  background: linear-gradient(180deg, var(--lf-silver-deep) 0%, var(--lf-silver) 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .9;
  text-transform: uppercase;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

main > .hero:not(.lf-hero) .hero-sub,
.blog-hero p,
.blog-post-meta {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--lf-copy);
  font-size: clamp(.92rem, 1.55vw, 1.18rem);
  font-weight: 300;
  letter-spacing: .08em;
  line-height: 1.55;
  text-transform: uppercase;
}

main > .hero:not(.lf-hero) .stat {
  border-top-color: rgba(215, 226, 234, .35);
}

main > .hero:not(.lf-hero) .stat strong {
  color: var(--lf-silver);
}

main > .hero:not(.lf-hero) .stat span {
  color: var(--lf-copy);
}

/* Dark section rhythm across every existing page */
.lp-area,
.services:not(.lf-services),
.process,
.intent,
.proof,
.faq,
.contact,
.week-one,
.industries,
.results,
.work-preview,
.growth,
.how-it-works,
.work-cases,
.work-note,
.blog-listing,
.blog-content,
.legal-page,
.website-check,
.content-plan {
  background:
    radial-gradient(circle at 12% 0%, rgba(96, 165, 250, .075), transparent 28%),
    linear-gradient(180deg, var(--lf-canvas) 0%, var(--lf-surface) 100%) !important;
  color: var(--lf-silver);
}

.services:not(.lf-services),
.intent,
.faq,
.week-one,
.results,
.growth,
.work-note,
.blog-listing {
  background:
    radial-gradient(circle at 88% 0%, rgba(182, 0, 168, .075), transparent 30%),
    linear-gradient(180deg, var(--lf-surface) 0%, var(--lf-canvas) 100%) !important;
}

main > section:not(.lf-services):not(.lf-marquee-section):not(.lf-systems) h2,
.blog-content h2,
.blog-content h3,
.legal-page h1,
.legal-page h2,
.content-plan h2 {
  color: var(--lf-silver);
}

main > section:not(.lf-services):not(.lf-marquee-section):not(.lf-systems) > .container > h2,
main > section:not(.lf-services):not(.lf-marquee-section):not(.lf-systems) > h2,
.blog-listing > .container > h2,
.work-cases h2 {
  background: linear-gradient(180deg, var(--lf-silver-deep) 0%, var(--lf-silver) 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(2.4rem, 5.5vw, 4.9rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .94;
  text-transform: uppercase;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub,
.lp-area p,
.lp-area strong,
.service-card p,
.industry-card p,
.process-item p,
.intent-note,
.proof-card p,
.week-one-item p,
.step p,
.result-stat span,
.growth p,
.work-preview-card p,
.work-case-card p,
.blog-card-body p,
.blog-card-meta,
.blog-content p,
.blog-content li,
.legal-page p,
.legal-page li,
.form-note {
  color: var(--lf-copy);
}

/* Numbered glass components replace emoji card art */
.services-grid,
.industries-grid {
  counter-reset: lf-card;
}

.service-card,
.industry-card {
  counter-increment: lf-card;
}

.service-card,
.industry-card,
.process-item,
.proof-card,
.week-one-item,
.step,
.result-stat,
.work-preview-card,
.work-case-card,
.blog-card,
.target-card,
.intent-note,
.website-check-list label,
.website-check-result,
.blog-cta-box {
  border: 1px solid var(--lf-line);
  border-radius: 22px;
  background: var(--lf-surface-soft);
  color: var(--lf-silver);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
  transition: transform .34s cubic-bezier(.22, .9, .34, 1), border-color .34s ease, box-shadow .34s ease;
}

.lp-pain .service-card {
  border-top: 1px solid var(--lf-line);
}

.service-card:hover,
.industry-card:hover,
.process-item:hover,
.proof-card:hover,
.week-one-item:hover,
.step:hover,
.result-stat:hover,
.work-preview-card:hover,
.work-case-card:hover,
.blog-card:hover,
.target-card:hover {
  border-color: rgba(127, 181, 255, .42);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
  transform: translateY(-7px);
}

.service-card h3,
.industry-card h3,
.process-item strong,
.proof-card h3,
.week-one-item strong,
.step h3,
.work-preview-card h3,
.work-case-card h3,
.blog-card-body h2,
.target-card strong,
.faq-item summary {
  color: var(--lf-silver);
}

.service-icon,
.industry-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 181, 255, .28);
  border-radius: 16px;
  background: rgba(127, 181, 255, .07);
  color: #9cc7ff;
  font-size: 0 !important;
  font-weight: 700;
  letter-spacing: .08em;
}

.service-icon::before,
.industry-icon::before {
  content: counter(lf-card, decimal-leading-zero);
  font-size: .86rem;
}

.week-one-grid {
  counter-reset: lf-week;
}

.week-one-item {
  counter-increment: lf-week;
}

.week-one-item .check {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 181, 255, .28);
  border-radius: 50%;
  background: rgba(127, 181, 255, .07);
  color: #9cc7ff;
  font-size: 0;
}

.week-one-item .check::before {
  content: counter(lf-week, decimal-leading-zero);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.process-number,
.step-number {
  border: 1px solid rgba(127, 181, 255, .32);
  background: rgba(127, 181, 255, .1);
  color: #9cc7ff;
}

.intent-list li {
  border-color: var(--lf-line);
  background: rgba(17, 20, 27, .78);
  color: var(--lf-copy);
}

.intent-list li::before {
  content: "";
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lf-blue), var(--lf-violet));
  transform: translateY(-50%);
}

/* Homepage system labels and icon-free service arrows */
.lf-system-node > span {
  color: #9cc7ff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.lf-service-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0c0c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 19 5M8 5h11v11'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  color: transparent;
  font-size: 0;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.lf-service-row {
  position: relative;
  margin-inline: -18px;
  padding-inline: 18px;
  border-radius: 22px;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22, .9, .34, 1);
}

.lf-service-row:hover,
.lf-service-row:focus-visible {
  border-bottom-color: rgba(12, 12, 12, .28);
  background: linear-gradient(90deg, rgba(127, 181, 255, .12), rgba(182, 0, 168, .08));
  box-shadow: 0 24px 60px rgba(34, 28, 62, .12);
  color: inherit;
  transform: translateX(8px);
}

.lf-service-row:focus-visible {
  outline: 3px solid rgba(127, 181, 255, .52);
  outline-offset: 3px;
}

.lf-service-row:hover .lf-service-icon,
.lf-service-row:focus-visible .lf-service-icon {
  border-color: rgba(75, 50, 150, .38);
  background-color: rgba(127, 181, 255, .16);
  transform: translate(3px, -3px);
}

.lf-service-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #50358f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.lf-service-link::after {
  content: "";
  width: 17px;
  height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2350358f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 19 5M8 5h11v11'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform .25s ease;
}

.lf-service-row:hover .lf-service-link::after,
.lf-service-row:focus-visible .lf-service-link::after {
  transform: translate(3px, -3px);
}

#ai-chatbots,
#booking-systems {
  scroll-margin-top: 124px;
}

.growth-track li::before {
  content: "";
  top: .72em;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lf-blue), var(--lf-violet));
}

/* FAQ and forms */
.faq-item {
  border: 1px solid var(--lf-line);
  background: rgba(17, 20, 27, .78);
}

.faq-item summary::after {
  color: #9cc7ff;
}

.faq-item p {
  color: var(--lf-copy);
}

.quote-form {
  border: 1px solid var(--lf-line);
  border-radius: 28px;
  background: rgba(17, 20, 27, .9);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.form-group label {
  color: var(--lf-copy);
}

.form-group input,
.form-group select,
.form-group textarea {
  border-color: var(--lf-line);
  background: rgba(255, 255, 255, .035);
  color: var(--lf-silver);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(174, 184, 195, .48);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(127, 181, 255, .62);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(127, 181, 255, .12);
}

.form-group select option {
  background: var(--lf-surface);
  color: var(--lf-silver);
}

/* Chat stays functional while matching the portfolio theme */
.chat-toggle {
  border: 1px solid rgba(255, 255, 255, .44);
  background: linear-gradient(145deg, #8f00cc, var(--lf-violet) 58%, var(--lf-orange));
  box-shadow: 0 12px 34px rgba(182, 0, 168, .42);
}

.chat-popup,
.chat-panel {
  border: 1px solid var(--lf-line);
  background: rgba(12, 13, 17, .97);
  color: var(--lf-silver);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

.chat-header {
  border-bottom: 1px solid var(--lf-line);
  background: linear-gradient(90deg, #111823, #190d21);
}

.chat-status {
  display: block;
  margin-top: 1px;
  color: var(--lf-copy);
}

.chat-contact-actions,
.chat-input-area {
  border-color: var(--lf-line);
  background: rgba(17, 20, 27, .92);
}

.chat-contact-btn {
  background: rgba(127, 181, 255, .12);
  color: var(--lf-silver);
}

.chat-contact-btn-secondary {
  background: rgba(182, 0, 168, .12);
  color: var(--lf-silver);
}

.chat-msg.bot {
  background: rgba(255, 255, 255, .07);
  color: var(--lf-silver);
}

.chat-input-area input {
  border-color: var(--lf-line);
  background: rgba(255, 255, 255, .04);
  color: var(--lf-silver);
}

.chat-send {
  background: linear-gradient(145deg, #8f00cc, var(--lf-violet));
}

/* Footer and mobile contact bar */
.footer {
  border-top: 1px solid var(--lf-line);
  background: #090a0d;
  color: var(--lf-copy);
  box-shadow: none;
}

.footer a {
  color: var(--lf-silver);
}

.mobile-cta {
  border-top-color: var(--lf-line);
  background: rgba(9, 10, 13, .96);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, .38);
  backdrop-filter: blur(16px);
}

.mobile-cta a,
.mobile-cta-btn {
  border: 1px solid var(--lf-line);
  background: rgba(255, 255, 255, .04);
  color: var(--lf-silver);
}

.mobile-cta a:first-child,
.mobile-cta-btn:first-child {
  border-color: rgba(182, 0, 168, .56);
  background: linear-gradient(100deg, rgba(143, 0, 204, .9), rgba(182, 0, 168, .84));
  color: #fff;
}

/* Existing scroll reveal class */
.lf-scroll-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .72s ease, transform .72s cubic-bezier(.22, .9, .34, 1);
  transition-delay: var(--lf-reveal-delay, 0ms);
}

.lf-scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .nav-links {
    border-bottom-color: var(--lf-line);
    background: rgba(9, 10, 13, .98);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .44);
  }
}

@media (max-width: 768px) {
  main > .hero:not(.lf-hero),
  .blog-hero,
  .blog-post-hero {
    min-height: 620px;
    padding: 126px 0 78px;
  }

  main > .hero:not(.lf-hero) h1,
  .blog-hero h1,
  .blog-post-hero h1 {
    font-size: clamp(2.8rem, 15vw, 5.2rem);
  }

  .service-card,
  .industry-card,
  .process-item,
  .proof-card,
  .week-one-item,
  .step,
  .result-stat,
  .work-preview-card,
  .work-case-card,
  .blog-card {
    border-radius: 18px;
  }

  .quote-form {
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .lf-service-row {
    margin-inline: 0;
    padding-inline: 12px;
  }

  .lf-service-row:hover,
  .lf-service-row:focus-visible {
    transform: translateY(-3px);
  }

  .mobile-cta {
    padding-right: 66px;
  }

  .chat-widget {
    right: 8px;
    bottom: 8px;
  }

  .chat-toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .chat-panel,
  .chat-popup {
    bottom: 62px;
  }

  .chat-panel {
    right: 0;
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lf-scroll-reveal,
  .lf-scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
