/* ==========================================================================
   Bluret.com — Landing Page Stylesheet
   Theme: Obsidian Black (#0a2a20) + Electric Alpine Mint (#a8e6c3)
   ========================================================================== */

body {
  background-color: #0a2a20;
  color: #f8fafc;
  overflow-x: hidden;
}

/* Ambient Background Glow */
.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(750px, 100vw); /* never wider than a phone screen */
  height: 450px;
  background: radial-gradient(circle, rgba(168, 230, 195, 0.18) 0%, rgba(168, 230, 195, 0.02) 60%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Glass Panels */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.glass-card:hover {
  border-color: rgba(168, 230, 195, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

/* Primary Mint Button */
.btn-mint {
  background: #a8e6c3;
  color: #0f3a2c;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(168, 230, 195, 0.32);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-mint:hover {
  background: #c9f2db;
  box-shadow: 0 6px 26px rgba(168, 230, 195, 0.5);
  transform: translateY(-1px);
}

/* Redaction Shaders (CSS Preview) */
.shader-blur {
  filter: blur(8px);
  user-select: none;
}
.shader-blackout {
  background-color: #000000;
  color: transparent !important;
  border-radius: 4px;
  user-select: none;
}
.shader-dots {
  background-color: #0f172a;
  background-image: radial-gradient(#79a48f 1.5px, transparent 1.5px);
  background-size: 5px 5px;
  color: transparent !important;
  border-radius: 4px;
  user-select: none;
}
.shader-transparent {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: transparent !important;
  user-select: none !important;
  text-shadow: none !important;
  filter: none !important;
}

.shader-transparent * {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  visibility: hidden !important;
}

/* Floating Toolbar Exact Extension Design */
.mock-toolbar {
  background: #0f3a2c;
  border: 1px solid rgba(168, 230, 195, 0.22);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.95);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mock-toolbar-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #a5c7b5;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mock-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.mock-toolbar-btn.active {
  background: #a8e6c3;
  color: #0f3a2c;
  font-weight: 700;
  border-color: rgba(168, 230, 195, 0.5);
  box-shadow: none;
}

.mock-toolbar-horizontal {
  flex-direction: row !important;
  align-items: center !important;
  padding: 6px 8px !important;
  border-radius: 18px !important;
}

/* Automated Motion Simulation Styles */
#motion-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  transition: top 0.95s cubic-bezier(0.25, 1, 0.35, 1), left 0.95s cubic-bezier(0.25, 1, 0.35, 1), transform 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
}

#motion-ripple {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #a8e6c3;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}
#motion-ripple.rippling {
  opacity: 1;
  transform: scale(1.6);
}

.demo-area-selection {
  position: absolute;
  border: 2px dashed #a8e6c3;
  background: rgba(168, 230, 195, 0.12);
  pointer-events: none;
  z-index: 30;
  box-sizing: border-box;
  transition: all 0.4s ease-out;
}

/* 6-Tool Navigation Bar Switcher */
.tool-scene-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a5c7b5;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.tool-scene-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}
.tool-scene-btn.active {
  background: rgba(168, 230, 195, 0.12);
  border-color: rgba(168, 230, 195, 0.4);
  color: #a8e6c3;
  box-shadow: none;
}

/* Horizontal Bottom Dock (Mobile-Safe & Scrollable) */
.mock-dock-bottom {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 10px;
  z-index: 25;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.mock-dock-bottom::-webkit-scrollbar {
  display: none; /* Chrome, Edge, Safari */
}

.mock-dock-bottom .mock-toolbar-btn {
  flex-shrink: 0;
}
/* ==========================================================================
   Infinite Logo Marquee (Seamless Twin-Group Architecture)
   ========================================================================== */
.marquee-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 3.5rem;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 3.5rem;
  min-width: 100%;
  animation: marqueeScroll 26s linear infinite;
}

.marquee-wrapper:hover .marquee-group {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 3.5rem));
  }
}

.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #79a48f;
  opacity: 0.55;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  cursor: pointer;
}

.brand-logo-item:hover {
  color: #a8e6c3;
  opacity: 1;
  transform: scale(1.15);
  filter: none;
}

.brand-logo-item svg {
  height: 24px;
  width: auto;
  fill: currentColor;
}

    /* Element Inspector Hover Outline for Demo */
.demo-inspect-hover {
  outline: 2px solid #a8e6c3 !important;
  outline-offset: 2px;
  background: rgba(168, 230, 195, 0.08) !important;
}
/* ==========================================================================
   Segmented Capsule Track (Suggestion 2)
   ========================================================================== */
.segmented-track {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(11, 14, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  overflow-x: auto;
  max-width: 100%;
}

.segmented-track .tool-scene-btn {
  padding: 7px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #a5c7b5;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}

.segmented-track .tool-scene-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.segmented-track .tool-scene-btn.active {
  background: rgba(168, 230, 195, 0.12);
  border-color: rgba(168, 230, 195, 0.35);
  color: #a8e6c3;
  box-shadow: none;
}

.segmented-track .tool-scene-btn kbd {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: #79a48f;
  transition: all 0.2s ease;
}

.segmented-track .tool-scene-btn.active kbd {
  border-color: rgba(168, 230, 195, 0.3);
  color: #a8e6c3;
}
/* ==========================================================================
   Phase 2: Micro-Shaders & Visual Polish
   ========================================================================== */
.demo-shutter-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  z-index: 45;
  transition: opacity 0.15s ease-out;
}

.demo-scanner-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a8e6c3 20%, #c9f2db 50%, #a8e6c3 80%, transparent);
  box-shadow: 0 0 16px #a8e6c3;
  z-index: 35;
  transition: top 0.75s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
}

.demo-inspect-tag {
  position: absolute;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(10, 42, 32, 0.95);
  border: 1px solid rgba(168, 230, 195, 0.6);
  color: #a8e6c3;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  z-index: 35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}
/* ==========================================================================
   Phase 3: Cursor Physics & Selection Handles
   ========================================================================== */

/* Tactile mouse press */
#motion-cursor.clicking {
  transform: scale(0.86) translate(-2px, -2px);
  filter: none;
}

/* Figma-Style Area Selection Box with Corner Handles */
.demo-area-selection {
  position: absolute;
  border: 1.5px dashed #a8e6c3;
  background: rgba(168, 230, 195, 0.12);
  pointer-events: none;
  z-index: 30;
  box-sizing: border-box;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), height 0.5s cubic-bezier(0.16, 1, 0.3, 1), top 0.5s cubic-bezier(0.16, 1, 0.3, 1), left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

/* 4 Glowing Corner Anchor Handles */
.demo-area-selection::before,
.demo-area-selection::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #a8e6c3;
  border: 1px solid #0a2a20;
  border-radius: 1px;
}
.demo-area-selection::before {
  top: -3px;
  left: -3px;
  box-shadow: calc(100% + 1px) 0 0 -1px #0a2a20, 0 calc(100% + 1px) 0 -1px #0a2a20;
}
.demo-area-selection::after {
  bottom: -3px;
  right: -3px;
}
/* ==========================================================================
   Smooth Scroll Reveal Engine (Linear / Apple Ease)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger support for inner cards */
.reveal-on-scroll .stagger-1 { transition-delay: 80ms; }
.reveal-on-scroll .stagger-2 { transition-delay: 160ms; }
.reveal-on-scroll .stagger-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* ==========================================================================
   Stream Deck Hardware Keypress Easter Egg
   ========================================================================== */
.deck-key {
  user-select: none;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s ease, border-color 0.12s ease;
}

.deck-key:active,
.deck-key.is-pressed {
  transform: scale(0.92) translateY(2px) !important;
  box-shadow: 0 0 18px rgba(168, 230, 195, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.7) !important;
  border-color: #a8e6c3 !important;
}

.deck-key.is-pressed-red {
  transform: scale(0.92) translateY(2px) !important;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.7) !important;
  border-color: #f43f5e !important;
}

/* ==========================================================================
   Demo: toolbar dock details and the redesigned popup (dark theme)
   Colours match the extension: pine #0f3a2c, court green #1f8a5b, mint #a8e6c3
   ========================================================================== */
.mock-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, 0.12); flex-shrink: 0; }
.mock-grip { display: inline-flex; width: 18px; justify-content: center; color: #79a48f; flex-shrink: 0; }
.mock-grip svg { width: 13px; height: 13px; }
.mock-power { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: #ecf6ef; background: rgba(255, 255, 255, 0.06); flex-shrink: 0; }
.mock-power i { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: #a8e6c3; }
.mock-strength { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; font-weight: 500; color: #ecf6ef; cursor: default; }
.mock-danger:hover { color: #ff9c8f; }

.demo-popup { background: #0f3a2c; color: #ecf6ef; border: 1px solid #1f5442; border-radius: 10px; padding: 16px; font-size: 13px; line-height: 1.4; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45); }
.demo-popup kbd, .demo-popup .dp-cap { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; color: #79a48f; }
.dp-head, .dp-head-right, .dp-label-row, .dp-row, .dp-foot { display: flex; align-items: center; justify-content: space-between; }
.dp-head-right { gap: 10px; }
.dp-word { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.dp-word span { color: #79a48f; font-weight: 500; }
.dp-on { font-size: 12px; color: #a5c7b5; }
.dp-switch { position: relative; width: 30px; height: 18px; border-radius: 9px; background: #a8e6c3; }
.dp-switch i { position: absolute; top: 2px; left: 14px; width: 14px; height: 14px; border-radius: 50%; background: #0f3a2c; }
.dp-tabs { display: flex; gap: 18px; margin: 12px 0; border-bottom: 1px solid #1f5442; color: #a5c7b5; }
.dp-tabs span { padding-bottom: 8px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.dp-tabs .is-on { color: #ecf6ef; font-weight: 600; border-bottom-color: #a8e6c3; }
.dp-summary { margin-bottom: 12px; }
.dp-count { font-size: 30px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.dp-summary.is-quiet .dp-count { font-size: 22px; letter-spacing: -0.01em; }
.dp-mark { display: inline-block; padding: 0 6px; margin-right: 2px; border-radius: 3px; background: #a8e6c3; color: #0f3a2c; }
.dp-caption { display: block; margin-top: 4px; }
.dp-rows { margin-top: 10px; }
.dp-rows:empty { display: none; }
.dp-row { padding: 3px 0; border-bottom: 1px solid #1f5442; }
.dp-row:last-child { border-bottom: none; }
.dp-row-val { display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; }
.dp-bar { display: inline-block; width: 40px; height: 10px; border-radius: 2px; background: #ecf6ef; }
.dp-primary { height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #a8e6c3; color: #0f3a2c; font-size: 14px; font-weight: 600; }
.dp-secondary { height: 36px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; border: 1px solid #1f8a5b; }
.dp-label { margin: 12px 0 6px; font-size: 12px; color: #a5c7b5; }
.dp-styles, .dp-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dp-style { padding: 9px 2px 6px; text-align: center; border-radius: 6px; border: 1px solid #1f5442; font-size: 11px; color: #a5c7b5; }
.dp-style.is-on { border-color: #a8e6c3; box-shadow: inset 0 0 0 1px #a8e6c3; color: #ecf6ef; font-weight: 600; }
.dp-prev { display: flex; align-items: center; justify-content: center; height: 16px; margin-bottom: 6px; font-size: 12px; }
.dp-prev-blur { filter: blur(2.5px); }
.dp-prev-bar, .dp-prev-dots, .dp-prev-erase { display: block; width: 46px; height: 13px; border-radius: 2px; }
.dp-prev-bar { background: #ecf6ef; }
.dp-prev-dots { background-color: #0a2a20; background-image: radial-gradient(#6f9a80 1px, transparent 1px); background-size: 4px 4px; }
.dp-prev-erase { border: 1px dashed #1f8a5b; }
.dp-track { position: relative; height: 4px; border-radius: 2px; background: #1f5442; margin: 8px 0 2px; }
.dp-track b { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; border-radius: 2px; background: #a8e6c3; }
.dp-track i { position: absolute; left: 20%; top: -6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #a8e6c3; }
.dp-tools { margin-top: 12px; }
.dp-tools span { height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid #1f8a5b; color: #ecf6ef; }
.dp-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #1f5442; font-size: 12px; }
.dp-danger { color: #ff9c8f; }
.dp-strong { font-weight: 600; }

/* Demo toolbar on small screens: drop the grip and dividers, slightly smaller buttons, so it fits */
@media (max-width: 640px) {
  .mock-dock-bottom { gap: 0; padding: 5px 6px; }
  .mock-dock-bottom .mock-grip,
  .mock-dock-bottom .mock-sep { display: none; }
  .mock-dock-bottom .mock-toolbar-btn,
  .mock-dock-bottom .mock-power { width: 30px; height: 30px; }
}

/* Bluret line icons (replace emoji and symbol characters, which use the system emoji font) */
.bl-ic { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.bl-ic-lg { width: 16px; height: 16px; stroke-width: 1.6; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Phones: nothing may make the page scroll sideways (clip, unlike hidden, keeps the sticky header working) */
html, body { overflow-x: clip; }

/* Support page: the large email address wraps instead of overflowing on very narrow screens */
.support-email { overflow-wrap: anywhere; }

/* Phones: show all six demo tabs on two lines instead of hiding some off to the side */
@media (max-width: 640px) {
  .segmented-track { display: flex; flex-wrap: wrap; justify-content: center; overflow-x: visible; border-radius: 14px; }
}

/* Brand typeface: Unbounded for the wordmark and headings; body text stays in Bricolage Grotesque */
h1, h2, h3, .font-display, .dp-word {
  font-family: 'Unbounded', 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.03em;
}

/* Hero subtitle: exactly two lines wherever the first sentence fits on one line */
@media (min-width: 1000px) {
  .hero-sub-line { white-space: nowrap; }
}
