/* BolBhai landing page — brand tokens come from the app (green gradient, yellow ping, ink). */
:root {
  --g1: #1fcb7b;
  --g2: #039c88;
  --primary: #07996b;
  --primary-soft: rgba(7, 153, 107, 0.12);
  --yellow: #faaf00;
  --bg: #f6f9f8;
  --card: #ffffff;
  --surface: #edf2f1;
  --text: #0f1b24;
  --muted: #5d707a;
  --border: #e1e9e7;
  --shadow: 0 10px 30px rgba(11, 59, 46, 0.1);
  --shadow-lg: 0 30px 70px rgba(11, 59, 46, 0.18);
  --bubble-1: #0b9b69;
  --bubble-2: #04735a;
  --wall-1: #eef3f2;
  --wall-2: #e6eeec;
  --radius: 24px;
  --maxw: 1160px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --primary: #34d399;
  --primary-soft: rgba(52, 211, 153, 0.14);
  --bg: #0b1411;
  --card: #131e1a;
  --surface: #1a2722;
  --text: #eaf3ef;
  --muted: #8da39a;
  --border: #22332d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --wall-1: #0d1714;
  --wall-2: #0a110f;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --primary: #34d399;
    --primary-soft: rgba(52, 211, 153, 0.14);
    --bg: #0b1411;
    --card: #131e1a;
    --surface: #1a2722;
    --text: #eaf3ef;
    --muted: #8da39a;
    --border: #22332d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
    --wall-1: #0d1714;
    --wall-2: #0a110f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 15px 26px; border-radius: 16px; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn .i { font-size: 20px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 10px 26px color-mix(in srgb, var(--g2) 45%, transparent); }
.btn-ghost { color: var(--text); background: var(--card); border: 1px solid var(--border); }
.btn-lg { padding: 18px 32px; font-size: 18px; border-radius: 18px; }
.btn-white { background: #fff; color: color-mix(in srgb, var(--g2) 78%, #000); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-decoration: none; letter-spacing: 0.2px; }
.brand img { width: 38px; height: 38px; border-radius: 12px; background: #fff; padding: 4px; box-shadow: var(--shadow); }
.links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.links a.l { padding: 8px 14px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.links a.l:hover { color: var(--text); background: var(--surface); }
.theme-toggle { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; font-size: 19px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; background: linear-gradient(160deg, var(--g1) 0%, var(--g2) 100%); color: #fff; isolation: isolate; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.09); z-index: -1; }
.hero::before { width: 520px; height: 520px; right: -140px; top: -180px; }
.hero::after { width: 380px; height: 380px; left: -150px; bottom: -160px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); font-weight: 700; font-size: 14px; }
.pill b { color: #ffe08a; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; margin: 18px 0 18px; font-weight: 900; letter-spacing: -1px; }
h1 em { font-style: normal; color: #ffe08a; }
.lead { font-size: clamp(17px, 2vw, 20px); opacity: 0.95; max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.meta { margin-top: 18px; font-size: 14px; opacity: 0.9; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-art { position: relative; height: 620px; width: 100%; max-width: 560px; justify-self: center; }

/* ---------- phone mockups (built from the app's real design tokens) ---------- */
.phone { position: absolute; width: 270px; height: 560px; border-radius: 42px; background: #0b1411; padding: 9px; box-shadow: var(--shadow-lg); }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); color: var(--text); font-size: 12.5px; line-height: 1.35; display: flex; flex-direction: column; }
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; border-radius: 0 0 14px 14px; background: #0b1411; z-index: 3; }
.p1 { left: 0; top: 46px; transform: rotate(-5deg); z-index: 2; }
.p2 { left: 150px; top: 0; z-index: 3; }
.p3 { left: 290px; top: 66px; transform: rotate(5deg); z-index: 1; }
.float { animation: float 7s ease-in-out infinite; }
.p2.float { animation-delay: -2s; }
.p3.float { animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.scr-head { padding: 34px 14px 14px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; border-radius: 0 0 22px 22px; }
.scr-head b { font-size: 17px; display: block; }
.scr-head small { opacity: 0.9; font-size: 11px; }
.row { display: flex; align-items: center; gap: 9px; background: var(--card); margin: 8px 10px 0; padding: 9px; border-radius: 16px; box-shadow: 0 2px 8px rgba(11, 59, 46, 0.06); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-size: 12.5px; }
.row .t span { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.stories { display: flex; gap: 10px; padding: 12px 10px 2px; }
.story { text-align: center; font-size: 9.5px; color: var(--muted); }
.ring { padding: 2px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); margin: 0 auto 3px; width: 40px; }
.ring .av { width: 36px; height: 36px; border: 2px solid var(--bg); }
.tabbar { margin: auto 12px 12px; display: flex; gap: 4px; padding: 5px; border-radius: 22px; background: var(--card); box-shadow: 0 6px 18px rgba(11, 59, 46, 0.14); border: 1px solid var(--border); }
.tabbar span { flex: 1; text-align: center; padding: 8px 0; border-radius: 17px; color: var(--muted); font-size: 15px; display: grid; place-items: center; }
.tabbar span.on { background: var(--primary-soft); color: var(--primary); }
.chat-bg { flex: 1; background: linear-gradient(180deg, var(--wall-1), var(--wall-2)); padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: 82%; padding: 8px 11px; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); font-size: 12.5px; }
.bub.in { background: var(--card); align-self: flex-start; border-bottom-left-radius: 5px; }
.bub.out { background: linear-gradient(135deg, var(--bubble-1), var(--bubble-2)); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.bub small { display: block; text-align: right; font-size: 9.5px; opacity: 0.75; margin-top: 2px; }
.react { align-self: flex-end; margin-top: -8px; margin-right: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1px 7px; font-size: 12px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
.voice { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.voice .play { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); display: grid; place-items: center; font-size: 12px; }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.wave i { width: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.85); }
.wave i:nth-child(n + 12) { opacity: 0.4; }
.composer { display: flex; align-items: center; gap: 6px; padding: 8px 10px 12px; background: transparent; }
.composer .f { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 8px 12px; color: var(--muted); font-size: 12px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06); }
.composer .s { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; display: grid; place-items: center; font-size: 15px; }
.chat-top { display: flex; align-items: center; gap: 8px; padding: 30px 12px 10px; background: var(--card); border-bottom: 1px solid var(--border); }
.chat-top b { font-size: 13px; display: block; line-height: 1.15; }
.chat-top small { color: var(--primary); font-size: 10.5px; }
.chip { display: inline-flex; padding: 3px 9px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 10.5px; font-weight: 700; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.card-mini { margin: 8px 10px 0; padding: 12px; background: var(--card); border-radius: 18px; box-shadow: 0 2px 8px rgba(11, 59, 46, 0.07); }
.btn-mini { display: block; text-align: center; margin-top: 9px; padding: 8px; border-radius: 12px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font-weight: 800; font-size: 11.5px; }
.loc-pill { display: inline-block; font-size: 9.5px; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 10px; }

/* ---------- sections ---------- */
section { padding: 96px 0; scroll-margin-top: 70px; }
.eyebrow { color: var(--primary); font-weight: 900; text-transform: uppercase; letter-spacing: 1.4px; font-size: 13px; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin: 10px 0 14px; font-weight: 900; letter-spacing: -0.6px; }
.sub { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.stats { margin-top: -46px; position: relative; z-index: 5; padding: 0; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 26px 10px; border: 1px solid var(--border); }
.stat { text-align: center; padding: 6px 12px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 34px; font-weight: 900; background: linear-gradient(135deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.feat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.ico { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: #fff; font-size: 24px; margin-bottom: 16px; }
.feat h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 10px; background: var(--surface); color: var(--muted); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px 26px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font-weight: 900; font-size: 19px; display: grid; place-items: center; box-shadow: 0 8px 18px color-mix(in srgb, var(--g2) 40%, transparent); }
.step h3 { margin: 6px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* privacy */
.dark-band { background: #0b1411; color: #eaf3ef; position: relative; overflow: hidden; }
.dark-band::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -200px; top: -200px; background: radial-gradient(circle, rgba(31, 203, 123, 0.28), transparent 65%); }
.dark-band .sub { color: #9fb5ac; }
.dark-band .eyebrow { color: #34d399; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; position: relative; }
.pcard { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 22px; padding: 24px; }
.pcard .i { font-size: 26px; color: #34d399; margin-bottom: 12px; }
.pcard h3 { margin: 0 0 6px; font-size: 18px; }
.pcard p { margin: 0; color: #9fb5ac; font-size: 15px; }
.honest { margin-top: 30px; position: relative; padding: 20px 24px; border-radius: 20px; background: rgba(250, 175, 0, 0.1); border: 1px solid rgba(250, 175, 0, 0.35); color: #ffe7a3; font-size: 15px; }

/* customise */
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.sw { width: 50px; height: 50px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; background-clip: padding-box; position: relative; box-shadow: 0 0 0 3px var(--bg) inset; }
.sw[aria-pressed='true'] { border-color: var(--text); }
.sw::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.sw-label { color: var(--muted); font-size: 14px; }
.stage { position: relative; display: grid; place-items: center; min-height: 600px; background: linear-gradient(160deg, color-mix(in srgb, var(--g1) 14%, var(--bg)), color-mix(in srgb, var(--g2) 10%, var(--bg))); border-radius: 36px; }
.stage .phone { position: relative; }

/* real screens */
.shots { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 50px; }
.shot { text-align: center; max-width: 270px; }
.shot .frame { border-radius: 38px; padding: 8px; background: #0b1411; box-shadow: var(--shadow-lg); }
.shot img { border-radius: 30px; width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
figure { margin: 0; }

/* download */
.dl { background: linear-gradient(160deg, var(--g1), var(--g2)); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.dl::before { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); left: -160px; top: -180px; z-index: -1; }
.dl-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.dl h2 { color: #fff; }
.dl .sub { color: rgba(255, 255, 255, 0.92); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.facts .i { margin-top: 4px; color: #ffe08a; }
.box { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 26px; padding: 28px; backdrop-filter: blur(6px); }
.box h3 { margin: 0 0 4px; font-size: 22px; }
.box .ver { opacity: 0.9; font-size: 14px; margin-bottom: 18px; }
.box .btn { width: 100%; }
.hash { margin-top: 18px; font-size: 12.5px; opacity: 0.95; }
.hash code { display: block; word-break: break-all; margin-top: 4px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; background: rgba(0, 0, 0, 0.22); padding: 10px 12px; border-radius: 12px; font-size: 12px; user-select: all; }
.copy { background: none; border: 0; color: #ffe08a; font-weight: 700; cursor: pointer; padding: 0; font-size: 12.5px; text-decoration: underline; }
.install { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.istep { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 20px; padding: 20px; font-size: 15px; }
.istep b { display: block; font-size: 17px; margin-bottom: 4px; }
.soon { margin-top: 26px; text-align: center; opacity: 0.95; font-size: 15px; }

/* faq */
.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 4px 22px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 26px; color: var(--primary); font-weight: 400; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }

footer { padding: 46px 0 60px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; justify-content: space-between; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--text); }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .feat { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) and (min-width: 981px) {
  .p3 { display: none; }
  .hero-art { max-width: 430px; }
}
@media (max-width: 980px) {
  .hero-grid, .custom, .dl-card { grid-template-columns: 1fr; }
  .hero-art { height: 600px; max-width: 520px; margin: 10px auto 0; width: 100%; }
  .grid, .pgrid { grid-template-columns: repeat(2, 1fr); }
  .steps, .install { grid-template-columns: repeat(2, 1fr); }
  .stats-in { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 720px) {
  .menu-btn { display: grid; margin-left: auto; }
  .links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 24px 20px; border-bottom: 1px solid var(--border); display: none; margin: 0; }
  .links.open { display: flex; }
  .links a.l { padding: 14px; font-size: 17px; }
  .nav-in { position: relative; }
  section { padding: 70px 0; }
  .hero { padding: 44px 0 70px; }
  .grid, .pgrid, .steps, .install { grid-template-columns: 1fr; }
  .hero-art { height: 520px; }
  .phone { width: 220px; height: 456px; border-radius: 36px; }
  .phone .scr { border-radius: 29px; font-size: 11px; }
  .p1 { left: 0; top: 40px; }
  .p2 { left: 120px; }
  .p3 { display: none; }
  .hero-art { max-width: 340px; }
  .btn-lg { width: 100%; }
  .stat b { font-size: 28px; }
  .stage { min-height: 520px; }
}
