/* ==========================================================================
   Focused Word — Marketing & Sanctuary Showcase Stylesheet
   Built strictly according to styling.md design specifications:
   - 10 Built-In Themes
   - 19 Accents
   - 12 Referent Word Classes
   - Clear Reading discourse opacities (soft & strong)
   - 4 UI Skins (Modern, Classic, Luminous, Minimal)
   - 100% Mobile-Friendly & Fluid Responsive (320px to 4K)
   ========================================================================== */

:root {
  --font-display: 'Cinzel', serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Modern UI Theme Colors (Deep Charcoal / Cool Slate Surface matching Modern UI) */
  --bg-app: #0A0A0C;
  --bg-surface: #121316;
  --bg-elevated: #1A1C22;
  --text-primary: #EDE8DD;
  --text-secondary: #A8B1BD;
  --text-muted: #6C7684;
  --border-subtle: rgba(183, 201, 217, 0.16);
  --border-strong: rgba(183, 201, 217, 0.38);

  /* Modern UI Default Accent: Mist (#B7C9D9) */
  --accent-color: #B7C9D9;
  --accent-dim: #9CABB8;
  --accent-glow: rgba(183, 201, 217, 0.28);
  --accent-soft: rgba(183, 201, 217, 0.10);

  /* Word Classes (Referent / Class Axis from styling.md) */
  --wc-deity: #D6C900;
  --wc-person: #FF7BC1;
  --wc-people: #00C5E5;
  --wc-place: #FF8F31;
  --wc-spiritual: #FF747A;
  --wc-animal: #D49838;
  --wc-nature: #22C373;
  --wc-object: #7F9FC0;
  --wc-theological: #40A9FF;
  --wc-time: #D583F8;
  --wc-quantity: #00DD9D;
  --wc-concept: #9EB92E;

  /* Red Letter Garnet Default from styling.md */
  --red-letter-garnet: #BC3636;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Safe Area Insets for Mobile Devices (iPhone Notches / Dynamic Island / Android Navigation) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Keeps anchored sections clear of the sticky header when navigating */
  scroll-padding-top: calc(84px + var(--safe-top));
  font-size: 16px;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  /* svh avoids iOS Safari URL-bar height jumps; 100vh fallback for old browsers */
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg-app);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Ambient Glow */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  max-width: 100vw;
}

.glow-top {
  top: -120px;
  right: 10%;
  width: min(600px, 85vw);
  height: min(500px, 75vw);
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
}

.glow-mid {
  top: 1500px;
  left: 5%;
  width: min(700px, 90vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(0,0,0,0) 70%);
}

/* Container */
.section-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 1.5rem);
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #DFEAF2 0%, var(--accent-color) 100%);
  color: #111827;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(183, 201, 217, 0.5);
  background: linear-gradient(135deg, #FFFFFF 0%, #C8D9E6 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(17, 17, 18, 0.85);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
  background: rgba(26, 26, 29, 0.95);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  min-height: 38px;
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
  min-height: 48px;
}

.btn-lg .btn-subtext {
  white-space: normal;
  font-size: 0.7rem;
}

.btn-xl {
  padding: 1.05rem 2rem;
  font-size: 1.1rem;
  min-height: 52px;
}

.btn-block {
  width: 100%;
}

.btn-subtext {
  font-size: 0.725rem;
  font-weight: 500;
  opacity: 0.85;
  display: block;
}

.pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 20px var(--accent-glow);
  }
  50% {
    box-shadow: 0 8px 32px rgba(183, 201, 217, 0.5);
  }
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(10, 10, 12, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(0.75rem + var(--safe-top)) clamp(1rem, 3vw, 1.5rem) 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2.5rem);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-mark img {
  display: block;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--accent-soft);
  color: var(--accent-color);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.1vw, 1.2rem);
  flex-shrink: 1;
}

.nav-link {
  font-size: clamp(0.78rem, 0.9vw, 0.85rem);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header-github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.header-github-link:hover {
  color: var(--text-primary);
  border-color: var(--accent-color);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.btn:hover .icon-arrow {
  transform: translate(2px, -2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:active {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), background-color var(--transition-fast);
  transform-origin: center;
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--accent-color);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--accent-color);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  /* Nearly opaque: no expensive backdrop blur needed on mobile GPUs */
  background: rgba(10, 10, 12, 0.99);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem clamp(1rem, 4vw, 1.75rem) calc(1.5rem + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.drawer-link:hover,
.drawer-link:active {
  color: var(--accent-color);
  background: var(--accent-soft);
  padding-left: 0.75rem;
}

.drawer-btn-wrap {
  margin-top: 0.85rem;
  width: 100%;
}

/* HERO SECTION */
.hero-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: clamp(0.725rem, 2vw, 0.825rem);
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.pill-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-color);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.gold-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #B7C9D9 60%, #8FA5B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

/* Primary hero button stacks label + subtext vertically; keep it from clipping */
.hero-cta-group .btn-lg {
  min-height: 56px;
  height: auto;
}

.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  max-width: 520px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
  flex-shrink: 0;
}

/* Device Mockup & Interactive Simulation */
.hero-device-wrapper {
  position: relative;
  width: 100%;
}

.device-mockup-container {
  position: relative;
  width: 100%;
}

.device-glow-backdrop {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
  filter: blur(20px);
  z-index: 0;
  border-radius: 28px;
  pointer-events: none;
}

.device-frame-glass {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: clamp(14px, 3vw, 20px);
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Live App Iframe Mockup */
.app-iframe-topbar {
  background: var(--bg-elevated);
  padding: 0.55rem clamp(0.6rem, 2vw, 1rem);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.browser-address-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem clamp(0.6rem, 2vw, 1rem);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.8vw, 0.775rem);
  color: var(--text-secondary);
  flex: 1;
  max-width: 340px;
  min-width: 0;
  overflow: hidden;
}

.browser-address-bar .lock-icon {
  color: var(--accent-color);
  flex-shrink: 0;
}

.url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.open-external-btn {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.open-external-btn:hover {
  color: var(--accent-color);
  background: var(--accent-soft);
}

.app-iframe-wrapper {
  position: relative;
  width: 100%;
  /* svh keeps the live preview stable as the iOS toolbar collapses */
  height: clamp(300px, 48vh, 520px);
  height: clamp(300px, 48svh, 520px);
  background: #0A0A0A;
  overflow: hidden;
}

.app-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.mock-caption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.775rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 0.5rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #22C373;
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* SECTIONS GLOBAL */
.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  position: relative;
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.text-center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: clamp(0.925rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

/* 5 READING MODES SECTION */
.modes-interactive-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.modes-tab-bar {
  display: flex;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.modes-tab-bar::-webkit-scrollbar {
  display: none;
}

.mode-tab-btn {
  flex: 0 0 auto;
  min-width: max-content;
  background: transparent;
  border: none;
  padding: clamp(0.75rem, 2vw, 1.15rem) clamp(0.85rem, 2.5vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  scroll-snap-align: start;
  min-height: 48px;
  white-space: nowrap;
}

.tab-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform var(--transition-fast), stroke var(--transition-fast);
}

.mode-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(212, 175, 55, 0.04);
}

.mode-tab-btn:hover .tab-svg {
  transform: scale(1.08);
}

.mode-tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: rgba(212, 175, 55, 0.08);
}

.mode-tab-btn.active .tab-svg {
  stroke: var(--accent-color);
}

.mode-display-box {
  padding: clamp(1.25rem, 3.5vw, 3rem);
  min-height: auto;
}

.mode-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  animation: fadeIn 0.4s ease-out;
}

.mode-panel.active {
  display: grid;
}

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

.mode-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.panel-left h3 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.panel-left p {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(0.85rem, 2vw, 0.925rem);
  color: var(--text-secondary);
  line-height: 1.5;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  flex-shrink: 0;
}

.screenshot-frame {
  background: var(--bg-app);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: clamp(220px, 42svh, 400px);
  width: 100%;
}

.app-screenshot-img {
  width: 100%;
  height: auto;
  max-height: clamp(220px, 42svh, 400px);
  object-fit: contain;
  display: block;
}

/* Mini RSVP Widget */
.live-rsvp-mini-widget {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-elevated);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.rsvp-target {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 4vw, 1.45rem);
  color: var(--text-primary);
  min-width: 120px;
}

.r-foc {
  color: #F56565;
  font-weight: 700;
}

/* STUDY TOOLS & ENGINE SECTION */
.study-grid-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.study-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.study-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.study-feature-card:hover {
  border-color: var(--accent-color);
  background: var(--bg-elevated);
  transform: translateY(-3px);
}

.study-card-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.study-feature-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.study-feature-card p {
  font-size: 0.885rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.study-feature-card .bullet-item {
  margin-top: 0.5rem;
}

.wc-palette-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  width: 100%;
}

.box-title {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.box-desc {
  font-size: clamp(0.875rem, 2.5vw, 0.95rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.wc-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.wc-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  min-height: 42px;
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--chip-color);
  box-shadow: 0 0 6px var(--chip-color);
  flex-shrink: 0;
}

.chip-name {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}

.wc-secondary-note {
  font-size: 0.825rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  line-height: 1.5;
}

.wc-secondary-note strong {
  color: var(--text-primary);
}

.wc-screenshot-card {
  width: 100%;
}

/* NOTES & PLANNING SECTION */
.notes-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.notes-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.notes-plan-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.notes-plan-card .mode-badge {
  width: fit-content;
}

.notes-plan-card h3 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.notes-plan-card p {
  font-size: clamp(0.9rem, 2.5vw, 1.025rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.notes-plan-card .screenshot-frame {
  margin-top: auto;
  padding-top: 1rem;
}

.plans-list-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.plan-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-color);
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* THEMES & ACCENTS SECTION */
.skins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  width: 100%;
}

.skin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.skin-card:hover, .skin-card.active {
  border-color: var(--accent-color);
  background: var(--bg-elevated);
  transform: translateY(-3px);
}

.skin-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.4rem;
}

.skin-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.skin-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

.skin-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
}

/* Theme Studio */
.theme-studio-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
  width: 100%;
}

.control-group {
  margin-bottom: 1.5rem;
}

.group-label {
  display: block;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: 0.65rem;
}

.theme-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.theme-chip {
  background: var(--theme-bg);
  color: var(--theme-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-fast);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-chip:hover {
  transform: scale(1.04);
}

.theme-chip.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.accent-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.accent-circle {
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

/* Invisible halo expands the tap target to ~44px without altering visuals */
.accent-circle::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
}

.accent-circle:hover {
  transform: scale(1.15);
}

.accent-circle.active {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.font-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.font-choice-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 40px;
}

.font-choice-btn:hover, .font-choice-btn.active {
  color: var(--text-primary);
  border-color: var(--accent-color);
}

/* Studio Live Preview Box */
.studio-preview-card {
  background: var(--bg-surface);
  color: #EDE8DD;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.studio-skin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preview-badge {
  font-size: 0.8rem;
  font-weight: 600;
}

.preview-skin-indicator {
  font-family: var(--font-sans);
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--accent-color);
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* Dynamic Section Heading Simulation */
.skin-section-heading-slot {
  margin-bottom: 1.15rem;
}

.sh-pill-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sh-pill-center::before,
.sh-pill-center::after {
  content: '';
  display: block;
  height: 1px;
  flex: 1;
  opacity: 0.5;
}

.sh-pill-center::before {
  background: linear-gradient(to right, transparent, var(--accent-color));
}

.sh-pill-center::after {
  background: linear-gradient(to left, transparent, var(--accent-color));
}

.sh-pill {
  padding: 4px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--accent-color);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0.5rem;
  white-space: nowrap;
}

/* Classic heading style */
.studio-preview-card[data-ui-skin="classic"] .sh-pill-center::before,
.studio-preview-card[data-ui-skin="classic"] .sh-pill-center::after {
  display: none;
}

.studio-preview-card[data-ui-skin="classic"] .sh-pill {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: var(--accent-color);
  letter-spacing: 0.04em;
  padding: 0;
  text-transform: none;
}

/* Luminous heading style */
.studio-preview-card[data-ui-skin="luminous"] {
  backdrop-filter: blur(20px);
  box-shadow: 0 0 35px var(--accent-glow);
}

.studio-preview-card[data-ui-skin="luminous"] .sh-pill-center {
  justify-content: flex-start;
}

.studio-preview-card[data-ui-skin="luminous"] .sh-pill-center::before,
.studio-preview-card[data-ui-skin="luminous"] .sh-pill-center::after {
  display: none;
}

.studio-preview-card[data-ui-skin="luminous"] .sh-pill {
  background: var(--accent-soft);
  border-color: var(--accent-color);
  color: var(--accent-color);
  margin: 0;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Minimal heading style */
.studio-preview-card[data-ui-skin="minimal"] {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.studio-preview-card[data-ui-skin="minimal"] .sh-pill-center::before,
.studio-preview-card[data-ui-skin="minimal"] .sh-pill-center::after {
  display: none;
}

.studio-preview-card[data-ui-skin="minimal"] .sh-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.775rem;
  padding: 0;
  margin: 0;
  text-align: left;
}

/* Verse Row and Number */
.studio-verse-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.preview-verse-num {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  padding-top: 0.3rem;
  min-width: 22px;
  flex-shrink: 0;
}

.preview-verse-content {
  flex: 1;
}

.preview-verse-body {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.65;
  margin-bottom: 0.65rem;
}

.preview-verse-sub {
  font-size: clamp(0.85rem, 2vw, 0.925rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

.preview-tags-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.preview-pill {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.preview-pill.accent-bg {
  background: rgba(188, 54, 54, 0.2);
  color: #F2A0A0;
}

/* Mini Skin Bottom Nav Bar Simulation */
.skin-nav-preview-slot {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.modern-mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-elevated);
  padding: 0.4rem clamp(0.4rem, 2vw, 0.85rem);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  gap: 0.2rem;
  overflow-x: auto;
}

.mini-nav-tab {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.2rem 0.35rem;
  white-space: nowrap;
}

.mini-nav-tab.active {
  color: var(--accent-color);
}

.studio-preview-card[data-ui-skin="classic"] .modern-mini-nav {
  border-radius: 0;
  border-left: none;
  border-right: none;
  background: var(--bg-surface);
}

.studio-preview-card[data-ui-skin="luminous"] .modern-mini-nav {
  background: var(--accent-soft);
  backdrop-filter: blur(12px);
  border-color: var(--accent-color);
}

.studio-preview-card[data-ui-skin="minimal"] .modern-mini-nav {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

/* SCREENSHOT GALLERY & DEVICE MOCKUPS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  width: 100%;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-soft);
}

.gallery-mockup-wrapper {
  padding: 1.5rem 1rem 0.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.35) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.phone-mockup {
  width: 100%;
  max-width: min(285px, 85vw);
  background: #08080A;
  border-radius: 26px;
  border: 3.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.phone-notch-bar {
  height: 18px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.phone-notch-pill {
  width: 50px;
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
}

.phone-screen {
  position: relative;
  background: #0A0A0C;
  height: clamp(240px, 40svh, 350px);
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform var(--transition-smooth);
}

.gallery-card:hover .phone-screen img {
  transform: scale(1.04);
}

.expand-overlay-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 3;
}

.expand-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: rgba(20, 22, 28, 0.92);
  border: 1px solid var(--accent-color);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.gallery-card:hover .expand-overlay-hint {
  opacity: 1;
}

.gallery-card-info {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-color);
  background: var(--accent-soft);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 0.55rem;
  border: 1px solid var(--accent-glow);
}

.gallery-card-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.gallery-card-info p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* GALLERY LIGHTBOX MODAL */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  max-height: 88dvh;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 45px var(--accent-soft);
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.lightbox-btn {
  position: absolute;
  z-index: 10;
  background: rgba(18, 19, 22, 0.88);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-btn svg {
  width: 20px;
  height: 20px;
}

.lightbox-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.08);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-next {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-height: 88vh;
  max-height: 86dvh;
}

.lightbox-img-wrapper {
  flex: 1.3;
  background: #050507;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  flex: 0.9;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.lightbox-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  background: var(--accent-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-glow);
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
}

.lightbox-title {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.lightbox-desc {
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* PRIVACY & SYNC SECTION */
.privacy-box {
  background: linear-gradient(145deg, #141417 0%, #0A0A0A 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.privacy-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.privacy-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.privacy-content p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.sync-demo-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.sync-pill-label {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.passphrase-display {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3.8vw, 1.5rem);
  color: #fff;
  background: #0A0A0A;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  margin-bottom: 0.85rem;
  word-break: break-word;
}

.pass-word {
  color: var(--accent-color);
  font-weight: 600;
}

.pass-dot {
  color: var(--accent-color);
}

.sync-explainer {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
  line-height: 1.5;
}

.platforms-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.plat-badge {
  font-size: 0.775rem;
  color: var(--text-secondary);
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* BSB DEDICATION SECTION */
.bsb-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.bsb-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  margin-bottom: 1rem;
}

.bsb-text > p {
  font-size: clamp(0.925rem, 2.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.bsb-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}

.pillar h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.pillar p {
  font-size: 0.885rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.bsb-card-graphic {
  width: 100%;
}

.bsb-quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.card-greek-watermark {
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 700;
  color: rgba(212, 175, 55, 0.05);
  pointer-events: none;
  user-select: none;
}

.quote-header {
  font-family: var(--font-sans);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.bsb-quote-card blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.quote-footer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
}

/* FINAL CTA */
.cta-section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.cta-box {
  background: radial-gradient(circle at 50% 0%, #1A1A1D 0%, #0A0A0A 70%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 3.5vw, 2rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 50px var(--accent-glow);
  width: 100%;
}

.cta-logo-wrap {
  margin-bottom: 1.25rem;
}

.cta-logo-wrap img {
  filter: drop-shadow(0 0 20px var(--accent-glow));
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: clamp(0.925rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.cta-buttons {
  margin-bottom: 1.5rem;
}

.cta-footer-note {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  word-break: break-word;
}

/* FOOTER */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border-subtle);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.logo-mark-sm img {
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.55;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.footer-col h4 {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.885rem;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
  transition: color var(--transition-fast);
  padding: 0.15rem 0;
}

.footer-col a:hover {
  color: var(--accent-color);
}

.footer-donate-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

.footer-donate-link .donate-heart-icon {
  color: #F43F5E;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.footer-donate-link:hover .donate-heart-icon {
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-repo-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.footer-repo-link:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES & BREAKPOINTS
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (<= 1140px) */
@media (max-width: 1140px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-content {
    text-align: left;
  }

  .mode-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .study-grid-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .study-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .notes-plan-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skins-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-studio-box {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bsb-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* 2. Tablets & Large Phones (<= 900px) */
@media (max-width: 900px) {
  .lightbox-container {
    flex-direction: column;
    max-height: 88vh;
    max-height: 92dvh;
    border-radius: 16px;
  }

  .lightbox-content {
    flex-direction: column;
    max-height: 86vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lightbox-img-wrapper {
    flex: none;
    max-height: 46vh;
    max-height: 44dvh;
    padding: 1rem 0.75rem;
  }

  .lightbox-img {
    max-height: 42vh;
    max-height: 40dvh;
  }

  .lightbox-caption {
    flex: 1;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 1.25rem 1rem;
    overflow-y: auto;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    z-index: 20;
  }

  .lightbox-prev {
    left: 0.5rem;
    top: 23vh;
    width: 38px;
    height: 38px;
  }

  .lightbox-next {
    right: 0.5rem;
    top: 23vh;
    width: 38px;
    height: 38px;
  }
}

/* 3. Small Tablets & Phones (<= 768px) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* 4. Standard Mobile Viewports (<= 640px) */
@media (max-width: 640px) {
  /* The 120px blur is costly on phone GPUs; soften it */
  .ambient-glow {
    filter: blur(60px);
  }

  .glow-mid {
    display: none;
  }

  /* Tighter section rhythm on phones */
  .section-header {
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-trust-badges {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .skins-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wc-legend-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-buttons .btn-xl {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    white-space: normal;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    justify-content: center;
  }
}

/* 5. Compact Mobile Viewports (<= 480px) */
@media (max-width: 480px) {
  .header-launch-btn {
    display: none;
  }

  .brand-badge {
    display: none;
  }

  .live-rsvp-mini-widget {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    text-align: center;
    padding: 0.85rem;
  }

  .rsvp-target {
    text-align: center;
    min-width: 100%;
    font-size: 1.35rem;
  }

  #rsvpDemoBtn {
    width: 100%;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .passphrase-display {
    font-size: 1.05rem;
    padding: 0.65rem 0.5rem;
    gap: 0.35rem 0.5rem;
  }

  .phone-screen {
    height: 280px;
  }
}

/* 6. Narrow Mobile Viewports (<= 360px) */
@media (max-width: 360px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .mode-tab-btn {
    padding: 0.65rem 0.75rem;
    font-size: 0.775rem;
  }

  .passphrase-display {
    font-size: 0.925rem;
  }

  /* Long chip labels wrap instead of clipping on tiny screens */
  .chip-name {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
}

/* 7. Touch & Pointer Ergonomics */
@media (hover: none) and (pointer: coarse) {
  .expand-overlay-hint {
    display: none;
  }

  .mode-tab-btn:hover {
    background: transparent;
  }

  .mode-tab-btn.active:hover {
    background: rgba(212, 175, 55, 0.08);
  }

  .gallery-card:hover {
    transform: none;
  }

  .gallery-card:active {
    transform: scale(0.98);
  }
}

/* 8. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
