/* GuestConnect — homepage visual enhancement layer.
   Additive: rules target new classnames (.shine, .magnetic, .tilt,
   .pills-marquee, .hero-canvas, .faq-item) on top of home.css.
   Loaded after home.css and before core.css. Every animated rule has a
   prefers-reduced-motion fallback below. */

/* ---------- Animated mesh backdrop behind the hero ---------- */
.hero{ position:relative; isolation:isolate; }
.hero-canvas{
  position:absolute; inset:0; width:100%; height:100%;
  z-index:0; opacity:.55; pointer-events:none;
}
.hero > .container.hero-grid{ position:relative; z-index:1; }

.hero::before{
  content:"";
  position:absolute; inset:-20% -10%; z-index:0;
  background:
    radial-gradient(38% 45% at 18% 20%, rgba(8,124,255,.35), transparent 70%),
    radial-gradient(32% 40% at 82% 15%, rgba(32,217,243,.28), transparent 70%),
    radial-gradient(45% 50% at 50% 100%, rgba(8,124,255,.18), transparent 70%);
  /* static, no blur filter: the gradients are already soft, and a blurred
     moving layer this size cost most of the frame rate */
  pointer-events:none;
}

/* ---------- Shimmering gradient headline ---------- */
.gradient.shine{
  background-size: 200% auto;
  animation: gc-shine 5s linear 2; /* two passes, then rest: it repaints every frame */
}
@keyframes gc-shine{ to{ background-position:-200% center; } }

/* ---------- Magnetic pull + shine sweep on primary buttons ---------- */
.btn.magnetic{
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease;
}
.btn.magnetic:hover{ box-shadow: 0 10px 30px -8px rgba(8,124,255,.55); }

.btn.primary{ position:relative; overflow:hidden; }
.btn.primary::after{
  content:""; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform:skewX(-20deg);
  transition:left .7s ease;
  pointer-events:none;
}
.btn.primary:hover::after{ left:120%; }

/* ---------- 3D tilt on the hero device mockup ---------- */
.device.tilt{
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}

/* ---------- Industry pill marquee ----------
   .is-looping is added by home-enhance.js after it has duplicated the pills.
   Without JavaScript, or with reduced motion, the pills stay a normal
   wrapped list so none are cut off. */
.pills-marquee.is-looping{
  overflow:hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pills-marquee.is-looping .pills{
  flex-wrap:nowrap; justify-content:flex-start; width:max-content; gap:0;
  animation: gc-marquee 32s linear infinite;
}
/* spacing as a margin (not gap) so that -50% lands exactly on the second copy */
.pills-marquee.is-looping .pill{ margin-right:12px; white-space:nowrap; }
.pills-marquee.is-looping:hover .pills{ animation-play-state:paused; }
@keyframes gc-marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- Feature icon tiles: soft glow on card hover ---------- */
.card .icon-tile{ position:relative; }
.card:hover .icon-tile::after{
  content:""; position:absolute; inset:-6px; border-radius:inherit;
  background:radial-gradient(circle, rgba(32,217,243,.45), transparent 70%);
  filter:blur(10px); z-index:-1;
}

/* ---------- FAQ accordion ---------- */
.faq-list{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:10px; }
.faq-item{
  border:1px solid rgba(255,255,255,.1); border-radius:14px;
  background:rgba(255,255,255,.03); padding:4px 20px; transition:background .2s ease;
}
.faq-item[open]{ background:rgba(255,255,255,.06); }
.faq-item summary{
  list-style:none; cursor:pointer; padding:16px 0; font-weight:600;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary:focus-visible{ outline:2px solid #3ac0ff; outline-offset:3px; border-radius:6px; }
.faq-item .faq-icon{ flex:none; transition:transform .25s ease; opacity:.75; }
.faq-item[open] .faq-icon{ transform:rotate(45deg); }
.faq-item p{ margin:0 0 18px; opacity:.8; line-height:1.6; }

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .hero-canvas{ display:none; }
  .gradient.shine{ animation:none; background-position:0 0; }
  .btn.primary::after{ display:none; }
  .device.tilt{ transition:none; }
  .faq-item .faq-icon{ transition:none; }
}

/* ---------- Small screens: drop the heaviest effects for performance ---------- */
@media (max-width:640px){
  .hero-canvas{ display:none; }
}

/* ================= Hero: layout that fits every screen ================= */
.hero{ min-height:min(920px,100svh); padding:122px 0 64px; }
.hero-grid{ grid-template-columns:minmax(0,1fr) minmax(0,1.06fr); gap:clamp(32px,4.5vw,68px); }
.hero-copy{ container-type:inline-size; }
.hero .eyebrow{
  padding:9px 16px 9px 14px; border:1px solid rgba(32,217,243,.28); border-radius:99px; line-height:1.5;
  background:linear-gradient(135deg,rgba(8,124,255,.14),rgba(32,217,243,.05));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 8px 30px -12px rgba(32,217,243,.45);
}
.hero .eyebrow:before{ flex:none; animation:gc-blink 2.2s ease-in-out infinite; }
/* each phrase on its own line, sized to the column it sits in */
.hero h1{ font-size:clamp(2.2rem,12.4cqi,5.4rem); line-height:1.02; letter-spacing:-.058em; margin:22px 0 22px; }
.hero h1 .gradient{ display:block; padding-bottom:.04em; }
.hero h1 em{ display:block; }
.hero-copy>p{ font-size:clamp(15px,1.15vw,16.5px); line-height:1.8; }
.hero-buttons{ margin-top:28px; }
.hero-alt-channel a{ white-space:nowrap; }
.micro-proof{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:30px; }
.micro-proof .sep{ display:none; }
.micro-proof div{
  padding:13px 14px; border:1px solid rgba(151,174,205,.14); border-radius:14px;
  background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.008));
  transition:border-color .25s,transform .25s;
}
.micro-proof div:hover{ border-color:rgba(58,159,255,.42); transform:translateY(-3px); }
.micro-proof div strong{ font-size:clamp(14px,1.3vw,17px); letter-spacing:-.02em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.micro-proof div span{ font-size:11.5px; line-height:1.4; }
/* faint engineering grid, fading out towards the edges */
.hero::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:linear-gradient(rgba(120,170,230,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(120,170,230,.07) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 75% 65% at 68% 42%,#000,transparent 72%);
  mask-image:radial-gradient(ellipse 75% 65% at 68% 42%,#000,transparent 72%);
}
/* dashboard preview comes alive */
.chart i{ transition:height .7s cubic-bezier(.2,.8,.2,1); }
.live-row{ transition:background .4s; border-radius:6px; padding-left:4px; padding-right:4px; }
.live-row.is-hot{ background:rgba(32,217,243,.09); }
.metric strong{ font-variant-numeric:tabular-nums; }

@media (min-width:1051px) and (max-height:820px){
  .hero{ padding:104px 0 40px; }
  .hero h1{ margin:16px 0; font-size:clamp(2.2rem,min(12.4cqi,9.6vh),5rem); }
  .hero-buttons{ margin-top:20px; }
  .micro-proof{ margin-top:20px; }
  .app{ min-height:0; }
  .chart{ height:72px; }
}
@media (max-width:1050px){
  .hero-grid{ grid-template-columns:minmax(0,1fr); gap:44px; }
  .hero{ min-height:0; padding:116px 0 60px; }
  .hero-copy{ max-width:720px; width:100%; margin:0 auto; }
  .hero h1{ font-size:clamp(2.2rem,12cqi,5rem); }
  .hero::after{ -webkit-mask-image:radial-gradient(ellipse 90% 50% at 50% 30%,#000,transparent 75%); mask-image:radial-gradient(ellipse 90% 50% at 50% 30%,#000,transparent 75%); }
}
@media (max-width:800px){
  .hero{ padding:100px 0 52px; }
  /* the two floating notes sit under the preview instead of disappearing */
  .visual{ padding:0; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .visual>.device,.visual>.visual-caption{ grid-column:1 / -1; }
  .visual .badge{ display:flex; position:static; padding:10px; }
  .badge strong{ font-size:11.5px; } .badge small{ font-size:10.5px; }
  .visual-caption{ margin-top:0; }
  .metrics{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .metric:last-child{ display:block; }
  .metric{ padding:10px 8px; } .metric strong{ font-size:17px; }
}
@media (max-width:560px){
  .hero .eyebrow{ font-size:10.5px; letter-spacing:.1em; }
  .hero-buttons{ flex-direction:column; }
  .hero-buttons .btn{ width:100%; }
  .micro-proof{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sidebar{ display:none; }
  .metric span{ min-height:2.6em; }
}
@media (max-width:360px){
  .visual{ grid-template-columns:1fr; }
  .metric strong{ font-size:15px; }
}
/* headline gradient: hugs the words, and starts and ends on the same colour so the shimmer has no seam */
.hero h1 .gradient{ width:fit-content; max-width:100%; }
.hero h1 .gradient.shine{ background-image:linear-gradient(100deg,#fff,#a2efff 22%,#2a90ff 50%,#a2efff 78%,#fff); background-size:200% 100%; }
@media (max-width:1050px){ .hero h1 .gradient{ margin-left:auto; margin-right:auto; } }
