/* LockMic landing — modern dark product page */
:root {
  --bg: #07090e;
  --bg-elevated: #0e121a;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --text-muted: #9aa3b5;
  --text-dim: #6b7385;
  --accent: #7c9cff;
  --accent-2: #a78bfa;
  --accent-warm: #fb923c;
  --success: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --nav-h: 68px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #0b0d12;
  padding: 8px 14px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Atmosphere */
.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(124, 156, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 10%, rgba(167, 139, 250, 0.12), transparent 65%),
    radial-gradient(ellipse 35% 40% at 15% 20%, rgba(251, 146, 60, 0.06), transparent 60%);
  z-index: 0;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  z-index: 0;
  opacity: 0.5;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 9, 14, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 9, 14, 0.88);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 12px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  place-items: center;
  gap: 6px;
  flex-direction: column;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 20px;
  background: rgba(7, 9, 14, 0.96);
  border-bottom: 1px solid var(--border);
}
.nav-drawer a {
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-drawer a:hover {
  background: var(--bg-card);
  color: var(--text);
}
.nav-drawer:not([hidden]) {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #8ba4ff 0%, #7c9cff 40%, #a78bfa 100%);
  color: #0b0d14;
  box-shadow: 0 8px 28px rgba(124, 156, 255, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(124, 156, 255, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  color: var(--text-muted);
  padding-inline: 12px;
}
.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 1rem;
}

/* Layout sections */
main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-alt {
  max-width: none;
  padding-inline: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}
.section-alt .section-head,
.section-alt .steps {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head.left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-head h2,
.hero-title,
.cta-inner h2,
.download-card h2 {
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 14px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.section-head.left .eyebrow {
  justify-content: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.12);
  border: 1px solid rgba(124, 156, 255, 0.25);
  color: #c5d3ff;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.78rem;
}
.pill-soft {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(120deg, #e8eeff 10%, #7c9cff 45%, #c4b5fd 75%, #fdba74 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero {
  padding: 48px 24px 32px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 0 48px;
}
.hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.6;
}

.hero-stage {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  min-height: 320px;
}

.stage-glow {
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.2), transparent 70%);
  filter: blur(20px);
}

.menu-mock {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 300px;
  backdrop-filter: blur(8px);
}

.menu-bar-fake {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}
.mb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3f4b;
}
.mb-dot:nth-child(1) { background: #ff5f57; }
.mb-dot:nth-child(2) { background: #febc2e; }
.mb-dot:nth-child(3) { background: #28c840; }
.mb-spacer { flex: 1; }
.mb-mic {
  color: var(--accent-warm);
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border-radius: 6px;
  background: rgba(251, 146, 60, 0.12);
}

.hud-card {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 160px;
  padding: 28px 20px 22px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: float 5s ease-in-out infinite;
}

.hud-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
}
.hud-label {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.app-icon-float {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 100px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out 0.6s infinite;
}
.app-icon-float img {
  border-radius: 24px;
  width: 100px;
  height: 100px;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}
.app-icon-float {
  animation-name: float-plain;
}
@keyframes float-plain {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Strip */
.strip {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.strip-item strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.strip-item span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(124, 156, 255, 0.1);
  border: 1px solid rgba(124, 156, 255, 0.18);
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0 24px 8px;
  display: grid;
  gap: 14px;
  max-width: var(--max);
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.step-num {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
}
.step h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.step p {
  margin: 0;
  color: var(--text-muted);
}

/* Hotkeys */
.hotkeys-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.keys-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.key-row:last-child {
  border-bottom: 0;
}
.key-row > span:first-child {
  flex: 1;
  min-width: 120px;
  font-weight: 500;
  font-size: 0.95rem;
}
.key-row em {
  width: 100%;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.muted-row {
  opacity: 0.85;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

/* Download */
.section-download {
  padding-top: 48px;
}

.download-card {
  text-align: center;
  padding: 48px clamp(16px, 4vw, 32px);
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(124, 156, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  /* Allow nested pre/code to shrink and wrap instead of overflowing */
  min-width: 0;
  overflow: hidden;
}

.download-icon {
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.download-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.download-card > p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 24px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.code-block {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 18px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.copy-btn {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.copy-btn:hover,
.copy-btn.copied {
  background: rgba(124, 156, 255, 0.15);
  color: var(--text);
}

.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.code-block code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.72rem, 2.4vw, 0.85rem);
  line-height: 1.55;
  color: #d4e0ff;
  /* Full command visible: wrap long URLs instead of clipping */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.code-note {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.download-req {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0 18px;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: var(--border-strong);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-weight: 500;
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  padding: 32px 24px 96px;
}
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding: 56px 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(167, 139, 250, 0.15), transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 0%, rgba(124, 156, 255, 0.12), transparent 50%),
    var(--bg-elevated);
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}
.cta-inner p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 24px 48px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  border-radius: 8px;
}
.footer-brand strong {
  display: block;
  letter-spacing: -0.02em;
}
.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .strip-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hotkeys-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .strip-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .app-icon-float {
    right: 4%;
    width: 72px;
  }
  .app-icon-float img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .hero {
    padding-top: 28px;
  }
  .section {
    padding: 72px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hud-card,
  .app-icon-float {
    animation: none;
  }
}
