/* Shared base for Sifat's project showcase sites.
   Each site sets its own --accent / --accent-2 / --accent-ink in theme.css. */
:root {
  --bg: #f6f4ee;
  --bg-2: #eeede5;
  --surface: #ffffff;
  --ink: #1f201c;
  --ink-2: #4c4d46;
  --muted: #74756c;
  --line: #dcdbd0;
  --line-2: #e8e7de;
  --shadow: 0 1px 2px rgb(30 30 20 / .05), 0 12px 32px -12px rgb(30 30 20 / .14);
  --shadow-lg: 0 2px 4px rgb(30 30 20 / .06), 0 30px 60px -24px rgb(30 30 20 / .28);
  --accent: #c34424;
  --accent-2: #e0794f;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'DM Sans', 'Noto Sans Bengali', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 14px;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121311; --bg-2: #181916; --surface: #1d1e1b; --ink: #f1f0ea; --ink-2: #c9c8bf;
    --muted: #8f9086; --line: #2f302b; --line-2: #262723;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 30px 60px -24px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121311; --bg-2: #181916; --surface: #1d1e1b; --ink: #f1f0ea; --ink-2: #c9c8bf;
  --muted: #8f9086; --line: #2f302b; --line-2: #262723;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 30px 60px -24px rgb(0 0 0 / .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.skip { position: fixed; left: 12px; top: 12px; z-index: 99; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { white-space: nowrap;  display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--display); letter-spacing: -.03em; }
.brand svg, .brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
.menu-btn { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px; }
  .menu-btn { display: grid; }
  .nav-end { margin-left: auto; }
  .nav-end .btn { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 500 15px var(--body); border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--accent); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink-2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; }
.hero::before { content: ''; position: absolute; top: -140px; left: 50%; width: 100vw; transform: translateX(-50%); height: 680px; background: radial-gradient(600px 300px at 20% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(520px 280px at 85% 10%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 12.5px var(--body); color: var(--ink-2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); margin: 22px 0 22px; max-width: 14ch; }
.hero h1 .accent { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font: 12.5px var(--mono); color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-shot { margin-top: 56px; }

/* Device frame for screenshots */
.frame { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 10px; font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; }
.phone img { display: block; width: 100%; height: auto; }
.phone { border-radius: 30px; border: 8px solid var(--ink); background: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow::after { content: ''; width: 22px; height: 1px; background: currentColor; }

/* Cards & grids */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card h3 { font-size: 19px; margin: 16px 0 8px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ico svg { width: 21px; height: 21px; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.card li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; }
.card li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.rev > :first-child { order: 2; }
.split h3 { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 14px; }
.split p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checks li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev > :first-child { order: 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 600 clamp(28px, 3.4vw, 38px)/1 var(--display); letter-spacing: -.04em; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }

/* Gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tab { font: 500 14px var(--body); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery-panel[hidden] { display: none; }
.caption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px; background: rgb(10 10 8 / .86); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* Steps / flow */
.flow { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 0; counter-reset: step; }
.flow > div { padding: 24px 22px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.flow > div + div { border-left: 0; }
.flow > div:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.flow > div:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.flow > div::before { counter-increment: step; content: '0' counter(step); font: 500 12px var(--mono); color: var(--accent); }
.flow h4 { font-size: 17px; margin: 12px 0 8px; }
.flow p { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 880px) { .flow { grid-template-columns: 1fr; } .flow > div + div { border-left: 1px solid var(--line); border-top: 0; } .flow > div:first-child { border-radius: var(--radius) var(--radius) 0 0; } .flow > div:last-child { border-radius: 0 0 var(--radius) var(--radius); } }

/* Diagram box */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; overflow-x: auto; }
.diagram svg { display: block; min-width: 680px; width: 100%; height: auto; }
.diagram text { font-family: var(--body); fill: var(--ink); }
.diagram .sub { fill: var(--muted); font-size: 11px; }
.diagram .node { fill: var(--bg-2); stroke: var(--line); }
.diagram .node-accent { fill: var(--accent-soft); stroke: var(--accent); }
.diagram .edge { stroke: var(--muted); stroke-width: 1.4; fill: none; }
.diagram .edge-dash { stroke: var(--muted); stroke-width: 1.4; fill: none; stroke-dasharray: 4 4; }

/* Tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
.chip small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }

/* Roadmap / status */
.timeline { display: grid; gap: 12px; }
.tl { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tl h4 { font-size: 16.5px; margin: 0 0 4px; }
.tl p { margin: 0; font-size: 14px; color: var(--ink-2); }
.tl .phase { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 500 12px var(--body); white-space: nowrap; border: 1px solid var(--line); color: var(--ink-2); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.done { color: #17804f; border-color: color-mix(in srgb, #17804f 35%, var(--line)); }
.badge.done::before { background: #1f9d61; }
.badge.wip { color: #b26a00; border-color: color-mix(in srgb, #d18a00 40%, var(--line)); }
.badge.wip::before { background: #e09a0c; }
.badge.plan::before { background: transparent; border: 1.5px solid var(--muted); }
@media (max-width: 700px) { .tl { grid-template-columns: 1fr; gap: 8px; } }

/* Honest note */
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); font-size: 14.5px; color: var(--ink-2); }
.note svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.note p { margin: 0; }

/* Code */
pre.code { margin: 0; padding: 20px 22px; border-radius: var(--radius); background: #161714; color: #e8e6dd; font: 13px/1.7 var(--mono); overflow-x: auto; border: 1px solid #2a2b27; }
pre.code .c { color: #8d8e84; }
pre.code .k { color: var(--accent-2); }

/* CTA + footer */
.cta { text-align: center; padding: 72px 24px; border-radius: 24px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 220px at 50% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); opacity: .55; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.cta p { color: color-mix(in srgb, var(--bg) 72%, transparent); max-width: 56ch; margin: 0 auto; }
.cta .hero-cta { justify-content: center; }
.cta .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
footer { padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

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