/* Prevent horizontal scroll on the homepage */
html, body {
  overflow-x: hidden;
}

.hp-trend-section {
  position: relative;
  background: radial-gradient(circle at 18% -10%, rgba(56, 189, 248, 0.28), transparent 55%),
              linear-gradient(180deg, #020617 0%, #091326 45%, #0f1f3f 100%);
  border-radius: 0;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
  /* Allow carousel cards to render fully at the right edge */
  overflow: visible;
  z-index: 40;
  isolation: isolate; /* create a local stacking context above background bands */
}

.full-bleed {
  /* Break out of the main container so the gradient spans edge to edge */
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

/* Remove decorative overlays that could interfere with edge rendering */
.hp-trend-section::before,
.hp-trend-section::after {
  content: none !important;
}

.hp-trend-section > * {
  position: relative;
  z-index: 1;
}

.hp-trend-carousel {
  --cards-per-view: 2.25;
  --gap: 2.75rem;
  --edge-pad: 7rem;   /* generous left/right room for hover glows */
  --v-pad: 3.5rem;    /* generous top/bottom room for hover glows */
  position: relative;
  z-index: 60; /* ensure above any decorative bands */
  overflow-x: hidden; /* disable horizontal scroll */
  overflow-y: visible; /* allow vertical glow to exceed container */
  padding: var(--v-pad) calc(var(--gap) + var(--edge-pad)) var(--v-pad) var(--edge-pad);
}

.hp-trend-track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-trend-carousel::-webkit-scrollbar {
  display: none;
}

.hp-trend-card {
  flex: 0 0 calc(100% / var(--cards-per-view));
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  min-height: 520px;
  background: linear-gradient(190deg, rgba(14, 23, 45, 0.92) 0%, rgba(7, 16, 36, 0.92) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 32px 80px -40px rgba(13, 25, 45, 0.85);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  backdrop-filter: blur(18px);
}

.hp-trend-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(200deg, rgba(56, 189, 248, 0.15) 0%, rgba(59, 130, 246, 0.08) 35%, rgba(15, 23, 42, 0.6) 100%);
  opacity: 0.85;
  transition: opacity .4s ease;
}

.hp-trend-card:hover {
  z-index: 3; /* rise above neighbors and edges */
  transform: translateY(-2px);
  /* More sober hover glow */
  box-shadow: 0 16px 40px -28px rgba(14, 165, 233, 0.22);
  border-color: rgba(125, 211, 252, 0.16);
}

.hp-trend-card:hover::before {
  opacity: 0.9; /* toned down */
}

.hp-trend-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hp-trend-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(148, 197, 250, 0.85);
  margin-bottom: .65rem;
}

.hp-trend-title {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.98);
  margin-bottom: .85rem;
}

.hp-trend-text {
  color: rgba(226, 232, 240, 0.88);
  font-size: .95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.hp-trend-chart {
  margin-top: 1.75rem;
  height: 280px;
  width: 100%;
}

.hp-trend-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.hp-trend-btn {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  height: 48px;
  min-width: 48px;
  padding: 0 .95rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(8, 47, 73, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
  position: relative;
  overflow: hidden;
}

.hp-trend-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity .25s ease;
}

.hp-trend-btn:hover {
  transform: translateY(-1px);
  background: rgba(148, 163, 184, 0.26);
  box-shadow: 0 14px 28px rgba(8, 47, 73, 0.28);
}

.hp-trend-btn:hover::before {
  opacity: .6;
}

.hp-trend-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(8, 47, 73, 0.26);
}

.hp-trend-btn:disabled {
  opacity: .35;
  background: rgba(100, 116, 139, 0.35);
  transform: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

.hp-trend-btn svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(4, 17, 31, 0.4));
}

.hp-trend-dots {
  display: flex;
  gap: .6rem;
  margin: 0 1.25rem;
}

.hp-trend-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  border: none;
  cursor: pointer;
  transition: all .35s ease;
  position: relative;
}

.hp-trend-dot:hover {
  background: rgba(125, 211, 252, 0.7);
  transform: scale(1.15);
}

.hp-trend-dot.active {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  width: 26px;
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.hp-trend-dot.active::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: rgba(255, 255, 255, 0.38);
  border-radius: inherit;
}
.social-media-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1.5rem; max-width:240px; margin:0 auto }
.social-logo{ width:60px; height:60px; display:flex; align-items:center; justify-content:center; border-radius:16px; transition:all .3s cubic-bezier(0.4,0,0.2,1); cursor:pointer; position:relative; overflow:hidden }
.social-logo svg{ width:32px; height:32px; transition:transform .3s ease }
.social-logo img{ width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block }
.social-logo:hover{ transform:translateY(-4px) scale(1.05); box-shadow:0 8px 25px rgba(0,0,0,0.15) }
.social-logo:hover svg{ transform:scale(1.1) }
.social-logo.tiktok{ background:#000; color:#fff }
.social-logo.instagram{ background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color:#fff }
.social-logo.snapchat{ background:#fffc00; color:#000; border:2px solid #fffc00 }
.social-logo.twitter{ background:#000; color:#ffffff }
.social-logo.youtube{ background:#ff0000; color:#fff }
.social-logo.netflix{ background:#e50914; color:#fff }

/* Ensure SVGs inherit the intended colors */
.social-logo svg path { fill: currentColor; }
@media (max-width: 1280px) {
  .hp-trend-carousel { --cards-per-view: 2; }
}

@media (max-width: 1024px) {
  .hp-trend-carousel { --cards-per-view: 1.5; --gap: 2.25rem; --edge-pad: 5rem; --v-pad: 3rem; }
  .hp-trend-card { min-height: 500px; }
}

@media (max-width: 640px) {
  .hp-trend-carousel { --cards-per-view: 1.1; --gap: 1.75rem; --edge-pad: 3rem; --v-pad: 2.25rem; padding-top: .5rem; }
  .hp-trend-card { min-height: 440px; }
  .hp-trend-content { padding: 2rem 1.75rem; }
  .social-media-grid { gap: 1rem; max-width: 200px; }
  .social-logo { width: 50px; height: 50px; }
  .social-logo svg { width: 26px; height: 26px; }
}

  /* Rail */
  .cm-rail { 
    /* position: sticky; */ /* Replaced with JS solution */
    top: 10px; 
    align-self: start; 
    width: clamp(11rem, 14vw, 13.5rem); 
    max-width: 100%; 
    z-index: 10;
  }
  .cm-rail-nav { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 0.9rem 1rem; border-radius: 0.75rem; background: #ffffff; border: 0; box-shadow: none; backdrop-filter: none; isolation: isolate; --cm-rail-track-x: calc(0.9rem + 12px); --cm-rail-indicator-bg: linear-gradient(135deg, #60a5fa, #2563eb); --cm-rail-active-accent: #1d4ed8; --cm-rail-active-glow: rgba(37,99,235,0.12); --cm-rail-indicator-shadow: 0 0 0 0 rgba(0,0,0,0); }
  .cm-rail-bar, .cm-rail-progress { position: absolute; left: var(--cm-rail-track-x); width: 2px; border-radius: 9999px; transform: translateX(-50%); }
  .cm-rail-bar { top: 0; height: 100%; background: linear-gradient(180deg, rgba(148,163,184,0.35), rgba(226,232,240,0.05)); opacity: .65; z-index: 0; }
  .cm-rail-progress { top: 0; height: 0; background: var(--cm-rail-indicator-bg); box-shadow: none; z-index: 2; transition: height .10s linear, background .10s ease; }
  /* Make the active background wider so long labels fit */
  /* Shift more to the right and significantly widen */
  .cm-rail-indicator { position: absolute; left: 1.0rem; right: -1.4rem; top: 0; height: 0; border-radius: 0.9rem; background: var(--cm-rail-indicator-bg); box-shadow: none; z-index: 1; transform: translateY(0); transition: transform .10s ease-out, height .10s ease-out, background .05s ease; }
  .cm-rail-link { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; width: 100%; padding: .55rem .75rem .55rem 3.4rem; border: 0; border-radius: 0.5rem; background: transparent; text-align: left; color: #475569; font-size: .92rem; font-weight: 500; letter-spacing: .01em; cursor: pointer; transition: color .18s ease, transform .18s ease; }
  .cm-rail-link::before { content: attr(data-index); position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; border: 1px solid #e2e8f0; background: #fff; display: grid; place-items: center; font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(100,116,139,0.9); transition: border-color .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease; z-index: 3; }
  .cm-rail-link-label { font-size: .95rem; font-weight: 600; color: inherit; }
  .cm-rail-link-sub { font-size: .62rem; text-transform: uppercase; letter-spacing: .32em; font-weight: 600; color: rgba(100,116,139,0.75); }
  .cm-rail-link:hover { color: #1f2937; }
  .cm-rail-link:hover::before { border-color: rgba(59,130,246,0.5); color: rgba(59,130,246,0.7); }
  .cm-rail-link.is-active { color: #0f172a; transform: none; }
  .cm-rail-link.is-active::before { background: var(--cm-rail-active-accent); color: #fff; border-color: transparent; box-shadow: none; transform: translateY(-50%); }
  .cm-rail-link.is-active .cm-rail-link-sub { color: var(--cm-rail-active-accent); }

  /* Items */
  .cm-items { display: grid; gap: 2rem; }
  .cm-card { position: relative; overflow: hidden; border-radius: 0.75rem; border: 1px solid rgba(15,23,42,0.08); background: #fff; box-shadow: 0 30px 70px -40px rgba(2,6,23,0.25); }
  .cm-card-inner { position: relative; z-index: 1; padding: 1.5rem; }
  @media (min-width: 640px) { .cm-card-inner { padding: 2rem; } }
  @media (min-width: 1024px) { .cm-card-inner { padding: 2.5rem; } }

  /* Accent aura */
  .cm-card-bg { position: absolute; inset: -20%; z-index: 0; opacity: .5; filter: blur(28px); transform: translateZ(0); }
  .cm-accent-primary { background: radial-gradient(40% 40% at 80% 20%, rgba(59,130,246,0.25), transparent 60%), radial-gradient(36% 36% at 10% 70%, rgba(56,189,248,0.22), transparent 65%); }
  .cm-accent-blue    { background: radial-gradient(40% 40% at 80% 20%, rgba(37,99,235,0.22), transparent 60%), radial-gradient(36% 36% at 10% 70%, rgba(147,197,253,0.25), transparent 65%); }
  .cm-accent-indigo  { background: radial-gradient(40% 40% at 80% 20%, rgba(99,102,241,0.24), transparent 60%), radial-gradient(36% 36% at 10% 70%, rgba(196,181,253,0.22), transparent 65%); }
  .cm-accent-emerald { background: radial-gradient(40% 40% at 80% 20%, rgba(16,185,129,0.22), transparent 60%), radial-gradient(36% 36% at 10% 70%, rgba(167,243,208,0.24), transparent 65%); }

  /* Reveal animation */
  .reveal { opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
  .reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* Animated Dots Between Cards */
  .cm-dots-separator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    margin: 1rem 0;
  }

  .cm-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    opacity: 0;
    transform: scale(0.3) translateY(10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .cm-dot.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  /* Staggered animation delays for dots */
  .cm-dot[data-dot="1"] { transition-delay: 0ms; }
  .cm-dot[data-dot="2"] { transition-delay: 150ms; }
  .cm-dot[data-dot="3"] { transition-delay: 300ms; }

  /* Accent-based dot colors */
  .cm-dots-separator[data-separator="1"] .cm-dot.is-visible {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
  }

  .cm-dots-separator[data-separator="2"] .cm-dot.is-visible {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
  }

  .cm-dots-separator[data-separator="3"] .cm-dot.is-visible {
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.3);
  }

  /* Pulse effect on hover */
  .cm-dot.is-visible:hover {
    transform: scale(1.1) translateY(-2px);
    transition: transform 0.2s ease;
  }

.faq-item {
  transition: all 0.2s ease;
}

.faq-item:hover {
  background-color: rgba(249, 250, 251, 0.5);
}

.faq-button[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-button[aria-expanded="true"] + .faq-content {
  max-height: 200px !important;
  margin-bottom: 0;
}

.faq-content {
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
  .faq-button span {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .faq-content div {
    font-size: 0.9rem;
  }
}

