:root {
  --ink: #121a40;
  --ink-2: #34489a;
  --muted: #7c84a3;
  --line: #e1e4ef;
  --bg: #f4f5fa;
  --card: #e7eaf4;
  --white: #fff;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Ticker ---------- */
.ticker {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: 32px; background: var(--ink); color: #fff;
  overflow: hidden; display: flex; align-items: center;
  font-size: 12px; letter-spacing: .02em;
}
.ticker__track {
  display: flex; gap: 28px; white-space: nowrap; padding-left: 28px;
  animation: marquee 28s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad); color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
}
.nav.is-solid {
  background: rgba(244, 245, 250, .8); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 10px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(18,26,64,.08);
}
.nav__logo { font-weight: 700; letter-spacing: .08em; font-size: 17px; display: inline-flex; align-items: center; gap: 10px; }
.nav__mark { width: 26px; height: 26px; }
.nav__links { display: flex; gap: 28px; font-size: 15px; }
.nav__links a { position: relative; opacity: .85; transition: opacity .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn.nav__burger { display: none; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); transition: background .25s, transform .25s var(--ease);
}
.nav.is-solid .icon-btn { background: rgba(0,0,0,.06); }
.icon-btn:hover { transform: scale(1.06); }
.icon-btn--dark { background: var(--white); border: 1px solid var(--line); font-size: 16px; }
.icon-btn--dark:hover { background: var(--ink); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.nav.is-solid .btn--light { background: var(--ink); color: #fff; }
.cart-count {
  min-width: 20px; height: 20px; border-radius: 999px; padding: 0 6px;
  background: var(--ink); color: #fff; font-size: 11px; display: inline-grid; place-items: center;
  transition: transform .3s var(--ease);
}
.nav.is-solid .cart-count { background: #fff; color: var(--ink); }
.cart-count.bump { transform: scale(1.35); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--white); font-size: 13px; font-weight: 500;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.pill b { background: var(--ink); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.pill--glass { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(10px); }
.pill--glass b { background: #fff; color: var(--ink); }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); position: relative; }
.dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.dot--light { background: #fff; }
.dot--light::after { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 680px;
  background: #0b1030; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero__bg {
  position: absolute; inset: -6% 0 0 0;
  background: radial-gradient(ellipse at 50% 45%, #3c52a8 0%, #1a2560 45%, #0a0f2e 100%);
  will-change: transform;
  animation: heroZoom 2.4s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.12); filter: blur(6px); } to { transform: scale(1); filter: blur(0); } }
.hero__figure { position: absolute; left: 50%; bottom: 0; height: 96%; transform: translateX(-50%); }
.hero__tunnel { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,40,.35) 0%, rgba(8,12,40,.45) 45%, rgba(8,12,40,.85) 100%); }
.hero__content { position: relative; z-index: 2; text-align: center; padding: 0 var(--pad); max-width: 820px; margin-top: -40px; }
.hero__title {
  font-size: clamp(44px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 600; margin: 22px 0 18px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span {
  display: inline-block; transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d);
}
.hero__sub { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto; }
.hero__cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

.reveal-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d); }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__strip {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3; align-items: flex-end;
}
.hero__strip.reveal-up { transform: translate(-50%, 24px); animation-name: fadeUpCentered; }
@keyframes fadeUpCentered { to { opacity: 1; transform: translate(-50%, 0); } }
.thumb {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  background: var(--t, #333); border: 1px solid rgba(255,255,255,.14);
  transition: width .5s var(--ease), height .5s var(--ease), border-color .3s;
  position: relative; display: grid; place-items: center;
}
.thumb svg { width: 70%; height: 70%; }
.thumb.is-active { width: 112px; height: 112px; border-color: #fff; }
.thumb span { position: absolute; bottom: 6px; font-size: 11px; opacity: 0; transition: opacity .3s; }
.thumb.is-active span { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) var(--pad) 0; max-width: 1440px; margin: 0 auto; }
.section--tight { padding-top: clamp(60px, 8vw, 100px); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; margin-top: 16px; }
.h2--light { color: #fff; margin-top: 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 999px; background: var(--white);
  font-size: 14px; font-weight: 500; border: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.card { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.card.is-hidden { display: none; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--card); display: grid; place-items: center;
}
.card__media svg { width: 70%; height: 70%; transition: transform .8s var(--ease); filter: drop-shadow(0 20px 24px rgba(18,26,64,.18)); }
.card:hover .card__media svg { transform: scale(1.06) rotate(-1.5deg); }
.card__tag {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600;
  background: #fff; padding: 5px 10px; border-radius: 999px;
}
.card__tag--sale { background: var(--ink); color: #fff; }
.card__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 44px;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 14px;
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.card:hover .card__add, .card__add:focus-visible { transform: none; }
.card__info { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 4px 0; gap: 12px; }
.card__name { font-size: 15px; font-weight: 500; }
.card__price { font-size: 18px; font-weight: 600; margin-top: 4px; }
.card__price s { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.swatches { display: flex; gap: 6px; padding-top: 2px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c);
  outline: 1px solid var(--line); outline-offset: 2px; transition: outline-color .2s, transform .2s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { outline-color: var(--ink); }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--tone); color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.cat__art { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 1s var(--ease); }
.cat__art svg { width: 62%; height: 62%; }
.cat:hover .cat__art { transform: scale(1.08); }
.cat::before { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); z-index: 1; }
.cat__meta { position: relative; z-index: 2; padding: 22px; gap: 12px; display: flex; justify-content: space-between; align-items: flex-end; }
.cat__meta h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.cat__meta p { font-size: 14px; opacity: .75; margin-top: 6px; }
.cat__meta span { font-size: 14px; white-space: nowrap; opacity: .85; transition: transform .4s var(--ease); }
.cat:hover .cat__meta span { transform: translateX(4px); }

/* ---------- Story ---------- */
.story { background: var(--ink); color: #fff; margin-top: clamp(72px, 10vw, 130px); padding: clamp(80px, 12vw, 160px) var(--pad); }
.story__inner { max-width: 1100px; margin: 0 auto; }
.story__text { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; margin: 28px 0 60px; }
.story__text .w { opacity: .18; transition: opacity .3s linear; }
.story__text .w.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 32px; }
.stat b { display: block; font-size: clamp(40px, 5vw, 68px); font-weight: 600; letter-spacing: -.03em; }
.stat span { color: rgba(255,255,255,.6); font-size: 15px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 26px; transition: transform .4s var(--ease), box-shadow .4s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18,26,64,.08); }
.feature svg { width: 30px; height: 30px; margin-bottom: 26px; }
.feature h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Testimonials ---------- */
.slider-ctrl { display: flex; gap: 8px; }
.slider { overflow: hidden; margin-right: calc(-1 * var(--pad)); }
.slider__track { display: flex; gap: 16px; transition: transform .8s var(--ease); }
.quote {
  flex: 0 0 min(400px, 82vw); background: var(--white); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 22px; min-height: 260px;
}
.era { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.quote blockquote { font-size: 20px; line-height: 1.4; letter-spacing: -.01em; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.quote figcaption i { width: 36px; height: 36px; border-radius: 50%; background: var(--c); }
.quote figcaption span { color: var(--muted); font-weight: 400; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink); border-radius: calc(var(--radius) + 8px); color: #fff;
  padding: clamp(36px, 6vw, 72px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta { background: linear-gradient(135deg, #121a40, #26398a); }
.cta::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
  animation: float 9s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-80px, 60px); } }
.cta p { color: rgba(255,255,255,.65); margin-top: 14px; }
.cta__form { display: flex; gap: 8px; background: rgba(255,255,255,.08); padding: 6px; border-radius: 999px; position: relative; z-index: 1; width: min(460px, 100%); }
.cta__form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; padding: 0 16px; font: inherit; }
.cta__form input::placeholder { color: rgba(255,255,255,.45); }

/* ---------- Footer ---------- */
.footer { max-width: 1440px; margin: 0 auto; padding: clamp(72px, 10vw, 120px) var(--pad) 28px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.nav__logo--dark { color: var(--ink); }
.muted { color: var(--muted); margin-top: 10px; font-size: 14px; }
.footer__cols { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.footer__cols h5 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer__cols p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; }
.footer__cols a { display: block; font-size: 15px; margin-bottom: 10px; transition: opacity .2s; }
.footer__cols a:hover { opacity: .55; }
.footer__big {
  font-size: clamp(40px, 11.5vw, 180px); font-weight: 700; letter-spacing: -.05em; line-height: .9;
  margin: 60px 0 24px; color: transparent; -webkit-text-stroke: 1px #c3c9e0; white-space: nowrap; text-align: center; user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 20px; gap: 12px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, calc(100% + 48px));
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px;
  transition: transform .5s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 88px 12px auto 12px; flex-direction: column; gap: 4px;
    background: #fff; color: var(--ink); padding: 12px; border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav__links a { padding: 12px; font-size: 17px; }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .icon-btn.nav__burger { display: grid; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .cats { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 16 / 11; }
  .stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .thumb { width: 44px; height: 44px; }
  .nav__logo { font-size: 15px; }
  .thumb.is-active { width: 72px; height: 72px; }
  .card__add { transform: none; height: 38px; font-size: 13px; }
  .card__price { font-size: 16px; }
  .swatch { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.hero__hang { transform-origin: 300px 40px; animation: sway 7s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }

@media (max-width: 760px) {
  .card__info { flex-direction: column; gap: 8px; }
  .nav__actions { gap: 6px; }
}

/* ---------- Indigo additions ---------- */
.tunnel-ring { transform-box: fill-box; transform-origin: center; animation: tunnelPulse 6s ease-in-out infinite; }
@keyframes tunnelPulse { 50% { opacity: .35; } }
.rope { stroke-dasharray: 14 18; animation: ropeFlow 3.2s linear infinite; }
@keyframes ropeFlow { to { stroke-dashoffset: -64; } }
.hank { transform-box: fill-box; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite alternate; animation-delay: var(--sd, 0s); }
.hero__figure { height: 78%; width: min(1100px, 150%); }
.thumb span { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.card__spec { font-size: 14px; color: var(--muted); margin-top: 4px; }
.card__meta { font-size: 16px; font-weight: 600; margin-top: 4px; }
.nav__logo, .nav__links a { white-space: nowrap; }
@media (max-width: 1024px) {
  .cat__meta { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .nav__links { gap: 18px; font-size: 14px; }
}
@media (max-width: 760px) {
  .cat { aspect-ratio: 4 / 3; }
  .cat__art { inset: 0 0 38% 0; }
  .cat__art svg { width: 44%; height: 90%; }
}
