/* =========================================================
   THEME TOKENS
   ========================================================= */
:root {
  color-scheme: dark;

  --max-width: 1380px;
  --header-width: 1180px;

  --bg-main: linear-gradient(135deg, #050814 0%, #07111f 52%, #101b38 100%);

  --surface: rgba(8, 12, 26, 0.88);
  --surface-strong: rgba(8, 11, 23, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.075);

  --card-bg: rgba(9, 13, 28, 0.86);
  --card-bg-strong: rgba(10, 16, 34, 0.76);

  --text-main: #f7f9ff;
  --text-soft: #dee7f4;
  --text-muted: #aab7cf;

  --accent: #8b0000;
  --accent-bright: #ff4f64;
  --accent-blue: #86b0ff;

  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 79, 100, 0.32);

  --sidebar-bg: rgba(7, 10, 22, 0.96);
  --sidebar-divider: rgba(255, 255, 255, 0.12);

  --btn-text: #ffffff;

  --product-bg: rgba(10, 16, 34, 0.72);
  --product-overlay:
  linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0) 58%);

  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 22px 46px rgba(0, 0, 0, 0.34);
  --shadow-featured: 0 26px 68px rgba(0, 0, 0, 0.36);
  --shadow-atmosphere: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.26);

  --focus-ring: rgba(255, 79, 100, 0.95);

  --hero-halo:
    radial-gradient(circle at 50% 36%, rgba(255, 79, 100, 0.13), transparent 25%),
    radial-gradient(circle at 62% 50%, rgba(123, 167, 255, 0.11), transparent 28%);

  --hero-title-gradient: linear-gradient(
    90deg,
    #ff6b7a 0%,
    #ff3652 38%,
    #bd1532 72%,
    #7f1027 100%
  );

  --cursor-aura:
    radial-gradient(circle, rgba(127, 180, 255, 0.34) 0%, rgba(255, 79, 100, 0.18) 44%, transparent 72%);
}

body[data-theme="light"] {
  color-scheme: light;

  --bg-main: linear-gradient(135deg, #fffefd 0%, #fff7fb 52%, #f3edf8 100%);

  --surface: rgba(255, 249, 252, 0.92);
  --surface-strong: rgba(255, 252, 254, 0.94);
  --surface-soft: rgba(67, 48, 86, 0.055);
  --surface-hover: rgba(67, 48, 86, 0.075);

  --card-bg: rgba(255, 252, 254, 0.9);
  --card-bg-strong: rgba(255, 252, 254, 0.78);

  --text-main: #181923;
  --text-soft: #2a2d40;
  --text-muted: #676a7b;

  --accent: #9f2449;
  --accent-bright: #d95882;
  --accent-blue: #8d80ff;

  --border: rgba(42, 30, 59, 0.11);
  --border-strong: rgba(217, 88, 130, 0.28);

  --sidebar-bg: rgba(255, 249, 252, 0.97);
  --sidebar-divider: rgba(42, 30, 59, 0.12);

  --btn-text: #181923;

  --product-bg: rgba(255, 252, 254, 0.78);
  --product-overlay:
  linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 56%);

  --shadow-soft: 0 12px 24px rgba(50, 32, 65, 0.09);
  --shadow-card: 0 22px 44px rgba(50, 32, 65, 0.13);
  --shadow-featured: 0 26px 58px rgba(50, 32, 65, 0.15);
  --shadow-atmosphere: 0 0 0 1px rgba(255, 255, 255, 0.34), 0 18px 40px rgba(50, 32, 65, 0.08);

  --focus-ring: rgba(217, 88, 130, 0.95);

  --hero-halo:
    radial-gradient(circle at 50% 36%, rgba(239, 151, 188, 0.16), transparent 24%),
    radial-gradient(circle at 62% 50%, rgba(207, 181, 250, 0.14), transparent 30%);

  --hero-title-gradient: linear-gradient(
    90deg,
    #171722 0%,
    #9a5570 58%,
    #8d80ff 100%
  );

  --cursor-aura:
    radial-gradient(circle, rgba(239, 153, 187, 0.28) 0%, rgba(197, 172, 247, 0.18) 46%, transparent 72%);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.25s ease;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

main#main {
  flex: 1;
}

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

button {
  font: inherit;
}

ul {
  list-style: none;
}

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

[hidden] {
  display: none !important;
}

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

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
  position: absolute;
  top: -52px;
  left: 16px;
  z-index: 3000;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1300;
  padding: 14px 16px 0;
}

.header-shell {
  width: min(var(--header-width), calc(100vw - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--surface-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, var(--surface-soft), transparent),
    var(--surface);
  box-shadow: var(--shadow-atmosphere);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand__mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__sub {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav > a,
.desktop-products-toggle {
  height: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
  appearance: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a:focus-visible,
.desktop-products-toggle:hover,
.desktop-products-toggle:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-soft);
  border-color: var(--border);
}

.desktop-nav > a.active,
.desktop-nav > a[aria-current="page"] {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  font-weight: 500;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
}

.toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform-origin: center;
  transition: transform 0.22s ease;
}

.desktop-products-toggle[aria-expanded="true"] .toggle-icon,
.submenu-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.dropdown-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  transform: translateX(4px);
  background: var(--surface-soft);
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--surface-strong);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-soft);
  border-color: var(--border-strong);
}

.theme-toggle__icon {
  line-height: 1;
}

.hamburger {
  display: none;
}

.hamburger__lines {
  position: relative;
  display: block;
  width: 20px;
  height: 16px;
}

.hamburger__line {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.hamburger__line--top { top: 0; }
.hamburger__line--middle { top: 6.75px; }
.hamburger__line--bottom { top: 13.5px; }

.hamburger.active .hamburger__line--top {
  top: 6.75px;
  transform: rotate(45deg);
}

.hamburger.active .hamburger__line--middle {
  opacity: 0;
  transform: scaleX(0.72);
}

.hamburger.active .hamburger__line--bottom {
  top: 6.75px;
  transform: rotate(-45deg);
}

/* =========================================================
   MOBILE SIDEBAR
   ========================================================= */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(4, 6, 12, 0.52);
  backdrop-filter: blur(4px);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1100;
  width: min(340px, 88vw);
  padding: 92px 24px 28px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  transform: translateX(-104%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, visibility 0.28s ease;
}

.sidebar.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}


.sidebar > ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar li {
  border-bottom: 1px solid var(--sidebar-divider);
}

.sidebar li.has-submenu {
  border-bottom: none;
  margin-bottom: -0.2rem;
}

.sidebar a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar a:hover,
.sidebar a:focus-visible {
  color: var(--accent-bright);
  transform: translateX(4px);
}

.sidebar a.active,
.sidebar a[aria-current="page"] {
  color: var(--accent-bright);
  transform: translateX(4px);
  position: relative;
}

.sidebar a.active::before,
.sidebar a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  transform: translateY(-50%);
  box-shadow: 0 0 14px rgba(255, 79, 100, 0.24);
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  border-bottom: 1px solid var(--sidebar-divider);
}

.menu-link {
  flex: 1;
  min-height: 50px;
  padding: 0;
}

.submenu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent-bright);
  background: var(--surface-soft);
}

.submenu {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1rem;
  padding-left: 0.3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sidebar-divider);
}

.submenu li {
  margin-right: 20px;
}

.submenu a {
  min-height: 38px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: min(900px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 92px 16px 58px;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 48px 16% auto;
  height: 230px;
  background: var(--hero-halo);
  filter: blur(48px);
  opacity: 0.78;
  z-index: -2;
}

.avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-atmosphere);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.avatar:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    var(--shadow-atmosphere),
    0 0 24px rgba(255, 79, 100, 0.16);
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
  background: var(--hero-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  max-width: 42ch;
  margin: 0.85rem auto 0;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* =========================================================
   PRODUCTS
   ========================================================= */
.products {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: min(var(--max-width), calc(100vw - 40px));
  margin: 0 auto;
  padding: 18px 0 84px;
}

.products-featured {
  width: 100%;
  margin-inline: auto;
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 2.2rem);
}

.products-grid {
  display: grid;
  gap: clamp(1.4rem, 2vw, 3rem);
}

.product {
  --product-glow: rgba(255, 255, 255, 0.05);
  --product-border-hover: var(--border-strong);

  position: relative;
  cursor: pointer;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: inherit;
  background: var(--product-overlay), var(--product-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.product::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--product-accent-wash, rgba(255, 255, 255, 0.04)), transparent 46%);
  opacity: 0.28;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.product:hover,
.product:focus-within {
  transform: translateY(-8px);
  border-color: var(--product-border-hover);
  box-shadow: var(--shadow-card);
}

.product:hover::before,
.product:focus-within::before {
  opacity: 0.42;
}

.product-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
}

.product-link--featured {
  z-index: 1;
}

.product-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -4px;
}

.product-card {
  min-height: 262px;
  padding: 2.75rem 2.35rem;
  text-align: center;
}

.product h2 {
  position: relative;
  z-index: 2;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.025em;
  pointer-events: none;
}

.product p {
  position: relative;
  z-index: 2;
  font-family: inherit;
  color: var(--text-muted);
  line-height: 1.65;
  pointer-events: none;
}

.product-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.55em;
  transition: color 0.24s ease, text-shadow 0.24s ease, transform 0.24s ease;
}

.product-card p {
  font-size: 1.05rem;
  margin-bottom: 1.25em;
}

.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--product-accent, rgba(255, 255, 255, 0.2)), transparent);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.product-card:hover::after,
.product-card:focus-within::after {
  opacity: 0.82;
  transform: translateY(1px);
}

.product-card:hover h2,
.product-card:focus-within h2 {
  color: var(--product-title-color, var(--text-main));
  text-shadow: 0 0 18px var(--product-title-glow, transparent);
  transform: translateY(-1px);
}

/* Featured product */
.product-featured {
  padding: 0;
  min-height: unset;
  text-align: left;
  border-color: var(--product-featured-border, var(--border-strong));
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px var(--product-featured-rest-outline, rgba(255, 79, 100, 0.06));
}

.product-featured::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 58%),
    linear-gradient(90deg, var(--product-accent-wash, rgba(255, 79, 100, 0.08)), transparent 76%);
  opacity: 0.78;
}

.product-featured::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--product-featured-rail, linear-gradient(180deg, var(--accent-bright), var(--accent-blue), var(--accent)));
  z-index: 2;
  pointer-events: none;
}

.product-featured:hover,
.product-featured:focus-within {
  transform: translateY(-7px);
  box-shadow:
    var(--shadow-featured),
    0 0 0 1px var(--product-featured-outline, rgba(255, 79, 100, 0.12)),
    0 0 32px var(--product-glow, rgba(123, 167, 255, 0.1));
}

.product-featured-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.6rem;
  padding: 2rem 2rem 2.1rem 2.2rem;
  pointer-events: none;
}

.product-featured-content,
.product-featured-actions {
  position: relative;
  z-index: 2;
}

.product-featured-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-kicker {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 79, 100, 0.12);
  color: var(--text-main);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="light"] .product-badge {
  color: #7d2440;
  background: rgba(239, 134, 172, 0.16);
}

.product-featured h2 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.product-featured p {
  max-width: 50ch;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.product-highlights span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.product-featured:hover .product-highlights span,
.product-featured:focus-within .product-highlights span {
  transform: translateY(-2px);
  background: var(--surface-hover);
  color: var(--text-soft);
}

.product-featured-actions {
  display: flex;
  align-items: end;
}

.product-featured-actions .btn {
  pointer-events: auto;
}

.product-featured .btn {
  min-width: 210px;
  text-align: center;
  font-size: 1rem;
  padding: 0.95em 1.9em;
}


.product--manual-save {
  --product-glow: rgba(182, 217, 137, 0.14);
  --product-accent: rgba(182, 217, 137, 0.78);
  --product-accent-wash: rgba(182, 217, 137, 0.085);
  --product-border-hover: rgba(182, 217, 137, 0.42);
  --product-featured-border: rgba(182, 217, 137, 0.28);
  --product-featured-rest-outline: rgba(182, 217, 137, 0.055);
  --product-featured-outline: rgba(182, 217, 137, 0.15);
  --product-featured-rail: linear-gradient(180deg, #d5efb6, #8dbb72, #567f3f);

  --product-button-bg: linear-gradient(135deg, rgba(182, 217, 137, 0.17), rgba(90, 200, 255, 0.065));
  --product-button-hover: linear-gradient(135deg, rgba(127, 169, 91, 0.92), rgba(86, 127, 63, 0.82));
  --product-button-border: rgba(182, 217, 137, 0.34);
  --product-button-border-hover: rgba(202, 233, 164, 0.72);
  --product-button-shadow: 0 14px 30px rgba(112, 157, 78, 0.2);
  --product-title-color: #d5efb6;
  --product-title-glow: rgba(182, 217, 137, 0.2);
}

.product--manual-save .product-badge {
  color: #eaf7dc;
  border-color: rgba(182, 217, 137, 0.3);
  background: rgba(182, 217, 137, 0.12);
}

body[data-theme="light"] .product--manual-save {
  --product-title-color: #456a33;
  --product-border-hover: rgba(86, 127, 63, 0.4);
  --product-featured-border: rgba(86, 127, 63, 0.26);
  --product-featured-rest-outline: rgba(86, 127, 63, 0.045);
  --product-featured-outline: rgba(86, 127, 63, 0.14);
  --product-featured-rail: linear-gradient(180deg, #6e9952, #567f3f, #3f652f);
  --product-button-hover: linear-gradient(135deg, #628d49, #456a33);
}

body[data-theme="light"] .product--manual-save .product-badge {
  color: #3f652f;
  border-color: rgba(86, 127, 63, 0.28);
  background: rgba(86, 127, 63, 0.1);
}

/* =========================================================
   PRODUCT IDENTITIES
   ========================================================= */
.product--spacedash {
  --product-glow: rgba(255, 79, 100, 0.12);
  --product-accent: rgba(255, 79, 100, 0.72);
  --product-accent-wash: rgba(255, 79, 100, 0.075);
  --product-border-hover: rgba(255, 79, 100, 0.42);

  --product-button-bg: linear-gradient(135deg, rgba(255, 79, 100, 0.16), rgba(134, 176, 255, 0.08));
  --product-button-hover: linear-gradient(135deg, rgba(255, 79, 100, 0.92), rgba(134, 176, 255, 0.62));
  --product-button-border: rgba(255, 79, 100, 0.34);
  --product-button-border-hover: rgba(255, 100, 118, 0.72);
  --product-button-shadow: 0 14px 30px rgba(255, 79, 100, 0.2);
}

.product--qraft {
  --product-glow: rgba(72, 229, 176, 0.11);
  --product-accent: rgba(72, 229, 176, 0.72);
  --product-accent-wash: rgba(72, 229, 176, 0.065);
  --product-border-hover: rgba(72, 229, 176, 0.34);

  --product-button-bg: linear-gradient(135deg, rgba(72, 229, 176, 0.14), rgba(90, 200, 255, 0.075));
  --product-button-hover: linear-gradient(135deg, rgba(72, 229, 176, 0.78), rgba(90, 200, 255, 0.56));
  --product-button-border: rgba(72, 229, 176, 0.28);
  --product-button-border-hover: rgba(72, 229, 176, 0.62);
  --product-button-shadow: 0 14px 30px rgba(72, 229, 176, 0.16);

  --product-title-color: #8ff5cf;
  --product-title-glow: rgba(72, 229, 176, 0.18);
}

.product--imagix {
  --product-glow: rgba(166, 108, 255, 0.12);
  --product-accent: rgba(166, 108, 255, 0.72);
  --product-accent-wash: rgba(166, 108, 255, 0.07);
  --product-border-hover: rgba(166, 108, 255, 0.36);

  --product-button-bg: linear-gradient(135deg, rgba(166, 108, 255, 0.15), rgba(67, 215, 255, 0.075));
  --product-button-hover: linear-gradient(135deg, rgba(166, 108, 255, 0.82), rgba(67, 215, 255, 0.55));
  --product-button-border: rgba(166, 108, 255, 0.3);
  --product-button-border-hover: rgba(181, 132, 255, 0.66);
  --product-button-shadow: 0 14px 30px rgba(166, 108, 255, 0.17);

  --product-title-color: #c7a3ff;
  --product-title-glow: rgba(166, 108, 255, 0.2);
}

.product--linkio {
  --product-glow: rgba(255, 122, 168, 0.11);
  --product-accent: rgba(255, 122, 168, 0.72);
  --product-accent-wash: rgba(255, 122, 168, 0.065);
  --product-border-hover: rgba(255, 122, 168, 0.34);

  --product-button-bg: linear-gradient(135deg, rgba(255, 122, 168, 0.14), rgba(255, 184, 108, 0.08));
  --product-button-hover: linear-gradient(135deg, rgba(255, 122, 168, 0.82), rgba(255, 184, 108, 0.6));
  --product-button-border: rgba(255, 122, 168, 0.28);
  --product-button-border-hover: rgba(255, 140, 181, 0.64);
  --product-button-shadow: 0 14px 30px rgba(255, 122, 168, 0.16);

  --product-title-color: #ffadc8;
  --product-title-glow: rgba(255, 122, 168, 0.18);
}

.product--taprate {
  --product-glow: rgba(255, 194, 86, 0.11);
  --product-accent: rgba(255, 194, 86, 0.72);
  --product-accent-wash: rgba(255, 194, 86, 0.065);
  --product-border-hover: rgba(255, 194, 86, 0.36);

  --product-button-bg: linear-gradient(135deg, rgba(255, 194, 86, 0.14), rgba(255, 207, 112, 0.075));
  --product-button-hover: linear-gradient(135deg, rgba(255, 194, 86, 0.82), rgba(255, 159, 67, 0.56));
  --product-button-border: rgba(255, 194, 86, 0.3);
  --product-button-border-hover: rgba(255, 207, 112, 0.66);
  --product-button-shadow: 0 14px 30px rgba(255, 194, 86, 0.16);

  --product-title-color: #ffd889;
  --product-title-glow: rgba(255, 194, 86, 0.18);
}

body[data-theme="light"] .product--qraft {
  --product-title-color: #167f5f;
}

body[data-theme="light"] .product--imagix {
  --product-title-color: #6f3ec7;
}

body[data-theme="light"] .product--linkio {
  --product-title-color: #b43d68;
}

body[data-theme="light"] .product--taprate {
  --product-title-color: #9a6712;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78em 1.55em;
  border-radius: 999px;
  border: 1px solid var(--product-button-border, var(--border-strong));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--product-button-bg, rgba(255, 255, 255, 0.045));
  color: var(--btn-text);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0 30%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 62%
  );
  transform: translateX(-110%);
  transition: transform 0.36s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px) scale(1.018);
  border-color: var(--product-button-border-hover, var(--accent-bright));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
    var(--product-button-hover, linear-gradient(90deg, rgba(255, 79, 100, 0.88), rgba(134, 176, 255, 0.68)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    var(--product-button-shadow, 0 14px 28px rgba(255, 79, 100, 0.18));
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(110%);
}

body[data-theme="light"] .btn {
  color: #181923;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(50, 32, 65, 0.06);
}

body[data-theme="light"] .btn:hover,
body[data-theme="light"] .btn:focus-visible {
  color: #181923;
}
body[data-theme="light"] .product--manual-save .btn:hover,
body[data-theme="light"] .product--manual-save .btn:focus-visible {
  color: #ffffff;
}


/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================================
   CURSOR AURA
   ========================================================= */
.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--cursor-aura);
  filter: blur(10px) saturate(1.1);
  pointer-events: none;
  z-index: 1600;
  opacity: 0;
  transform: translate3d(-120px, -120px, 0);
  transition: opacity 0.22s ease, filter 0.22s ease;
  will-change: transform;
}

.cursor-aura::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 4px;
  height: 4px;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    4px 0 0 rgba(255, 255, 255, 0.72),
    8px 0 0 rgba(255, 255, 255, 0.48),
    4px 4px 0 rgba(255, 255, 255, 0.82),
    4px 8px 0 rgba(255, 255, 255, 0.52);
}

body[data-theme="light"] .cursor-aura::before {
  background: rgba(236, 143, 178, 0.74);
  box-shadow:
    4px 0 0 rgba(236, 143, 178, 0.74),
    8px 0 0 rgba(197, 172, 247, 0.46),
    4px 4px 0 rgba(255, 255, 255, 0.82),
    4px 8px 0 rgba(236, 143, 178, 0.46);
}

.cursor-aura.is-visible {
  opacity: 0.62;
}

.cursor-aura.is-active {
  opacity: 0.88;
  filter: blur(7px) saturate(1.16);
}

.cursor-aura.is-pressed {
  opacity: 0.48;
}

/* =========================================================
   FOCUS
   ========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 800px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .product-featured-inner {
    grid-template-columns: minmax(0, 1.35fr) auto;
    align-items: end;
    gap: 2rem;
  }

  .product-featured-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: grid;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .header-shell,
  .hero,
  .products {
    width: calc(100vw - 24px);
  }

  .brand__sub {
    display: none;
  }

  .hero {
    padding-top: 78px;
    padding-bottom: 38px;
  }

  .hero::before {
    inset: 42px 10% auto;
    height: 190px;
    filter: blur(42px);
  }

  .avatar {
    width: 124px;
    height: 124px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3rem);
  }

  .subtitle {
    max-width: 34ch;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .products {
    gap: 1rem;
    padding-top: 8px;
    padding-bottom: 64px;
  }

  .products-featured {
    width: 100%;
  }

  .product {
    border-radius: 20px;
  }

  .product-featured-inner {
    padding: 1.35rem 1.15rem 1.3rem 1.35rem;
    gap: 1.1rem;
  }

  .product-featured-topline {
    gap: 0.55rem;
    margin-bottom: 0.75rem;
  }

  .product-kicker {
    font-size: 0.68rem;
  }

  .product-badge {
    min-height: 30px;
    padding: 0.34rem 0.68rem;
    font-size: 0.66rem;
  }

  .product-featured h2 {
    font-size: clamp(1.65rem, 8vw, 2.05rem);
  }

  .product-featured p {
    max-width: 42ch;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .product-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .product-highlights span {
    width: auto;
    min-height: 34px;
    padding: 0.45rem 0.55rem;
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: center;
  }

  .product-featured .btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0.78rem 1.2rem;
    font-size: 0.9rem;
  }

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

  .product-card {
    min-height: 178px;
    padding: 1.1rem 0.75rem 0.9rem;
    border-radius: 18px;
  }

  .product-card h2 {
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
  }

  .product-card p {
    display: -webkit-box;
    margin-bottom: 0.75rem;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-card .btn {
    width: 100%;
    min-height: 36px;
    padding: 0.52rem 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0;
  }

  .product-card::after {
    left: 12px;
    right: 12px;
  }

  .site-footer {
    margin-bottom: 2rem;
    padding: 0 12px;
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .product-card {
    min-height: 220px;
    padding: 1.55rem 1.25rem;
  }

  .product-card h2 {
    font-size: 1.25rem;
  }

  .product-card p {
    display: block;
    overflow: visible;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .product-card .btn {
    width: auto;
    min-width: 150px;
    font-size: 0.82rem;
  }

  .product-highlights {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .cursor-aura {
    display: none !important;
  }

  .product:hover,
  .product:focus-within,
  .product-card:hover h2,
  .product-card:focus-within h2,
  .avatar:hover,
  .desktop-nav > a:hover,
  .desktop-products-toggle:hover,
  .icon-button:hover,
  .submenu-toggle:hover,
  .btn:hover {
    transform: none !important;
  }
}
/* 2026-08-25 flagship refinement */
.product--manual-save{border-color:rgba(182,217,137,.34);box-shadow:var(--shadow-featured),0 0 0 1px rgba(182,217,137,.07)}
.product--manual-save .product-featured-inner{padding-block:clamp(2.1rem,4vw,3.25rem)}
.product--manual-save .product-featured-content{max-width:760px}
.product--manual-save .product-featured-content h2{font-size:clamp(2.2rem,4.4vw,3.55rem)}
.product--manual-save .product-featured-content p{max-width:60ch;font-size:clamp(1.03rem,1.7vw,1.18rem)}
