@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap";

:root {
  --ink: #17151c;
  --muted: #6f6b73;
  --muted-2: #a09ca5;
  --purple: #8b5cf6;
  --purple-deep: #7c3aed;
  --purple-tint: #f3eeff;
  --pink: #ffdbe1;
  --green: #d8f3df;
  --line: #d8d3cb;
  --line-soft: #ece8e1;
  --white: #fffdf9;
  --surface: #f7f4ee;
  --yellow: #ffd66b;
  --lavender: #ece6ff;

  --success: #2f9e5a;
  --success-tint: #e6f6ec;
  --danger: #e0475a;
  --danger-tint: #fceced;
  --warning: #d98c1f;
  --warning-tint: #fdf2e3;
  --sale: #ff5d7a;
  --info: #3b82c4;
  --info-tint: #e9f2fa;

  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-soft: 0 18px 40px -18px rgba(23, 21, 28, 0.35);
  --shadow-sm: 0 1px 2px rgba(23, 21, 28, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(23, 21, 28, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(23, 21, 28, 0.28);
  --shadow-focus: 0 0 0 3px rgba(139, 92, 246, 0.22);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.3s;
  --dur-slow: 0.6s;

  --container-w: 1240px;
  --container-w-wide: 1440px;
  --container-w-narrow: 800px;

  --z-header: 30;
  --z-dropdown: 35;
  --z-fab: 40;
  --z-tooltip: 50;
  --z-toast: 60;
  --z-modal: 70;
  --z-cart: 80;
  --z-mobile-menu: 90;
}

/* ── 2. Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body { min-height: 100vh; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, video { max-width: 100%; display: block; }
svg { display: block; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--purple); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.u-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── 3. Layout utilities ── */
.u-container { max-width: var(--container-w); margin: 0 auto; padding: 0 32px; }
.u-container--wide { max-width: var(--container-w-wide); }
.u-container--narrow { max-width: var(--container-w-narrow); }

.u-text-center { text-align: center; }
.u-text-left { text-align: left; }
.u-text-right { text-align: right; }

.u-flex { display: flex; }
.u-flex-col { display: flex; flex-direction: column; }
.u-flex-center { display: flex; align-items: center; justify-content: center; }
.u-flex-between { display: flex; align-items: center; justify-content: space-between; }
.u-flex-wrap { flex-wrap: wrap; }
.u-items-center { align-items: center; }
.u-items-start { align-items: flex-start; }

.u-gap-1 { gap: var(--space-1); }
.u-gap-2 { gap: var(--space-2); }
.u-gap-3 { gap: var(--space-3); }
.u-gap-4 { gap: var(--space-4); }
.u-gap-6 { gap: var(--space-6); }
.u-gap-8 { gap: var(--space-8); }

.u-mt-1 { margin-top: var(--space-1); }
.u-mt-2 { margin-top: var(--space-2); }
.u-mt-3 { margin-top: var(--space-3); }
.u-mt-4 { margin-top: var(--space-4); }
.u-mt-6 { margin-top: var(--space-6); }
.u-mt-8 { margin-top: var(--space-8); }
.u-mb-1 { margin-bottom: var(--space-1); }
.u-mb-2 { margin-bottom: var(--space-2); }
.u-mb-3 { margin-bottom: var(--space-3); }
.u-mb-4 { margin-bottom: var(--space-4); }
.u-mb-6 { margin-bottom: var(--space-6); }
.u-mb-8 { margin-bottom: var(--space-8); }

.u-hidden { display: none; }
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.u-grid { display: grid; gap: var(--space-6); }
.u-grid--2 { grid-template-columns: repeat(2, 1fr); }
.u-grid--3 { grid-template-columns: repeat(3, 1fr); }
.u-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .u-grid--3, .u-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .u-grid--2, .u-grid--3, .u-grid--4 { grid-template-columns: 1fr; } }

/* ── 4. Rich text content ── */
.rich-text { color: var(--ink); font-size: var(--text-md); line-height: 1.7; }
.rich-text > * + * { margin-top: 1em; }
.rich-text h1, .rich-text h2, .rich-text h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.rich-text h1 { font-size: var(--text-3xl); }
.rich-text h2 { font-size: var(--text-2xl); }
.rich-text h3 { font-size: var(--text-xl); }
.rich-text a { text-decoration: underline; text-underline-offset: 3px; color: var(--purple); }
.rich-text ul, .rich-text ol { padding-left: 1.25em; list-style: revert; }
.rich-text li + li { margin-top: 0.35em; }
.rich-text blockquote { border-left: 3px solid var(--purple); padding-left: 1em; color: var(--muted); font-style: italic; }
.rich-text table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich-text code { font-family: var(--mono); background: rgba(23, 21, 28, 0.06); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ── 5. Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { to { transform: translate(-25%); } }
@keyframes float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.25); } 50% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.92) translateY(16px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-3deg); } }
@keyframes blobDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(24px, -18px) scale(1.08); } 66% { transform: translate(-18px, 14px) scale(0.96); } }
@keyframes gradientPan { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes accordionOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tooltipIn { from { opacity: 0; transform: translateY(4px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.u-animate-fade-up { animation: fadeUp 0.7s var(--ease-out) both; }
.u-animate-fade-in { animation: fadeIn 0.6s ease both; }
.u-animate-pop { animation: popIn 0.55s var(--ease-spring) both; }
.u-delay-1 { animation-delay: 0.08s; }
.u-delay-2 { animation-delay: 0.16s; }
.u-delay-3 { animation-delay: 0.24s; }
.u-delay-4 { animation-delay: 0.32s; }
.u-delay-5 { animation-delay: 0.4s; }
.u-delay-6 { animation-delay: 0.48s; }

.u-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; pointer-events: none; animation: blobDrift 14s ease-in-out infinite; z-index: 0; }
.u-glow--purple { background: var(--purple); }
.u-glow--yellow { background: var(--yellow); }
.u-glow--pink { background: var(--pink); }
.u-glow--green { background: var(--green); }

/* ── 6. Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 20px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; background: transparent; color: var(--ink);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 200% 100%; opacity: 0; transition: opacity var(--dur-base); pointer-events: none;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.btn:hover::after { opacity: 1; animation: shimmer 0.9s linear; }
.btn:active { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn--lg { padding: 18px 28px; font-size: 15px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--purple); color: #fff; border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--ghost { border-color: transparent; }
.btn--ghost:hover { box-shadow: none; transform: none; background: var(--surface); }
.btn--link { border: none; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn--link:hover { transform: none; box-shadow: none; color: var(--purple); }

.btn--accent { background: #93c572; border-color: #93c572; color: #fff; }
.btn--accent:hover { background: #7ab35a; border-color: #7ab35a; }
.btn--gradient { background: linear-gradient(100deg, #ff5d7a 0%, var(--purple) 100%); color: #fff; border-color: var(--ink); }
.btn--soft { background: var(--lavender); border-color: var(--ink); color: var(--ink); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }

.btn--icon { padding: 12px; border-radius: var(--radius-pill); }
.btn--icon.btn--sm { padding: 8px; }

.btn__spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1.5px; }
.btn-group .btn:first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); margin-left: 0; }
.btn-group .btn:last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }

/* ── 7. Badges / Tags / Chips ── */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--ink); color: #fff;
}
.badge--sale { background: var(--sale); }
.badge--new { background: var(--purple); }
.badge--soldout { background: var(--muted); }
.badge--low-stock { background: var(--warning); }
.badge--success { background: var(--success-tint); color: var(--success); }
.badge--info { background: var(--info-tint); color: var(--info); }
.badge--outline { background: transparent; border: 1.5px solid currentColor; color: var(--ink); }

.tag {
  display: inline-flex; align-items: center; padding: 8px 15px; border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill); background: var(--white); font-size: 13px; color: var(--ink);
  transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base), color var(--dur-base), box-shadow var(--dur-base);
}
.tag:hover { transform: translateY(-3px); box-shadow: 3px 3px 0 var(--ink); }
.tag--active { background: linear-gradient(100deg, #ff5d7a, var(--purple)); color: #fff; border-color: var(--ink); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); font-size: 13px; color: var(--ink); }
.chip__remove { opacity: 0.6; }
.chip__remove:hover { opacity: 1; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill); background: var(--white); font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
}
.eyebrow-pill:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.eyebrow-pill::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--purple); flex: none; }

/* ── 8. Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field__label--required::after { content: " *"; color: var(--danger); }

.field__control {
  font: inherit; font-size: var(--text-base); padding: 12px 14px; border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast); width: 100%;
}
.field__control:focus { outline: none; border-color: var(--purple); box-shadow: var(--shadow-focus); }
.field__control::placeholder { color: var(--muted-2); }
.field__control--error { border-color: var(--danger); }
.field__control--error:focus { box-shadow: 0 0 0 3px rgba(224, 71, 90, 0.18); }
.field__control:disabled { background: var(--surface); color: var(--muted-2); cursor: not-allowed; }

textarea.field__control { resize: vertical; min-height: 110px; }

.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 12px; color: var(--danger); }

.field__select-wrap { position: relative; }
.field__select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
select.field__control { appearance: none; padding-right: 36px; }

.checkbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox__input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox__box {
  width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 5px;
  display: grid; place-items: center; transition: background var(--dur-fast), transform var(--dur-fast); flex: none;
}
.checkbox__input:checked + .checkbox__box { background: var(--purple); border-color: var(--purple); }
.checkbox__input:checked + .checkbox__box::after {
  content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.checkbox__label { font-size: 14px; }

.radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.radio__input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio__circle {
  width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; flex: none; transition: border-color var(--dur-fast);
}
.radio__input:checked + .radio__circle { border-color: var(--purple); }
.radio__input:checked + .radio__circle::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.radio__label { font-size: 14px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch__input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 42px; height: 24px; border-radius: var(--radius-pill); background: var(--line); position: relative; transition: background var(--dur-fast); flex: none; }
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur-fast) var(--ease-spring);
}
.switch__input:checked + .switch__track { background: var(--purple); }
.switch__input:checked + .switch__track::after { transform: translateX(18px); }
.switch__label { font-size: 14px; }

.search { position: relative; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search__input.field__control { padding-left: 40px; }

.file-upload {
  border: 1.5px dashed var(--line); border-radius: var(--radius-md); padding: var(--space-8);
  text-align: center; color: var(--muted); transition: border-color var(--dur-fast), background var(--dur-fast);
}
.file-upload:hover, .file-upload--dragover { border-color: var(--purple); background: var(--purple-tint); }
.file-upload__icon { font-size: 28px; margin-bottom: 8px; }
.file-upload__text { font-size: 14px; }
.file-upload__hint { font-size: 12px; margin-top: 4px; }

/* ── 9. Navbar ── */
.navbar { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 253, 249, 0.85); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--line-soft); }
.navbar__inner { max-width: var(--container-w); margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.navbar__menu { display: flex; align-items: center; gap: 28px; }
.navbar__link { font-size: 14px; font-weight: 500; color: var(--ink); position: relative; }
.navbar__link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--purple); transition: width var(--dur-base) var(--ease-out); }
.navbar__link:hover::after { width: 100%; }
.navbar__link--active { color: var(--purple); }
.navbar__actions { display: flex; align-items: center; gap: 12px; }
.navbar__toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.navbar__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 860px) {
  .navbar__menu, .navbar__actions .btn { display: none; }
  .navbar__toggle { display: flex; }
}

.dropdown { position: relative; }
.dropdown__trigger { display: inline-flex; align-items: center; gap: 6px; }
.dropdown__panel {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; background: var(--white);
  border: 1.5px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 8px; z-index: var(--z-dropdown); animation: accordionOpen 0.2s var(--ease-out) both;
}
.dropdown__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; transition: background var(--dur-fast); }
.dropdown__item:hover { background: var(--surface); }

.mobile-menu__overlay { position: fixed; inset: 0; background: rgba(23, 21, 28, 0.45); z-index: var(--z-mobile-menu); animation: fadeIn 0.2s ease both; }
.mobile-menu__panel {
  position: fixed; top: 0; right: 0; width: min(320px, 86vw); height: 100%; background: var(--white);
  z-index: calc(var(--z-mobile-menu) + 1); padding: var(--space-6); display: flex; flex-direction: column;
  gap: var(--space-2); animation: fadeUp 0.3s var(--ease-out) both;
}
.mobile-menu__link { padding: 14px 4px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line-soft); }

/* ── 10. Brand ── */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.06em; transition: opacity var(--dur-fast); }
.brand:hover { opacity: 0.8; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; font-size: 22px; transform: rotate(-8deg); transition: transform 0.35s var(--ease-spring); }
.brand:hover .brand__mark { animation: wiggle 0.5s ease-in-out; }
.brand__name { font-size: 27px; }

/* ── 11. Hero ── */
.hero { min-height: 610px; display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; padding: 55px 32px 70px; max-width: var(--container-w); margin: 0 auto; gap: 40px; position: relative; }
.hero--split { grid-template-columns: 1fr 1fr; justify-items: stretch; text-align: left; min-height: 560px; }
.hero--split .hero__content { text-align: left; margin: 0; }
.hero--split .hero__text { margin-left: 0; }
.hero--split .hero__actions { justify-content: flex-start; }

.hero__content { max-width: 560px; margin: 0 auto; text-align: center; position: relative; z-index: 2; animation: fadeUp 0.8s var(--ease-out) both; }
.hero__title { font-size: clamp(55px, 7vw, 92px); line-height: 0.94; letter-spacing: -0.075em; margin: 0 0 28px; font-weight: 600; }
.hero__title em { font-style: normal; color: var(--purple); position: relative; }
.hero__title em::after { content: ""; position: absolute; bottom: -8px; left: 3px; width: 100%; height: 8px; border-top: 2px solid var(--purple); border-radius: 50%; }
.hero__title em.hero__title--gradient {
  background: linear-gradient(100deg, #ff5d7a, var(--purple), #ff5d7a); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradientPan 5s ease infinite;
}
.hero__title em.hero__title--gradient::after { display: none; }
.hero__text { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 auto 32px; max-width: 410px; animation: fadeUp 0.8s var(--ease-out) 0.12s both; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; animation: fadeUp 0.8s var(--ease-out) 0.24s both; }
.hero__proof { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 52px; font-family: var(--mono); font-size: 10px; color: var(--muted); animation: fadeUp 0.8s var(--ease-out) 0.36s both; }
.hero__art { height: 430px; position: relative; transform: rotate(2deg); animation: float 6s ease-in-out infinite; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); border: 1.5px solid var(--ink); box-shadow: var(--shadow-hard); }

.logo-cloud { padding: var(--space-10) 32px; text-align: center; }
.logo-cloud__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: var(--space-6); }
.logo-cloud__row { display: flex; align-items: center; justify-content: center; gap: var(--space-10); flex-wrap: wrap; }
.logo-cloud__logo { height: 26px; opacity: 0.5; filter: grayscale(1); transition: opacity var(--dur-fast), filter var(--dur-fast); }
.logo-cloud__logo:hover { opacity: 1; filter: grayscale(0); }

/* ── 12. Marquee ── */
.marquee { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); overflow: hidden; padding: 13px 0; background: var(--purple); color: #fff; }
.marquee__track { display: flex; align-items: center; justify-content: space-around; gap: 45px; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; animation: drift 18s linear infinite; white-space: nowrap; }
.marquee__track b { font-size: 22px; color: var(--yellow); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ── 13. Section ── */
.section { padding: var(--space-20) 0; background: var(--white); position: relative; }
.section--tight { padding: var(--space-12) 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--surface { background: var(--surface); }
.section--dark .section__title, .section--dark .section__subtitle { color: #fff; }
.section--dark .section__text { color: #ccc6cf; }

.section__head { max-width: 640px; margin: 0 auto var(--space-12); text-align: center; }
.section__title { font-size: clamp(36px, 4.5vw, 58px); line-height: 1; letter-spacing: -0.06em; font-weight: 600; margin: 0 0 0.5rem; }
.section__title em { font-style: normal; color: var(--purple); position: relative; }
.section__title em::after { content: ""; position: absolute; bottom: -8px; left: 3px; width: 100%; height: 8px; border-top: 2px solid var(--purple); border-radius: 50%; }
.section__subtitle { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; color: var(--ink); }
.section__text { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto; }
.section__text--white { color: #ccc6cf; }
.section__eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em; color: #5d5961; margin-bottom: 16px; display: block; }

.section__grid { display: grid; gap: 24px; margin-top: 0; }
.section__grid--2 { grid-template-columns: repeat(2, 1fr); }
.section__grid--3 { grid-template-columns: repeat(3, 1fr); }
.section__grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .section__grid--3, .section__grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .section__grid--2, .section__grid--3, .section__grid--4 { grid-template-columns: 1fr; } }

/* ==========================================================================
   14. CARD SYSTEM — premium SaaS cards
   ========================================================================== */

.card {
  display: flex; flex-direction: column; border: 1.5px solid var(--ink); border-radius: var(--radius-md);
  background: var(--white); overflow: hidden; position: relative;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-base);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); border-color: var(--purple); }

.card--elevated { border: none; box-shadow: var(--shadow-md); }
.card--elevated:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card--ghost { border-color: var(--line-soft); }
.card--gradient { background: linear-gradient(160deg, var(--purple-tint), var(--white)); }
.card--horizontal { flex-direction: row; }
.card--horizontal .card__media { width: 42%; }

.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1.5px solid var(--ink); background: var(--surface); flex: none; }
.card--horizontal .card__media { border-bottom: none; border-right: 1.5px solid var(--ink); aspect-ratio: auto; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge { position: absolute; top: 12px; left: 12px; }

.card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--purple-tint); color: var(--purple); font-size: 20px; margin-bottom: var(--space-2); }
.card__eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.card__title { font-size: 20px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; }
.card__text { font-size: 14px; color: var(--muted); line-height: 1.55; }
.card__number { font-family: var(--mono); font-size: 10px; display: block; margin-bottom: 8px; color: var(--muted); }
.card__footer { padding: var(--space-4) var(--space-6); border-top: 1.5px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.card__link { font-family: var(--mono); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 4px; transition: transform var(--dur-fast), color var(--dur-fast); }
.card__link:hover { transform: translateX(4px); color: var(--purple); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-2); }

.feature-card { border: 1.5px solid var(--line-soft); border-radius: var(--radius-md); background: var(--white); overflow: hidden; transition: border-color var(--dur-base), transform var(--dur-base); }
.feature-card:hover { border-color: var(--purple); transform: translateY(-4px); }
/* full-width uploaded image — use this whenever there's a real image, not the small icon slot below */
.feature-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1.5px solid var(--line-soft); background: var(--surface); }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.feature-card:hover .feature-card__media img { transform: scale(1.06); }
.feature-card__body { padding: var(--space-6); }
/* small icon slot — only for glyphs/emoji, not photos */
.feature-card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--purple-tint); color: var(--purple); font-size: 22px; margin-bottom: var(--space-4); }
.feature-card__title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.feature-card__text { font-size: 14px; color: var(--muted); line-height: 1.55; }

.stat { text-align: center; padding: var(--space-6); }
.stat__value { font-size: var(--text-4xl); font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.stat__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: var(--space-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); border-radius: var(--radius-md); overflow: hidden; }
.stats .stat { border-right: 1.5px solid var(--line-soft); }
.stats .stat:last-child { border-right: none; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats .stat:nth-child(2) { border-right: none; } }

.integration-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); border: 1.5px solid var(--line-soft); border-radius: var(--radius-md); background: var(--white); transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.integration-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.integration-card__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); display: grid; place-items: center; flex: none; }
.integration-card__icon img { width: 26px; height: 26px; object-fit: contain; }
.integration-card__name { font-size: 15px; font-weight: 600; }
.integration-card__desc { font-size: 13px; color: var(--muted); }

.testimonial-card { padding: var(--space-6); border: 1.5px solid var(--line-soft); border-radius: var(--radius-md); background: var(--white); display: flex; flex-direction: column; gap: var(--space-4); }
.testimonial-card__quote { font-size: 16px; line-height: 1.6; color: var(--ink); }
.testimonial-card__quote::before { content: "\201C"; color: var(--purple); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-card__name { font-size: 14px; font-weight: 600; }
.testimonial-card__role { font-size: 12px; color: var(--muted); }
.testimonial-card__rating { margin-bottom: 4px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .testimonial-grid { grid-template-columns: 1fr; } }

.blog-card { display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden; background: var(--white); transition: transform var(--dur-base) var(--ease-out); }
.blog-card:hover { transform: translateY(-4px); }
.blog-card__media { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-md); border: 1.5px solid var(--ink); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__body { padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.blog-card__category { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--purple); letter-spacing: 0.08em; }
.blog-card__title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.blog-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; }
.blog-card__meta { display: flex; align-items: center; gap: 10px; margin-top: var(--space-2); font-size: 12px; color: var(--muted-2); }
.blog-card__meta-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.team-card { text-align: center; }
.team-card__media { aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-4); border: 1.5px solid var(--ink); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-size: 16px; font-weight: 600; }
.team-card__role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.team-card__socials { display: flex; justify-content: center; gap: 10px; margin-top: var(--space-3); }
.team-card__social { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--line-soft); border-radius: 50%; transition: border-color var(--dur-fast), background var(--dur-fast); }
.team-card__social:hover { border-color: var(--ink); background: var(--surface); }

.pricing-card {
  border: 1.5px solid var(--ink); border-radius: var(--radius-lg); padding: var(--space-8); background: var(--white);
  display: flex; flex-direction: column; gap: var(--space-4); position: relative;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--popular { border-color: var(--purple); box-shadow: var(--shadow-hard); }
.pricing-card__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); }
.pricing-card__name { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.pricing-card__price { display: flex; align-items: baseline; gap: 4px; }
.pricing-card__amount { font-size: var(--text-4xl); font-weight: 700; letter-spacing: -0.04em; }
.pricing-card__period { font-size: 14px; color: var(--muted); }
.pricing-card__desc { font-size: 14px; color: var(--muted); }
.pricing-card__features { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-2) 0; }
.pricing-card__feature { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pricing-card__feature-icon { width: 18px; height: 18px; border-radius: 50%; background: var(--success-tint); color: var(--success); display: grid; place-items: center; flex: none; font-size: 11px; }
.pricing-card__feature--disabled { color: var(--muted-2); text-decoration: line-through; }

.compare-table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); border-radius: var(--radius-md); overflow: hidden; }
.compare-table__head { background: var(--ink); color: #fff; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.compare-table__feature { color: var(--muted); }
.compare-table__check { color: var(--success); }
.compare-table__cross { color: var(--muted-2); }

/* Showcase card — big, image-led marketing card with text over the photo.
   Use for hero features, case studies, "see it in action" blocks. */
.showcase-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--ink); aspect-ratio: 16 / 9; }
.showcase-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.showcase-card:hover img { transform: scale(1.04); }
.showcase-card__badge { position: absolute; top: 18px; left: 18px; }
.showcase-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(23, 21, 28, 0.88) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-8); color: #fff;
}
.showcase-card__eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #d9d3e0; margin-bottom: 8px; }
.showcase-card__title { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.showcase-card__text { font-size: 14px; color: #e7e3e9; margin-top: 8px; max-width: 420px; }
.showcase-card__actions { margin-top: var(--space-4); display: flex; gap: 10px; }

/* Bento grid — mixed-size image tiles, common on premium SaaS feature/gallery
   sections. Mark tiles --wide / --tall / --large to change their span. */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: var(--space-4); }
.bento__item { position: relative; border: 1.5px solid var(--ink); border-radius: var(--radius-md); overflow: hidden; background: var(--white); transition: transform var(--dur-base) var(--ease-out); }
.bento__item:hover { transform: translateY(-3px); }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.bento__item:hover img { transform: scale(1.06); }
.bento__item--wide { grid-column: span 2; }
.bento__item--tall { grid-row: span 2; }
.bento__item--large { grid-column: span 2; grid-row: span 2; }
.bento__content { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-5); background: linear-gradient(180deg, transparent, rgba(23, 21, 28, 0.82)); color: #fff; }
.bento__title { font-size: 15px; font-weight: 600; }
.bento__text { font-size: 12px; color: #d9d3e0; margin-top: 2px; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--large { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento__item--wide, .bento__item--large { grid-column: span 1; }
  .bento__item--tall, .bento__item--large { grid-row: span 1; }
}

/* Attractive card finishes — layer onto .card, .pricing-card, .feature-card etc. */

/* Animated gradient border — reuses the gradientPan keyframe already defined above */
.card--glow-border {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(120deg, var(--purple), var(--sale), var(--purple)) border-box;
  background-size: 100% 100%, 220% 220%;
  animation: gradientPan 6s ease infinite;
}
.section--dark .card--glow-border {
  background: linear-gradient(var(--ink), var(--ink)) padding-box,
              linear-gradient(120deg, var(--purple), var(--sale), var(--purple)) border-box;
  background-size: 100% 100%, 220% 220%;
}

/* Cursor spotlight — a soft glow that follows the pointer on hover. Works
   with no script at all (glow centers on the card); for it to actually track
   the cursor, set --x/--y in % on mousemove from your builder's custom code
   panel: el.style.setProperty('--x', x+'%'); el.style.setProperty('--y', y+'%') */
.card--spotlight { position: relative; }
.card--spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 30%), rgba(139, 92, 246, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
}
.card--spotlight:hover::before { opacity: 1; }

/* ==========================================================================
   15. STOREFRONT
   ========================================================================== */

.price { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 600; }
.price__amount { font-size: 18px; }
.price__compare { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.price--sale .price__amount { color: var(--sale); }
.price--lg .price__amount { font-size: 26px; }

.rating { display: inline-flex; align-items: center; gap: 6px; }
.rating__stars { color: var(--purple); font-size: 13px; letter-spacing: 1px; }
.rating__count { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; }
.qty__btn { width: 34px; height: 34px; display: grid; place-items: center; background: var(--white); font-size: 16px; transition: background var(--dur-fast); }
.qty__btn:hover { background: var(--lavender); }
.qty__value { width: 38px; text-align: center; font-family: var(--mono); font-size: 14px; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); padding: 8px 0; }

.product-card { position: relative; border: 1.5px solid var(--ink); border-radius: var(--radius-md); background: var(--white); overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.product-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.product-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; border-bottom: 1.5px solid var(--ink); background: var(--surface); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badge { position: absolute; top: 10px; left: 10px; }
.product-card__wishlist { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform var(--dur-fast); }
.product-card__wishlist:hover { transform: scale(1.1); }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.product-card__title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; }
.product-card--soldout .product-card__media img { opacity: 0.5; filter: grayscale(0.4); }
.product-card--soldout .product-card__body { opacity: 0.6; }

.gallery__main { border: 1.5px solid var(--ink); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery__thumb { width: 60px; height: 60px; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; opacity: 0.7; transition: opacity var(--dur-fast), border-color var(--dur-fast); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb--active { opacity: 1; border-color: var(--ink); }

.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.filter-bar__group { display: flex; align-items: center; gap: 8px; }
.filter-bar__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.filter-bar__chip { padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); font-size: 13px; background: var(--white); transition: background var(--dur-fast), color var(--dur-fast); }
.filter-bar__chip--active { background: var(--ink); color: #fff; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pagination__item { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); font-family: var(--mono); font-size: 13px; background: var(--white); transition: background var(--dur-fast), color var(--dur-fast); }
.pagination__item--active { background: var(--purple); color: #fff; border-color: var(--purple); }
.pagination__item--disabled { opacity: 0.35; pointer-events: none; }

.empty-state { text-align: center; padding: 60px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state__icon { font-size: 40px; opacity: 0.5; }
.empty-state__title { font-size: 20px; font-weight: 600; }
.empty-state__text { color: var(--muted); max-width: 340px; }

.cart-drawer__overlay { position: fixed; inset: 0; background: rgba(23, 21, 28, 0.45); z-index: var(--z-cart); animation: fadeIn 0.25s ease both; }
.cart-drawer__panel { position: fixed; top: 0; right: 0; width: min(400px, 100vw); height: 100%; background: var(--white); border-left: 1.5px solid var(--ink); z-index: calc(var(--z-cart) + 1); display: flex; flex-direction: column; animation: fadeUp 0.35s var(--ease-out) both; }
.cart-drawer__header { padding: 18px 20px; border-bottom: 1.5px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart-drawer__title { font-size: 18px; font-weight: 600; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-drawer__footer { padding: 18px 20px; border-top: 1.5px solid var(--line); }
.cart-drawer__total { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 14px; }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.cart-item__media { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item__title { font-size: 14px; font-weight: 600; }
.cart-item__variant { font-size: 12px; color: var(--muted); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cart-item__remove { font-size: 12px; color: var(--danger); text-decoration: underline; }

.steps { display: flex; align-items: center; justify-content: center; gap: 0; }
.steps__step { display: flex; align-items: center; gap: 10px; }
.steps__circle { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); flex: none; }
.steps__step--active .steps__circle { border-color: var(--purple); color: var(--purple); }
.steps__step--done .steps__circle { background: var(--purple); border-color: var(--purple); color: #fff; }
.steps__label { font-size: 13px; color: var(--muted); }
.steps__step--active .steps__label, .steps__step--done .steps__label { color: var(--ink); font-weight: 600; }
.steps__line { width: 60px; height: 1.5px; background: var(--line); margin: 0 12px; }
.steps__step--done + .steps__line { background: var(--purple); }

/* ── 16. Accordion / FAQ ── */
.accordion { border-top: 1.5px solid var(--line-soft); }
.accordion__item { border-bottom: 1.5px solid var(--line-soft); }
.accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; font-size: 16px; font-weight: 600; text-align: left; }
.accordion__icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; transition: transform var(--dur-base) var(--ease-spring); font-size: 12px; }
.accordion__item--open .accordion__icon { transform: rotate(45deg); }
.accordion__panel { padding: 0 4px 20px; font-size: 14px; color: var(--muted); line-height: 1.6; animation: accordionOpen 0.25s var(--ease-out) both; }

/* ── 17. Tabs ── */
.tabs__list { display: flex; gap: var(--space-2); border-bottom: 1.5px solid var(--line-soft); }
.tabs__tab { padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: color var(--dur-fast), border-color var(--dur-fast); }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab--active { color: var(--purple); border-color: var(--purple); }
.tabs__panel { padding-top: var(--space-6); animation: fadeIn 0.25s ease both; }

/* ── 18. CTA ── */
.cta { text-align: center; padding: 120px 32px; position: relative; max-width: var(--container-w); margin: 0 auto; }
.cta__title { font-size: clamp(50px, 6vw, 82px); line-height: 0.98; letter-spacing: -0.07em; font-weight: 600; }
.cta__title em { font-style: normal; color: var(--purple); }
.cta__text { max-width: 440px; margin: 26px auto 32px; color: var(--muted); font-size: 1.1rem; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta__scribble { position: absolute; left: 19%; top: 28%; font-size: 35px; color: var(--purple); transform: rotate(-20deg); transition: transform var(--dur-slow) var(--ease-spring); }
.cta:hover .cta__scribble { transform: rotate(-30deg) scale(1.15); }
.cta__ring { position: absolute; border: 1.5px dashed rgba(139, 92, 246, 0.35); border-radius: 50%; pointer-events: none; animation: ringSpin 22s linear infinite; }
.cta__ring--1 { width: 220px; height: 220px; left: 6%; bottom: 8%; }
.cta__ring--2 { width: 130px; height: 130px; right: 8%; top: 12%; animation-duration: 16s; animation-direction: reverse; }

/* ── 19. Alerts / banners ── */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1.5px solid transparent; }
.alert--info { background: var(--info-tint); color: var(--info); border-color: currentColor; }
.alert--success { background: var(--success-tint); color: var(--success); border-color: currentColor; }
.alert--warning { background: var(--warning-tint); color: var(--warning); border-color: currentColor; }
.alert--danger { background: var(--danger-tint); color: var(--danger); border-color: currentColor; }
.alert__icon { flex: none; }
.alert__text { color: var(--ink); flex: 1; }
.alert__close { flex: none; opacity: 0.6; }
.alert__close:hover { opacity: 1; }

/* ── 20. Modal / Toast / Tooltip ── */
.modal__overlay { position: fixed; inset: 0; background: rgba(23, 21, 28, 0.45); z-index: var(--z-modal); animation: fadeIn 0.25s ease both; }
.modal__panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(480px, 92vw); max-height: 86vh; overflow-y: auto; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-hard); z-index: calc(var(--z-modal) + 1); animation: popIn 0.3s var(--ease-spring) both; }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1.5px solid var(--line); }
.modal__title { font-size: 18px; font-weight: 600; }
.modal__close { font-size: 20px; line-height: 1; }
.modal__body { padding: 20px; }
.modal__footer { padding: 16px 20px; border-top: 1.5px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-soft); z-index: var(--z-toast); animation: popIn 0.35s var(--ease-spring) both; }
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast__close { margin-left: 4px; opacity: 0.7; }
.toast__close:hover { opacity: 1; }

.tooltip { position: relative; display: inline-flex; }
.tooltip__bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink);
  color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  opacity: 0; animation: tooltipIn 0.15s var(--ease-out) both; z-index: var(--z-tooltip);
}
.tooltip:hover .tooltip__bubble { opacity: 1; }

/* ── 21. Avatars ── */
.avatar { border-radius: 50%; object-fit: cover; display: inline-block; border: 1.5px solid var(--white); background: var(--surface); }
.avatar--sm { width: 28px; height: 28px; }
.avatar--md { width: 40px; height: 40px; }
.avatar--lg { width: 56px; height: 56px; }
.avatar__initials { display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--purple); background: var(--purple-tint); }
.avatar-group { display: flex; }
.avatar-group .avatar { margin-left: -10px; }
.avatar-group .avatar:first-child { margin-left: 0; }

/* ── 22. Progress bars ── */
.bar-track { flex: 1; height: 10px; border-radius: 6px; background: rgba(23, 21, 28, 0.08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(100deg, #ff5d7a, var(--purple)); transform-origin: left; animation: barGrow 1s var(--ease-out) both; }

/* ── 23. Skeleton loaders ── */
.skeleton { background: linear-gradient(90deg, rgba(23, 21, 28, 0.06) 25%, rgba(23, 21, 28, 0.12) 37%, rgba(23, 21, 28, 0.06) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
.skeleton--text { height: 14px; width: 100%; }
.skeleton--title { height: 22px; width: 60%; }
.skeleton--image { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-md); }
.skeleton--button { height: 44px; width: 140px; border-radius: var(--radius-sm); }
.skeleton--avatar { width: 40px; height: 40px; border-radius: 50%; }

/* ── 24. Divider ── */
.divider { height: 1.5px; background: var(--ink); opacity: 0.12; margin: 3rem 0; border: none; }
.divider--dashed { background: none; border-top: 1.5px dashed var(--line); opacity: 1; }

/* ── 25. FAB ── */
.fab { position: fixed; bottom: 28px; right: 28px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; border: 1.5px solid var(--ink); box-shadow: var(--shadow-hard); transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base); z-index: var(--z-fab); }
.fab:hover { transform: translateY(-4px) scale(1.06); box-shadow: 6px 6px 0 var(--ink); animation: pulseGlow 1.8s ease-in-out infinite; }

/* ── 26. Footer ── */
.footer { background: var(--ink); color: #fff; padding: var(--space-16) 32px var(--space-8); }
.footer__inner { max-width: var(--container-w); margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); padding-bottom: var(--space-12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__brand { color: #fff; }
.footer__desc { font-size: 14px; color: #b5afb9; margin-top: var(--space-3); max-width: 280px; }
.footer__heading { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #b5afb9; margin-bottom: var(--space-4); }
.footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link { font-size: 14px; color: #e7e3e9; transition: color var(--dur-fast); }
.footer__link:hover { color: var(--purple); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-6); font-size: 13px; color: #928c96; flex-wrap: wrap; gap: var(--space-4); }
.footer__social { display: flex; gap: var(--space-3); }
.footer__social-link { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, 0.2); border-radius: 50%; transition: border-color var(--dur-fast), background var(--dur-fast); }
.footer__social-link:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 900px) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── 27. Responsive ── */
@media (max-width: 800px) {
  .hero { padding-top: 55px; }
  .hero--split { grid-template-columns: 1fr; text-align: center; }
  .hero--split .hero__content { text-align: center; margin: 0 auto; }
  .hero--split .hero__actions { justify-content: center; }
  .hero__art { display: none; }
  .hero__title { font-size: 65px; }
  .cta__ring { display: none; }
  .card--horizontal { flex-direction: column; }
  .card--horizontal .card__media { width: 100%; border-right: none; border-bottom: 1.5px solid var(--ink); aspect-ratio: 16/10; }
}

@media (max-width: 500px) {
  .u-container, .hero, .cta { padding-left: 20px; padding-right: 20px; }
  .hero__title { font-size: 57px; }
  .hero__actions { flex-direction: column; align-items: center; gap: 18px; }
  .hero__proof { justify-content: center; }
  .cta { padding-top: 80px; padding-bottom: 80px; }
  .cta__scribble { left: 7%; top: 19%; }
  .fab { width: 46px; height: 46px; bottom: 18px; right: 18px; }
  .cart-drawer__panel { width: 100%; }
  .modal__panel { width: 94vw; }
  .filter-bar { gap: 8px; }
  .steps__line { width: 30px; }
  .steps__label { display: none; }
}

/* ── 28. Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
