/* Sporenges website. Colours come from the app: sky blue and indigo, with the deeper blue
   used wherever white text sits on a gradient. */
:root {
  --sky: #00a3ff;
  --indigo: #5b6cff;
  --deep: #2f4fbf;
  --brand: linear-gradient(135deg, #2f4fbf, #5b6cff);
  --brand-soft: linear-gradient(135deg, #00a3ff, #5b6cff);
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --card: #ffffff;
  --text: #0f1b2d;
  --muted: #566277;
  --line: #e3e9f3;
  --shadow: 0 10px 30px rgba(31, 60, 140, 0.10);
  --bubble-in: #ffffff;
  --chat-bg: #eaf1fb;
  --radius: 20px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f192c;
    --card: #131f35;
    --text: #eaf0fb;
    --muted: #9aa8c2;
    --line: #223152;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --bubble-in: #1b2a47;
    --chat-bg: #0d1628;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(47, 79, 191, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-small { padding: 10px 20px; font-size: 0.92rem; }
.btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 85% -5%, rgba(0, 163, 255, 0.22), transparent 70%),
    radial-gradient(600px 360px at 0% 10%, rgba(91, 108, 255, 0.16), transparent 70%);
  padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 .grad { background: var(--brand-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; margin: 18px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.hero-note a { font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.badge svg { width: 15px; height: 15px; stroke: var(--indigo); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- phone mock-up (pure CSS, shows the app's chat) ---------- */
.phone {
  width: 290px; margin: 0 auto; border: 9px solid #0e1626; border-radius: 40px;
  background: var(--chat-bg); box-shadow: 0 30px 60px rgba(20, 40, 110, 0.28); overflow: hidden;
  transform: rotate(3deg);
}
.phone-top { background: var(--brand); color: #fff; padding: 14px 14px 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--deep); font-weight: 800; display: grid; place-items: center; font-size: 0.95rem; }
.phone-top b { display: block; font-size: 0.95rem; line-height: 1.1; }
.phone-top small { opacity: 0.85; font-size: 0.72rem; }
.phone-body { padding: 16px 12px 10px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 0.82rem; line-height: 1.35; position: relative; }
.bubble.in { background: var(--bubble-in); color: var(--text); border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bubble.out { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.bubble .time { display: block; text-align: right; font-size: 0.62rem; opacity: 0.75; margin-top: 3px; }
.quote { background: rgba(255,255,255,.18); border-left: 3px solid #9fe0ff; border-radius: 8px; padding: 5px 8px; margin-bottom: 6px; font-size: 0.72rem; }
.quote b { display: block; font-size: 0.68rem; color: #c9efff; }
.react { position: absolute; bottom: -12px; left: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1px 7px; font-size: 0.8rem; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.phone-input { display: flex; gap: 8px; align-items: center; padding: 8px 10px 12px; }
.phone-input span { flex: 1; background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 0.78rem; color: var(--muted); }
.phone-input i { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: block; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); margin-bottom: 10px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--brand); display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* privacy band */
.band { background: var(--brand); color: #fff; border-radius: 32px; padding: 56px 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.88); font-size: 1.08rem; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.band li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.band li svg { flex: none; width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.step { position: relative; padding: 30px 24px 24px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 22px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--indigo); line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* download call-to-action */
.cta { text-align: center; }
.cta-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 32px; padding: 64px 24px; }
.cta-box img { width: 84px; height: 84px; border-radius: 50%; box-shadow: var(--shadow); margin-bottom: 18px; }
.cta-box p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-box .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: #0b1220; color: #b7c3dc; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 0.95rem; }
.site-footer a { color: #b7c3dc; display: block; margin-bottom: 9px; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid #1e2a45; margin-top: 36px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.86rem; }

/* ---------- legal pages ---------- */
.page-hero { background: radial-gradient(700px 300px at 80% -10%, rgba(0,163,255,.18), transparent 70%); padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); margin: 0; }
.legal { display: grid; grid-template-columns: 250px 1fr; gap: 56px; padding: 48px 22px 80px; max-width: var(--max); margin: 0 auto; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.93rem; }
.toc b { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 12px; border-left: 2px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--indigo); border-color: var(--indigo); text-decoration: none; }
.prose { max-width: 740px; }
.prose h2 { font-size: 1.55rem; margin-top: 42px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 22px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 700; }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--indigo); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.callout p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .band { grid-template-columns: 1fr; }
  .band { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .phone { transform: none; }
}
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  section { padding: 60px 0; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.site-footer a.brand { display: flex; margin-bottom: 12px; font-size: 1.25rem; }
.legal > * { min-width: 0; }
.prose table { min-width: 520px; }
