/* ─────────────────────────────────────────────
   WriteMate AI — Landing page custom styles
   (Tailwind handles utilities; this file adds
    brand components + animations)
   ───────────────────────────────────────────── */

:root {
  --violet: #8b5cf6;
  --sky: #38bdf8;
  --pink: #f472b6;
  --beam: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 180deg,
    #38bdf8 240deg,
    #818cf8 275deg,
    #c084fc 315deg,
    #f472b6 345deg,
    #38bdf8 360deg
  );
}

/* ── Background ambience ── */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(110px);
  opacity: 0.35;
}
.orb-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: #7c3aed; }
.orb-2 { width: 460px; height: 460px; top: 30%; right: -160px; background: #0ea5e9; opacity: 0.22; }
.orb-3 { width: 420px; height: 420px; bottom: -160px; left: 30%; background: #db2777; opacity: 0.18; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 75%);
}

/* ── Nav (scrolled state toggled in JS) ── */
#nav.scrolled {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Typography ── */
.gradient-text {
  background: linear-gradient(90deg, #38bdf8, #a78bfa 45%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ── */
.btn-primary {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 14px 40px -10px rgba(124, 58, 237, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}
.btn-ghost {
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── Running border beam (mirrors the extension UI) ── */
.beam-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.beam-wrap::before {
  content: '';
  position: absolute;
  inset: -150%;
  background: var(--beam);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: beamSpin 2.5s linear infinite;
}
.beam-wrap.is-loading::before { opacity: 1; }
.beam-wrap.is-loading { box-shadow: 0 0 35px rgba(139, 92, 246, 0.55); }

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

/* ── Hero mock ── */
.mock-selection {
  border-radius: 3px;
  background-image: linear-gradient(rgba(56, 189, 248, 0.35), rgba(56, 189, 248, 0.35));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  color: #e2e8f0;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  border: 2.5px solid rgba(167, 139, 250, 0.25);
  border-top-color: #a78bfa;
  animation: beamSpin 0.8s linear infinite;
}

.chip {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Marquee ── */
.marquee {
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.marquee-track { width: max-content; }

/* ── Feature cards ── */
.feature-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.6));
  transition: border-color 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover { border-color: rgba(139, 92, 246, 0.35); }
.feature-card:hover::after { opacity: 1; }
.feature-card h3 {
  margin-top: 1.1rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}
.feature-card p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.35rem;
}

code {
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #c4b5fd;
}
kbd {
  display: inline-block;
  font-family: inherit;
  font-size: 0.78em;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

/* ── Steps ── */
.step-num {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(14, 165, 233, 0.8));
  box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.6);
}

/* ── Providers ── */
.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.provider-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(30, 27, 75, 0.5);
  transform: translateY(-4px);
}

/* ── Privacy ── */
.privacy-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: #94a3b8;
  line-height: 1.55;
}
.privacy-item > span {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}
.privacy-item strong { color: #f1f5f9; font-weight: 600; }

/* ── FAQ ── */
.faq {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 23, 42, 0.55);
  transition: border-color 0.2s ease;
}
.faq[open] { border-color: rgba(139, 92, 246, 0.35); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: #a78bfa;
  transition: transform 0.25s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid #a78bfa; outline-offset: -2px; border-radius: 1rem; }
.faq p {
  padding: 0 1.4rem 1.25rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* ── CTA beam ── */
.cta-box { background: rgba(255, 255, 255, 0.08); }
.cta-beam {
  position: absolute;
  inset: -150%;
  background: var(--beam);
  animation: beamSpin 4s linear infinite;
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mock-selection { background-size: 100% 100%; }
}


/* ─────────────────────────────────────────────
   Live feature demos
   ───────────────────────────────────────────── */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.demo-tab {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 170px;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.5);
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.demo-tab:hover { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.14); }
.demo-tab:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.demo-tab[aria-selected='true'] {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(14, 165, 233, 0.08));
}
.demo-tab .tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1rem;
}
.demo-tab .tab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #38bdf8, #a78bfa, #f472b6);
}

.demo-float {
  position: absolute;
  left: 24px;
  width: calc(100% - 48px);
  z-index: 20;
}

.demo-tb-btn {
  padding: 4px 9px;
  border-radius: 9999px;
  color: #e2e8f0;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.demo-tb-btn.is-pressed { background: rgba(139, 92, 246, 0.35); }

.demo-inner {
  position: relative;
  border-radius: 14px;
  padding: 0.9rem 1rem 1.1rem;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  backdrop-filter: blur(20px);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: grab;
}
.demo-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.75rem;
  transition: background 0.15s ease;
}
.demo-ctrl.is-pressed { background: rgba(255, 255, 255, 0.15); color: #fff; }

.demo-ask {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(139, 92, 246, 0.5);
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.8rem;
}
.demo-ask.hidden { display: none; }
.demo-caret {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -2px;
  background: #a78bfa;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.demo-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #7c3aed;
  color: #fff;
  font-size: 0.7rem;
}
.demo-send.is-pressed { background: #5b21b6; }

#demo-loading:not(.hidden) { display: flex; }

.demo-out {
  padding-top: 0.75rem;
  font-size: 13px;
  line-height: 1.65;
  color: #e2e8f0;
}
.demo-out ul { display: grid; gap: 0.35rem; padding-left: 0; list-style: none; }
.demo-out li { position: relative; padding-left: 1rem; }
.demo-out li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #a78bfa;
}
.demo-out strong { color: #fff; font-weight: 600; }
.demo-out h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0.6rem 0 0.3rem;
}
.demo-out h4:first-child { margin-top: 0; }
.demo-out table { width: 100%; border-collapse: collapse; font-size: 12px; }
.demo-out th, .demo-out td { padding: 6px 8px; border: 1px solid rgba(255, 255, 255, 0.1); text-align: left; }
.demo-out th { background: rgba(139, 92, 246, 0.15); color: #ddd6fe; font-weight: 600; }
.demo-out tr:nth-child(even) td { background: rgba(255, 255, 255, 0.03); }

.demo-event {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.08);
}
.demo-event-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 52px;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  line-height: 1.05;
  overflow: hidden;
}
.demo-event-date small {
  width: 100%;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  padding: 2px 0;
}
.demo-event-date b { font-size: 1.25rem; margin-top: 2px; }

.demo-action {
  flex: 1;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.demo-action.is-primary { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.demo-action.is-pressed { transform: scale(0.96); filter: brightness(1.2); }
.demo-action.is-done { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }

.demo-resize {
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #64748b;
  cursor: nwse-resize;
}

/* Light theme toggle inside the demo card */
.demo-inner.is-light {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}
.demo-inner.is-light .demo-head { border-color: rgba(15, 23, 42, 0.1); }
.demo-inner.is-light .demo-out { color: #1e293b; }
.demo-inner.is-light .demo-out strong { color: #0f172a; }
.demo-inner.is-light .demo-action { background: #f1f5f9; border-color: #e2e8f0; color: #334155; }
.demo-inner.is-light .demo-action.is-primary { background: #7c3aed; color: #fff; }
.demo-inner.is-light .chip { background: #f1f5f9; border-color: #e2e8f0; color: #334155; }
.demo-inner.is-light .demo-ctrl { color: #64748b; }

/* Highlight after "Replace" */
.mock-selection.is-replaced {
  background-image: linear-gradient(rgba(52, 211, 153, 0.35), rgba(52, 211, 153, 0.35));
  color: #f1f5f9;
}

.demo-compose {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(139, 92, 246, 0.45);
  background: rgba(124, 58, 237, 0.07);
  font-size: 0.875rem;
  line-height: 1.65;
  color: #e2e8f0;
}
.demo-compose .label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
}

.demo-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 35;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  color: #ecfdf5;
  background: rgba(6, 78, 59, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.6);
}

.feature-card[data-demo] { cursor: pointer; }
.feature-card .watch-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a78bfa;
  opacity: 0.75;
  transition: opacity 0.2s ease, gap 0.2s ease;
}
.feature-card:hover .watch-demo { opacity: 1; gap: 0.6rem; }

/* ─────────────────────────────────────────────
   Realistic Codebase Feature Demo Components
   ───────────────────────────────────────────── */

.demo-shortcut-banner {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  color: #c4b5fd;
}
.demo-shortcut-banner kbd {
  font-size: 0.72rem;
  padding: 1px 5px;
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
}

/* Injected ✨ AI Reply bar in webmail */
.demo-reply-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.demo-native-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.demo-ai-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #7c3aed;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.demo-ai-reply-btn.is-pressed {
  transform: scale(0.96);
  background: #6d28d9;
}

/* In-Editor Ambient ✨ button */
.demo-editor-wrap {
  position: relative;
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.6);
  min-height: 120px;
}
.demo-ambient-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
  color: #fff;
  background: #7c3aed;
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}
.demo-ambient-btn.is-generating {
  background: #4f46e5;
  opacity: 1;
}
.demo-ambient-btn.is-completed {
  background: #059669;
  opacity: 1;
}

/* Inbox Digest View */
.demo-digest-box {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.95);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.demo-digest-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}
.demo-digest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.25rem;
}
.demo-digest-row strong { color: #f1f5f9; font-weight: 500; }
.demo-digest-row span { color: #94a3b8; font-size: 0.75rem; }

/* In-Page Assistant Modal Simulation */
.demo-assistant-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: min(390px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(139, 92, 246, 0.25);
  overflow-y: auto;
}
.demo-user-bubble {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 12px 12px 2px 12px;
  max-width: 85%;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.demo-ai-bubble {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 11.5px;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 2px;
  margin-bottom: 8px;
}
.demo-ai-bubble ul {
  padding-left: 0;
  margin: 4px 0;
  list-style: none;
  display: grid;
  gap: 3px;
}
.demo-ai-bubble li {
  position: relative;
  padding-left: 14px;
}
.demo-ai-bubble li::before {
  content: '•';
  position: absolute;
  left: 3px;
  color: #a78bfa;
}
.demo-mode-chip {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-mode-chip:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}
.demo-mode-chip.is-active {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

/* ─────────────────────────────────────────────
   Grammar Demo Enhancements
   ───────────────────────────────────────────── */

.demo-typo {
  text-decoration: underline wavy #f43f5e;
  text-underline-offset: 3px;
  color: #fca5a5;
  background: rgba(244, 63, 94, 0.12);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 500;
}

.demo-fixed-word {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.18);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.4s ease;
}

.demo-example-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-example-chip:hover,
.demo-example-chip.is-active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.demo-grammar-diff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 500;
  margin-top: 8px;
}


/* ─────────────────────────────────────────────
   Product Showcase Gallery
   ───────────────────────────────────────────── */

.gallery-card {
  position: relative;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.25);
}

.gallery-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

/* ─────────────────────────────────────────────
   Keyboard Shortcut Keycaps
   ───────────────────────────────────────────── */

.kbd-cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-bottom-width: 2px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  line-height: 1.3;
}

.shortcut-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shortcut-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 36px -14px rgba(124, 58, 237, 0.28);
}
