:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --dark: #000000;
  --dark-2: #161617;
  --nav-bg: rgba(250, 250, 252, .8);
  --nav-bg-solid: #fafafc;
  --radius: 18px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Heebo", -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
body.lock { overflow: hidden; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
.logo { color: var(--ink); display: flex; align-items: center; opacity: .88; transition: opacity .2s; }
.logo:hover { opacity: 1; }
.nav-links { display: flex; gap: 0; flex: 1; justify-content: space-around; padding: 0 24px; }
.nav-links a { font-size: 13px; color: #333336; padding: 4px 8px; transition: color .2s; }
.nav-links a:hover { color: #000; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 32px; height: 32px; display: grid; place-items: center;
  color: #333336; border-radius: 50%; transition: background .2s, color .2s;
}
.icon-btn:hover { color: #000; background: rgba(0,0,0,.05); }
.badge {
  position: absolute; top: 2px; left: 0;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 600;
  display: grid; place-items: center;
}
.badge[hidden] { display: none; }
.badge.pop { animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }
.burger { display: none; }
.burger span { position: absolute; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s; }
.burger span:first-child { transform: translateY(-3px); }
.burger span:last-child { transform: translateY(3px); }
.nav.open .burger span:first-child { transform: rotate(45deg); }
.nav.open .burger span:last-child { transform: rotate(-45deg); }

.ribbon {
  background: var(--bg-alt); text-align: center; font-size: 14px; color: var(--ink);
  padding: 14px 16px;
}
.ribbon a { color: var(--link); }
.ribbon a:hover { text-decoration: underline; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 980px; font-size: 17px; font-weight: 400;
  transition: background .2s, color .2s, transform .15s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hover); }
.btn.ghost { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn.ghost:hover { background: var(--blue); color: #fff; }
.btn.ghost.light { color: #2997ff; box-shadow: inset 0 0 0 1px #2997ff; }
.btn.ghost.light:hover { background: #2997ff; color: #fff; }
.btn.sm { padding: 8px 16px; font-size: 15px; }
.btn.block { width: 100%; padding: 14px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ===== Heroes ===== */
.hero {
  text-align: center; padding: 56px 16px 0; overflow: hidden;
  min-height: 680px; display: flex; flex-direction: column; align-items: center;
}
.hero.light { background: var(--bg-alt); }
.hero.dark { background: var(--dark); color: #f5f5f7; margin-top: 12px; }
.hero-title {
  font-size: clamp(44px, 8vw, 80px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  direction: ltr;
}
.hero-sub { font-size: clamp(21px, 3vw, 32px); font-weight: 400; margin-top: 8px; line-height: 1.2; }
.cta { display: flex; gap: 14px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.hero-art { margin-top: 44px; width: min(560px, 92vw); }
.hero-art.wide { width: min(760px, 94vw); margin-top: 56px; margin-bottom: 40px; }
.hero-art svg { width: 100%; height: auto; }

/* ===== Tiles ===== */
.tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px;
}
.tile {
  min-height: 580px; text-align: center; padding: 52px 16px 0;
  display: flex; flex-direction: column; align-items: center; overflow: hidden;
}
.light-tile { background: var(--bg-alt); }
.dark-tile { background: var(--dark); color: #f5f5f7; }
.tile h3 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; direction: ltr; }
.tile p { font-size: clamp(18px, 2vw, 22px); margin-top: 6px; }
.tile .cta { margin-top: 16px; }
.tile-art { margin-top: auto; padding-top: 28px; width: min(320px, 80%); }
.tile-art svg { width: 100%; height: auto; transition: transform .8s var(--ease); }
.tile:hover .tile-art svg { transform: translateY(-8px) scale(1.02); }

/* ===== Store ===== */
.store { max-width: 1200px; margin: 0 auto; padding: 96px 22px 40px; }
.store-head h2, .section-title {
  font-size: clamp(28px, 4vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink-2); max-width: 760px;
}
.store-head h2 strong, .section-title strong { color: var(--ink); font-weight: 700; }
.chips { display: flex; gap: 8px; margin: 36px 0 28px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 9px 18px; border-radius: 980px; font-size: 14px; white-space: nowrap;
  background: var(--bg-alt); color: var(--ink); transition: background .2s, color .2s;
}
.chip:hover { background: #e8e8ed; }
.chip.active { background: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px 26px 26px;
  box-shadow: 0 4px 22px rgba(0,0,0,.06);
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: fadeUp .5s var(--ease) both;
}
.card:hover { transform: scale(1.015); box-shadow: 0 10px 34px rgba(0,0,0,.1); }
.card .eyebrow { margin-bottom: 4px; }
.card h4 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; direction: ltr; text-align: right; }
.card .desc { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; min-height: 40px; }
.card-art { height: 220px; display: grid; place-items: center; margin: 18px 0; }
.card-art svg { max-height: 100%; max-width: 100%; transition: transform .5s var(--ease); }
.card:hover .card-art svg { transform: scale(1.05); }
.dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-size: 15px; }
.price small { color: var(--ink-2); display: block; font-size: 12px; }
.eyebrow { font-size: 12px; font-weight: 600; color: #bf4800; letter-spacing: .02em; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-2); padding: 60px 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* ===== Perks ===== */
.perks { max-width: 1200px; margin: 0 auto; padding: 60px 22px 100px; }
.perk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.perk { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.perk-ico { font-size: 30px; margin-bottom: 14px; }
.perk h4 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.perk p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); font-size: 12px; color: var(--ink-2); }
.footer-inner { max-width: 1024px; margin: 0 auto; padding: 18px 22px 22px; }
.fine { padding-bottom: 14px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.footer-cols h5 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer-cols a { display: block; margin-bottom: 9px; color: #424245; }
.footer-cols a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal { display: flex; gap: 0; }
.legal a { padding: 0 10px; border-left: 1px solid var(--line); }
.legal a:last-child { border-left: 0; }
.legal a:hover { text-decoration: underline; }

/* ===== Overlays ===== */
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.scrim.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(420px, 100vw); z-index: 70;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .45s var(--ease);
  box-shadow: 0 0 40px rgba(0,0,0,.15);
}
.drawer.show { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid #eee; }
.drawer-head h3 { font-size: 24px; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid #eee; }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; color: var(--ink-2); }
.drawer-foot .row.total { color: var(--ink); font-size: 20px; font-weight: 700; margin: 12px 0 18px; }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid #f0f0f0; }
.line-item .thumb { width: 72px; height: 72px; background: var(--bg-alt); border-radius: 12px; display: grid; place-items: center; padding: 8px; }
.line-item .thumb svg { max-width: 100%; max-height: 100%; }
.line-item h5 { font-size: 15px; font-weight: 600; direction: ltr; text-align: right; }
.line-item .meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-alt); font-size: 15px; line-height: 1; }
.qty button:hover { background: #e8e8ed; }
.line-price { font-size: 15px; font-weight: 500; text-align: left; }
.remove { display: block; color: var(--link); font-size: 12px; margin-top: 6px; }
.cart-empty { text-align: center; color: var(--ink-2); padding: 80px 0; font-size: 17px; }
.cart-empty b { display: block; font-size: 24px; color: var(--ink); margin-bottom: 8px; }

.search {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; background: var(--nav-bg-solid);
  transform: translateY(-100%); transition: transform .45s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.search.show { transform: none; }
.search-inner { max-width: 720px; margin: 0 auto; padding: 32px 22px 40px; }
.search-field { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.search-field input {
  flex: 1; font: inherit; font-size: 26px; font-weight: 600; border: 0; outline: 0; background: transparent; color: var(--ink);
}
.search-field input::placeholder { color: var(--ink-3); }
.search-label { font-size: 12px; color: var(--ink-2); margin: 28px 0 10px; }
.search-results { list-style: none; }
.search-results li a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.search-results li a:hover { background: var(--bg-alt); }
.search-results li a span { color: var(--ink-2); font-weight: 400; }

.modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
}
.modal.show { pointer-events: auto; opacity: 1; }
.modal-card {
  position: relative; background: #fff; border-radius: 28px; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 30px 80px rgba(0,0,0,.25);
  transform: scale(.96) translateY(10px); transition: transform .4s var(--ease);
}
.modal.show .modal-card { transform: none; }
.modal-close { position: absolute; top: 16px; left: 16px; background: var(--bg-alt); z-index: 2; }
.modal-art { background: var(--bg-alt); display: grid; place-items: center; padding: 40px; min-height: 380px; border-radius: 28px 0 0 28px; }
[dir="rtl"] .modal-art { border-radius: 0 28px 28px 0; }
.modal-art svg { max-width: 100%; max-height: 360px; }
.modal-info { padding: 44px 36px 36px; }
.modal-info h3 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; direction: ltr; text-align: right; margin-top: 4px; }
.modal-info > p { color: var(--ink-2); font-size: 16px; line-height: 1.5; margin-top: 8px; }
.m-price { color: var(--ink) !important; font-size: 19px !important; margin: 16px 0 6px; }
.opt { margin: 22px 0; }
.opt-label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.opt-label b { color: var(--ink); font-weight: 500; }
.swatches { display: flex; gap: 12px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s;
}
.swatch.active { outline-color: var(--blue); }
.pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pill { padding: 12px 8px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; text-align: center; transition: box-shadow .2s; }
.pill small { display: block; color: var(--ink-2); font-size: 11px; margin-top: 2px; }
.pill:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.pill.active { box-shadow: inset 0 0 0 2px var(--blue); }

.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 90;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: rgba(29,29,31,.92); color: #fff; padding: 12px 22px; border-radius: 980px; font-size: 14px;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  backdrop-filter: blur(10px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .perk-row { grid-template-columns: 1fr 1fr; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-art, [dir="rtl"] .modal-art { border-radius: 28px 28px 0 0; min-height: 260px; padding: 28px; }
  .modal-art svg { max-height: 220px; }
}
@media (max-width: 834px) {
  .burger { display: grid; }
  .nav-links {
    position: fixed; top: 48px; left: 0; right: 0; bottom: 0; flex-direction: column; justify-content: flex-start;
    background: var(--nav-bg-solid); padding: 20px 44px; gap: 4px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .3s, transform .3s;
    height: calc(100vh - 48px);
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { font-size: 26px; font-weight: 600; color: var(--ink); padding: 8px 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 500px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nav-inner { padding: 0 16px; }
  .hero { min-height: 560px; padding-top: 44px; }
  .store, .perks { padding-left: 16px; padding-right: 16px; }
  .perk-row { grid-template-columns: 1fr; }
  .tiles { padding: 12px 0; }
  .modal { padding: 0; align-items: end; }
  .modal-card { border-radius: 24px 24px 0 0; max-height: 92vh; }
  .modal-info { padding: 28px 22px 28px; }
  .footer-inner { padding-left: 16px; padding-right: 16px; }
}
