  :root {
    --ink: #1C1626;
    --deep: #3B1F5C;
    --accent: #8B6FCE;
    --light: #C9BBEA;
    --bg: #FAF8FC;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
  }
  .wrap { max-width: 1440px; margin: 0 auto; }
  .serif { font-family: 'Fraunces', serif; }

  /* NAV */
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 72px; border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; color: var(--deep); }
  .logo span {
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px;
    letter-spacing: 3px; color: var(--accent); vertical-align: middle;
  }
  .nav-links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; color: rgba(28,22,38,.75); }
  .nav-links a { position: relative; color: inherit; text-decoration: none; cursor: pointer; padding-bottom: 4px; }
  .nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
    background: var(--deep); transform: scaleX(0); transform-origin: right; transition: transform 0.25s ease;
  }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .btn-primary {
    background: var(--deep); color: white; padding: 11px 24px;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; text-decoration: none; display: inline-block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,31,92,0.25); }
  .btn-outline {
    border: 1.5px solid var(--deep); color: var(--deep); padding: 14px 28px;
    border-radius: 8px; font-size: 15px; font-weight: 600;
    background: none; cursor: pointer; text-decoration: none; display: inline-block;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .btn-outline:hover { background: var(--deep); color: white; }

  /* FOOTER */
  footer {
    padding: 40px 72px; background: var(--ink); color: white;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  }
  footer .foot-logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px; }
  footer .foot-note { font-size: 12.5px; opacity: 0.6; }


/* ===== NAV DROPDOWNS ===== */
.nav { position: relative; z-index: 10; }
.logo { text-decoration: none; }
.has-dropdown { position: relative; display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; padding: 0 0 4px; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.nav-trigger::after {
  content: ""; width: 6px; height: 6px; margin: -3px 0 0 7px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg); transition: transform .2s, margin .2s;
}
.has-dropdown.open .nav-trigger::after { transform: rotate(225deg); margin-top: 3px; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 240px; list-style: none; padding: 8px;
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; box-shadow: 0 12px 32px rgba(59,31,92,.14);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; } /* keeps hover alive across the gap */
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-links .dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; color: var(--ink); }
.nav-links .dropdown a:hover, .nav-links .dropdown a:focus-visible { background: rgba(201,187,234,.25); color: var(--deep); }
.nav-links .dropdown a::after, .nav-links a.btn-primary::after { display: none; }
.nav-links a.btn-primary { color: #fff; padding: 14px 28px; }
.nav a:focus-visible, .nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu-toggle {
  display: none; width: 42px; height: 42px; gap: 5px; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; cursor: pointer;
}
.menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--deep); }
.nav-cta-mobile { display: none; }

/* ===== PRODUCTS PAGE ===== */
.page-head { padding: 72px 72px 8px; text-align: center; }
.page-head h1 { font-size: 44px; line-height: 1.15; }
.page-head p { max-width: 560px; margin: 14px auto 0; font-size: 17px; line-height: 1.6; opacity: .7; }
.product-grid { display: flex; gap: 28px; flex-wrap: wrap; padding: 48px 72px 100px; }
.product-card {
  flex: 1; min-width: 280px; max-width: 460px; display: block; padding: 36px;
  background: #fff; border: 1.5px solid var(--light); border-radius: 16px; color: inherit; text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover, .product-card:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(59,31,92,.12); }
.product-card h2 { font-size: 30px; color: var(--deep); }
.product-card p { margin: 10px 0 24px; line-height: 1.55; opacity: .7; }
.product-card span { font-size: 14.5px; font-weight: 600; color: var(--deep); }

/* ===== PRODUCT DETAIL PAGE ===== */
.crumb { padding: 28px 72px 0; font-size: 14px; }
.crumb a { color: var(--deep); font-weight: 600; text-decoration: none; }
.detail-hero { padding: 36px 72px 72px; }
.detail-hero .tag { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.detail-hero h1 { font-size: 56px; line-height: 1.1; }
.detail-hero .lead { max-width: 640px; margin-top: 16px; font-size: 22px; line-height: 1.4; color: var(--deep); }
.detail-hero .summary { max-width: 560px; margin-top: 20px; font-size: 17px; line-height: 1.65; opacity: .7; }
.detail-hero .btn-primary { margin-top: 32px; padding: 14px 28px; font-size: 15px; }
.band { padding: 80px 72px; background: #fff; }
.band h2 { margin-bottom: 36px; font-size: 32px; }
.feature-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.feature { flex: 1; min-width: 220px; padding: 26px; background: var(--bg); border: 1.5px solid var(--light); border-radius: 16px; }
.feature h3 { margin-bottom: 8px; font-size: 16px; color: var(--deep); }
.feature p { font-size: 14px; line-height: 1.6; opacity: .7; }
.band .for { margin-top: 36px; font-size: 15px; opacity: .7; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .nav, footer, .page-head, .product-grid, .crumb, .detail-hero, .band { padding-left: 28px; padding-right: 28px; }
  .detail-hero h1 { font-size: 40px; }
  .menu-toggle { display: flex; }
  .nav > .btn-primary { display: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px 28px 24px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav-links.show { display: flex; }
  .nav-links > a:not(.btn-primary), .has-dropdown { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
  .has-dropdown { flex-wrap: wrap; justify-content: space-between; }
  .has-dropdown > a { flex: 1; }
  .nav-trigger:not(:empty) { flex: 1; justify-content: space-between; }
  .dropdown { position: static; display: none; width: 100%; padding: 8px 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta-mobile { display: block; margin-top: 16px; text-align: center; }
}

.dropdown.mega { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(680px, calc(100vw - 40px)); left: 50%; translate: -50% 0; padding: 12px; }
.mega-col { padding: 8px; border-radius: 12px; }
.mega-main { background: rgba(201,187,234,.18); }
.mega-label { margin: 4px 12px 8px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--accent); }
.nav-links .dropdown a.mega-item { padding: 12px; border-radius: 10px; }
.nav-links .mega-main a.mega-item:hover { background: #fff; }
.mega-item b { display: block; font-size: 14.5px; font-weight: 600; }
.mega-item span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; opacity: .65; }
.mega-item:hover b { color: var(--deep); }
.mega-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(139,111,206,.16); color: var(--deep); font-size: 10.5px; font-weight: 600; vertical-align: middle; }
.nav-links .dropdown a.mega-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 12px; border-top: 1px solid rgba(0,0,0,.07); border-radius: 0 0 10px 10px; font-weight: 600; color: var(--deep); }
.nav-links .dropdown a.mega-foot::after { content: "\2192"; display: inline-block; transition: transform .2s; }
.nav-links .dropdown a.mega-foot:hover::after { transform: translateX(4px); }
@media (max-width: 900px) {
  .dropdown.mega { display: none; width: 100%; translate: none; padding: 8px 0 0 12px; }
  .has-dropdown.open .dropdown.mega { display: block; }
  .mega-main { background: none; }
  .mega-col { padding: 0; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }