/* ===== Bikolpo apps — showcase site design system ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&family=Tiro+Bangla:ital@0;1&family=Inter:wght@500;600;700;800&display=swap');

:root {
  --brand: #7C87D9;
  --brand-dark: #5C68C4;
  --gold: #D9B25A;          /* refined champagne gold */
  --gold-bright: #F0CE7B;
  --bg: #EDEFFC;
  --bg-grad-1: #F5F5FB;
  --bg-grad-2: #E9EAF4;
  --surface: #FFFFFF;
  --text: #1B1B28;
  --text-2: #67677E;
  --hairline: rgba(30,30,45,0.09);
  --gold-line: color-mix(in srgb, var(--gold) 55%, transparent);
  --shadow: 0 24px 60px rgba(92,104,196,0.16), 0 4px 14px rgba(30,30,45,0.05);
  --radius: 22px;
  --display: 'Tiro Bangla', 'Noto Sans Bengali', serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060608;
    --bg-grad-1: #101019;
    --bg-grad-2: #08080D;
    --surface: #14141C;
    --text: #F1F1F6;
    --text-2: #9C9CB2;
    --hairline: rgba(255,255,255,0.08);
    --gold-line: color-mix(in srgb, var(--gold) 48%, transparent);
    --shadow: 0 28px 70px rgba(0,0,0,0.6), 0 2px 10px rgba(0,0,0,0.4);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(124,135,217,0.25), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: 0 6px 16px rgba(92,104,196,0.5);
}
.nav-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text-2);
  transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: color-mix(in srgb, var(--brand) 14%, transparent); }

/* ===== Buttons / badges ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  box-shadow: 0 10px 24px rgba(92,104,196,0.4); transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(92,104,196,0.5); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--hairline); box-shadow: none; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: 13px;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  color: color-mix(in srgb, var(--gold) 55%, var(--text));
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }

/* ===== Hero ===== */
.hero { padding: 78px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(30px, 6vw, 54px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.hero h1 .accent { background: linear-gradient(120deg, var(--brand), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 620px; margin: 18px auto 0; color: var(--text-2); font-size: clamp(15px,2.4vw,18px); }
.hero .cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== App grid (home) ===== */
.section { padding: 40px 0; }
.section h2 { font-size: clamp(22px,4vw,30px); font-weight: 800; letter-spacing: -0.01em; }
.section .sub { color: var(--text-2); margin-top: 6px; }
.app-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-card {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .25s;
  display: flex; gap: 18px; align-items: flex-start;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(92,104,196,0.28); }
.app-icon {
  width: 62px; height: 62px; flex: none; border-radius: 16px; display: grid; place-items: center;
  font-size: 30px; color: #fff; box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.app-card h3 { font-size: 19px; font-weight: 800; }
.app-card p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.app-card .more { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-dark); font-size: 14px; }

/* ===== App detail ===== */
.detail-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 60px 0 30px; }
.detail-hero h1 { font-size: clamp(28px,5vw,44px); font-weight: 800; letter-spacing: -0.02em; }
.detail-hero p.lead { color: var(--text-2); font-size: 17px; margin-top: 14px; }
.detail-hero .cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pill { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand-dark); }
@media (prefers-color-scheme: dark) { .pill, .app-card .more, .badge { color: color-mix(in srgb, var(--brand) 60%, var(--text)); } }

/* phone mockup (placeholder for screenshot) */
.phone { justify-self: center; width: 250px; aspect-ratio: 9/19.5; border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #2a2a3a, #14141d); box-shadow: 0 30px 60px rgba(0,0,0,0.35), inset 0 0 0 2px rgba(255,255,255,0.06); }
.phone .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark)); display: grid; place-items: center; color: #fff; }
.phone .screen .big { font-size: 46px; }
.phone .screen .cap { position: absolute; bottom: 22px; font-weight: 700; opacity: .9; font-size: 14px; }
.phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; border-radius: 12px; background: rgba(0,0,0,0.35); z-index: 2; }

/* feature grid */
.feature-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px; }
.feature .fi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--brand) 15%, transparent); }
.feature h4 { margin-top: 12px; font-size: 16px; font-weight: 700; }
.feature p { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* screenshots strip */
.shots { margin-top: 26px; display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; }
.shots .phone { flex: none; width: 190px; }

/* ===== Footer ===== */
.footer { margin-top: 40px; border-top: 1px solid var(--hairline); padding: 30px 0; color: var(--text-2); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ===== Responsive ===== */
@media (max-width: 780px) {
  .app-grid { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; text-align: center; }
  .detail-hero .cta, .pill-row { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ============================================================
   ANIMATIONS (outcrowd-style motion) — pure CSS + vanilla JS
   ============================================================ */
body { overflow-x: hidden; }

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  z-index: 100; transition: width .1s linear;
}

/* floating gradient blobs behind hero */
.hero, .detail-hero { position: relative; }
.blobs { position: absolute; inset: -40px 0 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob.b1 { width: 340px; height: 340px; left: -60px; top: -40px; background: var(--brand); animation: float1 14s ease-in-out infinite; }
.blob.b2 { width: 300px; height: 300px; right: -40px; top: 20px; background: var(--gold); opacity: .35; animation: float2 18s ease-in-out infinite; }
.blob.b3 { width: 260px; height: 260px; left: 40%; top: 120px; background: #1FB6A6; opacity: .3; animation: float1 22s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,40px) scale(1.08); } }

/* animated gradient text */
.hero h1 .accent, .detail-hero h1 .accent {
  background: linear-gradient(120deg, var(--brand), var(--gold), #1FB6A6, var(--brand));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 8s ease infinite;
}
@keyframes hue { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* hero entrance (JS toggles .loaded on body) */
.hero > .wrap > *, .detail-hero > div > * { opacity: 0; transform: translateY(22px); }
body.loaded .hero > .wrap > *, body.loaded .detail-hero > div > * {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
body.loaded .hero > .wrap > *:nth-child(1), body.loaded .detail-hero > div > *:nth-child(1) { transition-delay: .05s; }
body.loaded .hero > .wrap > *:nth-child(2), body.loaded .detail-hero > div > *:nth-child(2) { transition-delay: .15s; }
body.loaded .hero > .wrap > *:nth-child(3), body.loaded .detail-hero > div > *:nth-child(3) { transition-delay: .25s; }
body.loaded .hero > .wrap > *:nth-child(4), body.loaded .detail-hero > div > *:nth-child(4) { transition-delay: .35s; }

/* scroll reveal (added by JS) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* floating phone bob */
.detail-hero .phone { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }

/* card hover glow already; add shine to buttons */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); transition: left .6s;
}
.btn:hover::after { left: 140%; }

/* app-card icon subtle pulse on hover */
.app-card:hover .app-icon { transform: scale(1.08) rotate(-3deg); transition: transform .25s; }
.app-icon { transition: transform .25s; }

/* ============================================================
   ENHANCED MOTION v2 — richer + interactive (all pages)
   ============================================================ */

/* ---- aurora mesh backdrop (injected into body) ---- */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; width: 55vw; height: 55vw; border-radius: 50%;
  filter: blur(90px); opacity: .45; will-change: transform;
}
.aurora .a1 { background: radial-gradient(circle, var(--brand), transparent 62%); top: -18%; left: -12%; animation: aur1 28s ease-in-out infinite; }
.aurora .a2 { background: radial-gradient(circle, var(--gold), transparent 62%); bottom: -22%; right: -10%; opacity: .3; animation: aur2 34s ease-in-out infinite; }
.aurora .a3 { background: radial-gradient(circle, #1FB6A6, transparent 62%); top: 30%; left: 55%; opacity: .28; animation: aur3 40s ease-in-out infinite; }
@keyframes aur1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(12vw,9vh) scale(1.1)} 66%{transform:translate(-7vw,15vh)} }
@keyframes aur2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-14vw,-9vh) scale(1.12)} }
@keyframes aur3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-10vw,6vh) scale(1.15)} }
@media (prefers-color-scheme: light) { .aurora i { opacity: .3; } .aurora .a2, .aurora .a3 { opacity: .22; } }

/* ---- interactive 3D tilt (JS drives --rx/--ry) ---- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt.is-tilting { transition: transform .1s ease-out; }

/* ---- cursor spotlight glow on cards ---- */
.app-card, .feature { position: relative; }
.app-card::before, .feature::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%),
              color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%);
  opacity: 0; transition: opacity .35s;
}
.app-card:hover::before, .feature:hover::before { opacity: 1; }
.app-card > *, .feature > * { position: relative; z-index: 1; }

/* ---- animated gradient ring on hover ---- */
.app-card::after, .feature::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 0;
  background: linear-gradient(130deg, var(--brand), var(--gold), #1FB6A6, var(--brand));
  background-size: 280% 280%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; animation: hue 8s ease infinite;
}
.app-card:hover::after, .feature:hover::after { opacity: .9; }

/* ---- magnetic buttons (JS drives --tx/--ty) ---- */
.btn { transform: translate(var(--tx,0), var(--ty,0)); }

/* ---- phone screen shimmer ---- */
.phone .screen::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 62%);
  transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0%,60%{transform:translateX(-120%)} 100%{transform:translateX(120%)} }

/* ---- feature icon gentle float ---- */
.feature .fi { animation: fibob 4s ease-in-out infinite; }
.feature:nth-child(even) .fi { animation-delay: -2s; }
@keyframes fibob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ---- hero heading word-by-word reveal (JS wraps words) ---- */
.hero h1 .wd, .detail-hero h1 .wd { display: inline-block; opacity: 0; transform: translateY(26px) rotate(3deg); }
body.loaded .hero h1 .wd, body.loaded .detail-hero h1 .wd {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}

/* ---- nav auto-hide on scroll-down (JS toggles .nav-hidden) ---- */
.nav { transition: transform .35s ease, background .3s, box-shadow .3s; }
.nav.nav-hidden { transform: translateY(-100%); }
.nav.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

/* ---- back-to-top / scroll cue ---- */
.scroll-cue { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 60; width: 26px; height: 42px; border: 2px solid var(--text-2); border-radius: 14px;
  opacity: .5; transition: opacity .3s; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  border-radius: 3px; background: var(--text-2); transform: translateX(-50%); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%,100%{opacity:0; transform:translate(-50%,0)} 50%{opacity:1; transform:translate(-50%,10px)} }
.scrolled-past .scroll-cue { opacity: 0; pointer-events: none; }

/* respect reduced motion — but keep gentle aurora + the in-phone app demo alive
   (contained, non-vestibular); kill only the big page motion */
@media (prefers-reduced-motion: reduce) {
  .blob, .marquee .track, .detail-hero .phone, .phone .screen::after,
  .feature .fi, .btn::after, .hero h1 .accent, .detail-hero h1 .accent { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .app-card::after, .feature::after { display: none; }
  .btn { transform: none; }
  .scroll-cue { display: none; }
  body.loaded .hero > .wrap > *, body.loaded .detail-hero > div > * { opacity: 1; transform: none; transition: none; }
  .hero > .wrap > *, .detail-hero > div > * { opacity: 1; transform: none; }
  .hero h1 .wd, .detail-hero h1 .wd { opacity: 1 !important; transform: none !important; }
  .tilt { transform: none !important; }
}

/* ============================================================
   LUXURY LAYER — premium type, gold accents, glass, texture
   ============================================================ */

/* fine noise texture over everything (very subtle) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { opacity: .05; } }

/* elegant serif display headings */
.hero h1, .detail-hero h1, .section h2 {
  font-family: var(--display);
  font-weight: 400; letter-spacing: 0;
}
.hero h1, .detail-hero h1 { line-height: 1.25; }
.section h2 { font-size: clamp(24px,4vw,34px); }

/* gold eyebrow line under section titles */
.section h2 { position: relative; display: inline-block; padding-bottom: 12px; }
.section h2::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 54px; height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

/* premium glass cards — subtle gold hairline at rest */
.app-card, .feature {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent),
                            color-mix(in srgb, var(--surface) 74%, transparent));
  border: 1px solid color-mix(in srgb, var(--gold) 14%, var(--hairline));
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--shadow);
}
.app-card { padding: 28px; }

/* luxe app icon: gold ring + inner glow */
.app-icon, .phone .screen, .feature .fi { position: relative; }
.app-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), inset 0 -10px 20px rgba(0,0,0,0.18);
}

/* refined gold badge */
.badge {
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--gold) 20%, transparent),
    color-mix(in srgb, var(--gold) 8%, transparent));
  color: color-mix(in srgb, var(--gold) 62%, var(--text));
  border: 1px solid var(--gold-line);
  letter-spacing: .01em; backdrop-filter: blur(6px);
}
@media (prefers-color-scheme: dark) { .badge { color: var(--gold-bright); } }

/* primary button: keep brand, add gold underglow + finer type */
.btn { letter-spacing: .01em; box-shadow: 0 12px 28px rgba(92,104,196,0.4), 0 2px 0 rgba(255,255,255,0.12) inset; }
.btn:not(.ghost) { border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
.btn.ghost { border: 1.5px solid var(--gold-line); color: var(--text); }
.btn.ghost:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }

/* nav logo mark + gold hairline under nav */
.nav { border-bottom: 1px solid color-mix(in srgb, var(--gold) 12%, var(--hairline)); }
.nav-links a:hover, .nav-links a.active {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  box-shadow: inset 0 -2px 0 var(--gold-line);
}

/* accent gradient now warmer/gold-leaning */
.hero h1 .accent, .detail-hero h1 .accent {
  background: linear-gradient(120deg, var(--brand), var(--gold-bright), var(--brand-dark), var(--brand));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* home app-card: richer meta layout */
.app-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.app-card .tag {
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  color: var(--text-2); border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.app-card .more { color: color-mix(in srgb, var(--gold) 60%, var(--text)); }
@media (prefers-color-scheme: dark) { .app-card .more { color: var(--gold-bright); } }

/* elegant footer divider */
.footer { border-top: 1px solid var(--gold-line); }

/* ============================================================
   V3 — bigger type · 3D icons · animated phone mock UI
   ============================================================ */

/* --- bigger, more beautiful type --- */
.hero h1 { font-size: clamp(38px, 7vw, 66px); line-height: 1.2; }
.detail-hero h1 { font-size: clamp(33px, 6vw, 56px); line-height: 1.18; }
.hero p { font-size: clamp(16px, 2.7vw, 21px); max-width: 690px; line-height: 1.75; }
.detail-hero p.lead { font-size: clamp(16.5px, 2.4vw, 20px); line-height: 1.8; }
.section h2 { font-size: clamp(28px, 5vw, 44px); }
.section .sub { font-size: 16.5px; }
.app-card h3 { font-size: 23px; }
.app-card p { font-size: 15.5px; line-height: 1.72; }
.feature h4 { font-size: 18px; }
.feature p { font-size: 15px; line-height: 1.66; }
.badge { font-size: 13.5px; }
.pill { font-size: 13.5px; padding: 7px 14px; }

/* --- 3D icons: app icons + feature tiles --- */
.app-icon, .feature .fi {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 16px 30px rgba(0,0,0,0.30),
    0 6px 10px rgba(0,0,0,0.20),
    inset 0 2px 3px rgba(255,255,255,0.55),
    inset 0 -8px 15px rgba(0,0,0,0.30);
  text-shadow: 0 3px 6px rgba(0,0,0,0.30);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
/* glossy curved top highlight */
.app-icon::before, .feature .fi::before {
  content:''; position:absolute; left:8%; right:8%; top:5%; height:40%;
  border-radius: 50% / 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  mix-blend-mode: soft-light; opacity:.9; pointer-events:none; z-index:2;
}
.app-icon { width: 70px; height: 70px; font-size: 34px; border-radius: 18px; }
.feature .fi {
  width: 54px; height: 54px; font-size: 27px; border-radius: 15px;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--brand) 32%, var(--surface)),
    color-mix(in srgb, var(--brand) 10%, var(--surface)));
}
/* soft inner reflection at the base */
.app-icon::after {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), inset 0 -12px 22px rgba(0,0,0,0.22);
}
/* real 3D pop on hover */
.app-card:hover .app-icon { transform: perspective(520px) rotateX(9deg) rotateY(-11deg) scale(1.1) translateY(-2px); }
.feature:hover .fi { transform: perspective(520px) rotateX(9deg) rotateY(-9deg) scale(1.08); }
/* phone screen emoji: 3D float */
.phone .screen .big { filter: drop-shadow(0 10px 16px rgba(0,0,0,0.4)); }

/* --- animated app mock inside phone screen --- */
.mock {
  --mk-fg:#ECECF3; --mk-card:rgba(255,255,255,0.06); --mk-line:rgba(255,255,255,0.12);
  position:absolute; inset:0; z-index:3; display:flex; flex-direction:column;
  color:var(--mk-fg); font-family:'Noto Sans Bengali',system-ui,sans-serif;
  font-size:11px; text-align:left; overflow:hidden; background:#0C0C13;
}
.phone .screen.has-mock { background:#0C0C13 !important; }
.mock * { box-sizing:border-box; }
.mk-status { display:flex; justify-content:space-between; align-items:center; padding:10px 15px 3px; font-size:9px; opacity:.7; }
.mk-status .dots{ display:flex; gap:3px; }
.mk-status .dots i{ width:4px; height:4px; border-radius:50%; background:currentColor; opacity:.6; }
.mk-head{ padding:2px 15px 9px; }
.mk-head .app{ font-weight:800; font-size:12.5px; display:flex; align-items:center; gap:6px; }
.mk-head .app b{ color:var(--mk); }
.mk-head .title{ font-size:10px; opacity:.55; margin-top:2px; letter-spacing:.02em; }
.mk-body{ position:relative; flex:1; margin:0 11px; }
.mk-frame{ position:absolute; inset:0; opacity:0; transform:translateY(12px) scale(.97); transition:opacity .5s, transform .5s; pointer-events:none; }
.mk-frame.active{ opacity:1; transform:none; }
.mk-tab{ display:flex; justify-content:space-around; padding:8px 0 11px; border-top:1px solid var(--mk-line); margin:6px 11px 0; font-size:15px; }
.mk-tab i{ opacity:.35; transition:opacity .3s, transform .3s; }
.mk-tab i.on{ opacity:1; transform:translateY(-1px); filter:drop-shadow(0 3px 5px rgba(0,0,0,.4)); }

/* exam frame */
.mk-exam .q{ font-size:9px; color:var(--mk); font-weight:700; letter-spacing:.02em; }
.mk-exam .qt{ font-weight:700; font-size:11.5px; margin:3px 0 9px; }
.mk-exam .opt{ padding:8px 10px; border-radius:10px; background:var(--mk-card); border:1px solid var(--mk-line); margin-bottom:6px; font-size:10px; }
.mk-exam.active .opt.ok{ animation:mkpick 3s ease both; }
@keyframes mkpick{ 0%,38%{ background:var(--mk-card); border-color:var(--mk-line); color:var(--mk-fg);} 52%,100%{ background:color-mix(in srgb,#1FB6A6 24%,var(--mk-card)); border-color:#1FB6A6; color:#7ff0dd;} }
.mk-exam .prog{ height:5px; border-radius:3px; background:var(--mk-line); margin-top:8px; overflow:hidden; }
.mk-exam .prog i{ display:block; height:100%; width:20%; background:linear-gradient(90deg,var(--mk),var(--gold-bright)); }
.mk-exam.active .prog i{ animation:mkfill 3s ease both; }
@keyframes mkfill{ from{width:20%} to{width:73%} }

/* rank frame */
.mk-rank .row{ display:flex; align-items:center; gap:8px; padding:7px 9px; border-radius:10px; background:var(--mk-card); border:1px solid var(--mk-line); margin-bottom:5px; font-size:10px; opacity:0; transform:translateX(-14px); }
.mk-rank .row .n{ width:15px; text-align:center; opacity:.6; font-size:9px; }
.mk-rank .row .nm{ flex:1; }
.mk-rank .row b{ color:var(--mk); }
.mk-rank .row.me{ background:color-mix(in srgb,var(--mk) 20%,var(--mk-card)); border-color:var(--mk); }
.mk-rank.active .row{ animation:mkrow .55s cubic-bezier(.2,.8,.2,1) forwards; }
.mk-rank.active .row:nth-child(1){animation-delay:.05s}
.mk-rank.active .row:nth-child(2){animation-delay:.13s}
.mk-rank.active .row:nth-child(3){animation-delay:.21s}
.mk-rank.active .row:nth-child(4){animation-delay:.29s}
.mk-rank.active .row:nth-child(5){animation-delay:.37s}
@keyframes mkrow{ to{opacity:1; transform:none;} }

/* progress frame */
.mk-prog{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; height:100%; }
.mk-ring{ position:relative; width:104px; height:104px; }
.mk-ring svg{ transform:rotate(-90deg); width:100%; height:100%; }
.mk-ring circle{ fill:none; stroke-width:9; }
.mk-ring .bg{ stroke:var(--mk-line); }
.mk-ring .fg{ stroke:var(--mk); stroke-linecap:round; stroke-dasharray:251; stroke-dashoffset:251; }
.mk-prog.active .mk-ring .fg{ animation:mkring 1.7s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes mkring{ to{ stroke-dashoffset:35; } }
.mk-ring .pct{ position:absolute; inset:0; display:grid; place-items:center; font-weight:800; font-size:19px; }
.mk-prog .stats{ display:flex; gap:18px; }
.mk-prog .stats div{ text-align:center; }
.mk-prog .stats b{ font-size:15px; color:var(--mk); display:block; }
.mk-prog .stats small{ font-size:8.5px; opacity:.6; }

/* performance frame — animated subject bars */
.mk-perf{ display:flex; align-items:flex-end; justify-content:space-between; gap:5px; height:100%; padding:14px 2px 2px; }
.mk-perf .pb{ flex:1; display:flex; flex-direction:column; align-items:center; gap:5px; height:100%; justify-content:flex-end; }
.mk-perf .pb i{ display:block; width:72%; border-radius:5px 5px 2px 2px; height:0;
  background:linear-gradient(180deg, var(--mk), color-mix(in srgb,var(--mk) 35%, transparent)); box-shadow:0 3px 8px rgba(0,0,0,.3); }
.mk-perf.active .pb i{ animation:mkbar 1.2s cubic-bezier(.2,.8,.2,1) forwards; }
.mk-perf.active .pb:nth-child(2) i{ animation-delay:.09s } .mk-perf.active .pb:nth-child(3) i{ animation-delay:.18s }
.mk-perf.active .pb:nth-child(4) i{ animation-delay:.27s } .mk-perf.active .pb:nth-child(5) i{ animation-delay:.36s }
@keyframes mkbar{ from{height:0} to{ height:var(--h); } }
.mk-perf .pb small{ font-size:8px; opacity:.6; white-space:nowrap; }

/* shots phones: slightly smaller mock */
.shots .phone .mock{ font-size:9.5px; }
.shots .phone .mk-status{ padding:8px 12px 2px; }
.shots .phone .mk-head{ padding:1px 12px 6px; }
.shots .phone .mk-ring{ width:78px; height:78px; }
.shots .phone .mk-ring .pct{ font-size:14px; }

/* NOTE: phone mock keeps animating even under reduced-motion (small, contained demo). */

/* ============================================================
   NAV centered · FOUNDERS / CEO section
   ============================================================ */

/* nav links toward the middle */
.nav .wrap { position: relative; }
@media (min-width: 781px) {
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
}

/* founders grid */
.team-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); color: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  border: 1px solid color-mix(in srgb, var(--gold) 16%, var(--hairline));
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.team-card:hover { border-color: color-mix(in srgb, var(--gold) 65%, transparent); box-shadow: 0 32px 64px rgba(0,0,0,.4); }
.team-photo { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; }
.team-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  filter: grayscale(100%) contrast(1.03); transition: filter .55s, transform .7s cubic-bezier(.2,.7,.2,1);
}
.team-card:hover .team-photo img { filter: grayscale(0%); transform: scale(1.06); }
.team-photo::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--surface) 94%, transparent) 96%); }
.team-photo .ring { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--gold-line); transition: box-shadow .4s; }
.team-card:hover .team-photo .ring { box-shadow: inset 0 0 0 3px var(--gold-line); }
.team-info { position: relative; z-index: 3; padding: 0 20px 22px; margin-top: -46px; }
.team-info h3 { font-size: 18.5px; font-weight: 800; letter-spacing: .005em; }
.team-info .role { display: block; margin-top: 4px; font-size: 13px; font-weight: 700;
  color: color-mix(in srgb, var(--gold) 62%, var(--text)); }
.team-info .fb { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 11px;
  background: color-mix(in srgb, #1877F2 16%, transparent); color: #4c9bff;
  border: 1px solid color-mix(in srgb, #1877F2 32%, transparent); transition: .25s; }
.team-info .fb svg { width: 15px; height: 15px; fill: currentColor; }
.team-card:hover .team-info .fb { background: #1877F2; color: #fff; }
@media (prefers-color-scheme: dark) { .team-info .role { color: var(--gold-bright); } }
@media (max-width: 780px) { .team-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
