:root {
  --bg: #0a0a0b;
  --bg-2: #131316;
  --bg-3: #1a1a1e;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --ink: #f5f5f6;
  --ink-2: #b8b8bd;
  --ink-3: #7c7c84;
  --accent: #7c5cff;
  --green: #4ade80;
  --green-bg: rgba(74,222,128,0.12);
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
h3 { font-size: 19px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 24px; border-radius: 12px; font-size: 17px; font-weight: 600; transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease; white-space: nowrap; cursor: pointer; min-width: 200px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: white; }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); background: rgba(255,255,255,0.04); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,11,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.018em; }
.logo-mark { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink); }
.logo-mark svg { width: 100%; height: 100%; }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; }
.nav-cta:hover { background: white; }

/* Product hero */
.product-hero {
  padding: 56px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-hero::before {
  content: '';
  position: absolute;
  top: -250px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(124,92,255,0.06), transparent 60%);
  pointer-events: none; z-index: 0;
}
.product-hero > .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; border: 1px solid var(--line); color: var(--ink-2); }
.tag.bestseller { color: var(--green); background: var(--green-bg); border-color: rgba(74,222,128,0.2); }
.tag.popular { color: var(--accent); background: rgba(124,92,255,0.1); border-color: rgba(124,92,255,0.25); }
.tag.cat { color: var(--ink-3); }

.product-hero h1 { margin-bottom: 16px; max-width: 18ch; }
.lede { font-size: 20px; color: var(--ink-2); line-height: 1.5; max-width: 50ch; margin-bottom: 28px; }

.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 28px;
}
.hero-meta dl { display: grid; gap: 4px; }
.hero-meta dt { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.hero-meta dd { font-size: 15px; color: var(--ink); font-weight: 500; }

/* Buy box */
.buy-box {
  position: sticky;
  top: 96px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  gap: 14px;
}
.buy-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.buy-price-row { display: flex; align-items: baseline; gap: 8px; }
.buy-price { font-size: 40px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.buy-price-meta { font-size: 13.5px; color: var(--ink-3); }
.buy-line { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.buy-line .check { width: 16px; height: 16px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.buy-cta { background: var(--ink); color: var(--bg); padding: 14px; border-radius: 10px; text-align: center; font-weight: 600; font-size: 15px; transition: background 0.12s ease; cursor: pointer; }
.buy-cta:hover { background: white; }
.buy-secondary { display: block; text-align: center; font-size: 13.5px; color: var(--ink-3); padding: 8px 0; }
.buy-secondary:hover { color: var(--ink); }
.buy-note { font-size: 12px; color: var(--ink-3); line-height: 1.4; padding-top: 8px; border-top: 1px solid var(--line); }

/* Section */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }

.eyebrow { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }

.section h2 { margin-bottom: 18px; }
.section p, .section li { color: var(--ink-2); }
.section p { margin-bottom: 14px; max-width: 60ch; }

.feature-list { list-style: none; display: grid; gap: 14px; max-width: 60ch; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .check { width: 22px; height: 22px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex-shrink: 0; font-size: 12px; font-weight: 700; margin-top: 1px; }
.feature-list strong { color: var(--ink); display: block; margin-bottom: 2px; }
.feature-list span { color: var(--ink-2); font-size: 15.5px; }

/* Setup steps */
.steps { display: grid; gap: 20px; max-width: 64ch; counter-reset: step; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 18px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.step h3 { margin-bottom: 6px; color: var(--ink); }
.step p { color: var(--ink-2); margin-bottom: 0; font-size: 15.5px; }

/* Integrations */
.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.integration {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.integration-mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: white; font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 17px; font-weight: 600; gap: 16px; }
.faq-toggle { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--ink-2); transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[data-open='true'] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin-top 0.3s ease; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.faq-item[data-open='true'] .faq-a { max-height: 320px; margin-top: 12px; }

/* Related */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.related-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; }
.related-card h4 { font-size: 16px; }
.related-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; flex-grow: 1; }
.related-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.related-meta strong { color: var(--ink); font-size: 16px; font-weight: 700; }

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 72px 24px;
  background: radial-gradient(ellipse at center top, rgba(124,92,255,0.08), transparent 60%), var(--bg);
}
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { color: var(--ink-2); font-size: 17px; margin-bottom: 28px; max-width: 50ch; margin-left: auto; margin-right: auto; }
.final-cta .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.footer-disclaimer { max-width: 70ch; margin: 16px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; }

/* Skip-link for keyboard a11y */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600; font-size: 14px; z-index: 100; transition: top 0.15s ease; }
.skip-link:focus { top: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Mobile */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-hero { padding: 40px 0 40px; }
  .buy-box { position: static; }
  .section { padding: 48px 0; }
  .related-grid { grid-template-columns: 1fr; }
  .nav-cta { padding: 0 14px; height: 38px; font-size: 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-meta { gap: 18px; padding: 14px 18px; }
  .buy-price { font-size: 34px; }
  .lede { font-size: 17px; }
}
