:root {
  --product-ink: #0b1734;
  --product-muted: #5d6d87;
  --product-line: #dbe4f1;
  --product-blue: #2364db;
  --product-deep: #0c275f;
  --product-paper: #f6f8fc;
}

body:not(.showcasePage) .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

body:not(.showcasePage) .brand__text {
  display: grid;
  gap: 2px;
}

body:not(.showcasePage) {
  color: var(--product-ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(80, 139, 255, .14), transparent 30rem),
    radial-gradient(circle at 95% 18%, rgba(69, 210, 255, .12), transparent 26rem),
    var(--product-paper);
  overflow-x: hidden;
}

body:not(.showcasePage) .bg-blur { display: none; }
body:not(.showcasePage) .container { width: min(1200px, calc(100% - 40px)); }

body:not(.showcasePage) .header {
  position: sticky;
  top: 14px;
  z-index: 100;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(207, 219, 236, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 40px rgba(31, 57, 100, .1);
  backdrop-filter: blur(18px);
}

body:not(.showcasePage) .brand__logo,
body:not(.showcasePage) .brand > img {
  border-radius: 14px !important;
  box-shadow: 0 9px 24px rgba(28, 72, 150, .2);
}

body:not(.showcasePage) .brand__title { color: var(--product-ink); font-weight: 850; letter-spacing: -.03em; }
body:not(.showcasePage) .brand__subtitle { color: var(--product-muted); }
body:not(.showcasePage) .nav__link { color: #3c4d69; font-weight: 750; }
body:not(.showcasePage) .nav__link:hover { color: var(--product-blue); }

body:not(.showcasePage) main > .hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  margin-top: 36px;
  padding: clamp(44px, 6vw, 78px);
  gap: clamp(35px, 6vw, 76px);
  align-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 38px;
  background: linear-gradient(145deg, #081a3e 0%, #103d8a 70%, #1d6ae0 100%);
  box-shadow: 0 32px 85px rgba(16, 52, 122, .24);
}

body.evidocketPage main > .hero { background: linear-gradient(145deg, #122134, #334c67 55%, #607a93); }
body.docswitchPage main > .hero { background: linear-gradient(145deg, #152251, #4d3bac 55%, #7553e8); }
body.memory-page main > .hero { background: linear-gradient(145deg, #102436, #205b67 52%, #b98a3a); }
body.squadflowPage main > .hero { background: linear-gradient(145deg, #10230f, #145b37 58%, #2b9564); }

body:not(.showcasePage) main > .hero::before,
body:not(.showcasePage) main > .hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
body:not(.showcasePage) main > .hero::before {
  width: 300px; height: 300px; right: -110px; top: -120px;
  border: 1px solid rgba(255,255,255,.16);
}
body:not(.showcasePage) main > .hero::after {
  width: 170px; height: 170px; left: -70px; bottom: -90px;
  background: rgba(96, 206, 255, .13);
}

body:not(.showcasePage) main > .hero > * { position: relative; z-index: 1; }
body:not(.showcasePage) main > .hero .hero__title {
  color: white;
  font-size: clamp(43px, 5.2vw, 72px);
  line-height: 1.01;
  letter-spacing: -.06em;
}
body:not(.showcasePage) main > .hero .grad {
  color: #8ddcff;
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.memory-page main > .hero .grad { color: #ffd27a; }
body.squadflowPage main > .hero .grad { color: #8ef0b9; }
body:not(.showcasePage) main > .hero .hero__desc { color: #d9e5fb; font-size: 18px; line-height: 1.7; }
body:not(.showcasePage) main > .hero .pill {
  color: #e6efff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18);
  box-shadow: none; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 850;
}
body:not(.showcasePage) main > .hero .badge { color: #edf5ff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
body:not(.showcasePage) main > .hero .btn--primary { color: #0b2458; background: white; border-color: white; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
body:not(.showcasePage) main > .hero .btn--ghost { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }

body:not(.showcasePage) .previewCard,
body:not(.showcasePage) main > .hero .memory-cover,
body:not(.showcasePage) main > .hero [class*="heroCard"] {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 65px rgba(0,0,0,.22);
  transform: rotate(1.2deg);
}
body:not(.showcasePage) main > .hero .previewCard__label { color: var(--product-muted); }
body:not(.showcasePage) main > .hero .mini { border-color: #e1e8f3; background: #f6f8fc; box-shadow: none; }

body:not(.showcasePage) .section { padding: 84px 0; }
body:not(.showcasePage) .section + .section { border-top: 1px solid rgba(214,224,238,.72); }
body:not(.showcasePage) .section__head { max-width: 780px; margin-bottom: 34px; }
body:not(.showcasePage) .section__title { color: var(--product-ink); font-size: clamp(33px,4vw,52px); letter-spacing: -.05em; }
body:not(.showcasePage) .section__subtitle { color: var(--product-muted); font-size: 17px; line-height: 1.65; }

body:not(.showcasePage) .cards { gap: 20px; }
body:not(.showcasePage) .card,
body:not(.showcasePage) .infoBox,
body:not(.showcasePage) .contactCard {
  border: 1px solid var(--product-line);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 42px rgba(28, 52, 91, .07);
}
body:not(.showcasePage) .card {
  padding: 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
body:not(.showcasePage) .card:hover { transform: translateY(-5px); border-color: #b8cae8; box-shadow: 0 24px 55px rgba(22, 54, 113, .12); }
body:not(.showcasePage) .card__tag { width: fit-content; border-radius: 999px; color: var(--product-deep); background: #edf4ff; font-size: 12px; }
body:not(.showcasePage) .card__title { color: var(--product-ink); font-size: 23px; letter-spacing: -.03em; }
body:not(.showcasePage) .card__desc, body:not(.showcasePage) .list { color: var(--product-muted); line-height: 1.65; }

body:not(.showcasePage) .btn { border-radius: 13px; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease; }
body:not(.showcasePage) .btn:hover { transform: translateY(-2px); }
body:not(.showcasePage) .btn--primary { background: var(--product-blue); border-color: var(--product-blue); box-shadow: 0 10px 24px rgba(35,100,219,.2); }
body:not(.showcasePage) .btn--ghost { color: var(--product-deep); background: white; border-color: #ccd8ea; }

body:not(.showcasePage) .section--contact {
  margin: 45px 0 65px;
  padding: clamp(34px,5vw,60px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 32px;
  background: linear-gradient(145deg, #0c1d42, #164a9c);
}
body:not(.showcasePage) .section--contact .section__title,
body:not(.showcasePage) .section--contact .section__subtitle { color: white; }
body:not(.showcasePage) .section--contact .contactCard { background: rgba(255,255,255,.96); }

body:not(.showcasePage) figure img,
body:not(.showcasePage) [class*="Gallery"] img,
body:not(.showcasePage) [class*="gallery"] img {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(20,42,78,.12);
}
body:not(.showcasePage) .footer { color: var(--product-muted); border-top-color: var(--product-line); }

.salesPage .salesHeroVisual { display: grid; place-items: center; min-height: 360px; padding: 34px; }
.salesPage .salesIcon { width: 132px; height: 132px; display: grid; place-items: center; border-radius: 32px; color: white; background: linear-gradient(145deg,#2667df,#0c285f); font-size: 64px; box-shadow: 0 24px 55px rgba(20,55,125,.28); }
.salesPage .salesMock { width: min(100%, 410px); padding: 25px; border-radius: 28px; background: white; box-shadow: 0 28px 70px rgba(0,0,0,.22); transform: rotate(1.5deg); }
.salesPage .salesMock__bar { height: 8px; width: 36%; margin-bottom: 24px; border-radius: 999px; background: #d7e2f3; }
.salesPage .salesMock__row { display: flex; align-items: center; gap: 13px; margin: 12px 0; padding: 14px; border-radius: 15px; color: var(--product-ink); background: #f2f6fc; font-weight: 750; }
.salesPage .salesMock__row span:first-child { font-size: 24px; }
.salesPage .valueStrip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: -34px auto 45px; position: relative; z-index: 3; }
.salesPage .valueStrip > div { padding: 22px; border: 1px solid var(--product-line); border-radius: 20px; background: white; box-shadow: 0 14px 35px rgba(28,52,91,.09); }
.salesPage .valueStrip strong { display: block; margin-bottom: 6px; color: var(--product-deep); font-size: 18px; }
.salesPage .valueStrip span { color: var(--product-muted); line-height: 1.5; }
.salesPage .salesCTA { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 38px; border-radius: 28px; color: white; background: linear-gradient(140deg,#0d285f,#2364db); }
.salesPage .salesCTA h2 { margin: 0 0 7px; font-size: clamp(26px,3.5vw,42px); }
.salesPage .salesCTA p { margin: 0; color: #dce8ff; }
.salesPage .salesCTA .btn { flex: 0 0 auto; color: #0c285f; background: white; border-color: white; }

@media (max-width: 850px) {
  body:not(.showcasePage) main > .hero { grid-template-columns: 1fr; min-height: auto; padding: 42px 28px; border-radius: 28px; }
  body:not(.showcasePage) main > .hero .hero__title { font-size: clamp(41px,11vw,60px); }
  body:not(.showcasePage) .previewCard,
  body:not(.showcasePage) main > .hero .memory-cover,
  body:not(.showcasePage) main > .hero [class*="heroCard"] { transform: none; }
  .salesPage .valueStrip { grid-template-columns: 1fr; margin-top: 25px; }
  .salesPage .salesCTA { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  body:not(.showcasePage) .container { width: min(100% - 22px,1200px); }
  body:not(.showcasePage) .header { top: 8px; margin-top: 8px; border-radius: 16px; }
  body:not(.showcasePage) .section { padding: 58px 0; }
  body:not(.showcasePage) .cards { grid-template-columns: 1fr; }
  body:not(.showcasePage) .section--contact { padding: 28px 18px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.showcasePage) *, body:not(.showcasePage) *::before, body:not(.showcasePage) *::after { transition: none !important; }
}
