:root {
  --void: #060913;
  /* Xanh sapphire cực đậm, tạo chiều sâu không gian cao cấp */
  --surface: #101827;
  /* Bề mặt thẻ kính tối sang trọng */
  --surface-2: #1e293b;
  --ink: #f1f5f9;
  /* Chữ trắng bạc sáng rõ nét */
  --ink-dim: #94a3b8;
  /* Chữ phụ */
  --ink-faint: #64748b;
  /* Chữ mờ */

  --gold: #38bdf8;
  /* Xanh Cyan hiện đại làm điểm nhấn */
  --gold-bright: #7dd3fc;
  /* Xanh sáng ánh ngọc */
  --gold-dim: #0284c7;
  /* Xanh đậm tạo khối */

  --velvet: #0f172a;
  --velvet-bright: #1e3a8a;

  --line: rgba(56, 189, 248, 0.2);
  /* Viền ánh sáng xanh cyan tinh tế */
  --line-bright: rgba(56, 189, 248, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

::selection {
  background: var(--gold-dim);
  color: #fff;
}

h1,
h2,
h3,
.serif {
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
}

.eyebrow {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (min-width:900px) {
  .container {
    max-width: 1040px;
  }
}

/* ---------- Scroll progress ---------- */
#progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.05);
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.6);
}

/* ---------- Glass card base (Hiệu ứng kính cao cấp) ---------- */
.glass {
  background: linear-gradient(160deg, rgba(16, 24, 39, 0.85), rgba(6, 9, 19, 0.75));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  transition: border-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--line-bright), transparent 30%, transparent 70%, var(--line-bright));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glass:hover::before {
  opacity: 1;
}

.glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(56, 189, 248, 0.2);
}

/* ---------- Section rhythm ---------- */
section {
  padding: 5.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width:900px) {
  section {
    padding: 8rem 2rem;
  }
}

.divider {
  width: 1px;
  height: 64px;
  margin: 0 auto;
  background: linear-gradient(var(--gold-dim), transparent);
}

/* ---------- Bezel signature element ---------- */
.bezel-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
}

.bezel-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  animation: spin 60s linear infinite;
}

.bezel-ring svg {
  width: 100%;
  height: 100%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.avatar-img {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  object-fit: cover;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 20px 40px -16px rgba(0, 0, 0, 0.9);
}

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s ease;
  width: 100%;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(120deg, var(--gold-dim), var(--gold));
  color: #060913;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 10px 30px -8px rgba(56, 189, 248, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  border: 1px solid var(--line-bright);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--gold);
}

/* ---------- Contact icon row ---------- */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-dim);
  transition: all 0.35s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Product cards ---------- */
.product-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.5rem 1.5rem;
  margin: 0 -1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-scroller::-webkit-scrollbar {
  display: none;
}

.product-card {
  scroll-snap-align: start;
  flex: 0 0 78%;
  overflow: hidden;
}

@media (min-width:640px) {
  .product-card {
    flex-basis: 340px;
  }
}

@media (min-width:900px) {
  .product-scroller {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .product-card {
    flex-basis: auto;
  }
}

.product-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.product-media img,
.product-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.product-card:hover .product-media img,
.product-card:hover .product-media video {
  transform: scale(1.06);
}

.tag-exclusive {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-faint);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0;
  font-family: 'Inter', sans-serif;
}

/* ---------- Video / media block ---------- */
.video-wrap {
  aspect-ratio: 9/16;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  border-radius: 8px;
}

@media (min-width:640px) {
  .video-wrap {
    aspect-ratio: 16/10;
    max-width: none;
  }
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sound-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background: rgba(6, 9, 19, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
  padding: 0;
  color: var(--gold-bright);
  transition: all 0.3s ease;
}

.sound-toggle:hover {
  background: var(--gold);
  color: #060913;
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---------- Form ---------- */
.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  padding: 0.95rem 1rem;
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.field::placeholder {
  color: var(--ink-faint);
}

label.field-label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.hairline {
  height: 1px;
  background: var(--line);
  border: none;
}

a {
  color: inherit;
}

/* ---------- Mini play badge on product cards ---------- */
.mini-play {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(4px);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.mini-play:hover {
  background: var(--gold);
  transform: scale(1.08);
}

.mini-play:hover svg path {
  fill: #060913;
}

.mini-play svg {
  width: 14px;
  height: 14px;
}

/* ---------- Product video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-modal.open {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line-bright);
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #060913;
  border: none;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  border: 1px solid var(--line-bright);
  background: #000;
  border-radius: 4px;
}

.video-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Smooth Entrance Animations for Cards ---------- */
.product-card,
.glass {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card.in,
.glass.in {
  opacity: 1;
  transform: translateY(0);
}

.product-card:nth-child(1) {
  transition-delay: 0.1s;
}

.product-card:nth-child(2) {
  transition-delay: 0.2s;
}

.product-card:nth-child(3) {
  transition-delay: 0.3s;
}

.product-card:nth-child(4) {
  transition-delay: 0.4s;
}