/* HeroBytes site styles. Static, no build. Light and dark via prefers-color-scheme. */
:root {
  --bg: #ffffff; --bg-2: #f6f8fb; --fg: #0b1220; --muted: #526079; --line: #e6eaf0;
  --brand: #2563eb; --brand-2: #7c3aed; --ok: #16a34a; --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --bg-2: #0f172a; --fg: #e8edf5; --muted: #a3b0c5; --line: #1f2a3d;
    --brand: #60a5fa; --brand-2: #a78bfa; --ok: #4ade80; --card: #111a2b;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; color: var(--fg); font-size: 19px; }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.nav a { margin-left: 22px; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav .cta { padding: 8px 14px; border-radius: 10px; background: var(--brand); color: #fff; }
@media (max-width: 640px) { .nav a:not(.cta) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.btn.secondary { border-color: var(--line); color: var(--fg); background: var(--card); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 48px; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } .hero { padding-top: 44px; padding-bottom: 32px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 560px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Browser frame for screenshots */
.frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.frame .bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.frame .bar i:nth-child(1) { background: #fb7185; } .frame .bar i:nth-child(2) { background: #fbbf24; } .frame .bar i:nth-child(3) { background: #34d399; }
.frame .url { margin-left: 10px; flex: 1; height: 20px; border-radius: 6px; background: var(--line); font-size: 11px; color: var(--muted); padding: 0 8px; line-height: 20px; overflow: hidden; white-space: nowrap; }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 28px; }
h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Product cards (home) */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.product { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.product .kind { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.product h3 { margin: 0; font-size: 19px; }
.product p { margin: 0; color: var(--muted); flex: 1; }
.product .status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.product .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.product .status.live::before { background: var(--ok); }
.product .status.soon::before { background: #f59e0b; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 24px; }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.zoomable { cursor: zoom-in; }
.zoom-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(2, 6, 23, .82); backdrop-filter: blur(4px); }
dialog.lightbox img { max-width: min(96vw, 1400px); max-height: 90vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: zoom-out; }
dialog.lightbox p { color: #e5e7eb; text-align: center; font-size: 14px; margin: 10px 0 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; max-width: 820px; }
.plan { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.plan.pro { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--fg); font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); }
.plan li::after { content: ""; position: absolute; left: 5px; top: 14px; width: 5px; height: 8px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan li.muted { color: var(--muted); } .plan li.muted::before, .plan li.muted::after { opacity: .35; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 14px; color: var(--muted); }

/* Policy */
.policy { max-width: 760px; }
.policy h2 { font-size: 20px; margin: 28px 0 8px; }
.policy p, .policy li { color: var(--fg); }
.policy .small { color: var(--muted); font-size: 14px; }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 14px; margin-top: 22px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); }

/* Screenshot carousel */
.carousel { position: relative; }
.carousel .track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 8px; scrollbar-width: none; outline: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 min(100%, 880px); scroll-snap-align: start; margin: 0; }
@media (max-width: 920px) { .carousel .slide { flex-basis: 92%; } }
.carousel figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }
.carousel figcaption b { color: var(--fg); font-weight: 600; }
.carousel .arrow { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; padding: 0 0 4px; }
.carousel .arrow:hover { border-color: var(--brand); color: var(--brand); }
.carousel .prev { left: -14px; } .carousel .next { right: -14px; }
@media (max-width: 920px) { .carousel .prev { left: 6px; } .carousel .next { right: 6px; } }
.carousel .dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.carousel .dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.carousel .dots button.on { background: var(--brand); transform: scale(1.25); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; vertical-align: middle; margin-left: 4px; }
.steps { max-width: 720px; margin: 0; padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); line-height: 1.5; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* Articles and guides */
.article { max-width: 860px; }
.article p, .article ul { color: var(--muted); font-size: 16px; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article b { color: var(--fg); font-weight: 600; }
.article h3 { font-size: 20px; margin: 32px 0 8px; letter-spacing: -.01em; }
.article figure { margin: 24px 0; }
.article figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.article .steps { margin-bottom: 20px; }
a.feature:hover { text-decoration: none; border-color: var(--brand); }
code { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 1px 6px; border-radius: 6px; color: var(--fg); }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 12px 0 18px; }
pre code { background: none; padding: 0; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--bg-2); font-weight: 600; }
.compare td:first-child { color: var(--fg); font-weight: 500; }
.compare td { color: var(--muted); }
@media (max-width: 640px) { .compare { font-size: 13px; } .compare th, .compare td { padding: 8px 6px; } }
