/*
  B166ER — night-purple theme components: home, products index and the calmer detail-page hero.
  Small touches only: a slowly breathing aurora, a hairline grid, a cursor spotlight on cards,
  a marquee that drifts, and reveals as sections arrive. All of it stops for reduced motion.
*/

body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(76, 29, 149, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .045; }

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px;
  border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn .arrow { width: 13px; height: 13px; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.solid { background: var(--fg); color: #140d29; box-shadow: 0 10px 40px -12px rgba(167, 139, 250, .6); }
.btn.solid:hover { background: #fff; box-shadow: 0 14px 50px -10px rgba(167, 139, 250, .85); }
.btn.line { border: 1px solid var(--line2); color: var(--fg); }
.btn.line:hover { border-color: rgba(196, 181, 253, .55); background: rgba(167, 139, 250, .08); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ home hero */
.hh { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: 140px 0 clamp(56px, 9vh, 104px); }
.hh::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(196, 181, 253, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 181, 253, .06) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
}
.aurora { position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(167, 139, 250, .32), rgba(124, 58, 237, .14) 45%, transparent 72%);
  filter: blur(20px); animation: breathe 14s ease-in-out infinite alternate; }
.aurora.b { inset: auto auto -30% -20%; width: 55vw; height: 55vw; background: radial-gradient(closest-side, rgba(240, 171, 252, .16), transparent 70%); animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes breathe { from { transform: translate3d(0, 0, 0) scale(1); opacity: .85; } to { transform: translate3d(-4%, 6%, 0) scale(1.12); opacity: 1; } }
.hh .wrap { width: 100%; display: grid; gap: 34px; }
.hh .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.hh .eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: #86efac; box-shadow: 0 0 0 0 rgba(134, 239, 172, .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(134, 239, 172, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(134, 239, 172, 0); } }
.hh h1 { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 7.4vw, 124px); line-height: .94; letter-spacing: -.035em; max-width: 13ch; }
.hh h1 em { font-style: normal; background: linear-gradient(100deg, var(--halo), var(--acc2) 60%, var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hh h1 .w { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(10px); animation: rise 1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.hh .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.hh .row .lede { max-width: 520px; font-size: clamp(17px, 1.35vw, 20px); }
.hh .svcnav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.hh .svcnav a { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); transition: color .3s; }
.hh .svcnav a:hover { color: var(--fg); }
.hh .svcnav a i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ------------------------------------------------------------------ services on home */
.svcs { display: grid; border-top: 1px solid var(--line2); }
.svc {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px clamp(28px, 4vw, 72px);
  padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); isolation: isolate;
}
.svc::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(700px circle at var(--mx, 30%) var(--my, 50%), color-mix(in oklab, var(--c) 10%, transparent), transparent 60%); }
.svc:hover::before { opacity: 1; }
.svc .no { font-family: var(--display); font-size: 15px; color: var(--fg3); padding-top: 10px; font-variant-numeric: tabular-nums; }
.svc .cat { display: block; margin-bottom: 16px; color: color-mix(in oklab, var(--c) 75%, #fff); }
.svc h3 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.6vw, 58px); letter-spacing: -.025em; line-height: 1; }
.svc .tl { margin-top: 18px; font-family: var(--display); font-weight: 400; font-size: clamp(19px, 1.5vw, 24px); letter-spacing: -.01em; color: var(--fg2); max-width: 26ch; }
.svc .tl em { font-style: normal; color: color-mix(in oklab, var(--c) 72%, #fff); }
.svc .body { display: grid; gap: 26px; align-content: start; }
.svc .body p { font-size: 16.5px; line-height: 1.75; color: var(--fg2); }
.svc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.svc li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg); }
.svc li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--c); flex: none; }
.svc .more { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; justify-self: start; padding-bottom: 5px; background: linear-gradient(var(--c), var(--c)) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease); }
.svc .more .arrow { width: 12px; height: 12px; color: var(--c); }
.svc:hover .more .arrow { transform: translateX(4px); }
.svc canvas { position: absolute; right: 0; top: 50%; width: 220px; height: 150px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
@media (max-width: 1000px) { .svc { grid-template-columns: 1fr; } .svc .no { padding: 0; } .svc ul { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ process */
.proc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.proc > div { position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(26px, 2.6vw, 38px); background: var(--bg); min-height: 260px; transition: background .5s var(--ease); }
.proc > div:hover { background: var(--bg2); }
.proc .n { font-family: var(--display); font-size: 44px; font-weight: 300; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(196, 181, 253, .45); }
.proc h3 { margin-top: auto; font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.015em; }
.proc p { font-size: 15px; line-height: 1.7; color: var(--fg2); }
@media (max-width: 1000px) { .proc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .proc { grid-template-columns: 1fr; } .proc > div { min-height: 0; } }

/* ------------------------------------------------------------------ products CTA */
.pcta { position: relative; overflow: hidden; border: 1px solid var(--line2); border-radius: 28px; padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 80px); isolation: isolate;
  background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(21, 15, 43, .6) 50%, rgba(240, 171, 252, .08)); }
.pcta::after { content: ''; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(167, 139, 250, .3), transparent 70%); filter: blur(10px); }
.pcta .in { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.pcta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4.6vw, 76px); letter-spacing: -.03em; line-height: .98; max-width: 16ch; }
.pcta h2 .d { color: var(--dim); }
.pcta .lede { margin-top: 20px; max-width: 52ch; }
@media (max-width: 900px) { .pcta .in { grid-template-columns: 1fr; } }
.marq { margin-top: clamp(36px, 4vw, 56px); padding-top: 26px; border-top: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq .tr { display: flex; width: max-content; animation: drift 46s linear infinite; }
.marq:hover .tr { animation-play-state: paused; }
.marq a { display: inline-flex; align-items: center; gap: 14px; padding-right: 56px; font-family: var(--display); font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; color: var(--fg2); white-space: nowrap; transition: color .3s; }
.marq a:hover { color: var(--fg); }
.marq a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
@keyframes drift { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ simple page hero (products index) */
.sh { position: relative; padding: clamp(150px, 20vh, 220px) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.sh .aurora { inset: -40% -20% auto auto; width: 60vw; height: 60vw; }
.sh .wrap { display: grid; gap: 28px; }
.sh h1 { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 7vw, 116px); line-height: .94; letter-spacing: -.035em; max-width: 14ch; }
.sh h1 .d { color: var(--dim); }
.sh .lede { max-width: 56ch; }

/* ------------------------------------------------------------------ detail hero: still emblem, no flight */
.ph { min-height: min(100svh, 920px); }
.ph::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(15, 10, 31, .55) 24%, rgba(15, 10, 31, 0) 50%), linear-gradient(90deg, rgba(15, 10, 31, .85) 0%, rgba(15, 10, 31, .25) 46%, rgba(15, 10, 31, 0) 62%); }
.ph canvas.ph-cv { left: auto; right: 0; width: 62%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.ph canvas.ph-cv.drawn { opacity: 1; }
.ph .glow { position: absolute; z-index: 0; right: 4%; top: 12%; width: 54vw; max-width: 820px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 26%, transparent), transparent 70%); filter: blur(10px); animation: breathe 16s ease-in-out infinite alternate; }
@media (max-width: 760px) { .ph canvas.ph-cv { width: 100%; height: 56%; } .ph .glow { width: 90vw; right: -10%; } }

@media (prefers-reduced-motion: reduce) {
  .aurora, .ph .glow, .marq .tr, .hh .eyebrow .live { animation: none; }
  .hh h1 .w { animation: none; opacity: 1; transform: none; filter: none; }
}
