/* Bongo · Modern Apple-aesthetic Stylesheet */
:root {
    --bg-page: #fbfbfd;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-subtle: #f5f5f7;
    --bg-card: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-secondary: #7c3aed;
    --accent-soft: rgba(79, 70, 229, 0.10);
    --accent-glow: rgba(79, 70, 229, 0.22);
    
    --hud-bg: rgba(22, 22, 26, 0.94);
    --hud-text: #f5f5f7;
    --hud-pill: #4f46e5;
    --hud-badge: rgba(255, 255, 255, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --font-bn: 'Noto Sans Bengali', sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
    --bg-page: #000000;
    --bg-surface: #121214;
    --bg-surface-elevated: #1c1c1e;
    --bg-subtle: #18181a;
    --bg-card: rgba(28, 28, 30, 0.7);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.22);
    
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-secondary: #a855f7;
    --accent-soft: rgba(99, 102, 241, 0.18);
    --accent-glow: rgba(99, 102, 241, 0.35);
    
    --hud-pill: #6366f1;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-page: #000000;
        --bg-surface: #121214;
        --bg-surface-elevated: #1c1c1e;
        --bg-subtle: #18181a;
        --bg-card: rgba(28, 28, 30, 0.7);
        --border-color: rgba(255, 255, 255, 0.12);
        --border-hover: rgba(255, 255, 255, 0.22);
        
        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --text-tertiary: #6e6e73;
        
        --accent: #6366f1;
        --accent-hover: #818cf8;
        --accent-secondary: #a855f7;
        --accent-soft: rgba(99, 102, 241, 0.18);
        --accent-glow: rgba(99, 102, 241, 0.35);
        
        --hud-pill: #6366f1;
        
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--accent-hover);
}

kbd {
    display: inline-block;
    padding: 3px 7px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    object-fit: contain;
}

.brand-bn {
    font-family: var(--font-bn);
    font-weight: 600;
    color: var(--accent);
}

.badge-silicon {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-full);
    border: 1px solid var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-github:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:active,
.btn-hero-primary:active,
.btn-hero-secondary:active,
.btn-github:active,
.gallery-tab-btn:active,
.sample-pill:active,
.cat-btn:active,
.banner-cta:active,
.theme-toggle:active,
.mobile-menu-toggle:active,
.lang-toggle:active,
.btn-lang-mobile:active {
    transform: scale(0.97);
}

/* Language Toggle Button (Apple Segmented Capsule) */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0 0.8rem;
    height: 36px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    line-height: normal;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.lang-toggle:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--border-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-toggle .lang-icon {
    color: var(--accent);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.lang-toggle:hover .lang-icon {
    transform: rotate(20deg);
}

.lang-toggle .lang-text {
    font-family: var(--font-bn);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: normal;
    transition: color 0.2s ease;
}

html[lang="bn"] .lang-toggle .lang-text {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    font-weight: 700;
}

/* Mobile Menu Language Button */
.btn-lang-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-lang-mobile:hover {
    background: var(--border-color);
}

.btn-lang-mobile svg {
    color: var(--accent);
    flex-shrink: 0;
}

.theme-toggle {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.theme-toggle:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--border-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.theme-icon-sun {
    display: none;
}
.theme-icon-moon {
    display: block;
}

[data-theme="dark"] .theme-icon-sun {
    display: block;
}
[data-theme="dark"] .theme-icon-moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon-sun {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-icon-moon {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding: 8.5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 5px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    margin-bottom: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.tag-pill {
    background: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-hero-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 20px var(--accent-glow);
    transition: all 0.25s ease;
    font-size: 1.08rem;
    font-weight: 700;
    position: relative;
}

.btn-hero-primary svg {
    margin-bottom: 2px;
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 3px;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.hero-metrics {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 1.2rem 2.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* Sections Common */
section {
    padding: 5rem 1.5rem;
}

.section-container {
    max-width: 1120px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Interactive Playground */
.playground-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.demo-window {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.2rem;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-color);
}

.window-buttons {
    display: flex;
    gap: 7px;
}

.btn-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.btn-circle.red { background: #ff5f56; }
.btn-circle.yellow { background: #ffbd2e; }
.btn-circle.green { background: #27c93f; }

.window-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.window-mode-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.demo-body {
    padding: 1.8rem;
}

.quick-pills {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.pill-label {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.sample-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    font-size: 0.82rem;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sample-pill:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.editor-area {
    position: relative;
}

.demo-input {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.15rem;
    font-family: var(--font-mono);
    background: var(--bg-subtle);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.demo-input:focus {
    border-color: var(--accent);
}

/* Simulated HUD Candidate Panel */
.hud-simulator {
    margin-top: 1rem;
    max-width: 300px;
    background: var(--hud-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 11px;
    padding: 8px 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    color: var(--hud-text);
}

.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 6px;
}

.hud-query {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.hud-lang {
    font-family: var(--font-bn);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.hud-candidates {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hud-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 1.05rem;
    font-family: var(--font-bn);
    transition: background 0.15s ease;
    cursor: pointer;
}

.hud-row.selected {
    background: var(--hud-pill);
    color: #ffffff;
    font-weight: 600;
}

.hud-row:not(.selected):hover {
    background: rgba(255, 255, 255, 0.08);
}

.hud-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 4px;
    background: var(--hud-badge);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
}

.output-preview {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}

.preview-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.preview-text {
    font-family: var(--font-bn);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

/* Screenshots Showcase */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.gallery-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.gallery-tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.gallery-tab-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.gallery-display {
    max-width: 960px;
    margin: 0 auto;
}

.gallery-item {
    display: none;
    animation: fadeIn 0.35s ease;
}

.gallery-item.active {
    display: block;
}

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

.mac-window-frame {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mac-window-frame.hud-frame {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.window-decorations {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.2rem;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.window-decorations .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 7px;
}
.window-decorations .dot.red { background: #ff5f56; }
.window-decorations .dot.yellow { background: #ffbd2e; }
.window-decorations .dot.green { background: #27c93f; }

.window-decorations .title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.showcase-img {
    width: 100%;
    display: block;
    height: auto;
}

.hud-img {
    max-width: 340px;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.gallery-caption {
    margin-top: 1.5rem;
    text-align: center;
}

.gallery-caption h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.gallery-caption p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    max-width: 620px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.8rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-2px) scale(1.05);
    background: var(--accent);
    color: #ffffff;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Installation */
.install-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
    margin-bottom: 4rem;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.step-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding-top: 1.1rem;
    margin-top: auto;
    border-top: 1px dashed var(--border-color);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-badge svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.step-badge.accent {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.step-badge.accent svg {
    color: var(--accent);
}

.step-flow-arrow {
    display: flex;
    align-items: center;
    color: var(--text-tertiary);
}

.download-banner {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.8rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 16px 36px var(--accent-glow);
    flex-wrap: wrap;
}

.banner-content h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1.05rem;
    opacity: 0.9;
}

.banner-cta {
    background: #ffffff;
    color: var(--accent);
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.banner-cta:hover {
    background: #f0f0f5;
    color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Cheatsheet Table */
.cheatsheet-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.search-bar-wrapper {
    margin-bottom: 1.2rem;
}

.cheatsheet-search {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.cheatsheet-search:focus {
    border-color: var(--accent);
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.cat-btn {
    padding: 0.45rem 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.cat-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
}

.cheatsheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cheatsheet-table th,
.cheatsheet-table td {
    padding: 0.85rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cheatsheet-table th {
    font-weight: 600;
    color: var(--text-tertiary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-subtle);
}

.bn-cell {
    font-family: var(--font-bn);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

.key-cell kbd {
    font-size: 0.92rem;
}

/* FAQ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: var(--accent);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker,
.faq-question::marker {
    display: none;
    content: "";
}

.faq-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-arrow svg {
    display: block;
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    padding: 0 1.5rem 1.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    padding: 4.5rem 1.5rem 2.5rem;
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.6;
    max-width: 380px;
}

.footer-author {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.footer-author a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-author a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.footer-badges {
    display: flex;
    gap: 0.6rem;
}

.badge-pill {
    padding: 3px 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========================================================
   Mobile Responsiveness & Adaptive Layouts
   ======================================================== */

.nav-cta-text-short,
.banner-cta-short,
.tag-text-mobile,
.nav-mobile-actions {
    display: none;
}

.tag-text-desktop {
    display: inline;
}

.mobile-menu-toggle {
    display: none;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-full);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mobile-menu-toggle:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-menu-toggle .bar {
    width: 18px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    transform-origin: center;
}

.navbar.nav-open .mobile-menu-toggle .bar-1 {
    transform: translateY(6px) rotate(45deg);
}

.navbar.nav-open .mobile-menu-toggle .bar-2 {
    opacity: 0;
}

.navbar.nav-open .mobile-menu-toggle .bar-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Tablets and below (<= 900px) */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1.25rem 1.25rem;
        max-height: calc(100vh - 4.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
    }

    .navbar.nav-open .nav-links {
        display: flex;
        animation: navSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes navSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        padding: 0.85rem 0.5rem;
        font-size: 1.02rem;
        font-weight: 600;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-primary);
    }

    .nav-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 0.85rem;
        padding-top: 0.85rem;
        border-top: 1px solid var(--border-color);
    }

    .mobile-menu-cta {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: var(--radius-sm);
    }

    .mobile-menu-github {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.92rem;
        font-weight: 500;
        border-radius: var(--radius-sm);
    }

    .hero {
        padding-top: 7rem;
    }

    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

/* Medium Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
    section {
        padding: 4rem 1.25rem;
    }

    .section-header {
        margin-bottom: 2.8rem;
    }

    .nav-actions {
        gap: 0.45rem;
    }

    .nav-actions .btn-github {
        display: none;
    }

    .nav-actions .theme-toggle {
        display: inline-flex;
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .nav-cta-text-full {
        display: none;
    }

    .nav-cta-text-short {
        display: inline;
    }

    .btn-primary.nav-cta {
        padding: 0.4rem 0.8rem;
        font-size: 0.82rem;
        height: 34px;
        gap: 0.35rem;
    }

    .lang-toggle {
        height: 34px;
        padding: 0 0.65rem;
        font-size: 0.82rem;
        gap: 0.35rem;
    }

    .gallery-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 4px 4px 10px;
        gap: 0.5rem;
        scrollbar-width: none;
    }

    .gallery-tabs::-webkit-scrollbar {
        display: none;
    }

    .gallery-tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.55rem 1.1rem;
        font-size: 0.88rem;
    }

    .category-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 2px 2px 8px;
        gap: 0.45rem;
        scrollbar-width: none;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .cat-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.45rem 0.9rem;
        font-size: 0.82rem;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cheatsheet-table {
        min-width: 480px;
    }

    .download-banner {
        flex-direction: column;
        text-align: center;
        padding: 2.2rem 1.8rem;
        gap: 1.5rem;
    }

    .banner-cta {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* Standard Mobile Devices (<= 640px) */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 4.2rem;
    }

    .nav-container {
        padding: 0.65rem 0.85rem;
    }

    .nav-brand {
        font-size: 1rem;
        gap: 0.45rem;
    }

    .brand-icon {
        width: 26px;
        height: 26px;
    }

    .nav-actions {
        gap: 0.35rem;
    }

    .nav-actions .btn-primary.nav-cta {
        display: none;
    }

    .lang-toggle {
        height: 32px;
        padding: 0 0.58rem;
        font-size: 0.8rem;
        gap: 0.32rem;
        flex-shrink: 0;
    }

    .lang-toggle .lang-text {
        font-size: 0.82rem;
    }

    .theme-toggle {
        display: inline-flex;
        width: 32px;
        height: 32px;
        padding: 0;
        flex-shrink: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        width: 32px;
        height: 32px;
        padding: 0;
        flex-shrink: 0;
    }

    .hero {
        padding: 5.4rem 1rem 2.8rem;
    }

    .hero-tag {
        padding: 4px 10px;
        margin-bottom: 1.4rem;
        gap: 0.4rem;
    }

    .tag-pill {
        font-size: 0.68rem;
        padding: 2px 6px;
    }

    .tag-text {
        font-size: 0.76rem;
    }

    .tag-text-desktop {
        display: none;
    }

    .tag-text-mobile {
        display: inline;
    }

    .hero-title br {
        display: none;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7.2vw, 2.5rem);
        line-height: 1.18;
        margin-bottom: 1.1rem;
    }

    .section-title {
        font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 2rem;
        padding: 0 0.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 2.5rem;
        gap: 0.8rem;
    }

    .btn-hero-primary {
        width: 100%;
        padding: 0.85rem 1.4rem;
        font-size: 1rem;
    }

    .btn-hero-secondary {
        width: 100%;
        padding: 0.85rem 1.4rem;
        font-size: 0.98rem;
        justify-content: center;
    }

    .hero-metrics {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem 1rem;
        padding: 1.2rem 1rem;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .metric-divider {
        display: none;
    }

    .metric-val {
        font-size: 1.2rem;
    }

    .metric-label {
        font-size: 0.72rem;
    }

    /* Demo Playground on Mobile */
    .demo-window {
        border-radius: var(--radius-md);
    }

    .window-header .window-title {
        display: none;
    }

    .demo-body {
        padding: 1.1rem 0.9rem;
    }

    .quick-pills {
        gap: 0.35rem;
        margin-bottom: 0.9rem;
    }

    .pill-label {
        width: 100%;
        margin-bottom: 2px;
        font-size: 0.76rem;
    }

    .sample-pill {
        padding: 4px 8px;
        font-size: 0.76rem;
    }

    .demo-input {
        font-size: 1rem;
        padding: 0.8rem 0.9rem;
    }

    .hud-simulator {
        max-width: 100%;
        width: 100%;
    }

    .output-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.85rem 1rem;
        margin-top: 1.1rem;
    }

    .preview-label {
        font-size: 0.78rem;
    }

    .preview-text {
        font-size: 1.25rem;
        word-break: break-word;
        line-height: 1.35;
    }

    /* Window decorations title hide on narrow screen */
    .window-decorations .title {
        display: none;
    }

    .hud-img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .gallery-caption {
        padding: 0 0.5rem;
    }

    .gallery-caption h3 {
        font-size: 1.15rem;
    }

    .gallery-caption p {
        font-size: 0.88rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .feature-card {
        padding: 1.4rem 1.2rem;
        border-radius: var(--radius-md);
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 0.9rem;
    }

    .feature-title {
        font-size: 1.15rem;
    }

    .feature-desc {
        font-size: 0.9rem;
    }

    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .step-card {
        padding: 1.4rem 1.2rem;
        border-radius: var(--radius-md);
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .step-title {
        font-size: 1.15rem;
    }

    .step-desc {
        font-size: 0.9rem;
        margin-bottom: 1.1rem;
    }

    .step-flow {
        flex-wrap: wrap;
        gap: 0.45rem;
        justify-content: center;
        padding-top: 0.85rem;
    }

    .step-badge {
        font-size: 0.76rem;
        padding: 0.35rem 0.65rem;
    }

    .banner-cta-full {
        display: none;
    }

    .banner-cta-short {
        display: inline;
    }

    /* Cheatsheet */
    .cheatsheet-box {
        padding: 1.1rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .cheatsheet-search {
        padding: 0.75rem 0.95rem;
        font-size: 1rem;
    }

    .cheatsheet-table th,
    .cheatsheet-table td {
        padding: 0.6rem 0.65rem;
        font-size: 0.85rem;
    }

    .bn-cell {
        font-size: 1.15rem;
    }

    .key-cell kbd {
        font-size: 0.78rem;
        padding: 2px 5px;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem 1.15rem;
        font-size: 0.96rem;
        line-height: 1.4;
    }

    .faq-answer {
        padding: 0 1.15rem 1.15rem;
        font-size: 0.88rem;
    }

    /* Footer */
    .footer {
        padding: 3.5rem 1rem 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

    .footer-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Compact Phones (<= 480px) */
@media (max-width: 480px) {
    .badge-silicon {
        display: none;
    }

    .nav-actions .nav-cta {
        display: none;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .hero {
        padding: 5rem 0.85rem 2.2rem;
    }

    .hero-tag {
        padding: 4px 8px;
        gap: 0.35rem;
    }

    .tag-pill {
        font-size: 0.65rem;
        padding: 2px 5px;
    }

    .tag-text {
        font-size: 0.72rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6.8vw, 2.1rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.8rem;
    }

    .download-banner {
        padding: 1.8rem 1.2rem;
    }

    .banner-content h3 {
        font-size: 1.35rem;
    }

    .banner-content p {
        font-size: 0.92rem;
    }

    .demo-body {
        padding: 1rem 0.75rem;
    }

    .quick-pills {
        gap: 0.3rem;
    }

    .sample-pill {
        font-size: 0.74rem;
        padding: 3px 8px;
    }
}

/* Extra Compact Phones (<= 380px) */
@media (max-width: 380px) {
    .nav-container {
        padding: 0.52rem 0.65rem;
    }

    .nav-brand .brand-bn {
        display: none;
    }

    .nav-actions {
        gap: 0.28rem;
    }

    .lang-toggle {
        padding: 0 0.48rem;
        height: 30px;
        font-size: 0.76rem;
        flex-shrink: 0;
    }

    .lang-toggle .lang-text {
        font-size: 0.76rem;
    }

    .theme-toggle,
    .mobile-menu-toggle {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .hero-tag {
        max-width: 100%;
        font-size: 0.68rem;
        padding: 3px 6px;
        gap: 0.25rem;
    }

    .tag-pill {
        font-size: 0.62rem;
        padding: 2px 4px;
    }

    .tag-text {
        font-size: 0.68rem;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .btn-hero-primary {
        padding: 0.8rem 1.1rem;
        font-size: 0.95rem;
    }

    .hero-metrics {
        max-width: 100%;
        gap: 0.7rem 0.4rem;
        padding: 0.8rem 0.4rem;
    }

    .metric-val {
        font-size: 1.05rem;
    }

    .metric-label {
        font-size: 0.66rem;
    }

    .demo-body {
        padding: 0.9rem 0.6rem;
    }

    .cheatsheet-box {
        padding: 0.9rem 0.6rem;
    }
}

/* ========================================================
   Bengali Typography & Language Mode Tweaks (html[lang="bn"])
   ======================================================== */
html[lang="bn"] body {
    font-family: var(--font-bn), var(--font-sans);
}

html[lang="bn"] .hero-title {
    line-height: 1.24;
    letter-spacing: normal;
}

html[lang="bn"] .hero-subtitle {
    line-height: 1.72;
}

html[lang="bn"] .section-title {
    line-height: 1.28;
    letter-spacing: normal;
}

html[lang="bn"] .section-desc {
    line-height: 1.68;
}

html[lang="bn"] .feature-title,
html[lang="bn"] .step-title,
html[lang="bn"] .faq-question {
    line-height: 1.42;
    letter-spacing: normal;
}

html[lang="bn"] .feature-desc,
html[lang="bn"] .step-desc,
html[lang="bn"] .faq-answer p {
    line-height: 1.72;
}

html[lang="bn"] .sample-pill {
    font-family: var(--font-bn), var(--font-sans);
    line-height: 1.4;
}

html[lang="bn"] .brand-name {
    font-family: var(--font-bn), var(--font-sans);
}

html[lang="bn"] .cat-btn {
    font-family: var(--font-bn), var(--font-sans);
}
