/* Public readability + lightweight motion layer for Alex:PC marketing pages.
   Keeps the visual hierarchy while removing sub-10px/11px reading text.
   Motion stays lightweight: no WebGL, no external assets, no scroll-jacking. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  scrollbar-width: thin;
  scrollbar-color: #3D94D1 #1A1F22;
}

section[id],
main[id] { scroll-margin-top: 92px; }

/* Shared public navigation injected by the server on every marketing page. */
.alexpc-public-top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(26,31,34,.965);
  border-bottom: 1px solid rgba(255,255,255,.065);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.alexpc-public-wrap {
  width: min(1180px,calc(100% - 32px));
  margin: 0 auto;
}

.alexpc-public-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.alexpc-public-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.05em;
  color: #fff;
}

.alexpc-public-logo::before {
  content: "";
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 50%;
  background: url("/alexpc-logo-mark.jpg") center/cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

.alexpc-public-logo i {
  font-style: normal;
  background: linear-gradient(135deg,#3D94D1,#4B4797);
  -webkit-background-clip: text;
  color: transparent;
}

.alexpc-public-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  font-size: 14px;
  color: #C8D0D4;
}

.alexpc-public-links a {
  position: relative;
  white-space: nowrap;
  transition: color .18s ease;
}

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

.alexpc-public-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg,#3D94D1,#4B4797);
}

.alexpc-public-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg,#3D94D1,#4B4797);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .2s ease,filter .2s ease,box-shadow .2s ease;
}

@media (hover:hover) and (pointer:fine) {
  .alexpc-public-contact:hover {
    transform: translate3d(0,-1px,0);
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(61,148,209,.14);
  }
}

.links,
.nav-links { font-size: 14px !important; }

.eyebrow,
.kicker { font-size: 11px !important; }

.system,
.num,
.step b,
.product-cat,
.cat,
.sku,
.label,
.stat span { font-size: 11px !important; }

/* Trust/benefit text is intentionally larger after user readability feedback. */
.hero-side p,
.hero-side .lead,
.hero-side .sub,
.hero-side .text,
.hero-side li,
.hero-side small { font-size: 14px !important; line-height: 1.55 !important; }

.hero-side h2,
.hero-side h3,
.hero-side strong { line-height: 1.18; }

.hero-side h3,
.hero-side .signal-row b { font-size: 15px !important; }

.signal-row { font-size: 13px !important; line-height: 1.5; }
.signal-row b { font-size: 12px !important; }

.head p,
.service p,
.card p,
.trust p,
.contact p,
.step p,
.review p,
.text,
.form p,
.sub,
.notice,
.check div { font-size: 13px !important; line-height: 1.55; }

.trust-list div,
.chip,
.meta,
.author,
.review small,
.status,
.consent,
.consent-row,
footer { font-size: 12px !important; line-height: 1.5; }

.product-cat,
.product-status,
.source,
.date { font-size: 10px !important; }

.location { font-size: 13px !important; line-height: 1.5; }

.btn,
.nav-cta { font-size: 14px !important; }

/* Branded native scrollbar. Falls back to the browser default where unsupported. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #1A1F22; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,#3D94D1 0%,#4B4797 100%);
  border: 2px solid #1A1F22;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,#57A8DF 0%,#615DB0 100%);
}

/* Only truly interactive surfaces get the raised/glow affordance. */
a.service,
#latest-products .product,
#grid .card {
  transition: transform .24s ease,border-color .24s ease,box-shadow .24s ease;
}

#latest-products .product img,
#grid .card img { transition: transform .42s cubic-bezier(.2,.72,.2,1); }

.btn,
.nav-cta,
.chip {
  transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease,filter .2s ease;
}

@media (hover:hover) and (pointer:fine) {
  a.service:hover,
  #latest-products .product:hover,
  #grid .card:hover {
    transform: translate3d(0,-3px,0);
    border-color: rgba(61,148,209,.42);
    box-shadow: 0 18px 48px rgba(0,0,0,.16),0 0 0 1px rgba(61,148,209,.05);
  }

  #latest-products .product:hover img,
  #grid .card:hover img { transform: scale(1.025); }

  .btn:hover,
  .nav-cta:hover {
    transform: translate3d(0,-1px,0);
    box-shadow: 0 10px 28px rgba(61,148,209,.12);
  }

  .btn.primary:hover,
  .nav-cta:hover { filter: brightness(1.08); }
}

/* Homepage hero: lightweight pseudo-3D laptop, built entirely with CSS. */
.hero-main > * {
  position: relative;
  z-index: 3;
}

.hero-main::before,
.hero-main::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* Laptop screen. */
.hero-main::before {
  width: clamp(210px,25vw,330px);
  height: clamp(132px,15.7vw,208px);
  right: clamp(-54px,-1.8vw,-18px);
  top: clamp(34px,4.6vw,64px);
  border: 1px solid rgba(128,190,232,.38);
  border-radius: 18px 18px 12px 12px;
  background:
    radial-gradient(circle at 70% 22%,rgba(141,207,255,.2),transparent 18%),
    linear-gradient(145deg,rgba(61,148,209,.18),rgba(75,71,151,.18) 54%,rgba(12,17,20,.84)),
    #171D20;
  box-shadow:
    inset 0 0 0 7px rgba(10,14,16,.52),
    inset 0 0 42px rgba(61,148,209,.08),
    0 18px 52px rgba(0,0,0,.24),
    0 0 70px rgba(61,148,209,.08);
  opacity: .78;
  transform: perspective(900px) rotateX(4deg) rotateY(-13deg) rotateZ(-1deg) translate3d(0,0,0);
  animation: alexpc-laptop-screen-float 7.5s ease-in-out infinite alternate;
}

/* Laptop keyboard/base. */
.hero-main::after {
  width: clamp(238px,28vw,372px);
  height: clamp(44px,5.2vw,69px);
  right: clamp(-74px,-2.7vw,-28px);
  top: clamp(165px,19.2vw,252px);
  clip-path: polygon(8% 0,92% 0,100% 78%,91% 100%,9% 100%,0 78%);
  border-radius: 8px 8px 18px 18px;
  background:
    linear-gradient(180deg,rgba(116,155,178,.22),rgba(47,59,66,.3) 30%,rgba(17,22,25,.88)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 8px,transparent 8px 13px);
  box-shadow: 0 24px 44px rgba(0,0,0,.22),0 0 35px rgba(75,71,151,.06);
  opacity: .72;
  transform: perspective(900px) rotateX(67deg) rotateY(-9deg) rotateZ(-1deg) translate3d(0,0,0);
  animation: alexpc-laptop-base-float 7.5s ease-in-out infinite alternate;
}

@keyframes alexpc-laptop-screen-float {
  0% { transform: perspective(900px) rotateX(4deg) rotateY(-13deg) rotateZ(-1deg) translate3d(0,0,0); }
  52% { transform: perspective(900px) rotateX(1deg) rotateY(-9deg) rotateZ(.5deg) translate3d(-3px,-7px,0); }
  100% { transform: perspective(900px) rotateX(5deg) rotateY(-15deg) rotateZ(-.5deg) translate3d(2px,-3px,0); }
}

@keyframes alexpc-laptop-base-float {
  0% { transform: perspective(900px) rotateX(67deg) rotateY(-9deg) rotateZ(-1deg) translate3d(0,0,0); }
  52% { transform: perspective(900px) rotateX(64deg) rotateY(-6deg) rotateZ(.5deg) translate3d(-3px,-7px,0); }
  100% { transform: perspective(900px) rotateX(68deg) rotateY(-11deg) rotateZ(-.5deg) translate3d(2px,-3px,0); }
}

@media (hover:hover) and (pointer:fine) {
  .hero-main:hover::before {
    opacity: .9;
    filter: saturate(1.08) brightness(1.04);
    animation-play-state: paused;
    transform: perspective(900px) rotateX(1deg) rotateY(-8deg) rotateZ(.5deg) translate3d(-4px,-6px,0);
  }

  .hero-main:hover::after {
    opacity: .82;
    animation-play-state: paused;
    transform: perspective(900px) rotateX(63deg) rotateY(-5deg) rotateZ(.5deg) translate3d(-4px,-6px,0);
  }
}

/* Progressive reveal only. Browsers without view timelines simply render the static layout. */
@keyframes alexpc-section-reveal {
  from { opacity:.74; transform: translate3d(0,12px,0); }
  to { opacity:1; transform: translate3d(0,0,0); }
}

@supports (animation-timeline: view()) {
  .section,
  .form {
    animation: alexpc-section-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 22%;
  }
}

@media (max-width: 980px) {
  .alexpc-public-nav { gap: 15px; }
  .alexpc-public-links { gap: 13px; font-size: 13px; }

  .hero-main::before {
    width: 245px;
    height: 154px;
    right: -60px;
    top: 38px;
    opacity: .54;
  }

  .hero-main::after {
    width: 275px;
    height: 52px;
    right: -72px;
    top: 174px;
    opacity: .5;
  }
}

@media (max-width: 820px) {
  .alexpc-public-wrap { width: calc(100% - 22px); }
  .alexpc-public-nav { min-height: 62px; gap: 10px; }
  .alexpc-public-logo { font-size: 20px; }
  .alexpc-public-logo::before { width: 28px; height: 28px; flex-basis: 28px; }
  .alexpc-public-links {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 0 0 9px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 14px;
  }
  .alexpc-public-links::-webkit-scrollbar { display:none; }
  .alexpc-public-nav { flex-wrap: wrap; padding-top: 8px; }
  .alexpc-public-contact { margin-left: auto; min-height: 38px; padding: 0 13px; font-size: 12px; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 112px; }
  section[id],main[id] { scroll-margin-top: 112px; }

  .nav-cta { font-size: 12px !important; }
  .mobile-nav a { font-size: 10px !important; }
  .hero p,
  .lead { font-size: 15px !important; line-height: 1.55; }
  .eyebrow,
  .cat,
  .badge,
  .old,
  .source,
  .date,
  .product-cat,
  .product-status { font-size: 10px !important; }
  .name,
  .product-name { font-size: 14px !important; }
  .chip,
  .meta { font-size: 12px !important; }
  .label,
  .consent,
  .consent-row,
  footer { font-size: 12px !important; }

  .hero-side p,
  .hero-side .lead,
  .hero-side .sub,
  .hero-side .text,
  .hero-side li,
  .hero-side small { font-size: 13px !important; }

  ::-webkit-scrollbar { width: 6px; }

  .hero-main::before {
    width: 185px;
    height: 116px;
    right: -70px;
    top: 32px;
    opacity: .37;
  }

  .hero-main::after {
    width: 205px;
    height: 39px;
    right: -78px;
    top: 134px;
    opacity: .34;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  .section,
  .form,
  .hero-main::before,
  .hero-main::after,
  a.service,
  #latest-products .product,
  #grid .card,
  .btn,
  .nav-cta,
  .chip,
  .alexpc-public-contact,
  #latest-products .product img,
  #grid .card img {
    animation: none !important;
    transition: none !important;
  }
}
