:root {
    --ink: #07150e;
    --ink-light: #2d4538;
    --ink-muted: #5e7a6b;
    --surface: #ffffff;
    --surface-2: #f4f9f6;
    --surface-3: #e8f4ed;
    --accent: #027544;
    --accent-mint: #10b981;
    --accent-glow: rgba(2, 117, 68, 0.12);
    --warn-bg: #fffbeb;
    --border: #d4e7dc;
    --border-strong: #b2d5c1;
    --radius: 16px;
    --radius-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body.lang-bn, .font-bangla {
    font-family: 'Hind Siliguri', 'Bricolage Grotesque', system-ui, sans-serif;
}

body.lang-bn h1,
body.lang-bn h2,
body.lang-bn h3,
body.lang-bn h4,
body.lang-bn .hero h1,
body.lang-bn .section-title,
body.lang-bn .toc-card h2,
.font-bangla h1,
.font-bangla h2,
.font-bangla h3,
.font-bangla h4,
.font-bangla .hero h1,
.font-bangla .section-title,
.font-bangla .toc-card h2,
html[data-lang="bn"] h1,
html[data-lang="bn"] h2,
html[data-lang="bn"] h3,
html[data-lang="bn"] h4,
html[data-lang="bn"] .hero h1,
html[data-lang="bn"] .section-title,
html[data-lang="bn"] .toc-card h2,
h1 .lang-bn,
h2 .lang-bn,
h3 .lang-bn,
h4 .lang-bn {
    font-family: 'Atma', 'Hind Siliguri', 'Bricolage Grotesque', system-ui, sans-serif;
}

body:not(.lang-en) .lang-en,
body:not(.lang-bn) .lang-bn,
body:not(.lang-bl) .lang-bl {
    display: none !important;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 21, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px clamp(12px, 4vw, 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.08rem;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand-img {
    width: 32px;
    height: 32px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    transition: transform 0.2s ease;
    display: block;
}

.nav-brand:hover .nav-brand-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.hero {
    background: linear-gradient(180deg, #07150e 0%, #0d251a 100%);
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 68px) clamp(16px, 5vw, 40px) clamp(36px, 6vw, 60px);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 40%, rgba(2, 117, 68, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.hero-logo-box::before {
    content: '';
    position: absolute;
    inset: -12px -16px;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.35) 0%, rgba(2, 117, 68, 0.15) 50%, transparent 75%);
    border-radius: 30px;
    filter: blur(14px);
    pointer-events: none;
}

.hero-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(16, 185, 129, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.28);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo-card:hover {
    transform: translateY(-3px) scale(1.03);
}

.hero-logo-img {
    width: clamp(92px, 22vw, 116px);
    height: clamp(92px, 22vw, 116px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
    position: relative;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    flex-shrink: 0;
}

.lang-switcher-wrap {
    display: inline-flex;
    background: rgba(2, 117, 68, 0.35);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 100px;
    padding: 3px;
    margin: 18px 0;
    position: relative;
    gap: 3px;
}

.lang-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: #10b981;
    color: #07150e;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.lang-btn:hover:not(.active) {
    color: #ffffff;
}

.hero h1 {
    font-family: 'Bricolage Grotesque', 'Hind Siliguri', system-ui, sans-serif;
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.18;
    position: relative;
    margin-bottom: 12px;
}

.hero h1 span {
    background: linear-gradient(135deg, #3ddc84, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(13px, 3vw, 15.5px);
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(10px, 3vw, 22px);
    position: relative;
    margin-top: 20px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(11px, 2.5vw, 13px);
    color: rgba(255, 255, 255, 0.68);
}

.hero-meta-item i {
    color: #10b981;
}

.page-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 24px) clamp(48px, 8vw, 80px);
}

.toc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 4vw, 28px);
    margin: clamp(20px, 4vw, 34px) 0;
    box-shadow: 0 4px 20px rgba(7, 21, 14, 0.05);
    animation: fadeUp 0.4s ease both;
}

.toc-card h2 {
    font-family: 'Bricolage Grotesque', 'Hind Siliguri', system-ui, sans-serif;
    font-size: clamp(11px, 2.5vw, 12px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 6px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink-light);
    font-size: clamp(12px, 2.8vw, 13.5px);
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    border: 1px solid transparent;
}

.toc-link:hover, .toc-link:focus {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: rgba(2, 117, 68, 0.2);
    outline: none;
}

.toc-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 5vw, 36px) clamp(18px, 5vw, 38px);
    margin-bottom: clamp(14px, 3vw, 20px);
    box-shadow: 0 4px 16px rgba(7, 21, 14, 0.04);
    scroll-margin-top: 74px;
    animation: fadeUp 0.45s ease both;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 3vw, 16px);
    margin-bottom: clamp(16px, 4vw, 22px);
    padding-bottom: clamp(14px, 3vw, 18px);
    border-bottom: 1px solid var(--border);
}

.section-num {
    font-family: 'Bricolage Grotesque', 'Hind Siliguri', system-ui, sans-serif;
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 700;
    color: var(--border-strong);
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.section-title {
    font-family: 'Bricolage Grotesque', 'Hind Siliguri', system-ui, sans-serif;
    font-size: clamp(1.08rem, 3.5vw, 1.42rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.section-subtitle {
    font-size: clamp(11.5px, 2.5vw, 13px);
    color: var(--ink-muted);
    margin-top: 3px;
}

.section-body p {
    color: var(--ink-light);
    margin-bottom: 14px;
    font-size: clamp(13.5px, 3vw, 15px);
}

.section-body p:last-child {
    margin-bottom: 0;
}

.section-body h3 {
    font-size: clamp(11.5px, 2.5vw, 12.5px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    margin: 20px 0 10px;
}

.section-body code {
    background: var(--surface-3);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.9em;
}

.section-body a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.policy-list {
    list-style: none;
    margin: 12px 0;
}

.policy-list li {
    position: relative;
    padding: 9px 0 9px 22px;
    border-bottom: 1px solid var(--surface-3);
    font-size: clamp(13px, 3vw, 14.5px);
    color: var(--ink-light);
    line-height: 1.65;
}

.policy-list li:last-child {
    border-bottom: none;
}

.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.policy-list li strong {
    color: var(--ink);
    font-weight: 600;
}

.data-matrix-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.data-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.data-matrix-table th {
    background: var(--surface-3);
    color: var(--ink);
    font-weight: 700;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
}

.data-matrix-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--surface-3);
    color: var(--ink-light);
    vertical-align: top;
}

.data-matrix-table tr:last-child td {
    border-bottom: none;
}

.callout {
    border-radius: var(--radius-sm);
    padding: clamp(13px, 3vw, 18px) clamp(13px, 3vw, 20px);
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: clamp(13px, 3vw, 14.5px);
}

.callout i {
    flex-shrink: 0;
    font-size: 18px;
    margin-top: 2px;
}

.callout.safe {
    background: rgba(2, 117, 68, 0.08);
    border: 1px solid rgba(2, 117, 68, 0.22);
    color: #025e37;
}

.callout.info {
    background: rgba(16, 185, 129, 0.09);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.callout.warning {
    background: var(--warn-bg);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #92640a;
}

.callout strong {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 13px;
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: 500;
    color: var(--ink-light);
}

.pill.allowed {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #027544;
}

.pill.allowed::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
}

.pill.blocked {
    background: #fff1f1;
    border-color: #fecaca;
    color: #b91c1c;
}

.pill.blocked::before {
    content: '\f00d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
}

.contact-card {
    background: linear-gradient(135deg, #07150e 0%, #0e2a1e 100%);
    border-radius: var(--radius);
    padding: clamp(22px, 5vw, 36px);
    color: #ffffff;
    margin-bottom: clamp(14px, 3vw, 22px);
    animation: fadeUp 0.45s ease both;
    box-shadow: 0 10px 30px rgba(7, 21, 14, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.2);
    scroll-margin-top: 74px;
}

.contact-card .section-title {
    color: #ffffff;
}

.contact-card .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.contact-card .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.contact-card .section-num {
    color: rgba(255, 255, 255, 0.22);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 195px), 1fr));
    gap: clamp(10px, 2.5vw, 14px);
    margin-top: clamp(16px, 4vw, 24px);
}

.contact-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: clamp(12px, 3vw, 15px) clamp(13px, 3vw, 17px);
    transition: background 0.18s, transform 0.18s, border-color 0.18s;
    text-decoration: none;
    display: block;
}

a.contact-item:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.35);
}

.contact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-label i {
    opacity: 0.85;
    flex-shrink: 0;
    font-size: 12px;
    color: #10b981;
}

.contact-value {
    font-size: clamp(12px, 2.8vw, 13.5px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    word-break: break-word;
}

.cv-mint {
    color: #3ddc84;
}

.footer {
    text-align: center;
    padding: clamp(24px, 4vw, 36px) 20px;
    font-size: clamp(11.5px, 2.5vw, 13px);
    color: var(--ink-muted);
    border-top: 1px solid var(--border);
    max-width: 880px;
    margin: 0 auto;
}

.footer strong {
    color: var(--ink-light);
}

.footer-nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
}

.footer-nav-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-nav-links a:hover {
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #027544;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(2, 117, 68, 0.4);
    cursor: pointer;
    border: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: #025e37;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .toc-link { padding: 10px 12px; }
    .contact-item { padding: 12px 14px; }
    .site-nav { padding: 8px 12px; gap: 6px; }
    .nav-brand { font-size: 0.94rem; gap: 6px; }
    .nav-brand-img { width: 26px; height: 26px; border-radius: 6px; }
    .nav-links { gap: 4px; }
    .nav-link { font-size: 11.5px; padding: 5px 8px; }
    .hero-logo-box { margin-bottom: 16px; }
    .hero-logo-img { width: clamp(80px, 22vw, 98px); height: clamp(80px, 22vw, 98px); border-radius: 20px; }
}

@media (max-width: 360px) {
    .site-nav { padding: 7px 8px; }
    .nav-brand { font-size: 0.86rem; gap: 5px; }
    .nav-brand-img { width: 22px; height: 22px; border-radius: 5px; }
    .nav-link { font-size: 10.5px; padding: 4px 6px; }
}


.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.nav-lang button { border: 0; background: transparent; color: rgba(255, 255, 255, 0.75); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; min-height: 32px; border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s; }
.nav-lang button:hover { color: #fff; }
.nav-lang button.active { background: #fff; color: #0a3326; }
.nav-lang button:focus-visible, .nav-link:focus-visible, .nav-brand:focus-visible { outline: 3px solid #f4b13e; outline-offset: 2px; }
.site-nav { justify-content: flex-start; gap: 14px; }
.site-nav .nav-links { margin-left: 8px; }

.legal-content code, .content code, main code { overflow-wrap: anywhere; }
main, section, .data-matrix-wrap { max-width: 100%; }
@media (max-width: 640px) {
    .site-nav { flex-wrap: wrap; row-gap: 6px; padding-top: 8px; padding-bottom: 8px; }
    .site-nav .nav-links { order: 3; width: 100%; margin: 0; justify-content: flex-start; }
    .nav-tools { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
