/* Somabyte — site styles. No framework, no web fonts: system faces load instantly. */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #eeeee9;
  --ink: #0d1321;
  --ink-2: #3b4254;
  --muted: #6b7183;
  --line: #dcdcd4;
  --accent: #4338ca;
  --accent-ink: #ffffff;
  --accent-soft: #e6e5fb;
  --bit: #f59e0b;
  --hero-bg: #0d1321;
  --hero-ink: #f4f4f0;
  --hero-muted: #a3a9ba;
  --shadow: 0 1px 2px rgba(13,19,33,.06), 0 8px 24px rgba(13,19,33,.08);
  --radius: 14px;
  --wrap: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Nirmala UI", "Noto Sans Bengali", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f1a; --surface: #121828; --surface-2: #182033; --ink: #eceef4; --ink-2: #c3c8d6;
    --muted: #8d94a8; --line: #252e44; --accent: #8b87ff; --accent-ink: #0b0f1a; --accent-soft: #1f2146;
    --hero-bg: #070a12; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f1a; --surface: #121828; --surface-2: #182033; --ink: #eceef4; --ink-2: #c3c8d6;
  --muted: #8d94a8; --line: #252e44; --accent: #8b87ff; --accent-ink: #0b0f1a; --accent-soft: #1f2146;
  --hero-bg: #070a12; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
html[lang="bn"] body { font-size: 18px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 12px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--hero-bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hero-ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.brand svg { width: 36px; height: 16px; flex: none; }
.brand b { color: var(--bit); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--hero-muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { color: var(--hero-ink); background: rgba(255,255,255,.06); }
.head-tools { display: flex; gap: 8px; align-items: center; }
.lang { background: transparent; color: var(--hero-ink); border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
  padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; min-height: 36px; }
.lang:hover { border-color: rgba(255,255,255,.45); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 10px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--bit); color: #111; }
.btn-primary:hover { background: #fbbf24; }
.btn-ghost { color: var(--hero-ink); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,.55); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 72px 0 96px; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hero-muted); margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 2px; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 750; }
html[lang="bn"] .hero h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; }
html[lang="bn"] .proof strong { font-size: 26px; }
.hero h1 em { font-style: normal; color: var(--bit); }
.hero .lede { font-size: 19px; color: var(--hero-muted); max-width: 34em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--hero-muted); }

.showcase { position: relative; height: 430px; }
.frame { position: absolute; background: #1b2233; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); }
.frame .bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #222a3d; }
.frame .bar i { width: 8px; height: 8px; border-radius: 50%; background: #3b4560; }
.frame .bar span { margin-left: 8px; font-size: 11px; color: #8b93a8; }
.frame img { width: 100%; }
.f1 { width: 78%; top: 0; right: 0; transform: rotate(1.5deg); }
.f2 { width: 70%; bottom: 0; left: 0; transform: rotate(-2deg); }
.phone { position: absolute; width: 150px; right: 4%; bottom: -18px; border-radius: 24px; overflow: hidden; border: 6px solid #1b2233;
  box-shadow: 0 30px 60px rgba(0,0,0,.5); transform: rotate(4deg); }

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 96px 0; }
.section-head { max-width: 44em; margin-bottom: 44px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
html[lang="bn"] .kicker { letter-spacing: 0; font-size: 15px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { color: var(--ink-2); font-size: 18px; }

.proof { background: var(--surface); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .wrap > div { padding: 28px 20px; border-left: 1px solid var(--line); }
.proof .wrap > div:first-child { border-left: 0; padding-left: 0; }
.proof strong { display: block; font-size: 30px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 4px; }
.proof span { color: var(--muted); font-size: 15px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }

.work { background: var(--surface-2); }
.projects { display: grid; gap: 26px; }
.project { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.project:nth-child(even) .project-media { order: 2; }
.project-media { background: #0d1321; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-media.phones { gap: 18px; padding: 28px; background: #10363a; }
.project-media.phones img { width: 42%; height: auto; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.4); object-fit: contain; }
.project-body { padding: 36px; display: flex; flex-direction: column; }
.tag { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.project h3 { font-size: 26px; }
.project p { color: var(--ink-2); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; padding: 0; list-style: none; }
.chips li { font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; }
.visit { margin-top: auto; font-weight: 600; text-decoration: none; }
.visit:hover { text-decoration: underline; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.step h3 { font-size: 19px; }
.step p { color: var(--ink-2); font-size: 16px; margin: 0; }

.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why .card { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.why .icon { margin: 0; }

.contact { background: var(--hero-bg); color: var(--hero-ink); }
.contact .section-head p { color: var(--hero-muted); }
.contact .kicker { color: var(--bit); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.form { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 30px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-primary { justify-self: start; }
.form-msg { font-size: 15px; margin: 0; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: #b91c1c; }
.direct { display: grid; gap: 14px; align-content: start; }
.direct a.line { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: var(--hero-ink); text-decoration: none; }
.direct a.line:hover { border-color: rgba(255,255,255,.35); }
.direct small { display: block; color: var(--hero-muted); font-size: 13px; }
.direct .icon { background: rgba(255,255,255,.08); color: var(--bit); margin: 0; flex: none; }
.direct p { color: var(--hero-muted); font-size: 15px; }

.site-foot { background: var(--hero-bg); color: var(--hero-muted); border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; padding-bottom: 26px; }
.site-foot a { color: var(--hero-muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .showcase { height: 360px; max-width: 560px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .project, .contact-grid { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .proof .wrap { grid-template-columns: repeat(2, 1fr); }
  .proof .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof .wrap > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--hero-bg); padding: 10px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 17px; }
  .menu-btn { display: inline-flex; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.2); color: var(--hero-ink); border-radius: 8px; width: 40px; height: 36px; align-items: center; justify-content: center; cursor: pointer; }
  .head-tools .btn { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 72px; }
  .showcase { height: 250px; }
  .phone { width: 96px; border-width: 4px; border-radius: 16px; }
  .section { padding: 68px 0; }
  .services, .why, .steps, .form .row { grid-template-columns: 1fr; }
  .project-body { padding: 24px; }
  .project-media { min-height: 200px; }
  .form { padding: 22px; }
  .proof strong { font-size: 24px; }
  .proof .wrap > div { padding: 20px 12px; }
  .proof .wrap > div:nth-child(odd) { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* form off until its handler is live (Cloudflare Pages, 2026-10-01) */
.form[hidden] { display: none !important; }
.contact-grid:has(.form[hidden]) { grid-template-columns: 1fr; max-width: 640px; }
