/* === Star Student Stationery === */

:root {
  --text: #0a0a0a;
  --muted: #71717a;
  --bg: #ffffff;
  --bg2: #fafafa;
  --border: rgba(0,0,0,.12);
  --accent: #89CFF0;
  --dark: #0a0a0a;
  --font: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --r: 12px;
  --pill: 100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul { list-style: none; }
input { font-family: var(--font); }
::selection { background: #d4edfc; }

/* Smooth page transitions */
html { scroll-behavior: smooth; }
* { -webkit-tap-highlight-color: transparent; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Premium focus ring */
:focus-visible {
  outline: 2px solid #89CFF0;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle grain texture overlay for premium feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: .88rem;
  padding: 14px 36px;
  border-radius: var(--pill);
  border: none;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  letter-spacing: .3px;
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-white { background: #fff; color: var(--dark); font-weight: 600; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(137,207,240,.35), 0 0 0 1px rgba(255,255,255,.1); }
.btn-full { width: 100%; }

.btn-cart { flex: 1; position: relative; }
.btn-cart .btn-done { display: none; }
.btn-cart.added .btn-label { display: none; }
.btn-cart.added .btn-done { display: inline; }
.btn-cart.added { background: #16a34a; pointer-events: none; }

.btn-buy {
  width: 100%;
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
  font-family: var(--font);
  font-weight: 600;
  font-size: .88rem;
  padding: 14px 32px;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  letter-spacing: .3px;
}
.btn-buy:hover {
  background: var(--dark);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Frequently Bought Together --- */

.fbt {
  margin: 20px 0 20px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.fbt-title {
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.fbt-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.fbt-option { cursor: pointer; }
.fbt-option input { display: none; }

.fbt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  height: 100%;
}
.fbt-option:hover .fbt-card { border-color: rgba(0,0,0,.2); }
.fbt-option input:checked + .fbt-card {
  border-color: var(--dark);
  background: var(--bg2);
}

.fbt-qty {
  font-size: .7rem;
  font-weight: 600;
}
.fbt-price {
  font-size: .78rem;
  font-weight: 700;
}
.fbt-prices {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fbt-old {
  font-size: .68rem;
  color: var(--muted);
  text-decoration: line-through;
}
.fbt-save {
  font-size: .6rem;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22,163,74,.08);
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 1px;
}

/* --- Section Utilities --- */

.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-desc {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Loader --- */

.loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease .2s, visibility .5s ease .2s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner { text-align: center; }

.loader-text {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  animation: loaderIn .6s ease .3s forwards;
}
.loader-sub {
  display: block;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: 6px;
  opacity: 0;
  animation: loaderIn .5s ease .6s forwards;
}
.loader-line {
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(137,207,240,.6), transparent);
  margin: 0 auto 20px;
  animation: loaderLine .8s ease .1s forwards;
}

@keyframes loaderIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderLine {
  to { width: 120px; }
}

/* Body hidden during load */
body.loading { overflow: hidden; }

/* --- Progress --- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--dark);
  width: 0;
  z-index: 9999;
  transition: width .1s linear;
}

/* --- Nav --- */

.nav-wrap {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 960px;
  z-index: 1000;
}
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: var(--pill);
  padding: 0 8px 0 24px;
  box-shadow: 0 4px 30px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.6);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.nav-pill.scrolled {
  background: rgba(255,255,255,.6);
  box-shadow: 0 4px 30px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.15);
}

.nav-logo img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 28px; }
.nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .25s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 4px; }

.nav-cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background .2s;
}
.nav-cart:hover { background: var(--bg2); }

.nav-count {
  position: absolute;
  top: 2px;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--dark);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.nav-count.show { transform: scale(1); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 11px;
}
.nav-burger span {
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: .25s var(--ease);
  transform-origin: center;
}
.nav-burger.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- Hero --- */

.hero {
  text-align: center;
  padding: 160px 0 100px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(137,207,240,.18) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(93,173,226,.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(174,214,241,.12) 0%, transparent 45%),
    linear-gradient(180deg, #e8f2fa 0%, #f4f9fd 40%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 1; }

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(137,207,240,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137,207,240,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-sparkle {
  position: absolute;
  color: rgba(137,207,240,.35);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
  animation: sparkle 3s ease-in-out infinite;
}
.hero-sparkle--1 { top: 22%; left: 12%; animation-delay: 0s; font-size: .9rem; }
.hero-sparkle--2 { top: 30%; right: 10%; animation-delay: 1s; font-size: 1.2rem; }
.hero-sparkle--3 { bottom: 25%; left: 20%; animation-delay: 2s; font-size: .7rem; }

@keyframes sparkle {
  0%, 100% { opacity: .3; transform: scale(1) rotate(0deg); }
  50% { opacity: .8; transform: scale(1.3) rotate(20deg); }
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.hero-pill {
  font-size: .72rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: .3px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.hero-pill:hover {
  border-color: rgba(137,207,240,.4);
  color: var(--text);
}

.hero-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-display {
  font-size: clamp(4.5rem, 14vw, 13rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.05em;
  background: linear-gradient(90deg, #5DADE2 0%, #89CFF0 25%, #3498DB 50%, #89CFF0 75%, #5DADE2 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero-cta { font-size: .95rem; padding: 16px 44px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(137,207,240,.25); }

/* --- Marquee --- */

.marquee {
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: scroll 30s linear infinite;
}
.marquee-track span {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px;
  flex-shrink: 0;
}
.marquee-track .sep { opacity: .3; padding: 0 4px; }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Features --- */

.features { background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease);
}
.feature:hover {
  background: var(--bg2);
}
.feature:hover .feature-num {
  color: rgba(137,207,240,.3);
}

.feature-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(0,0,0,.05);
  line-height: 1;
  margin-bottom: 20px;
  transition: color .3s var(--ease);
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.feature p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Shop --- */

.shop {
  padding: 120px 0;
  background: var(--bg2);
}

.shop-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 48px;
  transition: box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.shop-frame:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.14);
}

.shop-img-main {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg2);
}
.shop-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}

.shop-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color .2s;
  padding: 0;
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--text); }

.shop-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.shop-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.shop-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: .9rem; }
.rating-count { font-size: .82rem; color: var(--muted); }

.shop-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.shop-badge {
  font-size: .68rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  vertical-align: middle;
  margin-left: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-desc {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.shop-list {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-list li {
  font-size: .9rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.shop-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.shop-actions { display: flex; gap: 10px; margin-bottom: 24px; }

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.qty-btn {
  width: 40px;
  height: 46px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  transition: background .15s;
}
.qty-btn:hover { background: var(--bg2); }
#qtyVal {
  width: 40px;
  height: 46px;
  border: none;
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  -moz-appearance: textfield;
}
#qtyVal::-webkit-inner-spin-button,
#qtyVal::-webkit-outer-spin-button { -webkit-appearance: none; }

.shop-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.shop-meta .sep { opacity: .3; }

.shop-payments {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  opacity: .45;
  transition: opacity .3s var(--ease);
}
.shop-payments:hover { opacity: .7; }
.shop-payments img { height: 28px; width: auto; flex-shrink: 0; }

/* --- Showcase --- */

.showcase {
  padding: 120px 0;
  text-align: center;
  background: var(--bg);
}

.showcase-img {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  will-change: transform, opacity;
  transform: scale(.88);
  opacity: 0;
  transition: none;
}
.showcase-img.revealed {
  transition: transform 1s cubic-bezier(.16,1,.3,1), opacity .8s ease;
  transform: scale(1);
  opacity: 1;
}
.showcase-img img {
  max-width: 700px;
  width: 100%;
  object-fit: contain;
  transition: transform .8s var(--ease), filter .8s var(--ease);
}
.showcase-img:hover img {
  transform: scale(1.03) rotate(.5deg);
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.1));
}

/* --- Stats --- */

.stats { background: var(--bg); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 56px 24px;
  text-align: center;
  transition: background .3s var(--ease);
}
.stat:hover { background: var(--bg2); }
.stat + .stat { border-left: 1px solid var(--border); }

.stat-num {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-unit {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  margin-left: 2px;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Reviews --- */

.reviews {
  padding: 120px 0;
  text-align: center;
  background: var(--bg2);
}

.reviews-wrap { overflow: hidden; max-width: 680px; margin: 48px auto 0; }

.reviews-track {
  display: flex;
  transition: transform .5s var(--ease);
}

.review {
  flex: 0 0 100%;
  padding: 0 16px;
}

.review-mark {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .5;
  display: block;
  color: rgba(0,0,0,.05);
  font-family: Georgia, serif;
  margin-bottom: 24px;
  user-select: none;
}

.review blockquote {
  font-size: 1.1rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--text);
  margin-bottom: 28px;
}

.review cite {
  font-style: normal;
  font-size: .85rem;
  color: var(--muted);
}
.review cite strong { color: var(--text); font-weight: 600; }

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.reviews-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  transition: .2s;
  background: var(--bg);
}
.reviews-btn:hover { border-color: var(--text); }

.reviews-dots { display: flex; gap: 6px; }
.reviews-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: .2s;
}
.reviews-dots .dot.active { background: var(--text); }

/* --- Story --- */

.story { background: var(--bg); }

.story-img { overflow: hidden; max-height: 520px; }
.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body {
  max-width: 640px;
  padding: 80px 0 120px;
}
.story-body .section-label { margin-bottom: 8px; }
.story-body .section-title { margin-bottom: 28px; }

.story-text { margin-bottom: 32px; }
.story-text p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.75;
}
.story-text p strong { color: var(--text); }

/* --- CTA --- */

.cta {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 140px 24px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,173,226,.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(137,207,240,.3), transparent);
}
.cta .container { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}
.cta-desc {
  color: rgba(255,255,255,.45);
  font-size: 1.05rem;
  margin-bottom: 44px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- Footer --- */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-wordmark {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.footer-wordmark span {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-top: 2px;
}

.footer-brand p { font-size: .88rem; line-height: 1.7; margin-bottom: 12px; }
.footer-email { color: var(--accent); font-size: .85rem; transition: opacity .2s; }
.footer-email:hover { opacity: .7; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.footer-col a {
  font-size: .88rem;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  transition: .2s;
}
.footer-social a:hover { border-color: rgba(137,207,240,.4); color: var(--accent); transform: translateY(-1px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  font-size: .78rem;
  text-align: center;
}

/* --- Cart Drawer --- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 1.05rem; font-weight: 600; }
.drawer-head button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background .2s;
}
.drawer-head button:hover { background: var(--bg2); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--muted);
}

.drawer-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg2);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; }
.cart-item-name { font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-price { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }

.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.cart-item-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s;
}
.cart-item-btn:hover { border-color: var(--text); }
.cart-item-count { font-size: .85rem; font-weight: 600; min-width: 18px; text-align: center; }
.cart-item-rm {
  margin-left: auto;
  font-size: .75rem;
  color: var(--muted);
  transition: color .15s;
}
.cart-item-rm:hover { color: #dc2626; }

.drawer-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: none;
  flex-shrink: 0;
}
.drawer-foot.show { display: block; }

.drawer-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.drawer-total span:first-child { color: var(--muted); font-size: .9rem; }
.drawer-total span:last-child { font-size: 1.15rem; font-weight: 700; }
.drawer-note { font-size: .78rem; color: var(--muted); margin-bottom: 16px; }

/* --- Custom Cursor --- */

.cursor-dot {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 6px;
  height: 6px;
  background: var(--dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0,0,0,.18);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: rgba(137,207,240,.4);
  background: rgba(137,207,240,.06);
}

.cursor-ring.click {
  width: 28px;
  height: 28px;
}

.cursor-dot.hidden,
.cursor-ring.hidden { opacity: 0; }

.cursor-dot.inverted { background: #fff; }
.cursor-ring.inverted { border-color: rgba(255,255,255,.25); }
.cursor-ring.inverted.hover {
  border-color: rgba(137,207,240,.5);
  background: rgba(137,207,240,.1);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* --- Toast --- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--pill);
  font-size: .85rem;
  font-weight: 500;
  z-index: 5000;
  transition: transform .35s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* --- Back to Top --- */

.to-top {
  position: fixed;
  bottom: 76px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .25s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.to-top:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* --- Urgency --- */

.urgency {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.urgency-stock,
.urgency-viewers {
  font-size: .78rem;
  color: var(--muted);
}
.urgency-stock strong { color: #dc2626; }
.urgency-viewers strong { color: var(--text); }

.btn:disabled, .btn[disabled] {
  opacity: .4;
  pointer-events: none;
  cursor: not-allowed;
}

/* --- Sticky Buy Bar --- */

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.sticky-bar.show { transform: translateY(0); }

.sticky-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-bar-info strong { font-size: .9rem; }
.sticky-bar-info span { font-size: .9rem; font-weight: 700; }

.sticky-bar-btn { padding: 10px 28px; font-size: .85rem; }

/* --- Exit Intent Popup --- */

.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  padding: 24px;
}
.exit-overlay.show { opacity: 1; pointer-events: all; }

.exit-popup {
  background: #fff;
  border-radius: var(--r);
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(.96);
  transition: transform .35s var(--ease);
}
.exit-overlay.show .exit-popup {
  transform: translateY(0) scale(1);
}

.exit-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.4rem;
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}
.exit-close:hover { background: var(--bg2); }

.exit-popup h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.exit-popup > p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 24px;
}

.exit-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.exit-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  font-family: var(--font);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
}
.exit-form input:focus { border-color: #89CFF0; }
.exit-form .btn { padding: 12px 20px; font-size: .82rem; white-space: nowrap; }

.exit-note {
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.exit-skip {
  font-size: .75rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  transition: color .2s;
}
.exit-skip:hover { color: var(--text); }

@media (max-width: 480px) {
  .exit-popup { padding: 36px 24px; }
  .exit-form { flex-direction: column; }
  .sticky-bar-info strong { font-size: .8rem; }
}

/* --- Animations --- */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-animate="left"] {
  transform: translateX(-40px);
}
[data-animate="right"] {
  transform: translateX(40px);
}
[data-animate="scale"] {
  transform: scale(.92);
}
[data-animate="fade"] {
  transform: none;
}
[data-animate].visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; }
}

/* --- Responsive --- */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-frame { grid-template-columns: 1fr; gap: 40px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .nav-wrap { width: calc(100% - 24px); top: 10px; }
  .nav-pill { padding: 0 6px 0 16px; height: 48px; }
  .nav-logo img { height: 36px; }
  .nav-pill { position: static; }
  .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-pill {
    position: relative;
    width: 100%;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
    z-index: 1100;
  }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links .nav-link { font-size: 1.4rem; font-weight: 600; }
  .nav-links .nav-link::after { display: none; }
  .nav-burger { display: flex; z-index: 1101; }

  .hero { padding: 120px 0 72px; }
  .hero-label { font-size: .65rem; letter-spacing: 3px; margin-bottom: 16px; }
  .hero-sub { font-size: 1rem; }
  .hero-desc { font-size: .88rem; margin-bottom: 28px; }
  .hero-cta { padding: 14px 36px; }
  .hero-badges { gap: 8px; margin-top: 28px; }
  .hero-pill { font-size: .65rem; padding: 5px 12px; }
  .hero-grid-bg { background-size: 32px 32px; }

  .hero-sparkle { display: none; }

  .marquee { margin-top: 0; }
  .marquee-track span { font-size: .65rem; padding: 0 10px; letter-spacing: 2px; }

  .features-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }
  .feature {
    border-right: none;
    padding: 32px 20px;
  }
  .feature:last-child { border-bottom: none; }
  .feature-num { font-size: 2.2rem; margin-bottom: 14px; }

  .shop { padding: 64px 0; }
  .shop-frame { padding: 20px; gap: 32px; }
  .shop-title { font-size: 1.3rem; }
  .shop-price { font-size: 1.5rem; }
  .urgency { flex-direction: column; gap: 6px; }
  .shop-desc { font-size: .85rem; }

  .showcase { padding: 64px 0; }
  .showcase-img img { max-width: 100%; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 36px 12px; }
  .stat:nth-child(3) { border-left: none; }

  .reviews { padding: 64px 0; }
  .reviews-wrap { margin-top: 32px; }
  .review blockquote { font-size: .95rem; }
  .review-mark { font-size: 4rem; margin-bottom: 16px; }

  .story-img { max-height: 320px; }
  .story-body { padding: 40px 0 64px; }
  .story-text p { font-size: .88rem; }

  .cta { padding: 72px 16px; }
  .cta-title { font-size: 1.8rem; }

  .footer { padding: 40px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: 1; }
  .footer-wordmark { font-size: 1.2rem; }
  .footer-bottom { font-size: .72rem; }

  .fbt-options { grid-template-columns: repeat(2, 1fr); }

  .sticky-bar { padding: 10px 16px; }
  .sticky-bar-info strong { font-size: .82rem; }
  .sticky-bar-btn { padding: 10px 20px; font-size: .8rem; }

  .to-top { bottom: 68px; right: 16px; width: 38px; height: 38px; }

  .drawer { width: 100%; max-width: 100%; }
  .drawer-body { padding: 16px; }

  .btn-buy { padding: 12px 24px; font-size: .85rem; }

  .exit-popup { padding: 32px 20px; }
  .exit-popup h3 { font-size: 1.1rem; }
  .exit-form { flex-direction: column; }
  .exit-form input { padding: 14px 16px; }
}

@media (max-width: 480px) {
  .hero-display { letter-spacing: -.03em; }
  .hero-badges { flex-wrap: wrap; justify-content: center; }

  .shop-actions { flex-direction: column; }
  .qty { width: 100%; justify-content: center; }
  .btn-cart { text-align: center; }

  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: .65rem; letter-spacing: 1.5px; }

  .fbt-card { padding: 8px 4px; }
  .fbt-qty { font-size: .65rem; }
  .fbt-price { font-size: .72rem; }
  .fbt-old { font-size: .62rem; }
  .fbt-save { font-size: .55rem; }

  .shop-payments img { height: 22px; }

  .section-title { font-size: 1.6rem; }
  .section-label { font-size: .65rem; }

  .cta-title { font-size: 1.5rem; }
  .cta-desc { font-size: .88rem; }
}
