/* ═══════════════════════════════════════════════════════════
   Jewellabs.ai — Vanilla CSS
   ═══════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ── */
:root {
  --bg: #060504;
  --fg: #c2b9a8;
  --gold: #c9a84c;
  --gold-dark: #7c5214;
  --gold-bg: rgba(201, 168, 76, 0.05);
  --gold-border: rgba(201, 168, 76, 0.15);
  --gold-border-hover: rgba(201, 168, 76, 0.3);
  --text-light: #e8e0ce;
  --text-muted: #9a8e7a;
  --text-dim: #6e6352;
  --text-dimmer: #6e4e18;
  --card-bg: rgba(255, 255, 255, 0.015);
  --card-bg-solid: rgba(10, 8, 5, 0.95);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Cormorant', Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; zoom: 0.82; -webkit-text-size-adjust: 100%; min-height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  user-select: none;
  width: 100%;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}
body:hover #cursor-glow { opacity: 1; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-border-hover); }

::selection { background: rgba(201, 168, 76, 0.2); color: var(--text-light); }

/* ── SHARED CLASSES ── */
.section-tag {
  font-size: 9px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 24px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.7;
}

.gold-em, .gold-em-italic {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold), #f0dfa8, var(--gold), #e0d0a0, var(--gold));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 9s ease-in-out infinite;
}
.gold-em-italic { color: var(--gold); -webkit-text-fill-color: var(--gold); background: none; animation: none; }

@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), background 0.6s var(--ease-out), border-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
  border: none;
  outline: none;
  padding: 18px 40px;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0805;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.15);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(201, 168, 76, 0.4), 0 0 0 1px rgba(232, 212, 155, 0.25) inset;
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--text-muted);
}
.btn--outline:hover {
  border-color: rgba(201, 168, 76, 0.4);
  color: #e0d0a0;
  background: rgba(201, 168, 76, 0.05);
}

.btn--sm { padding: 16px 36px; font-size: 12px; }
.btn--full { width: 100%; padding: 22px; font-size: 13.5px; }

/* ── ANIMATION ── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(6, 5, 4, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.nav__wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e0d0a0;
}
.nav__logo { width: 16px; height: 16px; }
.nav__brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 2px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 40px;
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__link {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: pointer;
}
.nav__link:hover { color: var(--gold); }

.nav__link--btn {
  background: transparent;
  border: none;
  padding: 0;
}

.nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border-hover);
  color: var(--gold);
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.05);
}
.nav__btn:hover { background: rgba(201, 168, 76, 0.12); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 60px;
}

#hero-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 5;
  opacity: 0.6;
}

.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at top, rgba(201, 168, 76, 0.1), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 35%);
  pointer-events: none;
}
.hero__overlay-lr {
  position: absolute; inset: 0; z-index: 10;
  background: linear-gradient(to right, var(--bg), rgba(6, 5, 4, 0.75), transparent);
  pointer-events: none;
}
.hero__overlay-bt {
  position: absolute; inset: 0; z-index: 10;
  background: linear-gradient(to top, var(--bg), transparent, rgba(6, 5, 4, 0.32));
  pointer-events: none;
}

.hero__content,
.hero__actions,
.hero__stats {
  position: relative;
  z-index: 20;
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
  padding-inline: 24px;
}

.hero__content { max-width: 620px; }

.hero__tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.hero__tag-line { width: 32px; height: 1px; background: var(--text-dimmer); }
.hero__tag-text {
  font-size: 9px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 24px;
}
.hero__title-em {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold), #e0d0a0, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: clamp(13px, 1.4vw, 14px);
  letter-spacing: 0.03em;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: 620px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 64px;
  max-width: 620px;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--gold);
  display: block;
}
.hero__stat-label {
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}
.hero__stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(201, 168, 76, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════ */
.features {
  position: relative;
  width: 100%;
  background: var(--bg);
  padding: 128px 24px;
  border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.features__header { max-width: 1280px; margin: 0 auto 96px; text-align: center; }

.features__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  border: 1px solid rgba(201, 168, 76, 0.09);
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  transition: border-color 0.5s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px; height: 48px;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--gold);
  transition: background 0.3s;
}
.feature-card:hover .feature-card__icon { background: var(--gold-bg); }
.feature-card__icon svg { width: 20px; height: 20px; }

.feature-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.feature-card__desc {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   INTERACTIVE STUDIO
   ═══════════════════════════════════════════════════════════ */
.interactive-studio {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 128px;
  overflow: hidden;
}

.interactive-studio__header {
  margin-bottom: 48px;
  text-align: center;
  position: relative;
  z-index: 20;
}

.interactive-studio__container {
  position: relative;
  width: 100%;
  height: 600px;
  background: radial-gradient(circle at center, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  border-radius: 24px;
  border: 1px solid rgba(201, 168, 76, 0.05);
}

#polyhedron-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.interactive-studio__svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 6;
  pointer-events: none;
}

/* Liquid glass callouts */
.callout {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(20, 16, 10, 0.5);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(245, 237, 224, 0.16);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(245, 237, 224, 0.1);
  color: var(--paper, #f5ede0);
  cursor: pointer;
  transition: transform 0.7s var(--ease-out), background 0.7s var(--ease-out), border-color 0.7s var(--ease-out), color 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.callout::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(245, 237, 224, 0.08), transparent 50%);
  pointer-events: none;
}
.callout__label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
  font-weight: 500;
  color: var(--paper, #f5ede0);
  white-space: nowrap;
}
.callout__line {
  position: absolute;
  color: var(--gold);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.callout__line svg { overflow: visible; }

.callout--tl .callout__line { right: -90px; top: 50%; width: 90px; height: 40px; transform: translateY(-50%); }
.callout--tr .callout__line { left: -90px; top: 50%; width: 90px; height: 40px; transform: translateY(-50%); }
.callout--ml .callout__line { right: -90px; top: 50%; width: 90px; height: 40px; transform: translateY(-50%); }
.callout--mr .callout__line { left: -90px; top: 50%; width: 90px; height: 40px; transform: translateY(-50%); }
.callout--bc .callout__line { top: -60px; left: 50%; width: 40px; height: 60px; transform: translateX(-50%); }

.callout:hover,
.callout.is-active {
  background: rgba(30, 22, 14, 0.7);
  border-color: var(--gold);
  color: var(--gold-hi);
  transform: translateY(-2px);
}
.callout--bc:hover,
.callout--bc.is-active {
  transform: translateX(-50%) translateY(-2px);
}
.callout:hover .callout__line,
.callout.is-active .callout__line { opacity: 1; }

/* Detail dock */
.detail-dock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: min(420px, 60%);
  padding: 28px 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.75), rgba(10, 8, 6, 0.85));
  border: 1px solid rgba(245, 237, 224, 0.16);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(245, 237, 224, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.detail-dock.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(-4px);
}
.detail-dock__eyebrow {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.detail-dock__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--paper, #f5ede0);
}
.detail-dock__body {
  font-size: 14px;
  color: rgba(245, 237, 224, 0.72);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .callout__label { font-size: 8px; }
  .callout { padding: 8px 10px; }
  .callout__line { display: none; }
  .detail-dock { width: calc(100% - 48px); }
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS (4 STEPS)
   ═══════════════════════════════════════════════════════════ */
.how-it-works {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 128px;
  position: relative;
  z-index: 10;
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 80px;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 40px 0;
}

@media (min-width: 768px) {
  .how-it-works__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.step-col {
  padding: 0 24px;
}

@media (min-width: 768px) {
  .step-col {
    border-right: 1px solid rgba(201, 168, 76, 0.15);
  }
  .step-col:last-child {
    border-right: none;
  }
}

.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  display: block;
  margin-bottom: 24px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 16px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  width: 100%;
  padding: 0 24px;
}
.footer__inner { max-width: 1280px; margin: 0 auto; }
.footer__border-top { border-top: 1px solid rgba(201, 168, 76, 0.08); }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 0 24px;
}
@media (min-width: 768px) {
  .footer__links { flex-direction: row; justify-content: space-between; }
}

.footer__heading {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer__link-row { display: flex; align-items: center; gap: 20px; }
.footer__link {
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.3s;
  cursor: pointer;
}
.footer__link:hover { color: var(--gold); }
.footer__link--btn { background: none; border: none; padding: 0; }
.footer__link--static { cursor: default; }
.footer__legal { text-align: right; }

.footer__bottom-border { border-top: 1px solid rgba(201, 168, 76, 0.06); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0 40px;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.footer__copy {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.footer__socials { display: flex; gap: 16px; }
.footer__social {
  width: 36px; height: 36px;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}
.footer__social:hover {
  color: var(--gold);
  border-color: var(--gold-border-hover);
}
.footer__social svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════
   MODALS — SHARED
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 0;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1024px;
  margin: auto 16px;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
.modal-overlay.is-open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s;
  position: absolute;
  top: 16px; right: 16px;
  z-index: 20;
}
.modal-close:hover { color: var(--gold); }

.modal-close--float {
  position: fixed;
  top: 24px; right: 24px;
  background: rgba(6, 5, 4, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-border);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ── BOOK DEMO MODAL ── */
.modal-content--book {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 1024px) {
  .modal-content--book {
    grid-template-columns: 3fr 2fr;
    gap: 32px;
    align-items: start;
  }
}

.modal-book__left { padding: 32px 48px; }
.modal-book__heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 16px;
}
.modal-book__sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}

.modal-book__features { display: flex; flex-direction: column; gap: 28px; }
.modal-book__feature { display: flex; align-items: flex-start; gap: 16px; }
.modal-book__emoji { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.modal-book__feature-title { font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 4px; }
.modal-book__feature-desc { font-size: 12px; color: var(--text-muted); line-height: 1.7; }

.modal-book__right { padding: 24px; }
@media (min-width: 1024px) { .modal-book__right { padding: 0; } }

.modal-book__card {
  position: relative;
  border: 1px solid var(--gold-border);
  background:
    linear-gradient(160deg, rgba(201, 168, 76, 0.06), rgba(10, 8, 5, 0.95) 45%),
    var(--card-bg-solid);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 18px;
  padding: 32px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(245, 237, 224, 0.08);
}

.modal-book__card-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 12px;
}
.modal-book__card-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal-book__checklist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.modal-book__check { display: flex; align-items: center; gap: 12px; }
.check-icon { color: var(--gold); font-size: 11px; }
.modal-book__check span:last-child { font-size: 12px; color: #c2b9a8; }

.modal-book__free-note { text-align: center; font-size: 10px; color: var(--text-dim); margin-top: 12px; }

.modal-book__quote {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}
.modal-book__quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.modal-book__quote-author {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── SERVICES MODAL ── */
.modal-content--services {
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text-dimmer) transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

@media (min-width: 860px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  padding: 42px 38px;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.75), rgba(10, 8, 6, 0.85));
  border: 1px solid rgba(245, 237, 224, 0.16);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 16px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(245, 237, 224, 0.1);
  transition: transform 0.6s var(--ease-out), border-color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(245, 237, 224, 0.1);
}

.pillar__num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  font-style: italic;
}

.pillar__ico {
  color: var(--gold-hi);
  margin-bottom: 28px;
  opacity: 0.9;
  transition: transform 0.5s var(--ease-out);
}
.pillar:hover .pillar__ico {
  transform: scale(1.05);
  color: #fff;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--paper, #f5ede0);
  font-weight: 300;
}

.pillar__body {
  color: rgba(245, 237, 224, 0.72);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.pillar__tags {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  margin-top: auto;
}

.pillar__tags li {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 237, 224, 0.18);
  color: rgba(245, 237, 224, 0.48);
  background: rgba(245, 237, 224, 0.02);
  transition: all 0.3s var(--ease-out);
}
.pillar:hover .pillar__tags li {
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--gold-hi);
}

.services-cta { display: flex; justify-content: center; padding-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — PHONE FRIENDLY
   ═══════════════════════════════════════════════════════════ */

/* Kill the desktop zoom hack on touch devices so layout measures correctly */
@media (max-width: 900px) {
  html { zoom: 1; }
}

@media (max-width: 860px) {
  /* ── NAV ── */
  .nav__wrapper { padding: 0 16px; height: 56px; }
  .nav__brand-text { font-size: 14px; letter-spacing: 2.5px; }
  .nav__logo { width: 14px; height: 14px; }
  .nav__cta { display: flex; }
  .nav__btn {
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  /* ── HERO ── */
  .hero {
    padding: 96px 18px 60px;
    min-height: 100svh;
  }
  .hero__content,
  .hero__actions,
  .hero__stats { padding-inline: 18px; }
  .hero__tag { margin-bottom: 22px; }
  .hero__tag-line { width: 22px; }
  .hero__title {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.12;
    margin-bottom: 18px;
  }
  .hero__subtitle {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 28px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero__actions .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 12px;
    letter-spacing: 1.2px;
  }
  .hero__stats {
    margin-top: 40px;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .hero__stat-value { font-size: 20px; }
  .hero__stat-label { font-size: 7px; letter-spacing: 1.2px; }
  .hero__stat-divider { height: 24px; }

  /* ── FEATURES ── */
  .features { padding: 72px 18px; }
  .features__header { margin-bottom: 56px; }
  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card { padding: 28px 24px; border-radius: 14px; }
  .feature-card__icon { margin-bottom: 22px; width: 42px; height: 42px; }
  .feature-card__title { font-size: 18px; margin-bottom: 12px; }

  /* ── INTERACTIVE STUDIO ── */
  .interactive-studio { padding: 0 16px 88px; }
  .interactive-studio__header { margin-bottom: 32px; }
  .interactive-studio__container {
    height: 460px;
    border-radius: 18px;
  }
  .callout {
    padding: 7px 10px;
    border-radius: 8px;
  }
  .callout__label { font-size: 7.5px; letter-spacing: 0.16em; }
  /* Pull callouts in off the edges so they don't get clipped */
  .callout--tl { top: 10% !important; left: 4% !important; }
  .callout--tr { top: 14% !important; right: 4% !important; }
  .callout--ml { top: 58% !important; left: 4% !important; }
  .callout--mr { top: 62% !important; right: 4% !important; }
  .detail-dock {
    width: calc(100% - 32px);
    padding: 20px 22px;
    border-radius: 14px;
  }
  .detail-dock__title { font-size: 22px; }
  .detail-dock__body { font-size: 13px; }

  /* ── HOW IT WORKS ── */
  .how-it-works { padding: 0 18px 88px; }
  .how-it-works__header { margin-bottom: 48px; }
  .how-it-works__grid { gap: 28px; padding: 32px 0; }
  .step-col { padding: 0 4px; }
  .step-num { font-size: 12px; margin-bottom: 16px; }
  .step-title { font-size: 20px; }
  .step-desc { font-size: 13px; }

  /* ── FOOTER ── */
  .footer__inner { padding: 48px 18px 0; }
  .footer__links { gap: 32px; }

  /* ── CURSOR GLOW — hide on touch, it has no cursor ── */
  #cursor-glow { display: none; }

  /* ── MODALS — SCROLLABLE ON PHONE ── */
  .modal-overlay {
    padding: 16px 0;
    align-items: flex-start;
  }
  .modal-content {
    margin: 0 12px;
    max-height: none;
  }

  /* Book demo — stack + scroll the whole thing */
  .modal-content--book {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100svh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 16px;
    background: var(--card-bg-solid);
    border: 1px solid var(--gold-border);
  }
  /* Subtle scrollbar inside */
  .modal-content--book::-webkit-scrollbar { width: 4px; }
  .modal-content--book::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }

  .modal-book__left { padding: 28px 22px 8px; }
  .modal-book__heading {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 14px;
  }
  .modal-book__sub { font-size: 13px; margin-bottom: 28px; }
  .modal-book__features { gap: 22px; }
  .modal-book__feature-title { font-size: 13px; }
  .modal-book__feature-desc { font-size: 12.5px; }

  .modal-book__right { padding: 16px 18px 24px; }
  .modal-book__card {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .modal-book__card-heading { font-size: 26px; }
  .modal-book__checklist { gap: 10px; margin-bottom: 24px; }
  .btn--full { padding: 18px; font-size: 12.5px; }
  .modal-book__quote { margin-top: 24px; padding-top: 20px; }
  .modal-book__quote-text { font-size: 14px; }

  .modal-close {
    top: 12px; right: 14px;
    font-size: 20px;
    padding: 6px 8px;
  }

  /* Services modal — scroll + stack */
  .modal-content--services {
    padding: 72px 16px 24px;
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pillar { padding: 24px 20px; border-radius: 14px; }
  .modal-close--float {
    top: 16px; right: 16px;
    width: 36px; height: 36px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .nav__brand-text { font-size: 12px; letter-spacing: 2px; }
  .nav__btn { padding: 9px 13px; font-size: 9.5px; }
  .hero__title { font-size: clamp(28px, 9vw, 38px); }
  .hero__stat-divider { display: none; }
  .hero__stats { gap: 18px 22px; }
}

/* Respect reduced motion — disable shimmer and slow lerps */
@media (prefers-reduced-motion: reduce) {
  .gold-em { animation: none; }
  * { scroll-behavior: auto !important; }
}
