/* ============================================================
   Social Connector — shared design system
   Beep Ventures Ltd
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Caveat-Bold.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #55627a;
  --muted-2: #7c879b;
  --bg: #f8fafc;
  --bg-warm: #faf9f7;
  --card: #ffffff;
  --card-2: #f4f7fb;
  --line: #e6ebf2;
  --line-2: #eef2f7;
  --royal: #1e4d8c;
  --royal-deep: #14335f;
  --accent: #0ea5e9;
  --accent-deep: #0369a1;
  --accent-soft: #e0f2fe;
  --sky-100: #e0f2fe;
  --sky-50: #f0f9ff;
  --green: #16a34a;
  --green-soft: #dcfce7;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg: 0 18px 44px -18px rgba(15,42,90,.28), 0 8px 20px -12px rgba(15,42,90,.16);
  --shadow-device: 0 40px 80px -28px rgba(12,40,80,.42), 0 16px 36px -20px rgba(12,40,80,.28);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --maxw: 1140px;
  --gutter: 24px;

  --grad-royal: linear-gradient(150deg, #2f6fbf 0%, #1e4d8c 42%, #14335f 100%);
  --grad-sky: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
  --grad-text: linear-gradient(120deg, #1e4d8c 0%, #0ea5e9 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef7;
    --ink-2: #cdd6e4;
    --muted: #9aa6bd;
    --muted-2: #7f8ca6;
    --bg: #0a0f1c;
    --bg-warm: #0a0f1c;
    --card: #121b2e;
    --card-2: #0f1728;
    --line: #1f2b42;
    --line-2: #1a2439;
    --accent-soft: #0c2a44;
    --sky-100: #0c2a44;
    --sky-50: #0d1a2b;
    --green-soft: #0e2f1f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 6px 18px rgba(0,0,0,.4);
    --shadow-lg: 0 20px 48px -18px rgba(0,0,0,.65);
    --shadow-device: 0 44px 90px -30px rgba(0,0,0,.8), 0 18px 40px -22px rgba(0,0,0,.6);
    --grad-text: linear-gradient(120deg, #7dd3fc 0%, #38bdf8 100%);
  }
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0; }
::selection { background: rgba(14,165,233,.22); }

:focus-visible { outline: 3px solid rgba(14,165,233,.55); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.font-display { font-family: "Caveat", cursive; font-weight: 700; letter-spacing: 0; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; transition: padding .3s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled .nav { padding: 11px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.06rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px rgba(20,51,95,.28); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.link { color: var(--muted); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a.link:hover { color: var(--ink); background: var(--card-2); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--grad-royal); color: #fff !important; font-weight: 600; font-size: .93rem;
  padding: 9px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
@media (max-width: 720px) { .nav-links .link { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1rem; padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 0; transition: transform .18s ease, box-shadow .2s ease, background .2s; }
.btn-primary { background: var(--grad-royal); color: #fff; box-shadow: 0 10px 24px -10px rgba(20,51,95,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(20,51,95,.6); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }

/* ---------- Store badges ---------- */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 11px 20px 11px 18px;
  box-shadow: var(--shadow-md); transition: transform .18s ease, box-shadow .2s ease;
  position: relative;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .sb-top { font-size: .68rem; font-weight: 500; opacity: .82; letter-spacing: .02em; }
.store-badge .sb-main { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.store-badge .soon-pill {
  position: absolute; top: -9px; right: -8px; background: var(--accent); color: #fff;
  font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; box-shadow: 0 4px 10px rgba(14,165,233,.5);
}
@media (prefers-color-scheme: dark) { .store-badge { background: #1c2740; border: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-deep); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); display: inline-block; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
h2.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-top: 16px; }

/* ---------- Cards ---------- */
.card-soft {
  background: var(--card); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line-2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 22px; }
.feature .ico {
  width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--sky-100), color-mix(in srgb, var(--sky-100) 40%, var(--card)));
  color: var(--accent-deep); margin-bottom: 20px; box-shadow: inset 0 0 0 1px rgba(14,165,233,.12);
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.14rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: .97rem; }

/* ---------- Pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 13px; font-size: .8rem; font-weight: 600; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-sky { background: var(--sky-100); color: var(--accent-deep); }

/* ---------- Device mockups ---------- */
.device {
  position: relative; width: 300px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a3444, #0d1420);
  box-shadow: var(--shadow-device); flex: none;
}
.device::before { /* side button */
  content: ""; position: absolute; right: -3px; top: 118px; width: 3px; height: 62px; border-radius: 3px; background: #1a2130;
}
.device::after { /* volume */
  content: ""; position: absolute; left: -3px; top: 100px; width: 3px; height: 44px; border-radius: 3px; background: #1a2130;
}
.device .screen {
  position: relative; border-radius: 33px; overflow: hidden; background: var(--card);
  aspect-ratio: 300 / 620; display: flex; flex-direction: column;
}
.device .notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 26px; background: #0b1220; border-radius: 999px; z-index: 6;
}
/* status bar */
.scr-status { display: flex; align-items: center; justify-content: space-between; padding: 13px 22px 6px; font-size: .68rem; font-weight: 600; color: var(--ink); z-index: 5; }
.scr-status .sig { display: inline-flex; gap: 5px; align-items: center; }
.scr-status .sig svg { width: 15px; height: 15px; opacity: .82; }

/* screen content shared */
.scr { flex: 1; display: flex; flex-direction: column; padding: 8px 18px 22px; overflow: hidden; }
.scr-brand { display: flex; align-items: center; gap: 8px; margin: 6px 2px 16px; }
.scr-brand img { width: 26px; height: 26px; border-radius: 7px; }
.scr-brand span { font-weight: 700; font-size: .82rem; letter-spacing: -0.01em; }

/* connected hero ring */
.conn-ring {
  width: 118px; height: 118px; border-radius: 50%; margin: 14px auto 8px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, var(--green-soft), transparent 72%);
}
.conn-ring .disc {
  width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(150deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -8px rgba(22,163,74,.6);
}
.conn-ring .disc svg { width: 40px; height: 40px; color: #fff; }
.conn-ring .halo { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(34,197,94,.32); }
.scr h4.scr-title { text-align: center; font-size: 1.02rem; margin-top: 6px; letter-spacing: -0.01em; }
.scr .scr-sub { text-align: center; color: var(--muted); font-size: .76rem; margin: 4px 8px 0; }

.scr-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.scr-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line-2);
}
.scr-row .r-ico { width: 30px; height: 30px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--sky-100); color: var(--accent-deep); }
.scr-row .r-ico svg { width: 16px; height: 16px; }
.scr-row .r-ico.green { background: var(--green-soft); color: var(--green); }
.scr-row .r-text { flex: 1; min-width: 0; }
.scr-row .r-text b { display: block; font-size: .76rem; font-weight: 600; letter-spacing: -0.01em; }
.scr-row .r-text small { color: var(--muted); font-size: .68rem; }
.scr-row .r-badge { font-size: .6rem; font-weight: 700; color: var(--green); }

.scr-cta { margin-top: auto; }
.scr-cta .b {
  display: block; text-align: center; background: var(--grad-royal); color: #fff;
  font-weight: 600; font-size: .82rem; padding: 12px; border-radius: 13px;
}
.scr-note { text-align: center; color: var(--muted-2); font-size: .66rem; margin-top: 10px; }

/* pairing screen bits */
.qr {
  width: 120px; height: 120px; margin: 8px auto 4px; border-radius: 16px; padding: 10px;
  background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2);
}
.qr svg { width: 100%; height: 100%; }
.step-dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0 4px; }
.step-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.step-dots i.on { background: var(--accent); width: 20px; border-radius: 999px; }

/* summary metric */
.metric-big { text-align: center; margin: 10px 0 2px; }
.metric-big .n { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-deep); line-height: 1; }
.metric-big .cap { color: var(--muted); font-size: .74rem; margin-top: 6px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; padding: 0 6px; margin-top: 14px; }
.mini-bars i { flex: 1; border-radius: 5px 5px 3px 3px; background: linear-gradient(var(--accent), var(--accent-deep)); opacity: .9; }

/* ---------- Steps timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step-card { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px 26px 28px; box-shadow: var(--shadow-md); }
.step-card .num {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-royal); color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px rgba(20,51,95,.6);
}
.step-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: .97rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Security ---------- */
.trust-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.trust-list { display: flex; flex-direction: column; gap: 22px; }
.trust-item { display: flex; gap: 16px; }
.trust-item .ti-ico { width: 44px; height: 44px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--sky-100); color: var(--accent-deep); box-shadow: inset 0 0 0 1px rgba(14,165,233,.12); }
.trust-item .ti-ico svg { width: 22px; height: 22px; }
.trust-item h3 { font-size: 1.08rem; margin-bottom: 5px; }
.trust-item p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--grad-royal); color: #fff; padding: 64px 48px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; }
.cta-band p { color: rgba(255,255,255,.86); font-size: 1.1rem; margin: 14px auto 30px; max-width: 520px; }
.cta-band .store-badge { background: #fff; color: var(--ink); }
.cta-band .store-badge:hover { color: var(--ink); }
.cta-band .store-badge .sb-top { opacity: .6; }
.cta-band .glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.cta-band .glow.g1 { width: 320px; height: 320px; background: #38bdf8; top: -140px; right: -80px; }
.cta-band .glow.g2 { width: 260px; height: 260px; background: #0ea5e9; bottom: -160px; left: -60px; opacity: .35; }
.cta-store { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 44px; margin-top: 20px; color: var(--muted); font-size: .93rem; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: .93rem; max-width: 300px; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: var(--muted); margin-bottom: 10px; font-size: .95rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: .86rem; }
.footer-soon { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Legal / doc pages ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 56px var(--gutter) 90px; }
.doc .back { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: .92rem; margin-bottom: 28px; color: var(--muted); }
.doc .back:hover { color: var(--accent); }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.doc h2 { font-size: 1.3rem; margin-top: 2.4rem; margin-bottom: .5rem; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: .7rem; }
.doc ul { margin: .7rem 0; padding-left: 1.2rem; }
.doc li { margin: .5rem 0; }
.doc .lead { font-size: 1.12rem; color: var(--muted); margin: 8px 0 4px; }
.doc-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-md); margin: 26px 0; }
.doc-card h2 { margin-top: 0; }
.faq-q { font-weight: 600; color: var(--ink); margin-top: 1.8rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .cta-band { padding: 48px 26px; }
  .device { width: 268px; }
}
