/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg-main: #050b12;
  --bg-card: #0d1b2a;
  --bg-alt: #0a131b;
  --accent-blue: #4ea1ff;
  --accent-blue-deep: #0d6efd;
  --accent-glow: rgba(78, 161, 255, 0.35);
  --text-main: #ffffff;
  --text-muted: #b7c7d9;
  --line: rgba(255, 255, 255, 0.05);
  --line-blue: rgba(78, 161, 255, 0.15);
  --font-title: 'Cinzel', serif;
  --font-body: 'Poppins', sans-serif;
  --header-h: 94px;
  --ease-out-soft: cubic-bezier(.2, .7, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html.no-scroll,
html.no-scroll body { overflow: hidden; }

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ============================================================
   SCROLL PROGRESS BAR  (NEW)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-blue-deep), var(--accent-blue), #9ed2ff);
  box-shadow: 0 0 12px rgba(78, 161, 255, 0.8);
  z-index: 1200;
  pointer-events: none;
  will-change: transform;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 2000;
  background: var(--accent-blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ============================================================
   BUTTONS  (+ shine sweep)
   ============================================================ */
.btn,
.btn-whatsapp,
.btn-outline {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Light sweep on hover */
.btn::before,
.btn-whatsapp::before,
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 70%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before,
  .btn-whatsapp:hover::before,
  .btn-outline:hover::before { left: 130%; }
}

.btn {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep));
  background-size: 180% 180%;
  color: #fff;
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.3s var(--ease-out-soft),
              box-shadow 0.3s ease,
              background-position 0.6s ease;
  font-size: 14px;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: 0 8px 24px var(--accent-glow);
  }
}
.btn i { position: relative; z-index: 2; }
.btn span { position: relative; z-index: 2; }

.btn-whatsapp {
  background-color: var(--accent-blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out-soft), box-shadow 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-whatsapp:hover {
    background-color: var(--accent-blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--accent-glow);
  }
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  border-radius: 30px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out-soft), box-shadow 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    background: rgba(78, 161, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(78, 161, 255, 0.18);
  }
}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #14263a, #09141d);
  border: 1px dashed rgba(78, 161, 255, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 15px;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.img-placeholder i {
  font-size: 32px;
  color: var(--accent-blue);
  margin-bottom: 8px;
  opacity: 0.8;
}

/* Zoom affordance on clickable media */
.gem-card .img-placeholder,
.profile-card .img-placeholder,
.gem-card > img,
.profile-card img {
  cursor: zoom-in;
}

.gem-card .img-placeholder::after,
.profile-card .img-placeholder::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(5, 11, 18, 0.75);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .gem-card .img-placeholder:hover::after,
  .profile-card .img-placeholder:hover::after {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 18px;
  background: rgba(5, 11, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-blue);
  transition: padding 0.35s var(--ease-out-soft),
              background-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* Compact state on scroll */
.site-header.scrolled {
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: 10px;
  background: rgba(4, 9, 15, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 1px;
  line-height: 1.2;
  transition: font-size 0.35s var(--ease-out-soft), text-shadow 0.35s ease;
}
.logo span {
  color: #fff;
  font-size: 13px;
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.5px;
  transition: font-size 0.35s var(--ease-out-soft);
}
.site-header.scrolled .logo { font-size: 19px; text-shadow: 0 0 18px var(--accent-glow); }
.site-header.scrolled .logo span { font-size: 11.5px; }

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-links li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--accent-blue); }

/* Animated underline for text links */
.nav-links li a:not(.btn-whatsapp) {
  position: relative;
  display: inline-block;
}
.nav-links li a:not(.btn-whatsapp)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out-soft);
}
.nav-links li a:not(.btn-whatsapp):hover::after,
.nav-links li a.active:not(.btn-whatsapp)::after { transform: scaleX(1); }

.hamburger {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--accent-blue);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.hamburger:active { transform: scale(0.9); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 150px 0 80px;
  background: radial-gradient(circle at 70% 30%, rgba(78, 161, 255, 0.14) 0%, rgba(5, 11, 18, 1) 70%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Slow drifting radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, rgba(78, 161, 255, 0.13) 0%, transparent 65%);
  pointer-events: none;
  animation: driftGlow 16s ease-in-out infinite alternate;
}
@keyframes driftGlow {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .8; }
  100% { transform: translate3d(-6%, 5%, 0) scale(1.12); opacity: 1; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero text entrance (staggered) */
.hero-text > * {
  animation: heroFadeUp 0.9s var(--ease-out-soft) backwards;
}
.hero-text .eyebrow       { animation-delay: 0.05s; }
.hero-text h1             { animation-delay: 0.16s; }
.hero-text > p            { animation-delay: 0.26s; }
.hero-text .hero-buttons  { animation-delay: 0.36s; }
.hero-text .trust-badges  { animation-delay: 0.46s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-size: 12px;
  color: var(--accent-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.hero-text h1 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(100deg, #ffffff 0%, #cfe6ff 45%, #ffffff 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroFadeUp 0.9s var(--ease-out-soft) 0.16s backwards,
             titleShine 7s ease-in-out 1.6s infinite;
}
@keyframes titleShine {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-text p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 15px;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* Hero image: entrance + floating loop + glow pulse */
.hero .gem-img {
  animation: heroImgIn 1.1s var(--ease-out-soft) 0.25s backwards,
             floatY 6.5s ease-in-out 1.5s infinite;
}
@keyframes heroImgIn {
  from { opacity: 0; transform: translateY(26px) scale(0.94); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.trust-badges li {
  animation: heroFadeUp 0.7s var(--ease-out-soft) backwards;
}
.trust-badges li:nth-child(1) { animation-delay: 0.55s; }
.trust-badges li:nth-child(2) { animation-delay: 0.63s; }
.trust-badges li:nth-child(3) { animation-delay: 0.71s; }
.trust-badges li:nth-child(4) { animation-delay: 0.79s; }

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-badges i {
  color: var(--accent-blue);
  font-size: 13px;
  transition: transform 0.3s var(--ease-out-soft);
}
.trust-badges li:hover i { transform: scale(1.25) rotate(-6deg); }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title { text-align: center; margin-bottom: 45px; }
.section-title .eyebrow { margin-bottom: 8px; }
.section-title h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #fff;
  line-height: 1.25;
}
.section-title p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 550px;
  margin: 10px auto 0;
}

/* Decorative line under section heading */
.section-title h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  animation: linePulse 3.4s ease-in-out infinite;
}
@keyframes linePulse {
  0%, 100% { opacity: 0.55; transform: scaleX(1); }
  50%      { opacity: 1;    transform: scaleX(1.35); }
}

/* ============================================================
   FEATURED GEMS SLIDER
   ============================================================ */
.featured-gems { padding: 80px 0; }

.gem-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gem-slider::-webkit-scrollbar { display: none; }

.gem-card {
  flex: 0 0 285px;
  width: 300px;
  min-width: 0;
  background: var(--bg-card);
  border-radius: 15px;
  padding: 15px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Top accent line slides in on hover */
.gem-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue-deep), var(--accent-blue), #9ed2ff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out-soft);
}
@media (hover: hover) and (pointer: fine) {
  .gem-card:hover::after { transform: scaleX(1); }
}

.gem-card .img-placeholder { height: 220px; margin-bottom: 15px; }
.gem-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 5px;
  color: #fff;
}
.gem-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 15px;
  flex: 1;
}
.gem-card .btn-whatsapp { width: 100%; margin-top: auto; }

/* Cards — transform is now driven by JS tilt (see JS section).
   The CSS transition handles smoothness. */
.gem-card,
.profile-card {
  transition: transform 0.4s var(--ease-out-soft),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .gem-card:hover,
  .profile-card:hover {
    border-color: rgba(78, 161, 255, 0.42);
    box-shadow: 0 18px 40px rgba(78, 161, 255, 0.16);
  }
}

/* ============================================================
   ORIGIN & HERITAGE
   ============================================================ */
.origin-section {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-blue);
  border-bottom: 1px solid var(--line-blue);
}
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.origin-text h2 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  margin-bottom: 15px;
  line-height: 1.25;
}
.origin-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 14px;
}
.origin-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.origin-images .img-placeholder {
  min-height: 160px;
  transition: transform 0.4s var(--ease-out-soft), border-color 0.4s ease;
}
.origin-images .img-placeholder:first-child {
  grid-row: span 2;
  min-height: 335px;
}
@media (hover: hover) and (pointer: fine) {
  .origin-images .img-placeholder:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(78, 161, 255, 0.65);
  }
}

/* ============================================================
   CATALOG
   ============================================================ */
.catalog { padding: 80px 0; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 30px;
}

.profile-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--line-blue);
  display: flex;
  flex-direction: column;
}
.profile-card .img-placeholder { height: 200px; margin-bottom: 15px; }

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.profile-title {
  font-family: var(--font-title);
  font-size: 18px;
  color: #fff;
  line-height: 1.3;
}

/* Rarity tag — soft breathing glow */
.rarity-tag {
  font-size: 11px;
  background: rgba(78, 161, 255, 0.12);
  color: var(--accent-blue);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
  animation: tagPulse 3.2s ease-in-out infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78, 161, 255, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(78, 161, 255, 0); }
}

.profile-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.gem-specs {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 12px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  transition: background-color 0.25s ease;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-muted); flex: 0 0 auto; }
.spec-value {
  color: #fff;
  font-weight: 500;
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Button pinned to bottom so cards align in a row */
.profile-card > .btn-whatsapp {
  width: 100%;
  margin-top: auto;
}

/* ============================================================
   GEMOLOGY GUIDE
   ============================================================ */
.guide { padding: 60px 0; background: var(--bg-alt); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
}
.guide-box {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--line);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .guide-box:hover {
    border-color: rgba(78, 161, 255, 0.4);
    box-shadow: 0 12px 30px rgba(78, 161, 255, 0.1);
  }
}
.guide-box i {
  font-size: 28px;
  color: var(--accent-blue);
  margin-bottom: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .guide-box:hover i { animation: iconPop 0.55s var(--ease-out-soft); }
}
@keyframes iconPop {
  0%   { transform: scale(1) rotate(0deg); }
  45%  { transform: scale(1.3) rotate(-8deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.guide-box h3 {
  font-family: var(--font-title);
  margin-bottom: 8px;
  font-size: 16px;
  color: #fff;
}
.guide-box p { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   STATS
   ============================================================ */
.stats-section { padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 20px;
  background: var(--bg-card);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid rgba(78, 161, 255, 0.2);
  position: relative;
  overflow: hidden;
}
/* Slow travelling sheen across the stats panel */
.stats-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(78, 161, 255, 0.07), transparent);
  transform: skewX(-16deg);
  animation: panelSheen 8s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes panelSheen {
  0%        { left: -60%; }
  55%, 100% { left: 130%; }
}

.stat-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.35s var(--ease-out-soft), background-color 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .stat-box:hover {
    transform: translateY(-4px);
    background: rgba(78, 161, 255, 0.06);
  }
}
.stat-number {
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 1.2;
  color: var(--accent-blue);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(78, 161, 255, 0.35);
}
.stat-label { font-size: 12px; color: var(--text-muted); }
.stats-heading {
  font-family: var(--font-title);
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}
.stats-text p { color: var(--text-muted); font-size: 13px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 70px 0 80px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-blue);
  border-bottom: 1px solid var(--line-blue);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--line-blue);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.4s var(--ease-out-soft),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .testimonial:hover {
    border-color: rgba(78, 161, 255, 0.35);
    box-shadow: 0 14px 34px rgba(78, 161, 255, 0.12);
  }
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 18px;
  font-family: var(--font-title);
  font-size: 54px;
  line-height: 1;
  color: rgba(78, 161, 255, 0.22);
  pointer-events: none;
  transition: color 0.4s ease, transform 0.4s var(--ease-out-soft);
}
@media (hover: hover) and (pointer: fine) {
  .testimonial:hover::before {
    color: rgba(78, 161, 255, 0.45);
    transform: translateY(-2px) scale(1.08);
  }
}
.testimonial p {
  color: var(--text-muted);
  font-size: 13.5px;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-soft), box-shadow 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .testimonial:hover .testimonial-avatar {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 0 0 4px rgba(78, 161, 255, 0.14);
  }
}
.testimonial-meta strong {
  display: block;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.testimonial-meta span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}
.testimonial-stars {
  color: #ffc55c;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 2px;
  display: inline-block;
  transition: text-shadow 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .testimonial:hover .testimonial-stars {
    text-shadow: 0 0 12px rgba(255, 197, 92, 0.65);
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 80px 0; }
.faq-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.faq-item {
  background: var(--bg-card);
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-out-soft);
}
.faq-item:hover { border-color: rgba(78, 161, 255, 0.25); }
.faq-item.active {
  border-color: rgba(78, 161, 255, 0.4);
  box-shadow: 0 8px 26px rgba(78, 161, 255, 0.1);
}
.faq-heading { font-size: inherit; font-weight: inherit; }
.faq-question {
  width: 100%;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  background: none;
  border: 0;
  text-align: left;
  transition: color 0.3s ease;
}
.faq-item.active .faq-question { color: var(--accent-blue); }
.faq-question i {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-soft), color 0.3s ease;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-blue);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-soft);
}
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  bottom: calc(25px + env(safe-area-inset-bottom, 0px));
  right: calc(25px + env(safe-area-inset-right, 0px));
  background-color: var(--accent-blue);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(78, 161, 255, 0.45);
  z-index: 999;
  transition: transform 0.3s var(--ease-out-soft), background-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .floating-whatsapp:hover {
    transform: scale(1.1) rotate(6deg);
    background-color: var(--accent-blue-deep);
  }
}

/* Expanding pulse ring */
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(78, 161, 255, 0.65);
  animation: pulseRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0%   { transform: scale(1);    opacity: 0.85; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #03080d;
  padding: 60px 0 20px;
  border-top: 1px solid var(--line-blue);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.footer-col h3 {
  font-family: var(--font-title);
  color: var(--accent-blue);
  margin-bottom: 15px;
  font-size: 16px;
}
.footer-col p,
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}
.footer-col ul li a {
  transition: color 0.3s ease, transform 0.3s var(--ease-out-soft);
}
@media (hover: hover) and (pointer: fine) {
  .footer-col ul li a:hover {
    color: var(--accent-blue);
    transform: translateX(4px);
  }
}
.footer-col i { color: var(--accent-blue); width: 18px; }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 8, 13, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  animation: lightboxFade 0.25s ease;
}
.lightbox[hidden] { display: none; }

@keyframes lightboxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-body {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: lightboxZoom 0.4s var(--ease-out-soft);
}
@keyframes lightboxZoom {
  from { opacity: 0; transform: scale(0.92) translateY(18px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox-body img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line-blue);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-body .img-placeholder {
  width: 100%;
  min-height: 55vh;
  font-size: 15px;
}
.lightbox-body .img-placeholder i { font-size: 60px; }

.lightbox-caption {
  color: #fff;
  font-family: var(--font-title);
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.5px;
}
.lightbox-hint {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  margin-top: -8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid var(--line-blue);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.35s var(--ease-out-soft);
}
@media (hover: hover) and (pointer: fine) {
  .lightbox-close:hover {
    background: var(--bg-card);
    transform: rotate(90deg);
  }
}

/* ============================================================
   REVEAL ON SCROLL (animation based — no transform conflicts)
   ============================================================ */
.reveal { opacity: 0; }
.reveal.visible {
  animation: revealUp 0.75s var(--ease-out-soft) both;
  animation-delay: var(--d, 0ms);
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero-content,
  .origin-grid,
  .faq-container { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-text { grid-column: span 2; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    overflow-y: auto;
    background: var(--bg-main);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px 20px 60px;
    gap: 22px;
    border-top: 1px solid var(--line-blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links > li { width: 100%; }
  .nav-links > li > a:not(.btn-whatsapp) {
    display: block;
    font-size: 16px;
    padding: 6px 0;
  }

  /* Staggered slide-in for mobile menu items */
  .nav-links.active > li {
    animation: menuItemIn 0.45s var(--ease-out-soft) backwards;
  }
  .nav-links.active > li:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.active > li:nth-child(2) { animation-delay: 0.10s; }
  .nav-links.active > li:nth-child(3) { animation-delay: 0.15s; }
  .nav-links.active > li:nth-child(4) { animation-delay: 0.20s; }
  .nav-links.active > li:nth-child(5) { animation-delay: 0.25s; }
  .nav-links.active > li:nth-child(6) { animation-delay: 0.30s; }
  .nav-links.active > li:nth-child(7) { animation-delay: 0.35s; }

  @keyframes menuItemIn {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .origin-images { grid-template-columns: 1fr; }
  .origin-images .img-placeholder:first-child {
    grid-row: auto;
    min-height: 200px;
  }

  /* Hero image removed on mobile — text takes full width */
  .hero .gem-img { display: none; }
  .hero-content { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; padding: 25px; }
  .stats-text { grid-column: span 1; }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
    font-size: 26px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
  }

  .lightbox { padding: 50px 14px 30px; }
  .lightbox-body .img-placeholder { min-height: 40vh; }

  /* Lighter hero motion on small screens */
  .hero .gem-img { animation: heroImgIn 1s var(--ease-out-soft) 0.25s backwards,
                               floatYMobile 7s ease-in-out 1.3s infinite; }
  @keyframes floatYMobile {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
  }
}

@media (max-width: 400px) {
  .logo { font-size: 18px; }
  .logo span { font-size: 11px; }
  .hero { padding-top: 130px; }
  .trust-badges { font-size: 11.5px; gap: 8px 16px; }
}

/* ============================================================
   GEM IMAGE STYLES
   ============================================================ */
.gem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: linear-gradient(135deg, #14263a, #09141d);
}

/* Fixed heights per context */
.hero .gem-img                    { min-height: 350px; height: 100%; }
.gem-card .gem-img                { height: 220px; margin-bottom: 15px; }
.profile-card .gem-img            { height: 200px; margin-bottom: 15px; }
.origin-images .gem-img           { min-height: 160px; height: 100%; }
.origin-images .gem-img:first-child { min-height: 335px; }
.faq-container > .gem-img         { min-height: 380px; height: 100%; }

/* Zoom affordance */
.gem-card .gem-img,
.profile-card .gem-img {
  cursor: zoom-in;
  transition: transform 0.5s var(--ease-out-soft), filter 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .gem-card:hover .gem-img,
  .profile-card:hover .gem-img {
    filter: brightness(1.1) saturate(1.08);
    transform: scale(1.03);
  }
}

@media (max-width: 768px) {
  .origin-images .gem-img:first-child { min-height: 200px; }
  .hero .gem-img { min-height: 260px; }
}

/* ============================================================
   REDUCED MOTION — kill everything decorative
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1 !important; }
  .reveal.visible { animation: none !important; }
  .hero .gem-img,
  .hero-text > *,
  .hero-text h1,
  .trust-badges li,
  .floating-whatsapp::before,
  .stats-grid::after,
  .section-title h2::after,
  .rarity-tag { animation: none !important; }

  .hero-text h1 {
    -webkit-text-fill-color: #fff;
    color: #fff;
    background: none;
  }
}

/* ============================================================
   UTILITIES (replace former inline style="" attributes)
   ============================================================ */
.btn-outline--spaced { margin-top: 10px; }
.img-placeholder--tall { min-height: 380px; }
