/* ==========================================================================
   Nextnora — design layer (loaded last)
   Clean, minimal, premium. Light surfaces, generous whitespace, one brand
   colour used as a quiet accent. Overrides tokens so every page inherits it.
   ========================================================================== */

:root {
  --nn-primary: #4F1ABD;
  --nn-primary-hover: #431699;
  --nn-primary-pressed: #371180;
  --nn-primary-2: #6D3BF2;          /* gradient partner for the brand colour */
  --nn-soft: #F4F0FF;
  --nn-soft-2: #E9E0FF;
  --nn-bg-alt: #FAF9FE;
  --nn-text: #0F0B1F;
  --nn-muted: #5E5A73;
  --nn-border: #ECEAF3;
  --nn-border-strong: #DEDBEA;

  --nn-radius-sm: 10px;
  --nn-radius: 14px;
  --nn-radius-lg: 20px;
  --nn-radius-xl: 28px;

  --nn-shadow-xs: 0 1px 2px rgba(15, 11, 31, .04);
  --nn-shadow-sm: 0 1px 2px rgba(15, 11, 31, .04), 0 4px 12px rgba(15, 11, 31, .04);
  --nn-shadow-md: 0 2px 4px rgba(15, 11, 31, .03), 0 16px 40px -12px rgba(60, 30, 140, .16);
  --nn-shadow-lg: 0 4px 8px rgba(15, 11, 31, .04), 0 40px 80px -24px rgba(60, 30, 140, .28);

  --nn-header-h: 72px;
  --nn-ease: cubic-bezier(.22, .8, .24, 1);
  --bs-primary-rgb: 79, 26, 189;
}

/* ---------- Typography ---------- */
body { color: var(--nn-text); letter-spacing: -0.003em; }
h1, h2, h3 { color: var(--nn-text); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); font-weight: 700; letter-spacing: -0.038em; line-height: 1.08; }
h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.018em; }
p { color: var(--nn-muted); text-wrap: pretty; }
.lead-nn { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.65; }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nn-primary);
  margin-bottom: 1.1rem;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .95rem .45rem .8rem;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--nn-border);
  border-radius: 999px;
  color: var(--nn-text);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: var(--nn-shadow-xs);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nn-primary); box-shadow: 0 0 0 4px rgba(79, 26, 189, .14); }

.section-head { max-width: 42rem; margin-bottom: clamp(3rem, 2.4rem + 3vw, 5rem); }
.section-head p { font-size: 1.1875rem; line-height: 1.6; }
.section-head h2 { margin-bottom: 1.1rem; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-border-radius: 999px; --bs-btn-font-weight: 600; letter-spacing: -0.01em; }
.btn-lg-nn { --bs-btn-padding-x: 1.75rem; min-height: 52px; }
.btn-sm-nn { --bs-btn-padding-x: 1.15rem; min-height: 42px; }

.btn-nn-primary {
  --bs-btn-bg: var(--nn-primary);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--nn-primary-hover);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-border-color: transparent;
  background-image: linear-gradient(180deg, var(--nn-primary-2) -40%, var(--nn-primary) 100%);
  box-shadow: 0 1px 2px rgba(40, 10, 110, .3), 0 8px 20px -8px rgba(79, 26, 189, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-nn-primary:hover { box-shadow: 0 1px 2px rgba(40, 10, 110, .3), 0 14px 28px -10px rgba(79, 26, 189, .7), inset 0 1px 0 rgba(255, 255, 255, .18); transform: translateY(-1px); }
.btn-nn-secondary { --bs-btn-border-color: var(--nn-border-strong); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--nn-primary); --bs-btn-hover-color: var(--nn-primary); box-shadow: none; }
.btn-nn-light { background-image: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.link-arrow { color: var(--nn-primary); }

/* ---------- Header ---------- */
.nn-header { background: rgba(255, 255, 255, .78); }
.nn-header.is-scrolled { background: rgba(255, 255, 255, .88); box-shadow: 0 8px 30px -18px rgba(15, 11, 31, .18); }
.nn-brand__logo { height: 2.1rem; }
.nn-nav .nav-link { color: #3A3650; font-size: .9375rem; border-radius: 999px; padding: .5rem 1rem !important; }
.nn-nav .nav-link:hover, .nn-nav .nav-link.show { background: var(--nn-soft); color: var(--nn-primary); }
.nn-nav .nav-link.active { color: var(--nn-primary); background: var(--nn-soft); }
.nn-dropdown { border-radius: var(--nn-radius-xl); min-width: 340px; box-shadow: var(--nn-shadow-lg); border-color: var(--nn-border); }
.nn-dropdown .dropdown-item { border-radius: var(--nn-radius); }
.nn-dropdown .di-icon { border-radius: 12px; background: var(--nn-soft); flex-basis: 38px; height: 38px; }
.nn-menu-toggle { border-radius: 999px; }

/* ---------- Sections ---------- */
.nn-section { padding: clamp(5rem, 3.5rem + 7vw, 9rem) 0; }
.section-alt { background: var(--nn-bg-alt); border: 0; }

/* ---------- Hero ---------- */
.hero--split { padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) 0 clamp(4rem, 3rem + 5vw, 8rem); background: #fff; }
.hero--split::before { display: none; }
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 52% at 82% 18%, rgba(109, 59, 242, .13), transparent 70%),
    radial-gradient(40% 46% at 10% 0%, rgba(79, 26, 189, .07), transparent 70%),
    radial-gradient(36% 40% at 55% 100%, rgba(59, 130, 246, .07), transparent 70%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(79, 26, 189, .16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 55% at 78% 30%, #000, transparent 75%);
  mask-image: radial-gradient(60% 55% at 78% 30%, #000, transparent 75%);
  opacity: .55;
}
.hero--split h1 { margin: 1.5rem 0 1.5rem; }
.hero--split h1 .accent {
  display: block;
  background: linear-gradient(95deg, var(--nn-primary) 10%, var(--nn-primary-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero--split .lead-nn { max-width: 30rem; margin-bottom: 2.25rem; }
.hero--split .hero-actions { margin-bottom: 2.25rem; }
.hero-value { gap: .6rem 1.5rem; font-size: .875rem; }

/* Phones */
.device {
  position: relative;
  background: #0F0B1F;
  border-radius: 42px;
  padding: 9px;
  box-shadow: var(--nn-shadow-lg), inset 0 0 0 1.5px #2A2640;
}
.device img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 33px; background: #fff; }

.hero-stage { position: relative; width: min(100%, 560px); min-height: 600px; margin: 0 auto; }
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109, 59, 242, .22), transparent 72%);
  filter: blur(8px);
}
.hero-stage .device { position: absolute; }
.device--main { width: 272px; left: 50%; top: 0; translate: -50% 0; z-index: 3; animation: nn-rise-lg 1s .1s var(--nn-ease) both; }
.device--side { width: 214px; opacity: .98; }
.device--left { left: 0; top: 84px; rotate: -6deg; z-index: 1; animation: nn-rise-lg 1s .3s var(--nn-ease) both; }
.device--right { right: 0; top: 128px; rotate: 6deg; z-index: 2; animation: nn-rise-lg 1s .4s var(--nn-ease) both; }

.stage-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .95rem .6rem .65rem;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--nn-border);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nn-text);
  box-shadow: var(--nn-shadow-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: nn-float 6s ease-in-out infinite;
}
.stage-chip .bi { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--nn-soft); color: var(--nn-primary); font-size: .8rem; }
.stage-chip--a { left: -2%; top: 36%; }
.stage-chip--b { right: -1%; bottom: 14%; animation-delay: -3s; }
@keyframes nn-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Feature / audience grid ---------- */
.nn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 1.25rem; }
@media (min-width: 992px) {
  .nn-grid { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
  .nn-grid__item { grid-column: span 2; }
  /* An incomplete last row of two cards stretches evenly instead of leaving a gap. */
  .nn-grid__item:nth-child(3n+1):nth-last-child(2),
  .nn-grid__item:nth-child(3n+2):last-child { grid-column: span 3; }
}
.nn-grid__item > .nn-card { height: 100%; }

.nn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--nn-border);
  border-radius: var(--nn-radius-xl);
  box-shadow: none;
  overflow: hidden;
}
.nn-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 0% 0%, rgba(109, 59, 242, .08), transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--nn-ease);
  pointer-events: none;
}
.nn-card:hover { transform: translateY(-4px); border-color: #D9CCFA; box-shadow: var(--nn-shadow-md); }
.nn-card:hover::after { opacity: 1; }
.nn-card > * { position: relative; z-index: 1; }
.nn-card h3 { margin: 1.5rem 0 .6rem; font-size: 1.25rem; }
.nn-card p { font-size: .975rem; line-height: 1.6; }
.nn-card-link { display: flex; }
.nn-card-link .link-arrow { margin-top: auto; padding-top: 1.5rem; font-size: .9rem; }

.nn-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(145deg, #F4F0FF, #E9E0FF);
  color: var(--nn-primary);
  font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(79, 26, 189, .08);
}

/* ---------- Product showcase ---------- */
.showcase-row + .showcase-row { margin-top: clamp(5rem, 4rem + 5vw, 9rem); }
.showcase-copy .num { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.showcase-copy h3 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 1.1rem; }
.showcase-copy > p { font-size: 1.125rem; line-height: 1.65; }
.check-list { gap: .85rem; margin-top: 1.75rem; }
.check-list li { color: #2E2A42; align-items: center; }
.check-list .bi {
  flex: 0 0 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: var(--nn-soft);
  color: var(--nn-primary);
  font-size: .8rem;
}

.showcase-visual {
  position: relative;
  display: flex;
  justify-content: center;
  height: clamp(26rem, 22rem + 14vw, 34rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem) 1rem 0;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(109, 59, 242, .16), transparent 75%),
    linear-gradient(165deg, #F4F0FF 0%, #FBFAFF 55%, #EFF4FF 100%);
  border: 1px solid #ECE6FB;
  border-radius: 36px;
}
.showcase-visual--alt {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(59, 130, 246, .13), transparent 75%),
    linear-gradient(195deg, #F1F5FF 0%, #FBFAFF 55%, #F4F0FF 100%);
}
.section-alt .showcase-visual { background-color: #fff; }
.device--crop { width: min(272px, 72%); align-self: flex-start; border-radius: 42px 42px 0 0; padding-bottom: 0; }
.device--crop img { border-radius: 33px 33px 0 0; aspect-ratio: auto; height: auto; object-fit: cover; object-position: top; }
.showcase-chip {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1.05rem;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--nn-border);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--nn-text);
  box-shadow: var(--nn-shadow-md);
}
.showcase-chip .bi { color: var(--nn-primary); }

/* ---------- Problem / solution ---------- */
.ps-card { border-radius: var(--nn-radius-xl); padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.ps-problem { background: #fff; border: 1px dashed var(--nn-border-strong); }
.ps-solution { background: linear-gradient(160deg, #fff 40%, #F6F2FF 100%); border: 1px solid #DDD0FB; box-shadow: var(--nn-shadow-md); }
.ps-card .ps-tag { letter-spacing: .14em; font-size: .6875rem; }
.ps-card h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.ps-list li { color: #2E2A42; }
.ps-list .bi { border-radius: 50%; }
.ps-problem .ps-list .bi { background: #F1F0F6; color: #8A86A0; }
.ps-arrow { border-color: var(--nn-border); box-shadow: var(--nn-shadow-md); }

/* ---------- Benefits ---------- */
.benefit { gap: 1.1rem; padding: 0; }
.benefit h3 { font-size: 1.125rem; margin: .15rem 0 .4rem; }
.benefit p { font-size: .975rem; line-height: 1.6; }

/* ---------- Steps ---------- */
.step { background: #fff; border-radius: var(--nn-radius-xl); padding: 2rem; border-color: var(--nn-border); }
.step-num {
  width: auto;
  height: auto;
  background: none;
  border: 0;
  place-items: start;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background-image: linear-gradient(160deg, var(--nn-primary-2), var(--nn-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.25rem; margin-top: .5rem; }
@media (min-width: 992px) {
  .steps .step:not(:last-child)::after { display: none; }
  .step { gap: 1.25rem; padding: 2.25rem; }
}

/* ---------- Download ---------- */
.download-panel {
  background:
    radial-gradient(60% 80% at 50% -10%, rgba(109, 59, 242, .12), transparent 70%),
    linear-gradient(180deg, #FAF9FE, #fff);
  border: 1px solid var(--nn-border);
  border-radius: 40px;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 4rem);
}
.download-points li { color: #2E2A42; }
.download-points .bi { font-size: 1.1rem; }
.store-badge { border-radius: 12px; }

/* ---------- FAQ ---------- */
.nn-accordion { gap: 0; --bs-accordion-btn-padding-x: .25rem; --bs-accordion-btn-padding-y: 1.5rem; --bs-accordion-body-padding-x: .25rem; --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; }
.nn-accordion .accordion-item { background: transparent; border: 0 !important; border-bottom: 1px solid var(--nn-border) !important; border-radius: 0 !important; box-shadow: none !important; }
.nn-accordion .accordion-item:first-child { border-top: 1px solid var(--nn-border) !important; }
.nn-accordion .accordion-button { background: transparent; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; border-radius: 0 !important; box-shadow: none; }
.nn-accordion .accordion-button:not(.collapsed) { color: var(--nn-primary); }
.nn-accordion .accordion-body { padding-bottom: 1.75rem; font-size: 1.0125rem; line-height: 1.7; max-width: 46rem; }

/* ---------- Final CTA ---------- */
.cta-panel {
  border-radius: 40px;
  padding: clamp(3.5rem, 2.5rem + 5vw, 7rem) clamp(1.5rem, 1rem + 4vw, 4rem);
  background:
    radial-gradient(50% 70% at 85% 0%, rgba(160, 120, 255, .45), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(60, 100, 255, .28), transparent 70%),
    linear-gradient(150deg, #3F1299 0%, #4F1ABD 55%, #5A22D4 100%);
  box-shadow: 0 40px 80px -30px rgba(60, 30, 140, .55);
}
.cta-panel::before {
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent 75%);
  opacity: .5;
}
.cta-panel h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem); max-width: 16ch; letter-spacing: -0.04em; }
.cta-panel p { font-size: 1.1875rem; }

/* ---------- Footer ---------- */
.nn-footer { background: #fff; border-top: 1px solid var(--nn-border); padding: 5rem 0 2.5rem; }
.nn-footer h2 { letter-spacing: .12em; font-size: .6875rem; color: var(--nn-muted); }
.nn-footer ul a { color: #3A3650; }
.nn-footer .f-bottom { border-top-color: var(--nn-border); }
.nn-social a { border-radius: 50%; }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
  background:
    radial-gradient(50% 90% at 50% -20%, rgba(109, 59, 242, .13), transparent 70%),
    #fff;
}
.page-hero h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); max-width: 18ch; letter-spacing: -0.042em; }
.page-hero .lead-nn { max-width: 40rem; }
.page-hero--legal::after { display: none; }
.page-hero--legal { border-bottom: 1px solid var(--nn-border); }

.nn-breadcrumb ol { font-size: .8125rem; }
.subnav { background: rgba(255, 255, 255, .86); border-top: 1px solid var(--nn-border); }
.subnav a { color: #4A4660; }
.subnav a:hover, .subnav a.is-current { background: var(--nn-soft); color: var(--nn-primary); }

#features + .nn-section, .feature-detail { background: transparent; }
main > .nn-section[aria-label="Feature details"] { background: var(--nn-bg-alt); }
.feature-detail > .col-lg-8 {
  background: #fff;
  border: 1px solid var(--nn-border);
  border-radius: var(--nn-radius-xl);
  padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
}
.feature-detail + .feature-detail { margin-top: 1.75rem; }
.feature-detail h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.035em; }
.feature-detail .check-list { margin-top: 1.5rem; }
@media (min-width: 768px) { .feature-detail .check-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.how-box { background: var(--nn-bg-alt); border: 0; border-radius: var(--nn-radius-lg); padding: 1.5rem 1.75rem; }
.how-box h3 { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nn-primary); }

.usecase-card { border-radius: var(--nn-radius-xl); padding: clamp(1.75rem, 1rem + 3vw, 3.25rem); }
.usecase-card h2 { letter-spacing: -0.035em; }
.usecase-card h3 { letter-spacing: .14em; font-size: .6875rem; }
.usecase-card .workflow li::before { background: var(--nn-soft); color: var(--nn-primary); }
.tag-list a { border-radius: 999px; }

.resource-card h2, .resource-card h3 { font-size: 1.25rem; letter-spacing: -0.025em; }
.contact-card, .article-cta, .info-table { border-radius: var(--nn-radius-xl); }
.table-scroll { border-radius: var(--nn-radius-xl); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-stage { margin-top: 1rem; min-height: 560px; }
  .hero--split .lead-nn { max-width: 36rem; }
  .hero--split .col-lg-6:first-child { text-align: center; }
  .hero--split .lead-nn { margin-left: auto; margin-right: auto; }
  .hero--split .hero-actions, .hero--split .hero-value { justify-content: center; }
}
@media (max-width: 575.98px) {
  .device--side, .stage-chip { display: none; }
  .hero-stage { min-height: 520px; }
  .device--main { width: 240px; }
  .nn-card { padding: 1.5rem; border-radius: 24px; }
  .showcase-visual, .download-panel, .cta-panel { border-radius: 28px; }
  .hero--split .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .stage-chip { animation: none; } }

/* Download list: a left-aligned block centred as a whole */
.download-panel--center .download-points--center { justify-items: start; width: fit-content; max-width: 100%; text-align: left; }
.download-points--center li { align-items: flex-start; }
.download-points--center .bi { margin-top: .2rem; }

.section-head.text-start h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); }


/* ==========================================================================
   Parallax — driven by assets/js/parallax.js, which sets --py on elements
   with [data-parallax]. Uses the independent `translate` property so it
   composes with entrance animations and rotations. Off for reduced motion.
   ========================================================================== */
[data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }
.device--main[data-parallax] { translate: -50% var(--py, 0px); }
.hero-bg[data-parallax] { inset: -12% 0; }
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { translate: 0 0; will-change: auto; }
  .device--main[data-parallax] { translate: -50% 0; }
}

.showcase-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -90px;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109, 59, 242, .22), transparent 72%);
  pointer-events: none;
}
.showcase-visual--alt .showcase-orb { right: auto; left: -90px; background: radial-gradient(closest-side, rgba(59, 130, 246, .2), transparent 72%); }
.showcase-visual .device--crop { position: relative; z-index: 1; }
.showcase-chip { z-index: 2; }

.cta-glow {
  position: absolute !important;
  width: 520px;
  height: 520px;
  left: 50%;
  top: -40%;
  margin-left: -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent 70%);
  pointer-events: none;
}
.page-hero__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  left: 50%;
  top: -60%;
  margin-left: -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109, 59, 242, .14), transparent 70%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }


/* ---------- Back to top: floating button with a scroll-progress ring ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, .5rem + 2vw, 2rem);
  bottom: clamp(1rem, .5rem + 2vw, 2rem);
  z-index: 1040;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  color: var(--nn-primary);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 11, 31, .06), 0 14px 32px -10px rgba(60, 30, 140, .35);
  opacity: 0;
  transform: translateY(24px) scale(.6) rotate(-90deg);
  pointer-events: none;
  transition: opacity .35s var(--nn-ease), transform .5s var(--nn-ease), box-shadow .25s var(--nn-ease), background-color .25s;
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15, 11, 31, .06), 0 20px 38px -10px rgba(79, 26, 189, .5); }
.to-top:active { transform: translateY(-1px) scale(.96); }
.to-top:focus-visible { outline: 2px solid var(--nn-primary); outline-offset: 4px; }

.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 2.5; }
.to-top__track { stroke: var(--nn-soft-2); }
.to-top__bar {
  stroke: var(--nn-primary-2);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--scroll, 0));
  transition: stroke-dashoffset .12s linear;
}

/* Two stacked arrows: on hover the first flies up and the second takes its place */
.to-top__icon { position: relative; width: 20px; height: 20px; overflow: hidden; font-size: 1.15rem; line-height: 20px; }
.to-top__icon .bi { position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; transition: transform .35s var(--nn-ease); }
.to-top__icon .bi:last-child { transform: translateY(150%); }
.to-top:hover .to-top__icon .bi:first-child { transform: translateY(-150%); }
.to-top:hover .to-top__icon .bi:last-child { transform: none; }

.to-top__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--nn-text);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity .2s var(--nn-ease), transform .3s var(--nn-ease);
  pointer-events: none;
}
.to-top:hover .to-top__label, .to-top:focus-visible .to-top__label { opacity: 1; transform: translate(0, -50%); }

@media (max-width: 575.98px) { .to-top { width: 48px; height: 48px; } .to-top__label { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s; transform: none; }
  .to-top__icon .bi, .to-top__bar { transition: none; }
}
@media print { .to-top { display: none !important; } }
