/* bestbluetoothdriver.com — one stylesheet, no framework. Dark, quiet, one accent. */
@import url("/assets/fonts/manrope.css");

:root {
  --bg: #0b0d10;
  --bg-2: #0f1216;
  --surface: #13171d;
  --surface-2: #191e26;
  --border: #232a33;
  --border-2: #2f3843;
  --text: #edf0f4;
  --text-2: #a5adba;
  --text-3: #6f7986;
  --accent: #4f8dff;
  --accent-2: #8b5cf6;
  --accent-ink: #0b0d10;
  --ok: #3ddc97;
  --warn: #f5b942;
  --radius: 14px;
  --radius-s: 10px;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 46ch; }
.muted { color: var(--text-2); }
.tiny { color: var(--text-3); font-size: .85rem; }
.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
kbd { font: 600 .85em "Manrope", monospace; background: var(--surface-2); border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--text); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(11, 13, 16, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--border); background: rgba(11, 13, 16, .86); }
.header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.01em; font-size: 1.05rem; white-space: nowrap; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.brand small { color: var(--text-3); font-weight: 600; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .95rem; white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.lang { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.lang a { padding: 4px 9px; border-radius: 6px; font-size: .82rem; font-weight: 700; color: var(--text-3); }
.lang a[aria-current] { background: var(--surface-2); color: var(--text); }
.header .btn { padding: 9px 16px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }
@media (max-width: 1180px) {
  .nav, .lang, .header .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .header.is-open .nav { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 20px 16px; margin: 0; }
  .header.is-open .lang { display: flex; position: absolute; right: 20px; top: 20px; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 11px; font-weight: 700; font-size: 1rem; line-height: 1;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: #1f2530; border-color: #3a4552; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(79, 141, 255, .28); }
.btn-primary:hover { background: #5f99ff; border-color: #5f99ff; box-shadow: 0 10px 30px rgba(79, 141, 255, .38); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; border-radius: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- hero ---- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(79, 141, 255, .18), transparent 60%),
    radial-gradient(40% 40% at 20% 70%, rgba(139, 92, 246, .14), transparent 60%);
  filter: blur(20px);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 14px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7fb0ff, #b79bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--text-3); font-size: .9rem; font-weight: 600; }
.trust li { list-style: none; display: flex; align-items: center; gap: 7px; }
.trust ul { display: contents; }
.trust svg { width: 15px; height: 15px; color: var(--ok); }
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- demo (the "video" in the hero, drawn live) ---- */
.demo {
  position: relative; border: 1px solid var(--border-2); border-radius: 18px; background: linear-gradient(180deg, #151a21, #10141a);
  box-shadow: var(--shadow); padding: 18px; overflow: hidden;
}
.demo::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.demo-top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.demo-device { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; }
.demo-device .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, .15); }
.demo-device span:last-child { color: var(--text-3); font-weight: 600; font-size: .85rem; }
.toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border-2); position: relative; }
.toggle button { position: relative; z-index: 1; background: none; border: 0; color: var(--text-3); font: 700 .82rem "Manrope", sans-serif; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: color .3s var(--ease); }
.toggle button[aria-pressed="true"] { color: var(--accent-ink); }
.toggle .pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: #e9eef6; transition: transform .35s var(--ease); }
.demo.is-enhanced .toggle .pill { transform: translateX(100%); }
.demo svg.graph { display: block; width: 100%; height: auto; }
.graph .curve { fill: none; stroke: #e9eef6; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: d .8s var(--ease); }
.graph .fill { fill: url(#gfill); opacity: 0; transition: opacity .8s var(--ease), d .8s var(--ease); }
.demo.is-enhanced .graph .fill { opacity: 1; }
.graph .grid { stroke: #232a33; stroke-width: 1; }
.graph .zero { stroke: #3a4552; stroke-width: 1.2; }
.graph text { fill: var(--text-3); font: 600 10px "Manrope", sans-serif; }
.graph .node { fill: #10141a; stroke: #e9eef6; stroke-width: 1.8; opacity: 0; transition: opacity .6s var(--ease) .2s, cx .8s var(--ease), cy .8s var(--ease); }
.demo.is-enhanced .graph .node { opacity: 1; }
.meters { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin-top: 14px; font-size: .8rem; color: var(--text-3); font-weight: 700; }
.meter { height: 6px; border-radius: 4px; background: var(--bg); overflow: hidden; border: 1px solid var(--border); }
.meter i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #4f8dff, #8b5cf6); transform-origin: left; animation: meter 1.6s ease-in-out infinite alternate; }
.meter:nth-child(4) i { animation-duration: 1.9s; animation-delay: -.6s; }
.demo.is-enhanced .meter i { filter: saturate(130%); }
@keyframes meter { from { transform: scaleX(.55); } to { transform: scaleX(1); } }
.demo-caption { display: flex; justify-content: space-between; margin-top: 12px; color: var(--text-3); font-size: .8rem; font-weight: 600; }
.demo-caption b { color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .meter i { animation: none; transform: scaleX(.8); } }

/* ---- cards / grids ---- */
.grid { display: grid; gap: 18px; }
.grid > *, .hero .wrap > *, .flow > *, .pricing > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-2); background: var(--surface-2); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--text-2); margin: 0; }
.card .icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(79, 141, 255, .12); color: #8fb6ff; }
.card .icon svg { width: 22px; height: 22px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(245, 185, 66, .14); color: var(--warn); margin-left: 8px; vertical-align: middle; }
.badge-ok { background: rgba(61, 220, 151, .14); color: var(--ok); }

/* ---- how it works ---- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 8px; }
.flow .node { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.flow .node.hot { border-color: rgba(79, 141, 255, .5); box-shadow: 0 0 0 4px rgba(79, 141, 255, .08); }
.flow .node strong { display: block; margin-bottom: 4px; }
.flow .node span { color: var(--text-2); font-size: .92rem; }
.flow .arrow { color: var(--text-3); }
.flow .arrow svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); justify-self: center; } }

/* ---- video ---- */
.video-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); background: #0e1116; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-frame .poster { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(60% 60% at 50% 40%, rgba(79, 141, 255, .18), transparent 70%), #0e1116; }
.video-frame .poster p { color: var(--text-2); margin: 10px 0 0; max-width: 40ch; }
.video-frame.has-video .poster { display: none; }

/* ---- steps ---- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); align-items: start; }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-2); margin: 0; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-s); background: rgba(245, 185, 66, .08); border: 1px solid rgba(245, 185, 66, .25); color: var(--text-2); margin-top: 12px; font-size: .95rem; }
.note svg { width: 20px; height: 20px; color: var(--warn); flex: none; margin-top: 2px; }
.note b { color: var(--text); }
.req { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.req li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-size: .9rem; font-weight: 600; }

/* ---- pricing ---- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; }
.price-card { position: relative; padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.price-card.featured { border-color: rgba(79, 141, 255, .55); background: linear-gradient(180deg, rgba(79, 141, 255, .08), transparent 40%), var(--surface); }
.price-card .tag { position: absolute; top: -12px; left: 28px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: #fff; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 2px; }
.price small { font-size: 1rem; color: var(--text-3); font-weight: 600; letter-spacing: 0; }
.price-card ul { margin: 18px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--text-2); }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }

/* ---- faq ---- */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 0 22px; transition: border-color .3s var(--ease); }
.faq details[open] { border-color: var(--border-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--text-3); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--text-2); }
.faq .answer p:last-child { margin: 0; }

/* ---- cta band ---- */
.cta-band { border-radius: 22px; padding: 56px 40px; text-align: center; background: linear-gradient(135deg, rgba(79, 141, 255, .16), rgba(139, 92, 246, .14)), var(--surface); border: 1px solid var(--border-2); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--text-3); font-size: .9rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--text); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; font-size: .8rem; line-height: 1.7; }
@media (max-width: 800px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---- legal pages ---- */
.doc { max-width: 760px; padding: 56px 0 80px; }
.doc h1 { font-size: 2.2rem; margin-bottom: 8px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--text-3); font-size: .9rem; margin-bottom: 28px; }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
