/* NP SoftTech — Premium motion & agency polish
   Inspired by Cirkle Studio motion language + Arctic Grey / Dynamic Dreamz / Crawlapps / WebContrive patterns.
   Keeps NP SoftTech brand tokens. */

:root {
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Ambient page atmosphere ----- */
body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(215, 231, 242, .85), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(255, 225, 208, .35), transparent 50%);
  background-attachment: fixed;
}

.hero {
  position: relative;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 86, 142, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 86, 142, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  animation: gridDrift 28s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}
.hero > * { position: relative; z-index: 1; }

/* Gradient keyword (Cirkle-style accent word) */
.text-gradient {
  background: linear-gradient(120deg, #0A568E 0%, #1470b0 40%, #FF6713 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero-copy h1 .serif-em {
  display: inline;
}

.hero-announce {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.15rem;
  padding: .45rem .85rem .45rem .5rem;
  background: #fff;
  border: 1px solid var(--color-primary-light);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(10, 86, 142, .08);
  font-size: .82rem;
  font-weight: 650;
  color: var(--color-primary-deep);
  text-decoration: none;
  transition: transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium);
}
.hero-announce:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(10, 86, 142, .12);
  color: var(--color-primary-deep);
  text-decoration: none;
}
.hero-announce .pulse-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-size: .85rem;
  position: relative;
}
.hero-announce .pulse-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.hero-announce .pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 103, 19, .35);
  animation: pulseRing 2.2s var(--ease-soft) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(.85); opacity: .9; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.hero-announce .chev {
  margin-left: .15rem;
  color: var(--color-accent);
  transition: transform .3s var(--ease-premium);
}
.hero-announce:hover .chev { transform: translateX(3px); }

.markets-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.1rem;
}
.market-chip {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(215, 231, 242, .65);
  border: 1px solid transparent;
  padding: .35rem .65rem;
  border-radius: 999px;
}

/* ----- Stronger reveals (Cirkle soft entrance) ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity .7s var(--ease-premium),
    transform .7s var(--ease-premium),
    filter .7s var(--ease-premium);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal-scale {
  transform: translateY(18px) scale(.97);
}
.reveal-scale.is-visible {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .hero::before { animation: none; }
  .logo-marquee-track { animation: none !important; }
  .hero-announce .pulse-dot::after { animation: none; }
}

/* Stagger children */
[data-stagger].is-visible > * {
  animation: staggerIn .7s var(--ease-premium) both;
}
[data-stagger].is-visible > *:nth-child(1) { animation-delay: .05s; }
[data-stagger].is-visible > *:nth-child(2) { animation-delay: .12s; }
[data-stagger].is-visible > *:nth-child(3) { animation-delay: .19s; }
[data-stagger].is-visible > *:nth-child(4) { animation-delay: .26s; }
[data-stagger].is-visible > *:nth-child(5) { animation-delay: .33s; }
[data-stagger].is-visible > *:nth-child(6) { animation-delay: .4s; }
[data-stagger].is-visible > *:nth-child(7) { animation-delay: .47s; }
[data-stagger].is-visible > *:nth-child(8) { animation-delay: .54s; }
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ----- Logo marquee ----- */
.logo-marquee-wrap {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 22px rgba(7, 58, 97, .04);
}
.logo-marquee-wrap::before,
.logo-marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
}
@media (min-width: 768px) {
  .logo-marquee-wrap::before,
  .logo-marquee-wrap::after {
    width: 56px;
  }
}
.logo-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fff, transparent);
}
.logo-marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #fff, transparent);
}
.logo-marquee {
  overflow: hidden;
  padding: 1.05rem 0;
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  align-items: center;
  animation: marqueeScroll 36s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 56px;
  padding: .45rem 1.15rem;
  text-decoration: none;
  border-right: 1px solid rgba(215, 231, 242, .95);
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
@media (min-width: 768px) {
  .logo-marquee-item {
    min-width: 176px;
    height: 60px;
    padding: .5rem 1.6rem;
  }
}
.logo-marquee-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.logo-marquee-item img {
  display: block;
  width: auto;
  max-width: 160px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  transition: filter .25s ease;
}
.logo-marquee-item:hover img {
  filter: none;
}
.logo-marquee-item strong {
  display: block;
  font-size: .95rem;
  font-weight: 750;
  color: var(--color-primary-deep);
  letter-spacing: -0.02em;
}
.logo-marquee-item span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--color-muted);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Keep static wall as secondary denser grid */
.logo-wall {
  margin-top: 1rem;
}

/* ----- Work spotlight strip (WebContrive / Arctic Grey) ----- */
.work-spotlight {
  display: grid;
  gap: 1rem;
  margin-top: .5rem;
}
@media (min-width: 900px) {
  .work-spotlight {
    grid-template-columns: 1.15fr .85fr;
    align-items: stretch;
  }
}
.spotlight-main {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,103,19,.22), transparent 40%),
    linear-gradient(145deg, #073A61 0%, #0A568E 48%, #1470b0 100%);
  color: #fff;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform .45s var(--ease-premium), box-shadow .45s var(--ease-premium);
}
.spotlight-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(7, 58, 97, .28);
  color: #fff;
  text-decoration: none;
}
.spotlight-main .meta {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,225,208,.95);
  margin-bottom: .5rem;
}
.spotlight-main h3 {
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0 0 .5rem;
}
.spotlight-main p {
  margin: 0;
  color: rgba(255,255,255,.82);
  max-width: 28rem;
}
.spotlight-main .spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-weight: 700;
  color: #FFE1D0;
}
.spotlight-main .spotlight-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(255,103,19,.45), transparent 65%);
  animation: orbFloat 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, 16px); }
}
.spotlight-side {
  display: grid;
  gap: .85rem;
}
.spotlight-mini {
  border-radius: 18px;
  border: 1px solid var(--color-primary-light);
  background: #fff;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: transform .35s var(--ease-premium), border-color .35s ease, box-shadow .35s ease;
}
.spotlight-mini:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 40px rgba(10, 86, 142, .1);
  color: inherit;
  text-decoration: none;
}
.spotlight-mini .meta {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .35rem;
}
.spotlight-mini h3 {
  font-size: 1.05rem;
  margin: 0 0 .35rem;
}
.spotlight-mini p {
  margin: 0;
  font-size: .9rem;
  color: var(--color-muted);
}

/* ----- Case cards premium hover ----- */
.case-card {
  position: relative;
}
.case-card .case-visual {
  position: relative;
  overflow: hidden;
  transition: transform .55s var(--ease-premium);
}
.case-card:hover .case-visual {
  transform: scale(1.03);
}
.case-card .case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-premium);
}
.case-card:hover .case-visual::after {
  transform: translateX(120%);
}
.case-card:nth-child(1) .case-visual {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,103,19,.2), transparent 42%),
    linear-gradient(145deg, #D7E7F2, #fff 48%, #FFE1D0);
}
.case-card:nth-child(2) .case-visual {
  background:
    radial-gradient(circle at 20% 80%, rgba(10,86,142,.2), transparent 45%),
    linear-gradient(145deg, #FFE1D0, #fff 45%, #D7E7F2);
}
.case-card:nth-child(3) .case-visual {
  background:
    radial-gradient(circle at 70% 40%, rgba(255,103,19,.18), transparent 40%),
    linear-gradient(160deg, #0A568E, #1470b0 55%, #D7E7F2);
  color: #fff;
}
.case-card:nth-child(4) .case-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(10,86,142,.15), transparent 45%),
    linear-gradient(145deg, #EEF4F9, #fff 40%, #FFE1D0);
}

/* ----- Service / engagement polish ----- */
.engagement-card,
.panel-link,
.trust-item {
  transition: transform .4s var(--ease-premium), box-shadow .4s var(--ease-premium), border-color .3s ease;
}
.engagement-card:hover,
.panel-link:hover,
.trust-item:hover {
  transform: translateY(-5px);
}

.content-band.three .stat-chip {
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease-premium), box-shadow .4s var(--ease-premium);
}
.content-band.three .stat-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 86, 142, .1);
}
.content-band.three .stat-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
  opacity: 0;
  transition: opacity .3s ease;
}
.content-band.three .stat-chip:hover::before { opacity: 1; }

/* ----- Process timeline draw ----- */
.process-steps {
  position: relative;
}
@media (min-width: 900px) {
  .process-steps::before {
    content: "";
    position: absolute;
    top: 1.65rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light), var(--color-primary));
    opacity: .45;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s var(--ease-premium);
    z-index: 0;
  }
  .process-steps.is-visible::before {
    transform: scaleX(1);
  }
  .process-step { z-index: 1; }
}
.process-step {
  transition: transform .35s var(--ease-premium), border-color .35s ease, box-shadow .35s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 14px 36px rgba(10, 86, 142, .1);
}

/* ----- Agency partnership band (Dynamic Dreamz style) ----- */
.agency-band {
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(255,103,19,.18), transparent 40%),
    linear-gradient(135deg, #073A61 0%, #0A568E 55%, #0c6aad 100%);
  color: #fff;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .agency-band {
    grid-template-columns: 1.4fr auto;
  }
}
.agency-band h2 {
  color: #fff !important;
  margin: 0 0 .6rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.agency-band p {
  margin: 0;
  color: rgba(255,255,255,.82);
  max-width: 36rem;
}
.agency-band .eyebrow {
  color: #FFE1D0 !important;
}
.agency-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.agency-pills span {
  font-size: .75rem;
  font-weight: 700;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}
.agency-band .btn-accent {
  white-space: nowrap;
}

/* ----- Split path lift ----- */
.split-paths .panel {
  transition: transform .4s var(--ease-premium), box-shadow .4s var(--ease-premium);
}
.split-paths .panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(10, 86, 142, .12);
}

/* ----- Stats count polish ----- */
.hero-stats .proof-item strong {
  display: inline-block;
  transition: transform .35s var(--ease-premium);
}
.hero-stats.is-visible .proof-item strong {
  animation: statPop .6s var(--ease-premium) both;
}
.hero-stats.is-visible .proof-item:nth-child(2) strong { animation-delay: .1s; }
.hero-stats.is-visible .proof-item:nth-child(3) strong { animation-delay: .2s; }
@keyframes statPop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ----- FAQ micro-interactions ----- */
.faq-item summary {
  transition: color .2s ease;
}
.faq-item summary:hover {
  color: #0A568E;
}

/* ----- Magnetic button feel ----- */
.btn {
  transition:
    transform .3s var(--ease-premium),
    box-shadow .3s var(--ease-premium),
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}
.btn-accent {
  background-size: 140% 140%;
  background-image: linear-gradient(135deg, #FF6713 0%, #ff853f 50%, #e55a0c 100%);
  background-position: 0% 50%;
}
.btn-accent:hover {
  background-position: 100% 50%;
}

/* ----- Phone stack polish ----- */
.phone-card {
  transition: box-shadow .4s var(--ease-premium);
}
.phone-card:hover {
  box-shadow: 0 24px 56px rgba(7, 58, 97, .22);
}

/* ----- Section intro breathing room ----- */
.section-intro h2 {
  letter-spacing: -0.03em;
}
.section-intro .lead {
  transition: opacity .4s ease;
}

/* ----- Cursor glow on interactive surfaces (desktop) ----- */
@media (pointer: fine) {
  .glow-surface {
    position: relative;
    overflow: hidden;
  }
  .glow-surface::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,103,19,.14), transparent 65%);
    left: var(--mx, 50%);
    top: var(--my, 50%);
    translate: -50% -50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 0;
  }
  .glow-surface:hover::before { opacity: 1; }
  .glow-surface > * { position: relative; z-index: 1; }
}

/* Case study / detail page polish */
.page-hero {
  position: relative;
  overflow: clip;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(255,225,208,.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(215,231,242,.7), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }

.case-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0 0;
}
.case-meta-strip span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary-deep);
}

.prose-case {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .prose-case {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}
.case-aside {
  position: sticky;
  top: 96px;
  border-radius: 20px;
  border: 1px solid var(--color-primary-light);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(10, 86, 142, .08);
}
.case-aside h3 {
  font-size: 1rem;
  margin: 0 0 .75rem;
}
.case-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
  font-size: .92rem;
}
.case-aside .btn {
  width: 100%;
  margin-top: 1rem;
  justify-content: center;
}
