:root {
  --orange: #ff6a2b;
  --orange-2: #ff8a3d;
  --ink: #0c0d12;
  --ink-soft: #1a1c25;
  --text: #e9eaf0;
  --muted: #a4a8b8;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; font-weight: 600; padding: 12px 22px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: 0 8px 24px rgba(255, 106, 43, 0.28);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 106, 43, 0.38); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: none; border: 1px solid var(--card-border); }
.btn-ghost:hover { background: var(--card); box-shadow: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 18, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #fff; }

/* Hero */
.hero { padding: 80px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 30% auto -10%; height: 600px;
  background: radial-gradient(closest-side, rgba(255, 106, 43, 0.28), transparent);
  filter: blur(20px); z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600;
  color: var(--orange); margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 800;
  margin: 0 0 20px; letter-spacing: -0.02em;
}
.lede { font-size: 1.18rem; color: var(--muted); margin: 0 0 30px; max-width: 36ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* Hero device art */
.hero-art { display: flex; justify-content: center; }
.device-card {
  position: relative; width: 100%; max-width: 360px;
  background: linear-gradient(160deg, #6ab9f5, #4a9eea);
  border-radius: 24px; padding: 22px; color: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.menubar-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.22); padding: 6px 12px; border-radius: 999px;
  font-weight: 700; margin-bottom: 18px;
}
.readout { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat { display: flex; flex-direction: column; align-items: center; font-size: .8rem; opacity: .9; }
.stat strong { font-size: 1.1rem; font-weight: 700; }
.stat-top { align-self: flex-start; }
.stat-bottom { align-self: flex-end; }
.big-bpm { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.big-bpm span { font-size: 4.4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pulse { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.18); opacity: 1; } }
.trace { width: 100%; height: 80px; margin-top: 8px; }
.trace polyline { fill: none; stroke: rgba(255, 255, 255, 0.9); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--ink-soft); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; text-align: center; margin: 0 0 12px; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.1rem; margin: 0 auto 48px; max-width: 52ch; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 106, 43, 0.4); background: rgba(255, 106, 43, 0.06); }
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px 24px; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }

/* Download */
.download { text-align: center; }
.download-icon { margin: 0 auto 22px; border-radius: 26px; box-shadow: 0 20px 50px rgba(255, 106, 43, 0.3); }
.download .btn { margin-bottom: 14px; }

/* FAQ */
.faq-item {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 14px;
  padding: 4px 22px; margin-bottom: 14px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; font-weight: 400; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 36px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { border-radius: 7px; }
.footer-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.footer-meta a { color: var(--orange); }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .lede { max-width: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition: none !important; }
}
