/* ==========================================================================
   Home page layer — loaded on "/" only, after site.css.
   Big-corporate polish with a funky edge. Copy and known defects untouched.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --night: #080a1c;
  --night-2: #11153a;
  --night-line: rgba(255,255,255,.1);
  --violet: #6f5bff;
  --pink: #ff5fc8;
  --sky: #53d6ff;
  --display: "Space Grotesk", "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --glow-acid: 0 0 0 1px rgba(217,255,67,.35), 0 12px 40px -8px rgba(217,255,67,.55);
}

body { overflow-x: clip; }
h1, h2 { font-family: var(--display); letter-spacing: -.055em; }

@keyframes homeDrift { 0% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-3%, 4%) rotate(180deg); } 100% { transform: translate(0,0) rotate(360deg); } }
@keyframes homePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,255,67,.55); } 60% { box-shadow: 0 0 0 9px rgba(217,255,67,0); } }
@keyframes homeSheen { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

/* ---------- Announcement ---------- */
.announcement { position: relative; z-index: 21; background: linear-gradient(90deg, #05061a, #1b1650 45%, #05061a); border-bottom: 1px solid var(--night-line); letter-spacing: .12em; }
.announcement__dot { animation: homePulse 2.4s infinite; }
.announcement a { padding: 2px 10px; border: 1px solid rgba(217,255,67,.45); border-radius: 99px; }
.announcement a:hover { color: var(--night); background: var(--acid); }

/* ---------- Header (full-bleed night) ---------- */
.site-header { color: white; border-bottom-color: var(--night-line); }
.site-header::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: -1px; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--night); }
.site-header .brand__mark { box-shadow: 0 0 0 2px var(--night), 0 0 0 3px rgba(255,255,255,.35); }
.site-header .brand__name { font-family: var(--display); letter-spacing: -.02em; }
.menu-toggle { color: white; }
@media (min-width: 1051px) {
  .site-nav { padding: 6px 6px 6px 26px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); border-radius: 99px; backdrop-filter: blur(10px); }
  .site-nav > a:not(.nav-cta) { color: #c9cbe0; transition: color .2s; }
  .site-nav > a:not(.nav-cta):hover, .site-nav > a[aria-current="page"] { color: white; }
  .site-nav > a:not(.nav-cta)::after { height: 2px; border-radius: 2px; background: var(--acid); }
  .nav-cta { color: var(--night); background: var(--acid); border-radius: 99px; font-weight: 600; transition: box-shadow .25s; }
  .nav-cta:hover { box-shadow: var(--glow-acid); }
}

/* ---------- Buttons ---------- */
.button { border-radius: 99px; min-height: 56px; padding: 14px 26px; font-family: var(--display); font-size: .86rem; letter-spacing: -.01em; transition: background .2s, color .2s, box-shadow .25s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button--acid { color: var(--night); border-color: var(--acid); box-shadow: var(--glow-acid); }
.button--acid:hover { color: var(--night); background: white; border-color: white; }
.button--dark { background: var(--night); border-color: var(--night); }
.button--text { border-radius: 0; min-height: 0; padding: 6px 0; }
.button--text:hover { transform: none; }
.button--small { min-height: 40px; padding: 8px 16px; font-size: .74rem; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 720px; padding-top: 90px; padding-bottom: 120px; color: white; }
.hero::before { content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background:
  radial-gradient(900px 520px at 88% 8%, rgba(111,91,255,.55), transparent 62%),
  radial-gradient(700px 480px at 6% 95%, rgba(255,95,200,.22), transparent 60%),
  radial-gradient(520px 380px at 45% 110%, rgba(217,255,67,.16), transparent 70%),
  linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; color: #dfe1f5; background: rgba(255,255,255,.06); border: 1px solid var(--night-line); border-radius: 99px; letter-spacing: .16em; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); animation: homePulse 2.4s infinite; }
.hero h1 { font-size: clamp(3.3rem, 5.4vw, 5.9rem); font-weight: 600; line-height: .92; }
.hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; padding-right: .06em;
  background: linear-gradient(95deg, var(--acid) 0%, #9cf2ff 45%, var(--pink) 90%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: homeSheen 8s linear infinite alternate; }
.hero__lede { color: #b9bcd6; }
.hero .button--text { color: white; border-bottom-color: rgba(255,255,255,.4); }
.hero .button--text:hover { border-bottom-color: var(--acid); }

.hero__visual { position: relative; }
.hero__visual::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -12%; top: -14%; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: conic-gradient(from 90deg, var(--violet), var(--pink), var(--acid), var(--sky), var(--violet)); filter: blur(46px); opacity: .55; animation: homeDrift 26s linear infinite; }
.image-frame--hero { overflow: hidden; background: #151936; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); transform: rotate(1.4deg);
  box-shadow: 16px 16px 0 var(--acid), 0 40px 80px -20px rgba(0,0,0,.7); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hero__visual:hover .image-frame--hero { transform: rotate(0deg) translateY(-4px); }
.image-frame--hero .browser-bar { height: 42px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.1); }
.image-frame--hero .browser-bar i { border: 0; width: 10px; height: 10px; }
.image-frame--hero .browser-bar i:nth-child(1) { background: #ff5f57; }
.image-frame--hero .browser-bar i:nth-child(2) { background: #febc2e; }
.image-frame--hero .browser-bar i:nth-child(3) { background: #28c840; }
.image-frame--hero .browser-bar span { padding: 5px 10px; color: #9ea2c4; background: rgba(0,0,0,.3); border-radius: 99px; font-size: .6rem; }
.image-frame--hero .hero-slider { background: #1c2046; }
.image-frame--hero .slide-label { left: 16px; bottom: 16px; padding: 7px 12px; background: rgba(8,10,28,.72); border: 1px solid rgba(255,255,255,.15); border-radius: 99px; backdrop-filter: blur(8px); letter-spacing: .08em; }
.image-frame--hero .hero-slide--missing { color: #8a8eb3; background: repeating-linear-gradient(45deg, #171b3d, #171b3d 12px, #1d2250 12px, #1d2250 24px); }
.image-frame--hero .hero-slide img { color: #8a8eb3; font-size: .8rem; }
.image-frame--hero .slider-ui { color: white; border-top: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.image-frame--hero .slider-ui button { color: white; border-color: rgba(255,255,255,.1) !important; transition: background .2s, color .2s; }
.image-frame--hero .slider-ui button:hover { color: var(--night); background: var(--acid); }
.image-frame--hero .slider-ui b { color: var(--acid); }
.hero .margin-note { color: #7c80a6; }

/* ---------- Client strip ---------- */
.client-strip { position: relative; background: var(--night); border-top: 1px solid var(--night-line); }
.client-strip::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), var(--acid), var(--pink), transparent); }
.client-strip > p { color: #7c80a6; letter-spacing: .14em; }
.client-strip div span { font-family: var(--display); color: #8f93b8; transition: color .2s; }
.client-strip div span:hover { color: white; }
.client-strip .client-missing { color: #676b90; border-color: #3a3e66; border-radius: 8px; }

/* ---------- Intro ---------- */
.intro-grid { position: relative; border-bottom: 0; }
.intro-grid .eyebrow, .case-feature .eyebrow, .process .eyebrow, .cta-band .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.intro-grid .eyebrow::before, .case-feature .eyebrow::before, .process .eyebrow::before, .cta-band .eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--pink)); }
.intro-grid h2 { font-weight: 600; }
.intro-copy p:first-child { color: var(--ink); font-size: 1.32rem; line-height: 1.55; }

/* ---------- Service cards ---------- */
.service-grid { gap: 18px; border: 0; }
.service-card { position: relative; overflow: hidden; isolation: isolate; min-height: 400px; padding: 34px 34px 32px; background: rgba(255,255,255,.72); border: 1px solid rgba(17,18,15,.12); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 40px -30px rgba(8,10,28,.35);
  transition: color .3s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s; }
.service-card::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(600px 300px at 100% 0%, rgba(111,91,255,.6), transparent 60%), radial-gradient(400px 260px at 0% 100%, rgba(255,95,200,.28), transparent 60%), var(--night); }
.service-card:hover { color: white; background: rgba(255,255,255,.72); border-color: transparent; transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(8,10,28,.65); }
.service-card:hover::before { opacity: 1; }
.service-card__top span:first-child { padding: 5px 11px; border: 1px solid currentColor; border-radius: 99px; }
.service-card .arrow { width: 42px; height: 42px; display: grid; place-items: center; background: var(--acid); color: var(--night); border-radius: 50%; font-size: 1.1rem; transition: transform .35s; }
.service-card:hover .arrow { transform: rotate(45deg); }
.service-card small { border-radius: 99px; padding: 5px 11px; font-weight: 600; letter-spacing: .08em; }
.service-card h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.05em; }
.service-card:hover p { color: #b5b8d4; }
.service-card .text-link { border-bottom-color: currentColor; }
.service-card:hover .text-link { color: var(--acid); }
.service-card.reveal:nth-child(2) { transition-delay: .08s; }
.service-card.reveal:nth-child(3) { transition-delay: .16s; }
.service-card.reveal:nth-child(4) { transition-delay: .24s; }
.service-card.reveal.is-visible:hover { transition-delay: 0s; }

/* ---------- Case feature ---------- */
.case-feature__media { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); background:
  radial-gradient(420px 320px at 15% 10%, rgba(255,95,200,.55), transparent 65%),
  radial-gradient(520px 380px at 95% 95%, rgba(83,214,255,.5), transparent 65%),
  linear-gradient(135deg, #5b4bd6, #2a1e7a); }
.case-feature__media::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.5px); background-size: 18px 18px; }
.case-window { overflow: hidden; border-radius: 14px; border-color: rgba(8,10,28,.4); transform: rotate(-1.6deg); box-shadow: 0 40px 70px -25px rgba(8,10,28,.7), -12px 12px 0 var(--acid); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.case-feature__media:hover .case-window { transform: rotate(0) scale(1.01); }
.case-feature__copy h2 { font-weight: 600; }
.results { border: 0; gap: 14px; }
.results div, .results div + div { padding: 22px; background: white; border: 1px solid rgba(17,18,15,.1); border-radius: 16px; }
.results dt { font-family: var(--display); font-weight: 600; font-size: 3.2rem; background: linear-gradient(120deg, var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.results dd { letter-spacing: .06em; }

/* ---------- Process ---------- */
.process { position: relative; overflow: hidden; isolation: isolate; background:
  radial-gradient(700px 420px at 100% 0%, rgba(111,91,255,.35), transparent 65%),
  radial-gradient(600px 380px at 0% 100%, rgba(217,255,67,.1), transparent 60%), var(--night); }
.process .section-heading h2 { font-weight: 600; }
.process .section-heading > p { color: #a8abc9; }
.process-list { display: grid; gap: 14px; border: 0; }
.process-list li { padding: 30px 32px; grid-template-columns: 120px 1fr auto; align-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--night-line); border-radius: var(--radius); transition: background .3s, border-color .3s, transform .3s; }
.process-list li:hover { background: rgba(255,255,255,.07); border-color: rgba(217,255,67,.4); transform: translateX(6px); }
.process-list > li > span { font-family: var(--display); font-size: 4.2rem; font-weight: 700; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--acid); }
.process-list h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 600; letter-spacing: -.03em; }
.process-list p { color: #a8abc9; }
.process-list small { padding: 6px 13px; color: var(--acid); border: 1px solid rgba(217,255,67,.35); border-radius: 99px; font-size: .72rem; white-space: nowrap; }

/* ---------- Testimonial ---------- */
.testimonial { position: relative; }
.quote-mark { height: 110px; font-size: 11rem; background: linear-gradient(135deg, var(--orange), var(--pink), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.testimonial blockquote { letter-spacing: -.02em; }
.quote-person { display: inline-flex; padding: 10px 20px 10px 10px; background: rgba(255,255,255,.7); border: 1px solid rgba(17,18,15,.1); border-radius: 99px; }
.avatar-broken { border-radius: 50%; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: 110px 0; background: var(--acid); }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 620px; aspect-ratio: 1; right: -120px; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(8,10,28,.1) 22px 24px); }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 240px; aspect-ratio: 1; right: 12%; top: -70px; border-radius: 50%; background: var(--violet); box-shadow: 18px 18px 0 var(--night); }
.cta-band .eyebrow::before { background: var(--night); }
.cta-band h2 { font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 5.6rem); }
.cta-band .button--dark:hover { color: var(--night); background: white; border-color: white; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--night); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), var(--acid), var(--pink), transparent); }
.site-footer .brand__name { font-family: var(--display); }
.footer-bottom { border-top-color: var(--night-line); color: #6d7197; }
.newsletter label { padding: 4px 4px 4px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; }
.newsletter button { width: 42px; height: 42px; flex: none; color: var(--night); background: var(--acid); border-radius: 50%; }

/* ---------- Floating UI ---------- */
.chat-launcher { border-radius: 99px; background: var(--night); border-color: rgba(255,255,255,.14); box-shadow: 0 16px 40px -12px rgba(8,10,28,.6), 4px 4px 0 var(--acid); }
.chat-launcher__status { animation: homePulse 2.4s infinite; }
.support-chat { border-radius: 18px; overflow: hidden; }
.support-chat > header { background: var(--night); }
.cookie-banner { border-radius: 18px; background: rgba(250,250,246,.92); backdrop-filter: blur(14px); border-color: rgba(17,18,15,.2); box-shadow: 0 30px 60px -20px rgba(8,10,28,.45), 8px 8px 0 var(--orange); }
.cookie-banner strong { font-family: var(--display); font-size: .95rem; }
.cookie-banner.is-compact { border-radius: 99px; padding: 10px 10px 10px 22px; grid-template-columns: 1fr auto; align-items: center; box-shadow: 0 20px 40px -18px rgba(8,10,28,.45), 4px 4px 0 var(--orange); }
.cookie-banner.is-compact { width: 400px; }
.cookie-banner.is-compact > div:last-child { gap: 6px; }
.cookie-banner.is-compact .button { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .site-nav { background: var(--night); }
  .site-nav > a:not(.nav-cta), .site-nav .nav-cta { color: white; border-bottom-color: var(--night-line); }
  .site-nav .nav-cta { color: var(--acid); }
  .header-blog { color: white; border-color: rgba(255,255,255,.3); border-radius: 99px; background: rgba(255,255,255,.05); }
  .header-blog:hover { color: var(--night); background: var(--acid); border-color: var(--acid); }
  .hero { padding-top: 80px; }
  .hero__visual::before { right: 0; }
  .process-list li { grid-template-columns: 90px 1fr auto; }
  .process-list > li > span { font-size: 3.2rem; }
}
@media (max-width: 700px) {
  .hero { padding-top: 48px; padding-bottom: 80px; }
  .hero h1 { font-size: clamp(3.05rem, 13.8vw, 4.35rem); }
  .hero .eyebrow { font-size: .6rem; letter-spacing: .1em; }
  .image-frame--hero { transform: none; box-shadow: 9px 9px 0 var(--acid), 0 30px 60px -20px rgba(0,0,0,.7); }
  .hero__visual::before { width: 90%; }
  .service-grid { gap: 12px; }
  .service-card { min-height: 340px; padding: 25px; }
  .case-window { transform: none; box-shadow: 0 30px 50px -25px rgba(8,10,28,.7), -7px 7px 0 var(--acid); }
  .results dt { font-size: 2.4rem; }
  .results div, .results div + div { padding: 16px; }
  .process-list li { padding: 24px 20px; grid-template-columns: 1fr; gap: 12px; }
  .process-list small { grid-column: auto; justify-self: start; }
  .process-list > li > span { font-size: 2.8rem; }
  .cta-band { padding: 80px 0; }
  .cta-band::before { width: 380px; right: -200px; }
  .cta-band::after { width: 140px; right: -20px; }
  .quote-person { border-radius: 18px; }
  .cookie-banner.is-compact { width: auto; border-radius: 18px; padding: 12px 12px 12px 18px; grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .announcement__dot, .hero .eyebrow::before, .chat-launcher__status, .hero h1 em, .hero__visual::before { animation: none; }
  .image-frame--hero, .case-window { transform: none; }
}
