/* =====================================================================
   XyberCore homepage (index.html only) — funnel layout
   Link AFTER xc-theme.css:
   <link rel="stylesheet" href="/assets/css/xc-theme.css">
   <link rel="stylesheet" href="/assets/css/xc-home.css">
   ===================================================================== */
.xc-page {
   font-family: var(--xc-body);
   background: var(--xc-bg)
}

.xc-page h1,
.xc-page h2,
.xc-page h3 {
   font-family: var(--xc-display);
   letter-spacing: -.02em;
   line-height: 1.1;
   color: var(--xc-ink)
}

.xc-sec-head {
   max-width: 640px;
   margin: 0 auto
}

.xc-sec-head h2 {
   font-size: clamp(1.9rem, 3.6vw, 2.7rem);
   text-align: center
}

.xc-sec-head p {
   margin-top: 14px;
   color: var(--xc-muted);
   font-size: 1.05rem;
   text-align: center
}

.xc-grid-bg {
   background-color: #E1EEE6;
   background-image: linear-gradient(rgba(14, 42, 32, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 42, 32, .06) 1px, transparent 1px);
   background-size: 32px 32px
}

/* ---------- hero (top of funnel) ---------- */
.xc-h-hero {
   padding: 64px 0 0;
   background: var(--xc-tint);
   border-bottom: 1px solid var(--xc-line);
   overflow: hidden
}

.xc-h-hero-grid {
   display: grid;
   grid-template-columns: 1.1fr .9fr;
   gap: 48px;
   align-items: center;
   padding-bottom: 56px
}

.xc-h-hero .xc-eyebrow {
   display: inline-block;
   background: #fff;
   color: var(--xc-green-dk);
   font-weight: 700;
   font-size: .78rem;
   text-transform: uppercase;
   letter-spacing: .05em;
   padding: 6px 16px;
   border-radius: 999px;
   margin-bottom: 18px;
   box-shadow: 0 6px 14px -8px rgba(14, 42, 32, .25)
}

.xc-h-hero h1 {
   font-size: clamp(2.2rem, 4.4vw, 3.6rem);
   max-width: 13em
}

.xc-h-hero p {
   margin: 16px 0 0;
   color: var(--xc-muted);
   max-width: 34em;
   font-size: 1.08rem
}

.xc-h-cta-row {
   display: flex;
   flex-wrap: wrap;
   gap: 14px;
   margin-top: 30px
}

.xc-h-hero-note {
   margin-top: 16px;
   color: var(--xc-muted);
   font-size: .88rem;
   display: flex;
   align-items: center;
   gap: 8px
}

.xc-h-hero-note svg {
   width: 16px;
   height: 16px;
   color: var(--xc-green)
}

.xc-h-hero-visual {
   position: relative;
   border-radius: 32px;
   padding: 34px;
   min-height: 340px;
   display: flex;
   flex-direction: column;
   gap: 14px;
   justify-content: center
}

.xc-h-mini {
   background: #fff;
   border: 1.5px solid var(--xc-line);
   border-radius: 18px;
   padding: 16px 18px;
   box-shadow: 0 18px 30px -22px rgba(14, 42, 32, .35)
}

.xc-h-mini.xc-in {
   transform: translateX(-14px)
}

.xc-h-mini.xc-out {
   transform: translateX(14px)
}

.xc-h-mini-top {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 6px
}

.xc-h-mini-avatar {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   background: var(--xc-green-soft);
   display: grid;
   place-items: center;
   font-size: 15px;
   flex: none
}

.xc-h-mini-name {
   font-weight: 700;
   font-size: .85rem
}

.xc-h-mini-role {
   font-size: .72rem;
   color: var(--xc-muted)
}

.xc-h-mini-text {
   font-size: .85rem;
   color: #3D4A43;
   line-height: 1.5
}

.xc-h-mini-badge {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   background: var(--xc-green-soft);
   color: var(--xc-green-dk);
   font-weight: 700;
   font-size: .72rem;
   padding: 4px 10px;
   border-radius: 999px;
   margin-top: 8px
}

/* ---------- stats strip ---------- */
.xc-h-stats {
   border-top: 1px solid var(--xc-line);
   background: #fff
}

.xc-h-stats-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   text-align: center
}

.xc-h-stat {
   padding: 26px 12px;
   border-right: 1px solid var(--xc-line)
}

.xc-h-stat:last-child {
   border-right: 0
}

.xc-h-stat b {
   display: block;
   font-family: var(--xc-display);
   font-size: 1.7rem;
   color: var(--xc-green-dk)
}

.xc-h-stat span {
   display: block;
   color: var(--xc-muted);
   font-size: .8rem;
   margin-top: 2px
}

/* ---------- two paths: marketplace vs services ---------- */
.xc-h-paths {
   padding: 80px 0
}

.xc-h-paths-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 24px;
   margin-top: 48px
}

.xc-h-path {
   position: relative;
   background: #fff;
   border: 1.5px solid var(--xc-line);
   border-radius: 26px;
   padding: 36px 32px;
   overflow: hidden;
   transition: transform .25s, box-shadow .25s
}

.xc-h-path::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 5px;
   background: var(--xc-accent, var(--xc-green))
}

.xc-h-path:hover {
   transform: translateY(-6px);
   box-shadow: 0 30px 44px -28px rgba(14, 42, 32, .4)
}

.xc-h-path-icon {
   width: 60px;
   height: 60px;
   border-radius: 18px;
   background: var(--xc-accent-soft, var(--xc-green-soft));
   display: grid;
   place-items: center;
   font-size: 28px;
   margin-bottom: 18px
}

.xc-h-path h3 {
   font-size: 1.35rem;
   margin-bottom: 10px
}

.xc-h-path p {
   color: var(--xc-muted);
   font-size: .96rem;
   line-height: 1.55;
   margin-bottom: 18px
}

.xc-h-path-list {
   list-style: none;
   margin: 0 0 22px;
   padding: 0;
   display: grid;
   gap: 8px
}

.xc-h-path-list li {
   font-size: .88rem;
   color: #475569;
   display: flex;
   align-items: flex-start;
   gap: 8px
}

.xc-h-path-list svg {
   width: 16px;
   height: 16px;
   color: var(--xc-green);
   flex: none;
   margin-top: 2px
}

.xc-h-path .xc-cta {
   width: 100%;
   min-height: 46px
}

@media (max-width:860px) {
   .xc-h-paths-grid {
      grid-template-columns: 1fr
   }
}

/* ---------- trust ---------- */
.xc-h-trust {
   padding: 80px 0;
   background: var(--xc-tint);
   border-block: 1px solid var(--xc-line)
}

.xc-h-trust-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 24px;
   margin-top: 48px
}

.xc-h-trust-item {
   background: #fff;
   border: 1.5px solid var(--xc-line);
   border-radius: 20px;
   text-align: center;
   padding: 32px 20px;
   transition: transform .2s, box-shadow .2s
}

.xc-h-trust-item:hover {
   transform: translateY(-4px);
   box-shadow: 0 22px 34px -26px rgba(14, 42, 32, .3)
}

.xc-h-trust-icon {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background: var(--xc-green-soft);
   display: grid;
   place-items: center;
   font-size: 26px;
   margin: 0 auto 16px
}

.xc-h-trust-item h3 {
   font-size: 1.05rem;
   margin-bottom: 8px
}

.xc-h-trust-item p {
   color: var(--xc-muted);
   font-size: .9rem;
   line-height: 1.5
}

@media (max-width:860px) {
   .xc-h-trust-grid {
      grid-template-columns: 1fr;
      gap: 16px
   }
}

/* ---------- testimonial ---------- */
.xc-h-quote-wrap {
   padding: 80px 0
}

.xc-h-quote {
   max-width: 720px;
   margin: 0 auto;
   text-align: center;
   background: #fff;
   border: 1.5px solid var(--xc-line);
   border-radius: 28px;
   padding: 48px 40px
}

.xc-h-quote-mark {
   font-family: var(--xc-display);
   font-size: 4rem;
   color: var(--xc-green-soft);
   line-height: 0;
   display: block;
   margin-bottom: 6px
}

.xc-h-quote p {
   font-family: var(--xc-display);
   font-size: 1.35rem;
   font-weight: 600;
   color: var(--xc-ink);
   line-height: 1.5;
   letter-spacing: -.01em
}

.xc-h-quote-by {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   margin-top: 24px
}

.xc-h-quote-avatar {
   width: 44px;
   height: 44px;
   border-radius: 50%;
   background: var(--xc-green-soft);
   display: grid;
   place-items: center;
   font-size: 20px
}

.xc-h-quote-name {
   font-weight: 700;
   font-size: .92rem;
   text-align: left
}

.xc-h-quote-role {
   font-size: .8rem;
   color: var(--xc-muted);
   text-align: left
}

@media (max-width:600px) {
   .xc-h-quote {
      padding: 32px 24px
   }

   .xc-h-quote p {
      font-size: 1.1rem
   }
}

/* ---------- how it works ---------- */
.xc-h-how {
   padding: 80px 0;
   background: var(--xc-tint);
   border-block: 1px solid var(--xc-line)
}

.xc-h-how-grid {
   display: flex;
   gap: 0;
   margin-top: 52px
}

.xc-h-step {
   flex: 1;
   text-align: center;
   padding: 0 20px;
   position: relative
}

.xc-h-step-num {
   width: 46px;
   height: 46px;
   border-radius: 50%;
   background: var(--xc-green);
   color: #fff;
   display: grid;
   place-items: center;
   font-family: var(--xc-display);
   font-weight: 700;
   font-size: 1.15rem;
   margin: 0 auto 16px;
   box-shadow: 0 10px 18px -8px rgba(21, 122, 85, .5)
}

.xc-h-step h3 {
   font-size: 1.08rem;
   margin-bottom: 8px
}

.xc-h-step p {
   color: var(--xc-muted);
   font-size: .88rem;
   line-height: 1.5
}

.xc-h-step-arrow {
   position: absolute;
   top: 16px;
   right: -24px;
   color: #E58A1F;
   display: none
}

.xc-h-step-arrow svg {
   width: 38px;
   height: 14px
}

@media (min-width:861px) {
   .xc-h-step:not(:last-child) .xc-h-step-arrow {
      display: block
   }
}

@media (max-width:860px) {
   .xc-h-how-grid {
      flex-direction: column;
      gap: 36px
   }

   .xc-h-step {
      padding: 0
   }
}

/* ---------- final CTA ---------- */
.xc-h-final {
   position: relative;
   overflow: hidden;
   background: var(--xc-green);
   color: #fff;
   padding: 0
}

.xc-h-final::before,
.xc-h-final::after {
   content: "";
   position: absolute;
   background: rgba(255, 255, 255, .1)
}

.xc-h-final::before {
   left: -60px;
   top: -30px;
   width: 340px;
   height: 380px;
   clip-path: polygon(0 12%, 100% 0, 55% 100%, 0 100%)
}

.xc-h-final::after {
   right: -40px;
   bottom: -30px;
   width: 320px;
   height: 380px;
   clip-path: polygon(35% 0, 100% 0, 100% 100%, 60% 100%)
}

.xc-h-final-grid {
   position: relative;
   z-index: 1;
   display: grid;
   grid-template-columns: 1.1fr .9fr;
   gap: 40px;
   align-items: center;
   padding: 80px 0
}

.xc-h-final h2 {
   color: #fff;
   font-size: clamp(2rem, 3.8vw, 2.9rem);
   max-width: 11em
}

.xc-h-final p {
   margin: 16px 0 0;
   max-width: 32em;
   color: #DDF0E6;
   font-size: 1.08rem
}

.xc-h-final-row {
   display: flex;
   flex-wrap: wrap;
   gap: 14px;
   margin-top: 30px
}

.xc-h-final-note {
   margin-top: 20px;
   color: #DDF0E6;
   font-size: .9rem
}

.xc-h-final-note a {
   color: #fff;
   font-weight: 600;
   text-decoration: underline
}

.xc-h-final-card {
   background: rgba(255, 255, 255, .1);
   border: 1.5px solid rgba(255, 255, 255, .25);
   border-radius: 24px;
   padding: 28px
}

.xc-h-final-card ul {
   list-style: none;
   margin: 0;
   padding: 0;
   display: grid;
   gap: 14px
}

.xc-h-final-card li {
   display: flex;
   align-items: center;
   gap: 12px;
   color: #fff;
   font-weight: 600;
   font-size: .95rem
}

.xc-h-final-card li span {
   width: 34px;
   height: 34px;
   border-radius: 50%;
   background: rgba(255, 255, 255, .18);
   display: grid;
   place-items: center;
   font-size: 16px;
   flex: none
}

@media (max-width:900px) {
   .xc-h-hero-grid {
      grid-template-columns: 1fr;
      padding-bottom: 40px
   }

   .xc-h-stats-grid {
      grid-template-columns: repeat(2, 1fr)
   }

   .xc-h-stat:nth-child(2) {
      border-right: 0
   }

   .xc-h-final-grid {
      grid-template-columns: 1fr;
      padding: 56px 0
   }
}

@media (max-width:600px) {
   .xc-h-hero {
      padding: 44px 0 0
   }

   .xc-h-paths,
   .xc-h-trust,
   .xc-h-quote-wrap,
   .xc-h-how {
      padding: 52px 0
   }

   .xc-h-cta-row .xc-cta,
   .xc-h-final-row .xc-cta {
      flex: 1 1 100%
   }

   .xc-h-stat {
      padding: 18px 8px
   }

   .xc-h-stat b {
      font-size: 1.35rem
   }
}

/* =====================================================================
   Futuristic layer — gradient glow, glass, motion
   ===================================================================== */
.xc-h-hero {
   position: relative
}

.xc-h-glow {
   position: absolute;
   border-radius: 50%;
   filter: blur(60px);
   opacity: .35;
   pointer-events: none;
   z-index: 0
}

.xc-h-glow-1 {
   width: 420px;
   height: 420px;
   background: radial-gradient(circle, #157A55, transparent 70%);
   top: -160px;
   right: -100px;
   animation: xcFloat1 14s ease-in-out infinite
}

.xc-h-glow-2 {
   width: 300px;
   height: 300px;
   background: radial-gradient(circle, #E58A1F, transparent 70%);
   bottom: -80px;
   left: -80px;
   animation: xcFloat2 16s ease-in-out infinite
}

@keyframes xcFloat1 {

   0%,
   100% {
      transform: translate(0, 0)
   }

   50% {
      transform: translate(-30px, 26px)
   }
}

@keyframes xcFloat2 {

   0%,
   100% {
      transform: translate(0, 0)
   }

   50% {
      transform: translate(24px, -22px)
   }
}

.xc-h-hero-grid,
.xc-h-stats {
   position: relative;
   z-index: 1
}

.xc-grad-text {
   background: linear-gradient(100deg, #157A55, #E58A1F 60%, #157A55);
   background-size: 200% auto;
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
   animation: xcSheen 6s linear infinite
}

@keyframes xcSheen {
   to {
      background-position: 200% center
   }
}

.xc-h-mini {
   backdrop-filter: blur(6px);
   background: rgba(255, 255, 255, .82)
}

.xc-h-hero-visual {
   position: relative;
   z-index: 1
}

.xc-typing {
   display: inline-flex;
   gap: 4px;
   align-items: center;
   margin-top: 8px
}

.xc-typing span {
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--xc-green);
   opacity: .4;
   animation: xcTyping 1.2s ease-in-out infinite
}

.xc-typing span:nth-child(2) {
   animation-delay: .15s
}

.xc-typing span:nth-child(3) {
   animation-delay: .3s
}

@keyframes xcTyping {

   0%,
   60%,
   100% {
      opacity: .3;
      transform: translateY(0)
   }

   30% {
      opacity: 1;
      transform: translateY(-3px)
   }
}

.xc-h-cta-row .xc-cta-primary {
   position: relative
}

.xc-h-cta-row .xc-cta-primary::after {
   content: "";
   position: absolute;
   inset: -3px;
   border-radius: 999px;
   background: linear-gradient(120deg, #157A55, #E58A1F, #157A55);
   z-index: -1;
   opacity: .55;
   filter: blur(8px);
   animation: xcPulseGlow 3s ease-in-out infinite
}

@keyframes xcPulseGlow {

   0%,
   100% {
      opacity: .35
   }

   50% {
      opacity: .7
   }
}

.xc-h-final-card {
   backdrop-filter: blur(10px)
}

/* scroll reveal */
.xc-reveal {
   opacity: 0;
   transform: translateY(22px);
   transition: opacity .7s ease, transform .7s ease
}

.xc-reveal.xc-in-view {
   opacity: 1;
   transform: translateY(0)
}

@media (prefers-reduced-motion:reduce) {

   .xc-h-glow-1,
   .xc-h-glow-2,
   .xc-grad-text,
   .xc-typing span,
   .xc-h-cta-row .xc-cta-primary::after {
      animation: none
   }

   .xc-reveal {
      opacity: 1;
      transform: none;
      transition: none
   }
}

/* =====================================================================
   Interactive layer — quiz selector, floating contact, status badge
   ===================================================================== */
.xc-status {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   background: #fff;
   border: 1px solid var(--xc-line);
   color: var(--xc-ink);
   font-weight: 600;
   font-size: .82rem;
   padding: 7px 14px 7px 10px;
   border-radius: 999px;
   margin-bottom: 14px
}

.xc-status-dot {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: #22C55E;
   flex: none;
   box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
   animation: xcPulseDot 2s infinite
}

@keyframes xcPulseDot {
   0% {
      box-shadow: 0 0 0 0 rgba(34, 197, 94, .55)
   }

   70% {
      box-shadow: 0 0 0 8px rgba(34, 197, 94, 0)
   }

   100% {
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0)
   }
}

.xc-h-quiz {
   padding: 70px 0
}

.xc-h-quiz-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 16px;
   margin-top: 40px
}

.xc-h-quiz-card {
   background: #fff;
   border: 1.5px solid var(--xc-line);
   border-radius: 18px;
   padding: 22px 16px;
   text-align: center;
   cursor: pointer;
   transition: transform .2s, box-shadow .2s, border-color .2s;
   font: inherit
}

.xc-h-quiz-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 18px 28px -20px rgba(14, 42, 32, .35)
}

.xc-h-quiz-card.xc-picked {
   border-color: var(--xc-green);
   background: var(--xc-green-soft)
}

.xc-h-quiz-icon {
   font-size: 28px;
   margin-bottom: 10px
}

.xc-h-quiz-card b {
   display: block;
   font-size: .92rem
}

.xc-h-quiz-result {
   max-width: 640px;
   margin: 32px auto 0;
   text-align: center;
   background: var(--xc-tint);
   border: 1.5px solid var(--xc-line);
   border-radius: 20px;
   padding: 26px 30px;
   display: none
}

.xc-h-quiz-result.xc-show {
   display: block;
   animation: xcResultIn .35s ease
}

@keyframes xcResultIn {
   from {
      opacity: 0;
      transform: translateY(10px)
   }

   to {
      opacity: 1;
      transform: translateY(0)
   }
}

.xc-h-quiz-result p {
   color: var(--xc-muted);
   font-size: .95rem;
   margin-bottom: 16px
}

.xc-h-quiz-result .xc-cta {
   min-height: 44px;
   font-size: .9rem
}

@media (max-width:860px) {
   .xc-h-quiz-grid {
      grid-template-columns: repeat(2, 1fr)
   }
}

@media (max-width:600px) {
   .xc-h-quiz {
      padding: 48px 0
   }

   .xc-h-quiz-result {
      padding: 20px 18px
   }
}

/* hero badges sit side by side and wrap on small screens */
.xc-h-badges {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 10px;
   margin-bottom: 18px
}

.xc-h-badges .xc-status,
.xc-h-badges .xc-eyebrow {
   margin: 0
}