/* BAP Software — site styles */
:root {
  --bg: #131615;
  --bg-2: #191d1c;
  --surface: #1f2422;
  --surface-2: #262c29;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2ef;
  --muted: #a0aba5;
  --faint: #6f7a75;
  --green: #3fc46f;
  --green-deep: #1f7a43;
  --green-soft: rgba(63, 196, 111, 0.12);
  --ct: #58c97e;      /* Chat Tree */
  --ct-bg: #16241c;
  --rc: #ff6a2b;      /* Rapid Cart */
  --rc-bg: #2a1a12;
  --p2s: #a78bfa;     /* Pick To Sell */
  --p2s-bg: #1f1836;
  --radius: 18px;
  --radius-sm: 10px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-mark: "Jura", "Manrope", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--green); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: .9rem; font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s, border-color .2s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #0b1a10; }
.btn-primary:hover { background: #55d283; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.btn svg { width: 16px; height: 16px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); }
.logo-mark { width: 54px; height: 24px; color: var(--text); flex: none; }
.logo-mark svg { display: block; width: 100%; height: 100%; }
.logo-divider { width: 2px; height: 30px; background: var(--green); border-radius: 2px; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word .w1 { font-family: var(--font-mark); font-weight: 500; font-size: 1.05rem; letter-spacing: .12em; }
.logo-word .w2 { font-family: var(--font-mark); font-weight: 400; font-size: .62rem; letter-spacing: .05em; color: var(--muted); margin-top: .25rem; }
.logo.lg .logo-mark { width: 96px; height: 43px; }
.logo.lg .logo-divider { height: 52px; }
.logo.lg .w1 { font-size: 1.8rem; }
.logo.lg .w2 { font-size: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 22, 21, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .93rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(63,196,111,.14), transparent 65%),
    radial-gradient(500px 360px at 10% 90%, rgba(63,196,111,.07), transparent 60%);
}
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
.hero-watermark { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(58vw, 760px); color: rgba(255,255,255,.035); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.025em; margin-top: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); margin-top: 1.4rem; max-width: 560px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-facts { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-facts div { font-size: .88rem; color: var(--muted); }
.hero-facts strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .15rem; }

/* Product stack in hero */
.stack { position: relative; display: grid; gap: .9rem; }
.tile {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  transition: transform .25s ease, border-color .25s;
}
.tile:hover { transform: translateX(6px); border-color: var(--line-strong); }
.tile:nth-child(2) { margin-left: 1.5rem; }
.tile:nth-child(3) { margin-left: 3rem; }
.tile .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.tile .ico svg { width: 26px; height: 26px; }
.tile-text { display: flex; flex-direction: column; }
.tile-text strong { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.tile-text small { font-size: .85rem; color: var(--muted); }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; }
.tag-live { background: var(--green-soft); color: var(--green); }
.tag-early { background: rgba(167,139,250,.14); color: var(--p2s); }
.ico-ct { background: var(--ct-bg); color: var(--ct); }
.ico-rc { background: var(--rc-bg); color: var(--rc); }
.ico-p2s { background: var(--p2s-bg); color: var(--p2s); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden; transition: transform .25s ease, border-color .25s;
}
.product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.product:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.product .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.product .ico svg { width: 28px; height: 28px; }
.product h3 { font-size: 1.4rem; }
.product .one-liner { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.product p.desc { color: var(--muted); font-size: .95rem; }
.product ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; color: var(--muted); }
.product ul li { display: flex; gap: .55rem; align-items: flex-start; }
.product ul li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .55rem; }
.product-links { margin-top: auto; padding-top: .75rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.link { color: var(--accent, var(--green)); font-weight: 600; font-size: .93rem; display: inline-flex; align-items: center; gap: .35rem; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link svg { width: 14px; height: 14px; }
.link.subtle { color: var(--muted); font-weight: 500; }
.p-ct { --accent: var(--ct); }
.p-rc { --accent: var(--rc); }
.p-p2s { --accent: var(--p2s); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.service { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.service .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 1rem; }
.service .ico svg { width: 22px; height: 22px; }
.service h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.service p { color: var(--muted); font-size: .93rem; }
.engage { margin-top: 1.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.1rem; }
.engage .panel { padding: 1.6rem 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.engage h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.engage p { color: var(--muted); font-size: .95rem; }
.engage .panel.accent { background: linear-gradient(135deg, rgba(63,196,111,.16), rgba(63,196,111,.04)); border-color: rgba(63,196,111,.3); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.engage .panel.accent p { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { font-size: .8rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.timeline { display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding: 0 0 1.75rem 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--faint); }
.tl-item.now::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.tl-item.next::before { border-color: var(--p2s); }
.tl-item .when { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--faint); }
.tl-item.now .when { color: var(--green); }
.tl-item.next .when { color: var(--p2s); }
.tl-item h3 { font-size: 1.15rem; margin: .3rem 0 .4rem; }
.tl-item p { color: var(--muted); font-size: .95rem; }
.about-side { display: grid; gap: 1rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { padding: 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .2rem; }
.stat span { font-size: .88rem; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: .9rem; }
.contact-info p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; max-width: 460px; }
.email-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.email-link svg { width: 22px; height: 22px; color: var(--green); }
.email-link:hover { color: var(--green); }
.socials { display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.socials a:hover { color: var(--text); border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }
.socials svg { width: 18px; height: 18px; }
form.contact-form { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: .95rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form-foot small { color: var(--faint); font-size: .8rem; }
.form-status { font-size: .9rem; color: var(--green); min-height: 1.2em; }
.form-status.error { color: #ff7a7a; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--muted); font-size: .93rem; }
.footer-grid a:hover { color: var(--text); }
.footer-tag { color: var(--muted); font-size: .93rem; margin-top: 1rem; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
.footer-bottom a { color: var(--muted); }

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

/* Legal page */
.legal { max-width: 760px; padding: clamp(3rem, 7vw, 5rem) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .stack { max-width: 520px; }
  .products, .services { grid-template-columns: 1fr 1fr; }
  .about, .contact, .engage { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .nav-links.open li a { display: block; padding: .8rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links.open li:last-child a { border-bottom: 0; }
  .products, .services { grid-template-columns: 1fr; }
  .tile:nth-child(2), .tile:nth-child(3) { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-watermark { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
