/* ==========================================================================
   BITTYBOX — HAUTE HORLOGERIE & LUXURY ATELIER THEME
   Palette: Velvet Crimson, Silk Creeme (Cream), Dark Obsidian Slate
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ── Dark Gray / Obsidian Palette ────────────────────────────────────── */
  --bg-void: #06070a;
  --bg-obsidian: #0a0c10;
  --bg-slate: #0f1218;
  --panel-dark: #12151d;
  --panel-glass: rgba(16, 19, 27, 0.72);
  --panel-glass-hover: rgba(22, 26, 37, 0.85);
  --panel-card: rgba(14, 17, 24, 0.82);
  --line-slate: #202634;
  --line-faint: rgba(246, 241, 230, 0.08);
  --line-subtle: rgba(246, 241, 230, 0.14);

  /* ── Creeme (Cream) / Champagne Pearl Palette ────────────────────────── */
  --cream-pure: #faf7f2;
  --cream-silk: #f4eee3;
  --cream-soft: #ede4d3;
  --cream-parchment: #ded2bd;
  --cream-muted: #b8ab96;
  --cream-dim: #847a6b;
  --cream-glow: rgba(244, 238, 227, 0.25);
  --cream-rim: rgba(244, 238, 227, 0.16);
  --champagne: #dfc291;
  --champagne-glow: rgba(223, 194, 145, 0.35);

  /* ── Velvet Crimson / Ruby Jewel Palette ─────────────────────────────── */
  --crimson-regal: #8a0e23;
  --crimson-velvet: #b01431;
  --crimson-vivid: #c9183b;
  --crimson-bright: #e11d48;
  --crimson-rose: #fb7185;
  --crimson-deep: #470611;
  --crimson-shadow: rgba(176, 20, 49, 0.32);
  --crimson-glow: rgba(201, 24, 59, 0.45);
  --crimson-halo: rgba(225, 29, 72, 0.22);
  --crimson-faint: rgba(201, 24, 59, 0.12);

  /* ── Accent Gilded Gradients ─────────────────────────────────────────── */
  --crimson-gradient: linear-gradient(135deg, #c9183b 0%, #8a0e23 55%, #470611 100%);
  --crimson-sheen: linear-gradient(135deg, #e11d48 0%, #b01431 50%, #6e091b 100%);
  --cream-gradient: linear-gradient(135deg, #faf7f2 0%, #ede4d3 60%, #ded2bd 100%);
  --glass-sheen: linear-gradient(135deg, rgba(250, 247, 242, 0.08) 0%, rgba(20, 24, 34, 0.4) 60%, rgba(201, 24, 59, 0.05) 100%);

  /* ── Typography ──────────────────────────────────────────────────────── */
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'DM Mono', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-void);
  color: var(--cream-silk);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; }

/* ── Interactive Luxury Stardust Canvas ─────────────────────────────────── */
.luxury-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── Ambient Velvet & Champagne Backdrop ────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 24, 59, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(201, 24, 59, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(223, 194, 145, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(138, 14, 35, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 90%, rgba(14, 18, 25, 0.8) 0%, transparent 70%);
  animation: ambientBreath 16s ease-in-out infinite alternate;
}

@keyframes ambientBreath {
  0% {
    filter: brightness(0.95) contrast(1.05);
    transform: scale(1);
  }
  100% {
    filter: brightness(1.1) contrast(1.12);
    transform: scale(1.02);
  }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 238, 227, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 227, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 75%);
  opacity: 0.65;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 35%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(201, 24, 59, 0.05) 40%,
    rgba(244, 238, 227, 0.08) 85%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(225, 29, 72, 0.25);
  box-shadow: 0 4px 30px rgba(201, 24, 59, 0.15);
  animation: luxuryScan 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes luxuryScan {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { transform: translateY(460%); opacity: 0; }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(6, 7, 10, 0.85) 100%);
}

/* ── Haute Horlogerie Topbar ────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 50;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(246, 241, 230, 0.09);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(201, 24, 59, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(201, 24, 59, 0.55)) drop-shadow(0 0 4px rgba(223, 194, 145, 0.4));
  transition: filter 0.3s ease;
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 18px rgba(225, 29, 72, 0.75)) drop-shadow(0 0 8px rgba(244, 238, 227, 0.6));
}

.brand span {
  display: flex;
  flex-direction: column;
}

.brand b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: var(--cream-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(244, 238, 227, 0.3);
}

.brand small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--cream-dim);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-jump {
  position: relative;
  padding: 7px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cream-muted);
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 230, 0.08);
  background: rgba(18, 21, 29, 0.6);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.nav-jump::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(244, 238, 227, 0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.nav-jump:hover::before {
  transform: translateX(100%);
}

.nav-jump:hover {
  color: var(--cream-pure);
  border-color: rgba(244, 238, 227, 0.25);
  background: rgba(28, 33, 46, 0.7);
  box-shadow: 0 0 14px rgba(244, 238, 227, 0.08);
}

.nav-jump.active {
  color: var(--cream-pure);
  background: var(--crimson-gradient);
  border-color: rgba(244, 238, 227, 0.3);
  font-weight: 700;
  box-shadow: 0 0 20px var(--crimson-glow), 0 0 0 1px rgba(244, 238, 227, 0.2) inset;
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--crimson-gradient);
  color: var(--cream-pure);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 8px;
  border: 1px solid rgba(244, 238, 227, 0.35);
  box-shadow: 0 0 22px var(--crimson-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 10px;
  overflow: hidden;
}

.nav-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(250, 247, 242, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover::after {
  transform: translateX(120%);
}

.nav-cta:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--cream-pure);
  box-shadow: 0 0 32px rgba(225, 29, 72, 0.65), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.menu {
  display: none;
  font-size: 22px;
  color: var(--cream-silk);
}

/* ── Vertical Navigation Rail (Right side) ─────────────────────────────── */
.v-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  z-index: 40;
  user-select: none;
}

.v-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--cream-dim);
  transition: color 0.25s ease;
}

.v-nav-label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cream-dim);
  opacity: 0;
  transform: translateX(12px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.v-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-slate);
  border: 1.5px solid var(--cream-dim);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-nav-btn:hover .v-nav-label {
  opacity: 0.85;
  transform: translateX(0);
  color: var(--cream-soft);
}

.v-nav-btn:hover .v-nav-dot {
  border-color: var(--cream-pure);
  box-shadow: 0 0 10px var(--cream-glow);
}

.v-nav-btn.active .v-nav-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--cream-pure);
}

.v-nav-btn.active .v-nav-num {
  color: var(--crimson-bright);
}

.v-nav-btn.active .v-nav-dot {
  background: var(--crimson-gradient);
  border-color: var(--cream-pure);
  box-shadow: 0 0 16px var(--crimson-bright), 0 0 6px var(--cream-pure);
  transform: scale(1.4);
}

.v-nav-dot.heart-dot {
  animation: luxuryHeartPulse 1.25s ease-in-out infinite;
}

@keyframes luxuryHeartPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px var(--crimson-velvet)); }
  14% { transform: scale(1.45); filter: drop-shadow(0 0 16px var(--crimson-bright)); }
  28% { transform: scale(1.1); }
  42% { transform: scale(1.3); filter: drop-shadow(0 0 12px var(--crimson-bright)); }
  58% { transform: scale(1); }
}

.v-nav-arrows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.v-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 230, 0.12);
  background: rgba(18, 21, 29, 0.8);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--cream-muted);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-arrow-btn:hover {
  border-color: var(--cream-pure);
  background: var(--crimson-gradient);
  color: var(--cream-pure);
  box-shadow: 0 0 16px var(--crimson-glow);
  transform: translateY(-1px);
}

/* ── Main Vertical Deck ─────────────────────────────────────────────────── */
.v-deck {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  z-index: 10;
}

.v-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px) scale(0.985);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 82px 0 58px;
}

.v-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.v-slide.prev-slide {
  transform: translateY(-50px) scale(0.985);
}

/* ── Horizontal Deck Wrapper ───────────────────────────────────────────── */
.h-deck-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Slide Type Header */
.slide-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(246, 241, 230, 0.1);
  margin-bottom: 12px;
}

.type-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.type-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(201, 24, 59, 0.15);
  border: 1px solid rgba(201, 24, 59, 0.45);
  color: var(--crimson-bright);
  box-shadow: 0 0 14px rgba(201, 24, 59, 0.2);
}

.type-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream-pure);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.type-sub {
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-sans);
  color: var(--cream-muted);
  letter-spacing: 0.01em;
  margin-left: 10px;
}

.type-action-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--champagne);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(223, 194, 145, 0.2);
  background: rgba(223, 194, 145, 0.05);
  transition: all 0.25s ease;
}

.type-action-link:hover {
  color: var(--cream-pure);
  border-color: var(--champagne);
  background: rgba(223, 194, 145, 0.15);
  box-shadow: 0 0 14px var(--champagne-glow);
  transform: translateY(-1px);
}

/* ── Horizontal Track & Panes ──────────────────────────────────────────── */
.h-deck {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.h-card-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.h-card {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 10px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 24, 59, 0.35) transparent;
}

.h-card::-webkit-scrollbar { width: 5px; }
.h-card::-webkit-scrollbar-thumb {
  background: rgba(201, 24, 59, 0.4);
  border-radius: 6px;
}

/* Horizontal Navigation Arrows */
.h-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 18, 25, 0.85);
  border: 1px solid rgba(246, 241, 230, 0.12);
  backdrop-filter: blur(16px);
  color: var(--cream-silk);
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(246, 241, 230, 0.1);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.h-nav-arrow:hover {
  background: var(--crimson-gradient);
  border-color: var(--cream-pure);
  color: var(--cream-pure);
  box-shadow: 0 0 24px var(--crimson-glow), 0 0 8px rgba(246, 241, 230, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.h-prev { left: -18px; }
.h-next { right: -18px; }

/* ── Horizontal Card Layouts ───────────────────────────────────────────── */
.card-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 100%;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--crimson-bright);
}

.card-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 10px var(--crimson-bright), 0 0 4px var(--cream-pure);
  animation: rubyShine 2s infinite ease-in-out;
}

@keyframes rubyShine {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 16px var(--crimson-bright), 0 0 6px var(--cream-pure); }
}

.card-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream-pure);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.card-copy h3 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 40%, #fda4af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(225, 29, 72, 0.35));
}

.card-desc {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--cream-muted);
  line-height: 1.7;
  font-weight: 400;
}

.card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--cream-soft);
  line-height: 1.5;
}

.card-bullets li::before {
  content: '◈';
  color: var(--crimson-bright);
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
  filter: drop-shadow(0 0 6px var(--crimson-glow));
}

.card-bullets li strong {
  color: var(--cream-pure);
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ── Primary and Ghost Luxury Buttons ──────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  overflow: hidden;
}

.btn.primary {
  background: var(--crimson-gradient);
  color: var(--cream-pure);
  border: 1px solid rgba(246, 241, 230, 0.3);
  box-shadow: 0 6px 24px var(--crimson-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(250, 247, 242, 0.3) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.primary:hover::before {
  transform: translateX(120%);
}

.btn.primary:hover {
  background: var(--crimson-sheen);
  border-color: var(--cream-pure);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(225, 29, 72, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn.primary.btn-large {
  padding: 14px 32px;
  font-size: 12.5px;
}

.btn.ghost {
  background: rgba(18, 22, 31, 0.6);
  color: var(--cream-silk);
  border: 1px solid rgba(246, 241, 230, 0.14);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  background: rgba(28, 34, 48, 0.85);
  border-color: var(--champagne);
  color: var(--cream-pure);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 14px rgba(223, 194, 145, 0.18);
}

/* ── Interactive Visual Stages (Right Side) ────────────────────────────── */
.visual-stage {
  position: relative;
  width: 100%;
  background: var(--panel-glass);
  border: 1px solid rgba(246, 241, 230, 0.1);
  border-radius: 18px;
  padding: 28px;
  box-shadow:
    0 24px 60px -10px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(246, 241, 230, 0.05),
    inset 0 1px 0 rgba(246, 241, 230, 0.15),
    inset 0 0 40px rgba(201, 24, 59, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  overflow: hidden;
}

/* Specular Light Reflection on Cards */
.visual-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(246, 241, 230, 0.06),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.visual-stage:hover {
  border-color: rgba(246, 241, 230, 0.22);
  box-shadow:
    0 30px 70px -10px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(201, 24, 59, 0.2),
    inset 0 1px 0 rgba(246, 241, 230, 0.25);
  transform: translateY(-2px);
}

/* Code Simulator Box */
.sim-code-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(246, 241, 230, 0.1);
  padding-bottom: 10px;
}

.sim-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--crimson-bright);
  letter-spacing: 0.14em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 8px var(--crimson-bright);
}

.sim-status-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--champagne);
  letter-spacing: 0.08em;
}

.sim-code-body {
  background: rgba(7, 9, 13, 0.85);
  border: 1px solid rgba(246, 241, 230, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-silk);
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.sim-code-body code {
  color: var(--cream-silk);
}

.sim-arrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--crimson-bright);
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 0;
  filter: drop-shadow(0 0 6px var(--crimson-glow));
}

.sim-url-preview {
  background: rgba(7, 9, 13, 0.88);
  border: 1px solid rgba(201, 24, 59, 0.35);
  border-radius: 10px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
  box-shadow: 0 0 20px rgba(201, 24, 59, 0.12), inset 0 1px 0 rgba(246, 241, 230, 0.05);
}

.url-protocol { color: var(--cream-muted); }
.url-hash {
  color: var(--crimson-rose);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
}

/* Feature Tiles Grid */
.feature-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-tile {
  position: relative;
  background: rgba(10, 13, 19, 0.75);
  border: 1px solid rgba(246, 241, 230, 0.08);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(246, 241, 230, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.feature-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson-bright), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-tile:hover {
  border-color: rgba(201, 24, 59, 0.45);
  background: rgba(18, 22, 32, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 24, 59, 0.2);
}

.feature-tile:hover::before {
  opacity: 1;
}

.tile-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--champagne);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-tile h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--cream-pure);
  margin: 0;
  letter-spacing: 0.02em;
}

.feature-tile p {
  font-size: 12.5px;
  color: var(--cream-muted);
  line-height: 1.5;
}

/* ── Haute Horlogerie Heartbeat Radar Clock (Bitty Capsule) ─────────────── */
.clock-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 0;
}

.clock-orbit {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(246, 241, 230, 0.12);
  border-top-color: var(--crimson-bright);
  border-bottom-color: var(--champagne);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(201, 24, 59, 0.18), inset 0 0 30px rgba(223, 194, 145, 0.08);
  animation: clockOrbitSpin 32s linear infinite;
  pointer-events: none;
}

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

.heartbeat-clock {
  position: relative;
  width: min(270px, 70vw);
  aspect-ratio: 1;
  z-index: 2;
  filter: drop-shadow(0 0 28px rgba(201, 24, 59, 0.35)) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.8));
}

.clock-face {
  display: block;
  width: 100%;
  height: 100%;
}

.clock-bezel {
  fill: #0c0e14;
  stroke: var(--crimson-bright);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 14px rgba(225, 29, 72, 0.45));
}

.clock-inner-ring {
  fill: none;
  stroke: rgba(246, 241, 230, 0.25);
  stroke-width: 1.2;
  stroke-dasharray: 3 6;
}

.clock-ticks line {
  stroke: var(--cream-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0.85;
}

.clock-ticks line:nth-child(3n+1) {
  stroke: var(--crimson-bright);
  stroke-width: 2.8;
  filter: drop-shadow(0 0 4px var(--crimson-bright));
}

.clock-top-label {
  text-anchor: middle;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  fill: var(--champagne);
  text-shadow: 0 0 8px rgba(223, 194, 145, 0.5);
}

.clock-hand {
  fill: none;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.clock-hour {
  stroke: var(--cream-pure);
  stroke-width: 4.5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.clock-minute {
  stroke: var(--champagne);
  stroke-width: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.clock-second {
  stroke: var(--crimson-bright);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px var(--crimson-bright));
  animation: clockSecondSweep 60s steps(60, end) infinite;
}

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

.clock-center {
  fill: var(--crimson-bright);
  stroke: var(--cream-pure);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 12px var(--crimson-bright));
  animation: clock-heart 1.25s ease-in-out infinite;
}

@keyframes clock-heart {
  0%, 100% { r: 5; opacity: 0.9; }
  14% { r: 8.5; opacity: 1; filter: drop-shadow(0 0 18px var(--crimson-bright)); }
  28% { r: 5.5; opacity: 0.95; }
  42% { r: 7.2; opacity: 1; filter: drop-shadow(0 0 14px var(--crimson-bright)); }
  58% { r: 5; opacity: 0.9; }
}

@keyframes rubyCenterPulse {
  0%, 100% { r: 5; opacity: 0.9; }
  14% { r: 8.5; opacity: 1; filter: drop-shadow(0 0 18px var(--crimson-bright)); }
  28% { r: 5.5; opacity: 0.95; }
  42% { r: 7.2; opacity: 1; filter: drop-shadow(0 0 14px var(--crimson-bright)); }
  58% { r: 5; opacity: 0.9; }
}

.ecg-shell {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 46%;
  height: 52px;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(201, 24, 59, 0.3);
  border-bottom: 1px solid rgba(201, 24, 59, 0.3);
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.1), rgba(12, 14, 20, 0.94) 16% 84%, rgba(8, 10, 14, 0.1));
}

.ecg-shell svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ecg-trace {
  fill: none;
  stroke: var(--crimson-bright);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 88 172;
  stroke-dashoffset: 260;
  filter: drop-shadow(0 0 8px var(--crimson-bright)) drop-shadow(0 0 3px var(--cream-pure));
  animation: ecg-travel 1.25s linear infinite;
}

@keyframes ecg-travel {
  to { stroke-dashoffset: 0; }
}

@keyframes ecgTravel {
  to { stroke-dashoffset: 0; }
}

.clock-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(10, 13, 19, 0.85);
  border: 1px solid rgba(246, 241, 230, 0.12);
  border-radius: 10px;
  padding: 10px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(246, 241, 230, 0.08);
}

.clock-readout-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cream-muted);
}

.clock-countdown {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--crimson-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px rgba(225, 29, 72, 0.5);
}

.clock-demo-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--champagne);
  letter-spacing: 0.08em;
}

/* Quick State Switcher (Watch Complications) */
.state-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.state-btn {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(246, 241, 230, 0.1);
  background: rgba(12, 15, 22, 0.7);
  color: var(--cream-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.state-btn:hover {
  border-color: var(--cream-pure);
  color: var(--cream-pure);
  transform: translateY(-1px);
}

.state-btn.active {
  background: var(--crimson-gradient);
  border-color: rgba(246, 241, 230, 0.35);
  color: var(--cream-pure);
  font-weight: 700;
  box-shadow: 0 0 18px var(--crimson-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ── Celestial Astrolabe Core (Bitty Ally) ──────────────────────────────── */
.ally-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

.ally-core-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
}

.ally-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 230, 0.15);
  box-shadow: 0 0 24px rgba(201, 24, 59, 0.2);
}

.ally-ring-1 {
  width: 190px;
  height: 190px;
  border-top: 2px solid var(--crimson-bright);
  border-bottom: 1.5px solid var(--champagne);
  box-shadow: 0 0 24px var(--crimson-glow);
  animation: allySpin 14s linear infinite;
}

.ally-ring-2 {
  width: 145px;
  height: 145px;
  border-left: 2px solid var(--champagne);
  border-right: 1.5px solid var(--crimson-rose);
  box-shadow: 0 0 20px rgba(223, 194, 145, 0.25);
  animation: allySpinRev 18s linear infinite;
}

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

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

.ally-orb {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--cream-pure) 15%, var(--crimson-bright) 55%, var(--crimson-deep) 85%, #050608 100%);
  box-shadow:
    0 0 35px var(--crimson-bright),
    0 0 80px rgba(201, 24, 59, 0.45),
    inset 0 0 15px rgba(255, 255, 255, 0.6);
  animation: allyPulse 2.5s ease-in-out infinite;
}

@keyframes allyPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 16px var(--crimson-bright));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 32px var(--crimson-bright)) drop-shadow(0 0 12px var(--cream-pure));
  }
}

.ally-telemetry-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(201, 24, 59, 0.15);
  border: 1px solid rgba(201, 24, 59, 0.45);
  color: var(--crimson-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 18px rgba(201, 24, 59, 0.25);
}

.ally-telemetry-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: rubyShine 1.5s infinite ease-in-out;
}

.ally-dialog {
  background: rgba(8, 10, 15, 0.85);
  border: 1px solid rgba(246, 241, 230, 0.1);
  border-radius: 10px;
  padding: 14px 18px;
  width: 100%;
  max-width: 440px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--cream-soft);
  border-left: 3px solid var(--crimson-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(246, 241, 230, 0.06);
}

.ally-dialog strong {
  color: var(--champagne);
  font-size: 10px;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 6px;
}

/* ── Horizontal Pagination Dots ────────────────────────────────────────── */
.h-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
}

.h-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(14, 17, 24, 0.65);
  border: 1px solid rgba(246, 241, 230, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cream-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.h-dot span {
  font-size: 9.5px;
  color: var(--cream-dim);
}

.h-dot:hover {
  border-color: rgba(246, 241, 230, 0.3);
  color: var(--cream-pure);
  transform: translateY(-1px);
}

.h-dot.active {
  background: var(--crimson-gradient);
  border-color: rgba(246, 241, 230, 0.3);
  color: var(--cream-pure);
  font-weight: 700;
  box-shadow: 0 0 18px var(--crimson-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.h-dot.active span {
  color: var(--cream-pure);
}

/* ── Haute Horlogerie Bottom Bar / Footer ───────────────────────────────── */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 50;
  background: rgba(8, 10, 14, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(246, 241, 230, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(201, 24, 59, 0.15);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cream-dim);
  letter-spacing: 0.06em;
}

.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bottom-bar-left span {
  color: var(--cream-muted);
}

.bottom-bar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bottom-bar-links a {
  color: var(--cream-muted);
  transition: all 0.2s ease;
}

.bottom-bar-links a:hover {
  color: var(--crimson-bright);
  text-shadow: 0 0 10px var(--crimson-glow);
}

.bottom-bar-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-dim);
}

.bottom-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bottom-bar-right a {
  color: var(--champagne);
  font-weight: 600;
  transition: all 0.2s ease;
}

.bottom-bar-right a:hover {
  color: var(--cream-pure);
  text-shadow: 0 0 10px var(--champagne-glow);
}

/* ── Responsive Refinements ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .card-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .h-deck-wrapper {
    padding: 0 20px;
  }
  .v-nav {
    display: none;
  }
  .topbar {
    padding: 0 20px;
  }
  .topbar-nav .nav-jump {
    padding: 5px 10px;
    font-size: 10px;
  }
  .h-nav-arrow {
    display: none;
  }
  .bottom-bar-hint {
    display: none;
  }
  .v-slide {
    padding: 72px 0 52px;
  }
}

@media (max-width: 600px) {
  .topbar-nav .nav-jump {
    display: none;
  }
  .slide-type-header {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
  }
  .type-badge-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .type-title {
    font-size: 18px;
  }
  .type-sub {
    margin-left: 0;
    display: block;
    font-size: 11.5px;
  }
  .type-action-link {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .h-pagination .h-dot {
    padding: 4px 10px;
    font-size: 10px;
  }
  .h-pagination .h-dot span {
    display: none;
  }
  .card-copy h3 {
    font-size: 24px;
  }
  .visual-stage {
    padding: 16px;
  }
  .heartbeat-clock {
    width: min(220px, 64vw);
  }
  .clock-orbit {
    width: 230px;
    height: 230px;
  }
  .bottom-bar {
    padding: 0 16px;
    height: 44px;
  }
  .bottom-bar-right {
    display: none;
  }
  .bottom-bar-left {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan, .clock-orbit, .clock-second, .clock-center, .ecg-trace, .ally-ring, .ally-orb, .ally-ring-1, .ally-ring-2, .ambient {
    animation: none !important;
  }
  .v-slide, .h-card-track, .luxury-canvas {
    transition: none !important;
  }
}
