/* SRD Tube website. Neutral surfaces, one accent (#1E6BFF). No build step. */

@font-face {
  font-family: "Noto Sans Bengali";
  src: url("../fonts/NotoSansBengali-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC;
}

:root {
  --accent: #1E6BFF;
  --accent-hover: #1A5FE6;
  --accent-press: #1552CC;
  --accent-text: #1E6BFF;
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --surface-2: #EBEBEF;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --line: rgba(0, 0, 0, 0.09);
  --header-bg: rgba(255, 255, 255, 0.82);
  --radius: 22px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Bengali", "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-text: #5C95FF;
    --bg: #0B0B0C;
    --surface: #161618;
    --surface-2: #222225;
    --text: #F5F5F7;
    --muted: #A1A1A6;
    --line: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(11, 11, 12, 0.78);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }

/* Language: both languages live in the markup; the root lang picks one. */
html:not([lang="bn"]) [lang="bn"] { display: none !important; }
html[lang="bn"] [lang="en"] { display: none !important; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { letter-spacing: 0; line-height: 1.3; }
html[lang="bn"] body { line-height: 1.65; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: none; margin-left: 28px; gap: 26px; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (min-width: 880px) { .nav { display: flex; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line);
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 7px 11px; border-radius: 999px; cursor: pointer; min-width: 40px;
}
.lang button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) { .lang button[aria-pressed="true"] { background: var(--surface-2); box-shadow: none; } }
.lang .bn-label { font-family: "Noto Sans Bengali", var(--font); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { color: var(--accent-text); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.header .btn-sm { display: none; }
@media (min-width: 560px) { .header .btn-sm { display: inline-flex; } }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.hero-copy { text-align: center; }
@media (min-width: 960px) { .hero-copy { text-align: left; } }
.app-id { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.app-id img { width: 56px; height: 56px; border-radius: 13px; }
.app-id strong { display: block; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; text-align: left; }
.app-id span { display: block; font-size: 13px; color: var(--muted); text-align: left; }
.hero h1 { font-size: clamp(40px, 7.4vw, 68px); letter-spacing: -0.035em; line-height: 1.04; }
html[lang="bn"] .hero h1 { font-size: clamp(34px, 6.2vw, 56px); line-height: 1.25; }
.hero .lead { margin: 22px auto 0; max-width: 34ch; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); line-height: 1.45; }
@media (min-width: 960px) { .hero .lead { margin-left: 0; } }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
@media (min-width: 960px) { .cta-row { justify-content: flex-start; } }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.meta .dot { margin: 0 8px; opacity: .6; }
.meta [data-version] { color: var(--text); font-weight: 600; }
.meta [data-size]::before { content: "·"; margin: 0 8px; opacity: .6; }

.trust { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
@media (min-width: 960px) { .trust { justify-content: flex-start; } }
@media (max-width: 559px) { .trust { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 12px 28px; } }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--accent-text); }

/* Phone */
.phone {
  position: relative; width: 100%; max-width: 320px; margin: 0 auto;
  border-radius: 46px; padding: 11px; background: #1C1C1E;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 60px -20px rgba(0,0,0,.28);
}
@media (prefers-color-scheme: dark) { .phone { background: #2A2A2D; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.7); } }
.phone .screen { position: relative; aspect-ratio: 9 / 20; border-radius: 36px; overflow: hidden; background: #0E0F12; }
.phone .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* Sections */
.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section.alt { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 12px; letter-spacing: 0; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -0.03em; }
html[lang="bn"] .section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 19px; }

/* Features */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: var(--surface); border-radius: var(--radius); padding: 30px 28px 32px; }
.section.alt .feature-card { background: var(--bg); }
.feature-card svg { width: 30px; height: 30px; color: var(--accent-text); margin-bottom: 22px; }
.feature-card h3 { font-size: 20px; letter-spacing: -0.015em; }
.feature-card p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Screenshots */
.shots {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 24px;
  margin: 0 -20px; list-style: none; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .shots { margin: 0 -32px; padding: 4px 32px 24px; } }
@media (min-width: 1100px) { .shots { justify-content: center; overflow: visible; } }
.shots li { flex: 0 0 220px; scroll-snap-align: center; text-align: center; }
@media (min-width: 1100px) { .shots { gap: 36px; } .shots li { flex-basis: 236px; } }
.shots .phone { max-width: none; border-radius: 34px; padding: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 40px -18px rgba(0,0,0,.25); }
.shots .phone .screen { border-radius: 27px; background: var(--surface-2); }
.section.alt .shots .phone .screen { background: var(--bg); }
.placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 16px; }
.placeholder svg { width: 28px; height: 28px; opacity: .7; }
.shots figcaption { margin-top: 16px; font-size: 15px; font-weight: 600; }

/* Install steps */
.steps { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 28px; }
.section.alt .steps li { background: var(--bg); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--accent-text); color: var(--accent-text); font-weight: 650; font-size: 15px; margin-bottom: 20px;
}
html[lang="bn"] .steps li::before { content: counter(step, bengali); }
.steps h3 { font-size: 19px; letter-spacing: -0.01em; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.steps code, .faq code, .doc code { font: inherit; font-weight: 600; color: var(--text); }
.note { margin: 28px auto 0; max-width: 760px; display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; justify-content: center; text-align: left; }
.note svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); margin-top: 1px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 2px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  color: var(--muted); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2px 26px; color: var(--muted); font-size: 16.5px; max-width: 66ch; }
.faq .answer p + p { margin-top: 10px; }

/* Final CTA */
.final { text-align: center; }
.final img { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto 28px; }
.final h2 { font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -0.03em; }
.final p { margin-top: 14px; color: var(--muted); font-size: 19px; }
.final .cta-row { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer .brand { font-size: 15px; }
.footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.footer .copy { width: 100%; }
@media (min-width: 768px) { .footer .copy { width: auto; } }

/* Privacy / document pages */
.doc { padding: 56px 0 96px; }
@media (min-width: 960px) { .doc { padding: 88px 0 120px; } }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5.6vw, 52px); letter-spacing: -0.032em; }
.doc .updated { margin-top: 14px; color: var(--muted); font-size: 15px; }
.doc .summary { margin: 40px 0 8px; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .doc .summary { grid-template-columns: repeat(4, 1fr); } }
.doc .summary li { background: var(--surface); border-radius: 18px; padding: 18px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.doc .summary svg { width: 22px; height: 22px; color: var(--accent-text); margin-bottom: 12px; }
.doc h2 { font-size: 24px; letter-spacing: -0.018em; margin-top: 52px; }
.doc p, .doc li { color: var(--muted); font-size: 17px; }
.doc .body p, .doc .body ul { margin-top: 14px; }
.doc .body ul { padding-left: 22px; }
.doc .body li + li { margin-top: 8px; }
.doc .body strong { color: var(--text); font-weight: 600; }
.doc .lede { margin-top: 28px; font-size: 19px; color: var(--text); }
.placeholder-text { background: rgba(255, 196, 0, .22); color: var(--text); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; margin-bottom: 28px; }
.back svg { width: 16px; height: 16px; }

/* 404 */
.notfound { text-align: center; }
.notfound img { margin: 0 auto 28px; border-radius: 16px; }
.notfound-cta { margin-top: 32px; }
