/* Visual refinement 1.1 — public site */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --header-dark: #080d18;
  --header-panel: #101a2c;
  --hero-dark: #0d1729;
}

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, h4, .brand-copy, .button {
  font-family: var(--font-display);
}

[hidden] { display: none !important; }

/* Navigation follows the selected light/dark theme */
.trustbar {
  background: #eef3fb;
  color: #425069;
  border-bottom: 1px solid #dce4ef;
}

.trustbar i { color: #078f83; }

.site-header {
  background: rgba(255,255,255,.94);
  color: #171d29;
  border-bottom-color: rgba(31,45,67,.12);
  box-shadow: 0 8px 30px rgba(21,35,58,.06);
  animation: headerEnter .55s cubic-bezier(.2,.75,.25,1) both;
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255,255,255,.985);
  border-bottom-color: rgba(49,86,211,.2);
  box-shadow: 0 14px 38px rgba(21,35,58,.14);
}

.site-header .brand { gap: 10px; }
.site-header .brand-mark {
  width: 49px;
  height: 49px;
  color: var(--brand);
  filter: drop-shadow(0 6px 14px rgba(70,112,230,.24));
  transition: transform .25s ease, filter .25s ease;
}
.site-header .brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-2deg) scale(1.03);
  filter: drop-shadow(0 8px 18px rgba(84,126,244,.4));
}
.site-header .brand-copy strong {
  color: #171d29;
  font-size: 1.28rem;
  font-weight: 720;
  letter-spacing: -.045em;
}
.site-header .brand-copy > span {
  color: var(--brand);
  font-size: 1.02rem;
}
.site-header .brand-copy small { color: #6d7788; }

.main-nav > a, .nav-group > button { color: #303a4a; }
.main-nav > a, .nav-group > button { position: relative; }
.main-nav > a:hover, .nav-group > button:hover {
  color: var(--brand);
  background: #eef2f8;
}
.main-nav > a::after, .nav-group > button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav > a:hover::after, .nav-group > button:hover::after,
.nav-group:focus-within > button::after { transform: scaleX(1); }

.nav-dropdown {
  background: #fff;
  border-color: #dfe5ee;
  box-shadow: 0 24px 65px rgba(27,40,63,.16);
}
.nav-dropdown a:hover { background: #f0f3f8; }
.nav-dropdown i { color: var(--brand); background: rgba(49,86,211,.1); }
.nav-dropdown small { color: #6d7788; }

.theme-toggle {
  color: #394457;
  background: #fff;
  border-color: #dce3ed;
}
.theme-toggle:hover { color: var(--brand); background: #eef2f8; }
.nav-toggle span { background: #202938; }

[data-theme=dark] .trustbar {
  background: #14213a;
  color: #dce6f7;
  border-bottom-color: rgba(255,255,255,.07);
}
[data-theme=dark] .trustbar i { color: #65dfd0; }
[data-theme=dark] .site-header {
  background: rgba(8,13,24,.94);
  color: #f7f9fd;
  border-bottom-color: rgba(255,255,255,.1);
  box-shadow: 0 8px 30px rgba(1,5,14,.08);
}
[data-theme=dark] .site-header.is-scrolled {
  background: rgba(6,10,19,.985);
  border-bottom-color: rgba(126,161,255,.22);
  box-shadow: 0 14px 38px rgba(1,5,14,.3);
}
[data-theme=dark] .site-header .brand-mark { color: #7fa3ff; }
[data-theme=dark] .site-header .brand-copy strong { color: #fff; }
[data-theme=dark] .site-header .brand-copy > span { color: #91adff; }
[data-theme=dark] .site-header .brand-copy small { color: #93a0b5; }
[data-theme=dark] .main-nav > a,
[data-theme=dark] .nav-group > button { color: #e8edf7; }
[data-theme=dark] .main-nav > a:hover,
[data-theme=dark] .nav-group > button:hover {
  color: #fff;
  background: rgba(255,255,255,.075);
}
[data-theme=dark] .main-nav > a::after,
[data-theme=dark] .nav-group > button::after { background: #7fa3ff; }
[data-theme=dark] .nav-dropdown {
  background: #101a2c;
  border-color: #2a3852;
  box-shadow: 0 24px 65px rgba(0,0,0,.36);
}
[data-theme=dark] .nav-dropdown a:hover { background: rgba(255,255,255,.07); }
[data-theme=dark] .nav-dropdown i { color: #99b3ff; background: rgba(99,135,240,.15); }
[data-theme=dark] .nav-dropdown small { color: #aab7ca; }
[data-theme=dark] .theme-toggle {
  color: #e9eef8;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
}
[data-theme=dark] .theme-toggle:hover { background: rgba(255,255,255,.12); }
[data-theme=dark] .nav-toggle span { background: #fff; }

/* Dark, distinct page mastheads */
.hero, .page-hero, .product-hero, .article-page > header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f8faff;
  background:
    radial-gradient(circle at 86% 14%, rgba(73,116,226,.36), transparent 34%),
    radial-gradient(circle at 8% 95%, rgba(0,166,166,.17), transparent 30%),
    linear-gradient(135deg, #111e36 0%, #0a1222 72%, #0b1425 100%);
  border-bottom-color: #263854;
}

.hero::before, .page-hero::before, .product-hero::before, .article-page > header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 48%, transparent);
  animation: gridDrift 18s linear infinite;
}

.hero .eyebrow, .page-hero .eyebrow, .product-hero .eyebrow,
.article-page > header .eyebrow { color: #9eb7ff; }
.hero h1 em { color: #89a9ff; }
.hero-copy > p, .page-hero > div > p, .article-header > p,
.product-hero .lead, .product-hero .delivery-note { color: #bdc8da; }
.hero-proof { color: #cad3e2; }
.hero-proof i, .product-hero .key-features i { color: #60dbc5; }
.hero .button-secondary {
  color: #111a2b;
  background: #fff;
  border-color: #fff;
}
.hero .button-secondary:hover { color: #2446ad; border-color: #aabfff; }
.breadcrumb { color: #9eacc0; }
.breadcrumb a:hover { color: #b5c7ff; }
.page-hero .business-panel, .page-hero .search-form input { color: var(--text); }

/* Logo-like hero panel animation */
.hero-visual { animation: visualRise .7s .12s cubic-bezier(.2,.75,.25,1) both; }
.software-window { animation: windowHover 7s ease-in-out infinite; }
.license-seal { animation: sealPulse 4s ease-in-out infinite; }

/* Working personal/company selector */
.profile-strip { border-block-color: #dbe2ed; }
.profile-inner { min-height: 175px; }
.profile-inner h2 { font-size: 1.55rem; }
.profile-status { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.profile-button { position: relative; min-width: 245px; padding-right: 42px; }
.profile-button .profile-check {
  position: absolute;
  right: 15px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .65rem;
  transition: .2s ease;
}
.profile-button.active {
  background: color-mix(in srgb, var(--brand), var(--surface) 93%);
  border-color: var(--brand);
}
.profile-button.active .profile-check {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.04);
}
.filter-empty {
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

/* Product imagery */
.product-card {
  min-height: 490px;
  overflow: hidden;
}
.product-card-media {
  position: relative;
  display: block;
  height: 176px;
  margin: -24px -24px 20px;
  overflow: hidden;
  background: #e9eef8;
  border-bottom: 1px solid var(--border);
}
.product-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(8,14,27,.22));
  pointer-events: none;
}
.product-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.75,.25,1);
}
.product-card:hover .product-card-media img { transform: scale(1.045); }
.product-card-media span {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 9px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(7,12,22,.68);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}
.product-card.filter-reveal { animation: cardReveal .36s both; }

.product-art { min-height: 410px; }
.product-media {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: #e8edf7;
  box-shadow: 0 34px 75px rgba(0,0,0,.32);
  transform: perspective(900px) rotateY(4deg);
  animation: productFloat 7s ease-in-out infinite;
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  border-radius: inherit;
}
.product-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-media-label {
  position: absolute;
  left: 15px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(7,12,22,.75);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.product-hero .verified-ribbon {
  color: #172033;
  background: #fff;
  border-color: rgba(255,255,255,.6);
}
.product-hero .buy-line { border-color: rgba(255,255,255,.16); }
.product-hero .buy-line small { color: #aab7ca; }

/* Refined type scale */
.section-head h2, .quote-heading h2, .page-hero h1, .product-main h1,
.article-header h1, .compare-layout h2 { font-weight: 700; }
.product-card h3 { font-weight: 680; }

@keyframes headerEnter {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes visualRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gridDrift { to { background-position: 44px 44px, 44px 44px; } }
@keyframes windowHover { 50% { transform: perspective(1000px) rotateY(-1deg) rotateX(0) translateY(-6px); } }
@keyframes sealPulse { 50% { transform: scale(1.035); filter: saturate(1.12); } }
@keyframes productFloat { 50% { transform: perspective(900px) rotateY(1deg) translateY(-7px); } }
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1000px) {
  .main-nav {
    background: #fff;
    border-bottom-color: #dfe5ee;
    box-shadow: 0 24px 50px rgba(27,40,63,.16);
  }
  .nav-dropdown { background: #f8fafe; }
  [data-theme=dark] .main-nav {
    background: #0c1424;
    border-bottom-color: #293852;
    box-shadow: 0 24px 50px rgba(0,0,0,.35);
  }
  [data-theme=dark] .nav-dropdown { background: #111c30; }
  .product-hero-grid { grid-template-columns: .95fr 1.05fr; }
}

@media (max-width: 720px) {
  .site-header .brand-mark { width: 43px; height: 43px; }
  .site-header .brand-copy strong { font-size: 1.13rem; }
  .site-header .brand-copy > span { font-size: .92rem; }
  .profile-inner { min-height: auto; }
  .profile-button { width: 100%; min-width: 0; }
  .product-card { min-height: 455px; }
  .product-card-media { height: 190px; }
  .product-art { min-height: 300px; }
  .product-media { width: min(92%, 470px); transform: none; }
  .product-hero .verified-ribbon { right: 0; bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .hero-visual, .software-window, .license-seal,
  .product-media, .product-card.filter-reveal,
  .hero::before, .page-hero::before, .product-hero::before,
  .article-page > header::before { animation: none !important; }
}
