:root {
  --bg: #f5f1eb;
  --bg-soft: #fbf8f4;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-dark: #151321;
  --surface-dark-soft: rgba(21, 19, 33, 0.84);
  --ink: #171420;
  --muted: #625a68;
  --muted-soft: #8f8794;
  --line: rgba(23, 20, 32, 0.08);
  --line-strong: rgba(23, 20, 32, 0.16);
  --primary: #7b4bff;
  --primary-deep: #5d2fe3;
  --primary-soft: rgba(123, 75, 255, 0.12);
  --accent: #ff6c8f;
  --accent-soft: rgba(255, 108, 143, 0.12);
  --gold: #ddb57f;
  --gold-soft: rgba(221, 181, 127, 0.14);
  --success: #1ea672;
  --success-soft: rgba(30, 166, 114, 0.12);
  --warning: #c57d2d;
  --warning-soft: rgba(197, 125, 45, 0.12);
  --danger: #d44c66;
  --danger-soft: rgba(212, 76, 102, 0.12);
  --shadow-sm: 0 14px 38px rgba(23, 20, 32, 0.06);
  --shadow-md: 0 26px 72px rgba(23, 20, 32, 0.08);
  --shadow-lg: 0 38px 100px rgba(23, 20, 32, 0.12);
  --radius-xs: 14px;
  --radius-sm: 20px;
  --radius-md: 28px;
  --radius-lg: 36px;
  --radius-xl: 46px;
  --container: 1180px;
  --content: 760px;
  --header-h: 88px;
  --transition: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 8% 0%, rgba(123, 75, 255, 0.12), transparent 28%),
    radial-gradient(circle at 96% 4%, rgba(255, 108, 143, 0.10), transparent 22%),
    radial-gradient(circle at 48% 100%, rgba(221, 181, 127, 0.08), transparent 24%),
    linear-gradient(180deg, #fffdfb 0%, var(--bg) 55%, #fffdfb 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.7) 2px,
    rgba(255, 255, 255, 0.7) 3px
  );
  mix-blend-mode: soft-light;
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

ul,
ol {
  margin: 0 0 1rem 1.2rem;
  color: var(--muted);
}

li + li {
  margin-top: 0.55rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.35rem);
}

h2 {
  font-size: clamp(2.1rem, 3vw, 3.4rem);
}

h3 {
  font-size: clamp(1.22rem, 2vw, 1.7rem);
}

strong {
  color: var(--ink);
}

small,
.small {
  color: var(--muted-soft);
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.9rem 1rem;
  background: var(--surface-dark);
  color: #fff;
  border-radius: 999px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.content-width {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.main-content {
  position: relative;
  overflow: clip;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-tight {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 20, 32, 0.06);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(23, 20, 32, 0.04);
}

.eyebrow .icon {
  width: 1.65rem;
  height: 1.65rem;
}

.surface-card,
.media-frame,
.quick-card,
.category-card,
.knowledge-card,
.highlight-card,
.stat-card,
.side-card,
.related-card,
.step-card,
.list-card,
.help-callout,
.category-card,
.article-section,
.article-intro,
.search-shell,
.cta-panel,
.page-404-wrap,
.editorial-band,
.device-card,
.photo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.surface-card,
.text-panel,
.article-section,
.article-intro,
.side-card,
.quick-card,
.category-card,
.knowledge-card,
.highlight-card,
.stat-card,
.related-card,
.list-card,
.step-card,
.help-callout,
.search-shell,
.cta-panel,
.page-404-wrap,
.editorial-band {
  backdrop-filter: blur(18px) saturate(140%);
}

.icon {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.7rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(123, 75, 255, 0.16) 0%, rgba(123, 75, 255, 0.08) 100%);
  color: var(--primary);
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-inline {
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 251, 0.68);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.site-header.is-scrolled {
  border-color: rgba(23, 20, 32, 0.06);
  background: rgba(255, 253, 251, 0.88);
  box-shadow: 0 12px 32px rgba(23, 20, 32, 0.05);
}

.header-shell {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  width: 182px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.site-nav a {
  position: relative;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
  transition: color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.55rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(23, 20, 32, 0.05);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.2rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-24deg);
  transition: left 420ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  left: 150%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(123, 75, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 22px 42px rgba(123, 75, 255, 0.34);
}

.btn-secondary,
.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: rgba(23, 20, 32, 0.08);
}

.btn-secondary:hover,
.btn-ghost:hover {
  box-shadow: 0 16px 32px rgba(23, 20, 32, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(23, 20, 32, 0.05);
}

.nav-toggle .icon {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.hero,
.page-hero {
  padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
}

.hero-grid,
.page-hero-grid,
.split-grid,
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.92fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy,
.text-panel {
  position: relative;
  z-index: 1;
}

.hero-copy > p,
.page-hero .hero-copy > p {
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
}

.hero-pills,
.meta-pills,
.kicker-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.hero-pills span,
.meta-pills span,
.kicker,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 20, 32, 0.06);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(23, 20, 32, 0.04);
}

.hero-support {
  margin-top: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 20, 32, 0.06);
  box-shadow: 0 16px 32px rgba(23, 20, 32, 0.04);
}

.hero-support .icon {
  width: 2.2rem;
  height: 2.2rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1.45rem;
}

.mini-stat {
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 20, 32, 0.06);
  box-shadow: 0 16px 32px rgba(23, 20, 32, 0.04);
}

.mini-stat strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 680px;
}

.page-hero .hero-visual {
  min-height: 600px;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.85;
}

.orb-a {
  inset: 7% auto auto 8%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(123, 75, 255, 0.22), transparent 70%);
}

.orb-b {
  inset: auto 4% 10% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 108, 143, 0.18), transparent 72%);
}

.photo-card,
.media-frame,
.article-hero-media {
  position: relative;
  overflow: hidden;
}

.photo-card img,
.media-frame img,
.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.media-frame:hover img,
.photo-card:hover img,
.article-hero-media:hover img {
  transform: scale(1.035);
}

.photo-card {
  position: absolute;
  padding: 0.55rem;
  border-radius: 30px;
}

.photo-card-main {
  top: 0;
  right: 0;
  width: min(76%, 520px);
  aspect-ratio: 4 / 5;
  z-index: 2;
}

.photo-card-secondary {
  left: 0;
  bottom: 0;
  width: min(44%, 300px);
  aspect-ratio: 4 / 5;
  z-index: 4;
}

.device-card {
  position: absolute;
  left: 8%;
  top: 22%;
  width: min(58%, 390px);
  padding: 1rem 1rem 1.05rem;
  z-index: 5;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-lg);
}

.device-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.device-top span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(23, 20, 32, 0.16);
}

.device-top strong {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device-layout {
  display: grid;
  gap: 0.9rem;
}

.device-panel {
  padding: 1rem 1rem 1.1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(123, 75, 255, 0.12), rgba(255, 108, 143, 0.10));
  border: 1px solid rgba(123, 75, 255, 0.12);
}

.device-label {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.device-list {
  display: grid;
  gap: 0.55rem;
}

.device-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(23, 20, 32, 0.035);
}

.device-list b {
  font-size: 0.94rem;
}

.device-list span {
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 20, 32, 0.08);
  box-shadow: 0 18px 38px rgba(23, 20, 32, 0.08);
  z-index: 6;
  animation: floatChip 7.2s ease-in-out infinite;
}

.floating-chip::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px rgba(123, 75, 255, 0.08);
}

.chip-approve {
  top: 8%;
  left: 4%;
  animation-delay: -1.2s;
}

.chip-hours {
  right: 2%;
  bottom: 8%;
}

.media-frame {
  min-height: 520px;
  padding: 0.7rem;
  border-radius: 34px;
}

.media-frame img {
  border-radius: 26px;
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 1.4rem 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.1rem);
}

.band {
  position: relative;
}

.band-grid,
.card-grid-4,
.quick-grid,
.category-grid,
.metrics-grid,
.related-grid,
.knowledge-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.band-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.band-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(23, 20, 32, 0.035);
  border: 1px solid rgba(23, 20, 32, 0.05);
  font-weight: 700;
  color: var(--ink);
}

.card-grid-4,
.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.highlight-card,
.stat-card,
.quick-card,
.category-card,
.knowledge-card,
.related-card,
.list-card,
.step-card {
  padding: 1.35rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.highlight-card:hover,
.stat-card:hover,
.quick-card:hover,
.category-card:hover,
.knowledge-card:hover,
.related-card:hover,
.list-card:hover,
.step-card:hover,
.side-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(123, 75, 255, 0.16);
}

.highlight-card h3,
.stat-card h3,
.quick-card h3,
.category-card h3,
.knowledge-card h3,
.related-card h3,
.list-card h3,
.step-card h3 {
  margin-bottom: 0.55rem;
}

.highlight-card::after,
.quick-card::after,
.category-card::after,
.knowledge-card::after,
.related-card::after,
.step-card::after {
  content: "";
  position: absolute;
  inset: auto 1.35rem 0.85rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(123, 75, 255, 0.82), rgba(255, 108, 143, 0.6), rgba(221, 181, 127, 0.35));
  transform: scaleX(0.24);
  transform-origin: left;
  opacity: 0.8;
  transition: transform var(--transition), opacity var(--transition);
}

.highlight-card:hover::after,
.quick-card:hover::after,
.category-card:hover::after,
.knowledge-card:hover::after,
.related-card:hover::after,
.step-card:hover::after {
  transform: scaleX(1);
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 44rem;
}

.section-head p {
  font-size: 1.06rem;
}

.text-panel {
  padding: clamp(1.6rem, 3vw, 2.2rem);
}

.feature-stack,
.workflow-rail,
.side-list {
  display: grid;
  gap: 0.95rem;
}

.number-pill,
.meta,
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.75rem;
  min-height: 2rem;
  border-radius: 999px;
  background: rgba(123, 75, 255, 0.10);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.number-pill {
  width: fit-content;
  background: rgba(23, 20, 32, 0.05);
  color: var(--ink);
}

.link-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  font-weight: 800;
  color: var(--ink);
}

.link-row .icon-inline {
  transition: transform var(--transition);
}

.link-row:hover .icon-inline {
  transform: translateX(3px);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.list-card ul,
.text-panel ul,
.article-section ul,
.article-section ol,
.side-card ul {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}

.check-list li,
.list-card li,
.side-list li,
.footer-column li,
.article-section ol li,
.article-section ul li {
  position: relative;
  padding-left: 1.65rem;
}

.check-list li::before,
.list-card li::before,
.side-list li::before,
.footer-column li::before,
.article-section ul li::before,
.article-section ol li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 5px rgba(123, 75, 255, 0.08);
}

.article-section ol {
  counter-reset: section-counter;
}

.article-section ol li::before {
  counter-increment: section-counter;
  content: counter(section-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  top: 0.42rem;
  font-size: 0.65rem;
  color: #fff;
}

.search-shell {
  padding: 1.1rem;
}

.search-shell label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-shell input {
  width: 100%;
  height: 3.5rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(23, 20, 32, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-shell input:focus {
  border-color: rgba(123, 75, 255, 0.4);
  box-shadow: 0 0 0 6px rgba(123, 75, 255, 0.08);
}

.chip-row {
  margin-top: 1rem;
}

.chip {
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.chip:hover,
.chip.is-active {
  border-color: rgba(123, 75, 255, 0.2);
  background: rgba(123, 75, 255, 0.1);
  color: var(--primary);
}

.help-status {
  margin-top: 0.8rem;
  color: var(--muted-soft);
  font-size: 0.92rem;
  font-weight: 650;
}

.quick-grid,
.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-card {
  display: grid;
  gap: 0.65rem;
}

.knowledge-card .category-chip {
  width: fit-content;
}

.knowledge-card.is-hidden {
  display: none !important;
}

.empty-state {
  margin-top: 1.2rem;
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(23, 20, 32, 0.14);
}

.help-tools {
  display: grid;
  gap: 1.2rem;
}

.help-callout {
  padding: 1.4rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted-soft);
  font-size: 0.9rem;
}

.breadcrumbs a {
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: rgba(23, 20, 32, 0.22);
}

.article-hero {
  padding: clamp(2.2rem, 4vw, 3rem) 0 1rem;
}

.article-hero-shell {
  padding: clamp(1.3rem, 3vw, 1.8rem);
  position: relative;
  overflow: hidden;
}

.article-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(123, 75, 255, 0.10), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 108, 143, 0.08), transparent 22%);
  pointer-events: none;
}

.article-hero-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(280px, 360px);
  gap: 1.2rem;
  align-items: stretch;
}

.article-hero-copy {
  min-width: 0;
}

.article-hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: flex-start;
  justify-content: flex-end;
}

.article-hero-media {
  min-height: 100%;
  padding: 0.55rem;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.article-hero-media img {
  min-height: 280px;
  border-radius: 22px;
}

.article-media-badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: rgba(21, 19, 33, 0.78);
  color: #fff;
  box-shadow: 0 14px 32px rgba(12, 10, 20, 0.25);
  backdrop-filter: blur(12px);
}

.article-media-badge span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.article-media-badge strong {
  font-size: 1rem;
  color: #fff;
}

.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 1rem;
}

.side-card {
  padding: 1.2rem;
}

.side-card h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.toc-list,
.side-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-list li + li,
.side-list li + li {
  margin-top: 0.45rem;
}

.toc-list a,
.side-list a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  color: var(--muted);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.toc-list a:hover,
.side-list a:hover,
.toc-list a.is-current {
  background: rgba(123, 75, 255, 0.08);
  color: var(--primary);
  transform: translateX(2px);
}

.article-main {
  display: grid;
  gap: 1rem;
}

.article-intro,
.article-section {
  padding: clamp(1.3rem, 3vw, 1.7rem);
}

.article-section > *:last-child,
.article-intro > *:last-child,
.side-card > *:last-child,
.text-panel > *:last-child,
.cta-panel > *:last-child,
.highlight-card > *:last-child,
.stat-card > *:last-child,
.quick-card > *:last-child,
.category-card > *:last-child,
.knowledge-card > *:last-child,
.related-card > *:last-child,
.list-card > *:last-child,
.step-card > *:last-child,
.page-404-wrap > *:last-child,
.footer-brand > *:last-child,
.footer-column > *:last-child,
.editorial-band > *:last-child,
.mini-stat > *:last-child,
.hero-copy > *:last-child {
  margin-bottom: 0;
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copy-link.is-copied {
  border-color: rgba(30, 166, 114, 0.18);
  background: rgba(30, 166, 114, 0.1);
}

.note,
.note--important,
.note--tip {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid transparent;
  background: rgba(23, 20, 32, 0.035);
}

.note--important {
  background: var(--danger-soft);
  border-color: rgba(212, 76, 102, 0.12);
}

.note--tip {
  background: var(--success-soft);
  border-color: rgba(30, 166, 114, 0.12);
}

.mini-article {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(23, 20, 32, 0.035);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem 2rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at left top, rgba(123, 75, 255, 0.10), transparent 26%),
    radial-gradient(circle at right bottom, rgba(255, 108, 143, 0.10), transparent 24%);
}

.site-footer {
  padding: 1rem 0 2rem;
}

.site-footer .container {
  background: linear-gradient(180deg, rgba(21, 19, 33, 0.96), rgba(21, 19, 33, 0.92));
  color: rgba(255, 255, 255, 0.84);
  border-radius: 36px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 30px 90px rgba(10, 8, 16, 0.2);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 1.2rem 2rem;
}

.footer-brand p,
.footer-column li,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.footer-column h3 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.footer-column a {
  transition: color var(--transition), transform var(--transition);
}

.footer-column a:hover {
  color: #fff;
}

.footer-column li::before {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: space-between;
  font-size: 0.92rem;
}

.page-404 .main-content {
  min-height: calc(100vh - 14rem);
  display: grid;
  align-items: center;
}

.page-404-wrap {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  max-width: 760px;
  padding: clamp(1.8rem, 4vw, 2.5rem);
}

.page-404-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(123, 75, 255, 0.12), transparent 22%);
  pointer-events: none;
}

.page-404-wrap h1 {
  font-size: clamp(3.2rem, 9vw, 6rem);
}

.page-404-wrap p {
  font-size: 1.08rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.15rem 1.25rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(123, 75, 255, 0.1);
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-content {
  padding-top: 0.9rem;
}

.theme-account .article-hero-shell::before {
  background: radial-gradient(circle at top right, rgba(123, 75, 255, 0.14), transparent 30%), radial-gradient(circle at bottom left, rgba(221, 181, 127, 0.12), transparent 22%);
}

.theme-how .article-hero-shell::before {
  background: radial-gradient(circle at top right, rgba(123, 75, 255, 0.14), transparent 30%), radial-gradient(circle at bottom left, rgba(30, 166, 114, 0.10), transparent 22%);
}

.theme-hiring .article-hero-shell::before {
  background: radial-gradient(circle at top right, rgba(255, 108, 143, 0.14), transparent 30%), radial-gradient(circle at bottom left, rgba(123, 75, 255, 0.10), transparent 22%);
}

.theme-payments .article-hero-shell::before {
  background: radial-gradient(circle at top right, rgba(221, 181, 127, 0.16), transparent 30%), radial-gradient(circle at bottom left, rgba(123, 75, 255, 0.10), transparent 22%);
}

.theme-projects .article-hero-shell::before {
  background: radial-gradient(circle at top right, rgba(30, 166, 114, 0.12), transparent 30%), radial-gradient(circle at bottom left, rgba(255, 108, 143, 0.10), transparent 22%);
}

.will-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1), transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.photo-card,
.device-card {
  animation: floatSoft 8.4s ease-in-out infinite;
}

.photo-card-secondary {
  animation-delay: -2s;
}

.device-card {
  animation-delay: -4s;
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes floatChip {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1180px) {
  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .feature-row,
  .editorial-band,
  .article-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .page-hero .hero-visual {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }

  .card-grid-4,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-grid,
  .category-grid,
  .knowledge-grid,
  .related-grid,
  .footer-grid,
  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-sidebar {
    position: static;
    order: 2;
  }

  .article-hero-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .article-hero-media {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: flex;
    position: absolute;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 253, 251, 0.95);
    border: 1px solid rgba(23, 20, 32, 0.08);
    box-shadow: 0 26px 72px rgba(23, 20, 32, 0.12);
    backdrop-filter: blur(20px);
  }

  .site-header.is-open .site-nav {
    top: calc(100% + 0.6rem);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border-radius: 24px 24px 18px 18px;
  }

  .site-header.is-open .header-actions {
    top: calc(100% + 14.9rem);
    flex-direction: column;
    padding: 0.8rem;
    border-top: 0;
    border-radius: 18px 18px 24px 24px;
  }

  .site-header.is-open .header-actions .btn {
    width: 100%;
  }

  .site-nav a {
    width: 100%;
    justify-content: space-between;
  }

  .proof-grid,
  .band-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .page-hero .hero-visual {
    min-height: 620px;
  }

  .photo-card-main {
    width: min(76%, 460px);
  }

  .device-card {
    left: 4%;
    width: min(66%, 360px);
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .hero,
  .page-hero {
    padding-top: 2.7rem;
  }

  .section {
    padding: 3.4rem 0;
  }

  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .feature-row {
    gap: 1.6rem;
  }

  .proof-grid,
  .card-grid-4,
  .metrics-grid,
  .quick-grid,
  .category-grid,
  .knowledge-grid,
  .related-grid,
  .comparison-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .page-hero .hero-visual {
    min-height: 520px;
  }

  .photo-card-main {
    width: min(80%, 410px);
  }

  .photo-card-secondary {
    width: min(48%, 220px);
  }

  .device-card {
    top: 25%;
    left: 4%;
    width: min(76%, 320px);
    padding: 0.8rem;
  }

  .device-panel {
    padding: 0.85rem;
  }

  .device-value {
    font-size: 2rem;
  }

  .floating-chip {
    font-size: 0.78rem;
    padding: 0.68rem 0.82rem;
  }

  .media-frame {
    min-height: 380px;
  }

  .article-hero-head {
    grid-template-columns: 1fr;
  }

  .article-actions {
    justify-content: flex-start;
  }

  .article-layout {
    gap: 1rem;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }
}


/* --- v3 polish ------------------------------------------------------------ */
:root {
  --shadow-xl: 0 42px 120px rgba(23, 20, 32, 0.14);
  --focus-ring: 0 0 0 4px rgba(123, 75, 255, 0.14);
}

html {
  scrollbar-gutter: stable;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 auto;
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle at center, rgba(123, 75, 255, 0.06), transparent 68%);
  pointer-events: none;
  z-index: -1;
  transform: translate(12%, 14%);
}

::selection {
  background: rgba(123, 75, 255, 0.16);
  color: var(--ink);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 240;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold));
  box-shadow: 0 0 22px rgba(123, 75, 255, 0.28);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-header {
  background: rgba(255, 253, 251, 0.74);
}

.site-header.is-scrolled {
  box-shadow: 0 16px 42px rgba(23, 20, 32, 0.07);
}

.brand img {
  filter: saturate(1.03) contrast(1.02);
}

.btn,
.site-nav a,
.toc-list a,
.side-list a {
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #7649ff 0%, #5a2ae1 100%);
  box-shadow: 0 18px 40px rgba(123, 75, 255, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 24px 48px rgba(123, 75, 255, 0.28);
}

.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.media-frame,
.article-hero-media,
.photo-card,
.device-card {
  border-color: rgba(255, 255, 255, 0.52);
}

.surface-card,
.text-panel,
.article-intro,
.article-section,
.side-card,
.quick-card,
.category-card,
.knowledge-card,
.highlight-card,
.stat-card,
.related-card,
.list-card,
.step-card,
.help-callout,
.search-shell,
.cta-panel,
.page-404-wrap,
.editorial-band,
.mini-stat,
.band-pill {
  box-shadow: 0 18px 52px rgba(23, 20, 32, 0.07);
}

.highlight-card,
.stat-card,
.quick-card,
.category-card,
.knowledge-card,
.related-card,
.list-card,
.step-card,
.side-card,
.mini-stat,
.band-pill,
.article-section,
.article-intro,
.media-frame,
.article-hero-media {
  position: relative;
  overflow: hidden;
}

.highlight-card::before,
.stat-card::before,
.quick-card::before,
.category-card::before,
.knowledge-card::before,
.related-card::before,
.list-card::before,
.step-card::before,
.side-card::before,
.mini-stat::before,
.band-pill::before,
.article-section::before,
.article-intro::before,
.media-frame::before,
.article-hero-media::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 38%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: 0.9;
}

.highlight-card:hover,
.stat-card:hover,
.quick-card:hover,
.category-card:hover,
.knowledge-card:hover,
.related-card:hover,
.list-card:hover,
.step-card:hover,
.side-card:hover,
.media-frame:hover,
.article-section:hover,
.article-intro:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(123, 75, 255, 0.16);
}

.photo-card::after,
.media-frame::after,
.article-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(23, 20, 32, 0.04));
}

.hero-copy h1,
.page-hero .hero-copy h1 {
  max-width: 12ch;
}

.hero-copy > p,
.page-hero .hero-copy > p {
  max-width: 36rem;
}

.hero-support,
.mini-stat,
.band-pill,
.kicker,
.chip,
.meta-pills span,
.hero-pills span {
  backdrop-filter: blur(14px) saturate(120%);
}

.editorial-band,
.text-panel,
.article-hero-shell {
  box-shadow: 0 24px 72px rgba(23, 20, 32, 0.08);
}

.article-hero-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 75, 255, 0), rgba(123, 75, 255, 0.22), rgba(255, 108, 143, 0.14), rgba(123, 75, 255, 0));
}

.article-intro {
  border-color: rgba(123, 75, 255, 0.10);
}

.article-intro p.lead-copy {
  font-size: 1.04rem;
  color: var(--ink);
  max-width: 48rem;
}

.article-meta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.meta-mini-card {
  padding: 1rem 1rem 1.05rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 20, 32, 0.07);
  box-shadow: 0 16px 36px rgba(23, 20, 32, 0.05);
  backdrop-filter: blur(14px) saturate(120%);
}

.meta-mini-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted-soft);
  font-size: 0.76rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 800;
}

.meta-mini-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  line-height: 1.2;
}

.meta-mini-card p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.side-card-accent {
  background: linear-gradient(135deg, rgba(123, 75, 255, 0.13), rgba(255, 108, 143, 0.08) 58%, rgba(255, 255, 255, 0.86));
  border-color: rgba(123, 75, 255, 0.18);
  box-shadow: 0 22px 46px rgba(123, 75, 255, 0.10);
}

.side-card-accent .btn {
  width: 100%;
}

.side-card-accent p {
  color: rgba(23, 20, 32, 0.82);
}

.category-chip,
.meta,
.number-pill {
  backdrop-filter: blur(10px) saturate(120%);
}

.article-media-badge {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  gap: 1.4rem;
}

.site-footer {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 20, 32, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 253, 251, 0.72));
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 8% 10%, rgba(123, 75, 255, 0.05), transparent 28%),
    radial-gradient(circle at 94% 18%, rgba(255, 108, 143, 0.05), transparent 24%);
  pointer-events: none;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-bottom {
  padding-top: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(23, 20, 32, 0.06);
}

@media (max-width: 1180px) {
  .article-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .scroll-progress {
    height: 2px;
  }

  .article-meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-mini-card {
    padding: 0.95rem;
  }

  .site-footer {
    padding-top: 0.4rem;
  }
}


/* v4 compatibility + legal/footer polish */
.brand img {
  width: clamp(156px, 15vw, 182px);
}

.site-footer .brand img {
  filter: none;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.footer-bottom a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.52);
}
