:root {
  --navy: #1B2A4A;
  --navy-soft: #2E3F63;
  --ink: #14141A;
  --cream: #FAF8F4;
  --mid: #6B6B72;
}

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

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
}

/* ── NAV ──────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .04em;
  color: var(--navy);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--navy);
  text-decoration: none;
  opacity: .75;
  transition: opacity .3s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 11px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .25s, background .3s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--navy-soft); }

/* ── CAROUSEL HERO ───────────────────────────────────────────────── */
#carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background crossfade layers */
.bg-layers {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1);
}
.bg-layer.active { opacity: 1; }
.bg-layer[data-bg="0"] { background: radial-gradient(ellipse at 70% 30%, #F7EDD9 0%, #E8D5B0 100%); }
.bg-layer[data-bg="1"] { background: radial-gradient(ellipse at 70% 30%, #FAD9D9 0%, #F2C6C6 100%); }
.bg-layer[data-bg="2"] { background: radial-gradient(ellipse at 70% 30%, #DCE8FA 0%, #C6D8F2 100%); }
.bg-layer[data-bg="3"] { background: radial-gradient(ellipse at 70% 30%, #DFF7E6 0%, #C6F2D1 100%); }
.bg-layer[data-bg="4"] { background: radial-gradient(ellipse at 70% 30%, #F7E8F2 0%, #F2DCEA 100%); }

/* Giant watermark index number */
.wm-index {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 52vw;
  line-height: 1;
  color: rgba(27,42,74,0.05);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity .6s;
  white-space: nowrap;
}

.carousel-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

/* Text content */
.slide-content {
  position: relative;
}
.slide-counter {
  display: block;
  font-size: .75rem;
  letter-spacing: .25em;
  color: var(--navy);
  opacity: .55;
  margin-bottom: 28px;
  font-weight: 600;
}
.slide-text {
  position: absolute;
  top: 36px; left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.slide-text.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.slide-tag {
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--navy);
  opacity: .65;
  margin-bottom: 10px;
  font-weight: 500;
}
.slide-name {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  color: var(--navy);
  letter-spacing: -.01em;
}
.slide-desc {
  margin-top: 22px;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--navy);
  opacity: .7;
  max-width: 380px;
}

.slide-meta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.slide-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  transition: opacity .3s;
}
.slide-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 15px 30px;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .25s, background .3s;
}
.slide-btn:hover { transform: translateY(-2px); background: var(--navy-soft); }

/* Shoe stage */
.shoe-stage {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shoe-img {
  position: absolute;
  width: 92%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  transform: translateX(70px) rotate(8deg) scale(.88);
  opacity: 0;
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 30px 40px rgba(27,42,74,0.18));
}
.shoe-img.active {
  opacity: 1;
  transform: translateX(0) rotate(-8deg) scale(1);
  z-index: 2;
}
.shoe-img.exit-left {
  opacity: 0;
  transform: translateX(-70px) rotate(-16deg) scale(.88);
}
.shoe-img.exit-right {
  opacity: 0;
  transform: translateX(70px) rotate(8deg) scale(.88);
}
.shoe-shadow {
  position: absolute;
  bottom: 6%;
  width: 50%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(27,42,74,0.22) 0%, transparent 75%);
  z-index: 1;
}

/* Controls */
.carousel-controls {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
}
.c-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(27,42,74,0.25);
  background: rgba(255,255,255,.4);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s, transform .2s;
}
.c-arrow:hover { background: rgba(255,255,255,.8); transform: scale(1.06); }

.dots {
  display: flex;
  gap: 10px;
}
.dot {
  width: 34px; height: 4px;
  border-radius: 4px;
  background: rgba(27,42,74,0.18);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.dot-fill {
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s linear;
}
.dot.active .dot-fill { transform: scaleX(var(--progress, 0)); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 48px; right: 56px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue span {
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .55;
}
.scroll-cue-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--navy), transparent);
  opacity: .4;
  animation: cuepulse 1.6s ease-in-out infinite;
}
@keyframes cuepulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .65; }
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── MARQUEE ─────────────────────────────────────────────────────── */
.marquee-wrap {
  background: var(--navy);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee-track span {
  font-family: 'Syne', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.m-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #C6D8F2;
  display: inline-block;
  vertical-align: middle;
  margin: 0 -28px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── TECH / INNOVATION ───────────────────────────────────────────── */
#tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 130px 56px;
  max-width: 1320px;
  margin: 0 auto;
}
.tech-body {
  margin-top: 22px;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 420px;
}
.tech-stats {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tstat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.tstat-label {
  margin-top: 8px;
  font-size: .78rem;
  color: var(--mid);
  line-height: 1.4;
  max-width: 180px;
}
.tech-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 60% 40%, #DCE8FA 0%, #C6D8F2 100%);
  border-radius: 24px;
  padding: 60px;
  aspect-ratio: 1;
}
.tech-visual img {
  width: 100%;
  max-width: 420px;
  transform: rotate(-10deg) scale(1.05);
  filter: drop-shadow(0 30px 40px rgba(27,42,74,0.22));
}

/* ── STATS BAR ───────────────────────────────────────────────────── */
#stats-bar {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 70px 56px;
}
.sbar-item {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.sbar-item:last-child { border-right: none; }
.sbar-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.sbar-label {
  margin-top: 10px;
  font-size: .75rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}

/* ── LOOKBOOK ────────────────────────────────────────────────────── */
#lookbook {
  padding: 130px 56px;
  max-width: 1320px;
  margin: 0 auto;
}
.lb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 18px;
}
.lb-item {
  background: var(--lc, #eee);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-large { grid-column: span 2; grid-row: span 2; }
.lb-tall  { grid-row: span 2; }
.lb-item img {
  width: 78%;
  height: auto;
  object-fit: contain;
  transform: rotate(-10deg);
  filter: drop-shadow(0 20px 24px rgba(27,42,74,0.2));
  transition: transform .5s ease;
}
.lb-item:hover img { transform: rotate(-10deg) scale(1.06); }
.lb-cap {
  position: absolute;
  bottom: 18px; left: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
}

/* ── TESTIMONIALS ────────────────────────────────────────────────── */
#testimonials {
  padding: 130px 56px;
  max-width: 1320px;
  margin: 0 auto;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: #fff;
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: 16px;
  padding: 32px;
}
.testi-stars {
  color: #E8B84B;
  font-size: .9rem;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.testi-quote {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--navy);
  opacity: .85;
  margin-bottom: 22px;
}
.testi-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  opacity: .6;
}

/* ── FEATURES ────────────────────────────────────────────────────── */
#features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(27,42,74,0.08);
  border-top: 1px solid rgba(27,42,74,0.08);
  border-bottom: 1px solid rgba(27,42,74,0.08);
}
.feature {
  background: var(--cream);
  padding: 56px 40px;
  text-align: center;
}
.feature-icon {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature p {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--mid);
}

/* ── COLORWAY GRID ───────────────────────────────────────────────── */
#grid {
  padding: 120px 56px;
  max-width: 1320px;
  margin: 0 auto;
}
.grid-header { margin-bottom: 64px; }
.grid-label {
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 18px;
}
.grid-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
}
.grid-title em { font-style: italic; color: var(--navy); opacity: .55; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.grid-card {
  background: var(--gc, #eee);
  border-radius: 16px;
  padding: 24px 20px 22px;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(27,42,74,0.12);
}
.grid-card img {
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 12px 16px rgba(27,42,74,0.18));
}
.gc-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.gc-price {
  font-size: .78rem;
  color: var(--navy);
  opacity: .6;
}

/* ── CTA / NEWSLETTER ────────────────────────────────────────────── */
#cta {
  background: var(--navy);
  padding: 110px 56px;
  text-align: center;
}
#cta h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
}
#cta h2 em { font-style: italic; color: #C6D8F2; }
#cta p {
  font-size: .92rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 40px;
}
.cta-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.cta-form input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 100px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  outline: none;
}
.cta-form button {
  background: #fff;
  color: var(--navy);
  border: none;
  font-weight: 600;
  font-size: .82rem;
  padding: 15px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .25s;
}
.cta-form button:hover { transform: translateY(-2px); }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 56px 56px 32px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
}
.foot-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.foot-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .3s;
}
.foot-links a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
}
.foot-bottom p {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media(max-width: 900px) {
  #nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .carousel-inner { grid-template-columns: 1fr; padding: 0 24px; text-align: center; }
  .slide-text { position: relative; }
  .slide-desc { margin: 18px auto 0; }
  .slide-meta { justify-content: center; }
  .shoe-stage { height: 36vh; order: -1; }
  .wm-index { font-size: 80vw; }
  #features { grid-template-columns: 1fr 1fr; }
  .grid-cards { grid-template-columns: repeat(2,1fr); }
  #grid { padding: 72px 24px; }
  .scroll-cue { display: none; }
  .cta-form { flex-direction: column; }
  .foot-top { flex-direction: column; gap: 20px; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }

  #tech { grid-template-columns: 1fr; gap: 48px; padding: 80px 24px; text-align: center; }
  .tech-body { margin: 22px auto 0; }
  .tech-stats { max-width: 320px; margin: 52px auto 0; }
  .tech-visual { padding: 36px; }

  #stats-bar { grid-template-columns: 1fr 1fr; gap: 32px 0; padding: 48px 24px; }
  .sbar-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 24px; }
  .sbar-item:nth-child(2n) { border-right: none; }

  #lookbook { padding: 80px 24px; }
  .lb-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 160px); }
  .lb-large { grid-column: span 2; grid-row: span 1; }
  .lb-tall { grid-row: span 1; }

  #testimonials { padding: 80px 24px; }
  .testi-grid { grid-template-columns: 1fr; gap: 16px; }
}
