/* Storefront-only visual layer: fluid dashboard home, airy glass subpages. */
:root {
  --flow-blue: #1769c2;
  --flow-cyan: #2cbce6;
  --flow-cyan-deep: #087fa7;
  --flow-mint: #55ad8d;
  --flow-gold: #e79a32;
  --flow-ink: #10233d;
  --flow-muted: #526a82;
  --flow-line: rgba(116, 160, 193, .24);
}

body:not(.has-brand-home) {
  background:
    linear-gradient(116deg, rgba(255, 255, 255, .78), transparent 34%),
    linear-gradient(28deg, rgba(217, 241, 230, .44), transparent 48%),
    linear-gradient(152deg, transparent 66%, rgba(255, 230, 184, .24)),
    #f6f9f5;
}

.has-brand-home .site-header {
  border-bottom-color: rgba(109, 184, 208, .22);
  background: rgba(232, 250, 253, .78);
  box-shadow: 0 10px 34px rgba(28, 103, 139, .07);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

.has-brand-home .primary-nav a.is-active {
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(23, 105, 194, .18), 0 6px 16px rgba(22, 105, 147, .07);
}

.has-brand-home .brand-hero {
  padding: 28px 0 36px;
  border-bottom-color: rgba(73, 155, 184, .22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .34)),
    linear-gradient(118deg, #d5f8ff 0%, #bceef5 34%, #d6f8fb 58%, #fff4dc 100%);
}

.has-brand-home .brand-hero::before {
  content: "";
  position: absolute;
  inset: -30% -9% -18% 3%;
  display: block;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(113deg, transparent 18%, rgba(255, 255, 255, .76) 21%, rgba(255, 255, 255, .1) 24%, transparent 27%),
    linear-gradient(120deg, transparent 39%, rgba(12, 133, 170, .38) 45%, rgba(57, 189, 211, .18) 53%, transparent 62%),
    linear-gradient(31deg, transparent 48%, rgba(238, 145, 25, .68) 56%, rgba(255, 197, 66, .24) 68%, transparent 78%);
  filter: blur(1.5px) saturate(112%);
  opacity: .98;
  transform: rotate(-5deg);
}

.has-brand-home .brand-hero::after {
  top: 20px;
  right: 6%;
  bottom: 24px;
  left: 6%;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 22px;
  background: linear-gradient(105deg, rgba(255, 255, 255, .32), transparent 32%, rgba(255, 255, 255, .2) 66%, transparent);
  pointer-events: none;
}

.landing-page .brand-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .8fr);
  align-items: stretch;
  gap: 36px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 18px;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, .64), rgba(229, 250, 255, .34) 48%, rgba(255, 247, 225, .27));
  box-shadow:
    0 34px 90px rgba(15, 99, 135, .18),
    0 9px 28px rgba(255, 178, 52, .07),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(24px) saturate(138%);
  backdrop-filter: blur(24px) saturate(138%);
}

.landing-page .brand-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 2px;
}

.brand-hero-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(560px, 100%);
  gap: 9px;
  margin-bottom: 22px;
}

.brand-hero-tags span {
  justify-content: center;
  min-height: 44px;
  padding: 9px 11px;
  border-color: rgba(94, 158, 208, .3);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  color: #244761;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 20px rgba(32, 103, 145, .055), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-hero-tags span:nth-child(1) {
  border-color: rgba(23, 105, 194, .3);
  background: rgba(242, 249, 255, .68);
}

.brand-hero-tags span:nth-child(2) {
  border-color: rgba(44, 188, 230, .34);
  background: rgba(231, 251, 255, .68);
}

.brand-hero-tags span:nth-child(3) {
  border-color: rgba(231, 154, 50, .34);
  background: rgba(255, 248, 233, .7);
}

.brand-hero-tags span:nth-child(2) svg {
  color: var(--flow-cyan-deep);
}

.brand-hero-tags span:nth-child(3) svg {
  color: #b87a19;
}

.landing-page .brand-eyebrow {
  width: fit-content;
  border-color: rgba(255, 255, 255, .66);
  background: rgba(255, 255, 255, .46);
  color: var(--flow-blue);
}

.brand-hero .hero-title {
  margin: 11px 0 16px;
  font-size: 44px;
  line-height: 1.14;
  text-wrap: balance;
}

.brand-hero-lead {
  color: #3d5c75;
  font-size: 13.5px;
}

.brand-hero-actions .button {
  min-height: 43px;
}

.brand-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin-top: 24px;
  padding: 0;
  border: 0;
  gap: 8px;
  background: transparent;
  box-shadow: none;
}

.brand-hero-facts span {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(107, 163, 203, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-hero-facts span:nth-child(2) {
  background: rgba(238, 252, 255, .58);
}

.brand-hero-facts span:nth-child(3) {
  background: rgba(255, 249, 236, .6);
}

.brand-hero-facts strong {
  font-size: 18px;
}

.brand-hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-console {
  border-color: rgba(255, 255, 255, .82);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(231, 249, 255, .64)),
    rgba(255, 255, 255, .7);
  box-shadow:
    0 24px 62px rgba(10, 103, 145, .2),
    0 4px 18px rgba(34, 140, 176, .08),
    inset 0 1px 0 rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
}

.brand-console-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(228, 248, 253, .58));
}

.brand-console-metrics span {
  border-color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .54);
}

.brand-console-metrics span:nth-child(1) {
  box-shadow: inset 0 -2px 0 rgba(23, 105, 194, .45);
}

.brand-console-metrics span:nth-child(2) {
  box-shadow: inset 0 -2px 0 rgba(44, 188, 230, .5);
}

.brand-console-metrics span:nth-child(3) {
  box-shadow: inset 0 -2px 0 rgba(231, 154, 50, .56);
}

.brand-console-app {
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.brand-stage-caption {
  border-color: rgba(255, 255, 255, .76);
  border-left-color: var(--flow-gold);
  background: rgba(255, 255, 255, .48);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.landing-page .promotion-section {
  padding: 22px 0 0;
}

.promotion-banner {
  border-color: rgba(128, 167, 193, .26);
  border-left-color: var(--flow-gold);
  border-radius: 10px;
  background:
    linear-gradient(100deg, rgba(246, 253, 255, .88), rgba(255, 250, 237, .9)),
    rgba(255, 255, 255, .72);
  box-shadow: 0 16px 38px rgba(30, 98, 129, .07), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.landing-page .brand-about {
  background:
    linear-gradient(120deg, rgba(222, 245, 238, .34), transparent 42%),
    linear-gradient(180deg, #fbfdfb 0%, #f2f8f5 100%);
}

.landing-page .brand-roles {
  background:
    linear-gradient(115deg, rgba(214, 242, 250, .52), transparent 45%),
    linear-gradient(180deg, #f6fbfb 0%, #fbfdfa 100%);
}

.landing-page .brand-services {
  background:
    linear-gradient(122deg, rgba(228, 247, 239, .44), transparent 42%),
    linear-gradient(304deg, rgba(255, 232, 190, .28), transparent 42%),
    #f8fbf7;
}

.landing-page .brand-products {
  background:
    linear-gradient(180deg, #f7fbfb 0%, #eff6f4 100%);
}

.landing-page .brand-cases {
  background:
    linear-gradient(120deg, rgba(219, 244, 250, .34), transparent 44%),
    #fbfdfb;
}

.landing-page .brand-contact-top {
  background:
    linear-gradient(116deg, rgba(206, 243, 250, .62), transparent 43%),
    linear-gradient(320deg, rgba(255, 227, 177, .35), transparent 42%),
    #f7fbf8;
}

.landing-page .brand-portrait-card,
.landing-page .brand-role-card,
.landing-page .brand-service-card,
.landing-page .brand-app-card,
.landing-page .brand-case-card,
.landing-page .brand-channel-link,
.landing-page .brand-contact-form {
  border-color: rgba(113, 158, 187, .23);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 34px rgba(38, 92, 111, .06), inset 0 1px 0 rgba(255, 255, 255, .94);
}

.landing-page .brand-role-card:nth-child(2),
.landing-page .brand-service-card:nth-child(2),
.landing-page .brand-app-card:nth-child(3n + 2) {
  background: linear-gradient(150deg, rgba(255, 255, 255, .84), rgba(231, 249, 247, .72));
}

.landing-page .brand-role-card:nth-child(3),
.landing-page .brand-service-card:nth-child(4),
.landing-page .brand-app-card:nth-child(3n) {
  background: linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(255, 247, 231, .68));
}

/* Subpages: light dashboard glass following the airy reference. */
:is(.market-page, .detail-page, .console-page, .enterprise-page, .legal-page, .support-page, .not-found-page) {
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, .72), transparent 34%),
    linear-gradient(31deg, rgba(218, 242, 227, .3), transparent 47%),
    linear-gradient(146deg, transparent 68%, rgba(255, 229, 178, .24)),
    #f6f9f5;
}

:is(.market-page, .detail-page, .console-page, .enterprise-page, .legal-page, .support-page, .not-found-page)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(119deg, transparent 14%, rgba(207, 242, 232, .38) 22%, transparent 35%),
    linear-gradient(32deg, transparent 58%, rgba(255, 221, 159, .3) 70%, transparent 84%);
}

:is(.market-page, .enterprise-page) .home-hero-wrap {
  width: min(1220px, calc(100% - 40px));
  margin: 26px auto 0;
  padding: 0;
  border: 1px solid rgba(123, 164, 193, .22);
  border-radius: 14px;
  background:
    linear-gradient(118deg, rgba(228, 248, 243, .64), rgba(255, 255, 255, .76) 48%, rgba(255, 245, 221, .55));
  box-shadow: 0 20px 56px rgba(43, 93, 115, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
  overflow: hidden;
}

:is(.market-page, .enterprise-page) .home-hero-wrap::before {
  display: block;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(119deg, transparent 20%, rgba(255, 255, 255, .62) 25%, transparent 30%),
    linear-gradient(31deg, transparent 62%, rgba(255, 207, 122, .18) 72%, transparent 86%);
}

:is(.market-page, .enterprise-page) .hero-shell {
  min-height: 290px;
  padding: 36px 26px 28px;
}

:is(.market-page, .enterprise-page) .hero-kicker {
  margin-bottom: 13px;
  padding: 6px 9px;
  border: 1px solid rgba(85, 173, 141, .24);
  border-radius: 6px;
  background: rgba(255, 255, 255, .56);
  color: #2f735d;
  font-size: 10px;
  letter-spacing: .04em;
}

:is(.market-page, .enterprise-page) .hero-kicker::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--flow-mint);
}

:is(.market-page, .enterprise-page) .hero-title {
  font-size: clamp(31px, 3.2vw, 42px);
  line-height: 1.16;
  color: var(--flow-ink);
}

:is(.market-page, .enterprise-page) .hero-subtitle {
  color: var(--flow-muted);
  font-size: 13px;
}

:is(.market-page, .enterprise-page) .hero-shelf {
  border-color: rgba(117, 162, 190, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 16px 38px rgba(44, 97, 119, .07), inset 0 1px 0 rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

:is(.market-page, .enterprise-page) .shelf-item {
  border-color: rgba(120, 164, 190, .2);
  background: rgba(255, 255, 255, .54);
}

:is(.market-page, .enterprise-page) .market-strip {
  margin: 0 26px 22px;
  border: 1px solid rgba(122, 166, 190, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .56);
  overflow: hidden;
}

.market-page .category-section {
  padding: 18px 0 0;
  border: 0;
  background: transparent;
}

.market-page .category-nav {
  padding: 8px;
  border: 1px solid rgba(121, 163, 188, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 28px rgba(42, 91, 111, .05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.market-page .category-link {
  border-radius: 6px;
}

.market-page .category-link.is-active {
  background-color: #1769c2;
  background-image: linear-gradient(135deg, #1769c2, #0f5da9);
}

:is(.market-page, .enterprise-page) .content-section {
  padding: 22px 0 0;
  border: 0;
  background: transparent;
}

:is(.market-page, .enterprise-page) .content-section > .page-container {
  padding: 24px;
  border: 1px solid rgba(122, 164, 190, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 16px 42px rgba(39, 88, 107, .06), inset 0 1px 0 rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}

.market-page .section-heading,
.enterprise-page .section-heading {
  margin-bottom: 20px;
}

.market-page .section-heading h2,
.enterprise-page .section-heading h2 {
  color: var(--flow-ink);
  font-size: 24px;
}

.market-page .section-kicker,
.enterprise-page .section-kicker {
  color: #31826a;
}

.market-page .product-card,
.market-page .product-row,
.market-page .catalog-toolbar,
.market-page .empty-state {
  border-color: rgba(121, 164, 189, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 10px 26px rgba(41, 91, 109, .045), inset 0 1px 0 rgba(255, 255, 255, .94);
}

.market-page .product-card:hover,
.market-page .product-row:hover {
  border-color: rgba(44, 160, 130, .34);
  box-shadow: 0 15px 34px rgba(41, 91, 109, .08), inset 0 1px 0 rgba(255, 255, 255, .98);
}

.market-page .product-row {
  margin-bottom: 7px;
}

.market-page .product-row:last-child {
  margin-bottom: 0;
}

.enterprise-page .delivery-item,
.enterprise-page .fde-section,
.enterprise-page .fde-brief,
.enterprise-page .fde-step,
.enterprise-page .fde-delivery,
.enterprise-page .enterprise-banner {
  border-color: rgba(121, 164, 189, .21);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 11px 28px rgba(41, 91, 109, .05), inset 0 1px 0 rgba(255, 255, 255, .94);
}

.enterprise-page .fde-section {
  width: min(1220px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 26px;
  border: 1px solid rgba(121, 164, 189, .21);
  border-radius: 12px;
}

.console-page .sidebar-page {
  margin-top: 24px;
  margin-bottom: 40px;
  padding: 18px;
  border: 1px solid rgba(122, 165, 190, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .56);
  box-shadow: 0 18px 48px rgba(38, 88, 107, .06), inset 0 1px 0 rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.console-page .sidebar,
.console-page .stat-card,
.console-page .owned-card,
.console-page .aside-panel,
.console-page .data-table-wrap,
.console-page .info-panel,
.console-page .empty-state {
  border-color: rgba(121, 164, 189, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 9px 24px rgba(41, 91, 109, .04), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.console-page .progress-track span {
  background: linear-gradient(90deg, var(--flow-mint), #78c7ae);
}

.console-page .sidebar-link.is-active {
  background: rgba(222, 245, 239, .72);
  color: #1b6653;
  box-shadow: inset 2px 0 0 var(--flow-mint);
}

.console-page .page-titlebar h1 {
  color: var(--flow-ink);
  font-size: 24px;
}

.detail-page .detail-header {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(122, 165, 190, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 42px rgba(38, 88, 107, .055), inset 0 1px 0 rgba(255, 255, 255, .94);
}

.detail-page .detail-layout {
  margin-top: 16px;
  margin-bottom: 40px;
}

.detail-page .app-preview,
.detail-page .info-panel,
.detail-page .purchase-panel {
  border-color: rgba(121, 164, 189, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 12px 30px rgba(41, 91, 109, .05), inset 0 1px 0 rgba(255, 255, 255, .94);
}

.detail-page .preview-browser {
  border-color: rgba(121, 164, 189, .22);
  background: rgba(248, 252, 250, .86);
}

:is(.legal-page, .support-page) {
  width: min(920px, calc(100% - 40px));
  padding-top: 34px;
}

:is(.legal-page, .support-page) h1 {
  color: var(--flow-ink);
  font-size: 28px;
}

:is(.legal-page, .support-page) .legal-content,
:is(.legal-page, .support-page) .support-card,
:is(.legal-page, .support-page) .support-contact-link {
  border-color: rgba(121, 164, 189, .2);
  border-radius: 9px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 12px 30px rgba(41, 91, 109, .045), inset 0 1px 0 rgba(255, 255, 255, .94);
}

:is(.legal-page, .support-page) .support-card svg {
  color: var(--flow-mint);
}

.not-found-page .empty-state {
  border: 1px solid rgba(121, 164, 189, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 34px rgba(41, 91, 109, .05);
}

@media (max-width: 980px) {
  .landing-page .brand-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 27px;
  }

  .landing-page .brand-hero-copy {
    padding: 0;
  }

  .brand-hero-tags {
    width: min(620px, 100%);
  }
}

@media (max-width: 820px) {
  .has-brand-home .brand-hero {
    padding: 22px 0 28px;
  }

  .landing-page .brand-hero-grid {
    padding: 24px;
  }

  :is(.market-page, .enterprise-page) .home-hero-wrap {
    width: min(100% - 28px, 1220px);
    margin-top: 18px;
  }

  :is(.market-page, .enterprise-page) .hero-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 20px 22px;
  }

  :is(.market-page, .enterprise-page) .market-strip {
    margin-inline: 20px;
  }

  :is(.market-page, .enterprise-page) .content-section > .page-container {
    padding: 20px;
  }

  .enterprise-page .fde-section {
    width: calc(100% - 28px);
    padding: 20px;
  }

  .console-page .sidebar-page {
    padding: 14px;
  }

  .detail-page .detail-header {
    margin-top: 18px;
    padding: 19px;
  }
}

@media (max-width: 620px) {
  .market-page .featured-grid {
    grid-template-columns: 1fr;
  }

  .has-brand-home .brand-hero::after {
    inset: 12px;
  }

  .landing-page .brand-hero-grid {
    padding: 20px;
    border-radius: 14px;
  }

  .brand-hero-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 18px;
  }

  .brand-hero-tags span {
    min-height: 48px;
    padding: 7px 5px;
    font-size: 9px;
    line-height: 1.45;
  }

  .brand-hero-tags svg {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
  }

  .brand-hero .hero-title {
    font-size: 27px;
  }

  .brand-hero-facts span {
    padding: 9px 8px;
  }

  .brand-hero-facts strong {
    font-size: 16px;
  }

  .brand-hero-facts small {
    font-size: 8.5px;
  }

  :is(.market-page, .enterprise-page) .home-hero-wrap {
    border-radius: 11px;
  }

  :is(.market-page, .enterprise-page) .hero-shell {
    padding: 24px 16px 19px;
  }

  :is(.market-page, .enterprise-page) .hero-title {
    font-size: 28px;
  }

  :is(.market-page, .enterprise-page) .market-strip {
    grid-template-columns: 1fr;
    margin: 0 16px 16px;
  }

  :is(.market-page, .enterprise-page) .content-section > .page-container {
    padding: 16px;
    border-radius: 10px;
  }

  .market-page .section-heading h2,
  .enterprise-page .section-heading h2 {
    font-size: 21px;
  }

  .market-page .content-section {
    padding-top: 16px;
  }

  .console-page .sidebar-page {
    margin-top: 16px;
    margin-bottom: 28px;
    padding: 10px;
  }

  .detail-page .detail-header {
    margin-top: 14px;
    padding: 16px;
  }

  :is(.legal-page, .support-page) {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  :is(.legal-page, .support-page) h1 {
    font-size: 25px;
  }
}

/* Supporting card icons use the same color-tile language as product apps. */
.landing-page :is(.brand-role-icon, .brand-service-icon, .brand-case-icon, .brand-form-icon, .brand-channel-icon).app-icon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 24%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .5), transparent 33%),
    linear-gradient(145deg, var(--app-icon-a, #2f9cf2), var(--app-icon-b, #1769c2));
  color: #fff;
  box-shadow:
    0 10px 22px var(--app-icon-shadow, rgba(38, 139, 214, .27)),
    inset 0 1px 0 rgba(255, 255, 255, .52),
    inset 0 -1px 0 rgba(8, 48, 82, .15);
}

.landing-page :is(.brand-role-icon, .brand-service-icon, .brand-case-icon, .brand-form-icon, .brand-channel-icon).app-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .06) 46%, transparent 72%);
  pointer-events: none;
}

.landing-page :is(.brand-role-icon, .brand-service-icon, .brand-case-icon, .brand-form-icon, .brand-channel-icon).app-icon::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -44%;
  z-index: 0;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  pointer-events: none;
}

.landing-page :is(.brand-role-icon, .brand-service-icon, .brand-case-icon, .brand-form-icon, .brand-channel-icon).app-icon > i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.landing-page :is(.brand-role-icon, .brand-service-icon, .brand-case-icon, .brand-form-icon, .brand-channel-icon).app-icon svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(5, 36, 61, .25));
}

/* Front-end card depth: crisp edges, layered shadows and tactile hover states. */
:is(.landing-page, .market-page, .detail-page, .console-page, .enterprise-page, .legal-page, .support-page, .not-found-page) {
  --front-card-edge: rgba(58, 126, 168, .34);
  --front-card-edge-strong: rgba(23, 105, 194, .5);
  --front-card-shadow:
    0 1px 0 rgba(255, 255, 255, .98) inset,
    0 0 0 1px rgba(43, 105, 144, .055),
    0 18px 36px rgba(18, 73, 108, .13),
    0 5px 13px rgba(22, 94, 134, .075);
  --front-card-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 0 0 1px rgba(23, 105, 194, .08),
    0 27px 54px rgba(16, 67, 101, .17),
    0 9px 20px rgba(22, 101, 143, .1);
}

.landing-page :is(
  .brand-hero-grid,
  .brand-portrait-card,
  .brand-role-card,
  .brand-service-card,
  .brand-app-card,
  .brand-case-card,
  .brand-contact-form,
  .brand-channel-link,
  .brand-console,
  .brand-stage-caption,
  .promotion-banner
),
:is(.market-page, .enterprise-page) :is(
  .home-hero-wrap,
  .hero-shelf,
  .category-nav,
  .market-strip,
  .product-card,
  .product-row,
  .catalog-toolbar,
  .empty-state,
  .enterprise-banner,
  .delivery-item,
  .fde-section,
  .fde-brief,
  .fde-step,
  .fde-delivery
),
:is(.market-page, .enterprise-page) .content-section > .page-container,
.detail-page :is(.detail-header, .app-preview, .purchase-panel, .info-panel),
.console-page :is(.sidebar-page, .sidebar, .stat-card, .owned-card, .aside-panel, .data-table-wrap, .info-panel, .empty-state),
:is(.legal-page, .support-page) :is(.legal-content, .support-card, .support-contact-link),
.not-found-page .empty-state {
  border-color: var(--front-card-edge);
  background-clip: padding-box;
  box-shadow: var(--front-card-shadow);
  outline: 1px solid rgba(255, 255, 255, .58);
  outline-offset: -2px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.landing-page :is(.brand-hero-tags span, .brand-hero-facts span, .brand-console-app),
:is(.market-page, .enterprise-page) :is(.shelf-item, .market-strip-item) {
  border-color: rgba(58, 126, 168, .27);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 7px 17px rgba(24, 83, 116, .075);
}

.market-page .category-link.is-active {
  border-color: rgba(9, 76, 148, .58);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .34) inset,
    inset 0 -2px 0 rgba(4, 48, 96, .18),
    0 10px 21px rgba(23, 105, 194, .26);
  transform: translateY(-1px);
}

.detail-page .plan-option.is-selected {
  border-color: rgba(23, 105, 194, .62);
  background: linear-gradient(145deg, rgba(235, 247, 255, .98), rgba(218, 239, 255, .9));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .98) inset,
    0 10px 22px rgba(23, 105, 194, .15);
  transform: translateY(-1px);
}

.console-page .sidebar-link.is-active {
  border-color: rgba(47, 159, 127, .28);
  background: linear-gradient(135deg, rgba(228, 249, 243, .96), rgba(216, 244, 237, .88));
  box-shadow:
    inset 3px 0 0 var(--flow-mint),
    0 1px 0 rgba(255, 255, 255, .88) inset,
    0 8px 18px rgba(30, 133, 105, .11);
}

@media (hover: hover) {
  .landing-page :is(.brand-role-card, .brand-service-card, .brand-app-card, .brand-case-card, .brand-channel-link, .promotion-banner),
  :is(.market-page, .enterprise-page) :is(.product-card, .product-row, .shelf-item, .delivery-item),
  .detail-page :is(.plan-option, .info-panel),
  .console-page :is(.owned-card, .stat-card, .sidebar-link),
  :is(.legal-page, .support-page) :is(.support-card, .support-contact-link) {
    border-color: var(--front-card-edge-strong);
    box-shadow: var(--front-card-shadow-hover);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-brand-home .brand-hero::before,
  .has-brand-home .brand-hero::after {
    animation: none;
  }
}
