@view-transition {
    navigation: auto;
}

:root {
    --primary: #01757A;
    --primary-hover: #006B70;
    --primary-light: #E0F2F1;
    --bg-canvas: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    --border-radius: 4px;
    --font-sans: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"],
body.layout-dark-mode {
    --primary: #2BA5AB;
    --primary-hover: #4CBFC5;
    --primary-light: rgba(43, 165, 171, 0.14);
    --bg-canvas: #0F172A;
    --bg-card: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-hover);
}

/* Header & Navigation */
.site-header {
    background-color: color-mix(in srgb, var(--bg-card) 92%, transparent);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: var(--text-muted);
    font-weight: 500;
}

.site-nav a:hover,
.site-nav .active {
    color: var(--primary);
}

/* Dropdown submenu (e.g. "Sản phẩm" grouping SO/PO/KHO) */
.has-submenu {
    position: relative;
}
.has-submenu > .nav-parent::after {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.4em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.site-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 50;
}
.site-nav .has-submenu:hover > .submenu,
.site-nav .has-submenu.open > .submenu {
    display: block;
}
.site-nav .submenu li {
    display: block;
}
.submenu a {
    display: block;
    padding: 0.6rem 1.25rem;
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: 500;
}
.submenu a:hover {
    color: var(--primary);
    background-color: var(--bg-canvas);
}

/* Numbered step list inside custom-html blocks (e.g. document lifecycle) */
.lifecycle-steps {
    max-width: 640px;
    margin: 1.5rem auto;
    padding-left: 1.5rem;
    line-height: 1.9;
}
.lifecycle-steps li {
    margin-bottom: 0.25rem;
}

/* Floating contact buttons (hotline + Zalo), rendered when site has Hotline/ZaloUrl in theme settings */
.float-contact {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 90;
}
.float-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
    transition: var(--transition-smooth);
}
.float-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}
.float-zalo {
    background-color: #0068FF; /* Zalo brand blue — exception to site palette for recognisability */
}
.float-phone {
    background-color: var(--primary);
}

/* Circular numbered badge for step indicators (e.g. "3 bước bắt đầu") */
.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
}

/* ── Hero Block ── */
.block-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-canvas) 100%);
    padding: 8rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/* Split Hero Layout */
.block-hero--split {
    padding: 5rem 2rem 4rem;
    text-align: left;
}

.hero-split-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    background-color: rgba(1, 117, 122, 0.08);
    color: var(--primary);
    border: 1px solid rgba(1, 117, 122, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    width: fit-content;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0;
    letter-spacing: -0.025em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-main) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

.block-hero--split .hero-actions {
    justify-content: flex-start;
}

.btn-hero-primary {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.hero-trust {
    font-size: 0.8125rem;
    color: #94A3B8;
    margin-top: -0.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-product-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.hero-product-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product Mockup */
.hero-product-mock {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
}

.mock-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-color);
}

.mock-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.mock-red    { background: #FC605B; }
.mock-yellow { background: #FDBC40; }
.mock-green  { background: #34C749; }

.mock-url {
    font-size: 11px;
    color: #94A3B8;
    margin-left: 8px;
    font-weight: 500;
}

.mock-body {
    display: flex;
    height: 200px;
}

.mock-sidebar {
    width: 48px;
    background: #F8FAFC;
    border-right: 1px solid var(--border-color);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-nav-item {
    height: 8px;
    border-radius: 2px;
    background: #E2E8F0;
}

.mock-nav-item.mock-active {
    background: var(--primary);
    opacity: 0.7;
}

.mock-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.mock-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mock-stat {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mock-stat-highlight {
    background: rgba(1,117,122,0.06);
    border-color: rgba(1,117,122,0.2);
}

.mock-stat-label {
    font-size: 9px;
    color: #94A3B8;
    font-weight: 500;
}

.mock-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    font-family: monospace;
}

.mock-stat-highlight .mock-stat-value {
    color: var(--primary);
}

.mock-chart {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.mock-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mock-table-row {
    height: 10px;
    background: #F1F5F9;
    border-radius: 2px;
}

.mock-table-head {
    background: #E2E8F0;
}

.mock-table-alt {
    background: #F8FAFC;
    width: 90%;
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.6s 0.15s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Features Block ── */
.block-features {
    padding: 6rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.block-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.block-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: rgba(1,117,122,0.3);
    box-shadow: 0 4px 20px rgba(1,117,122,0.08);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(1,117,122,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.feature-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-name {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-main);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .block-hero--split {
        text-align: center;
    }
    .block-hero--split .hero-actions {
        justify-content: center;
    }
    .block-hero--split .hero-subtitle {
        max-width: 100%;
    }
    .hero-badge {
        margin: 0 auto;
    }
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-muted);
}

/* Pricing Block */
.block-pricing {
    padding: 6rem 2rem;
    background-color: var(--bg-canvas);
    border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    width: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card.popular {
    border-color: var(--primary);
    border-width: 2px;
}

.pricing-card.popular .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--border-radius);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

/* Contact Form Block */
.block-contact {
    padding: 6rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    background-color: var(--bg-canvas);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
}

/* Footer */
.site-footer {
    background-color: var(--bg-card);
    padding: 4rem 2rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info {
    max-width: 300px;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #E6F4EA;
    border-color: #A3E2A6;
    color: #137333;
}

.alert-danger {
    background-color: #FCE8E6;
    border-color: #F5B4AD;
    color: #C5221F;
}

/* Micro-animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* CMS Block Custom Styles Utility Classes */
.bg-white {
    background-color: #FFFFFF !important;
}
.bg-slate-light {
    background-color: #F8FAFC !important;
}
.bg-primary-teal {
    background-color: #01757A !important;
    color: #FFFFFF;
}
.bg-primary-teal h1, .bg-primary-teal h2, .bg-primary-teal h3, .bg-primary-teal h4, .bg-primary-teal h5, .bg-primary-teal h6, .bg-primary-teal p, .bg-primary-teal span, .bg-primary-teal .block-subtitle, .bg-primary-teal .block-title {
    color: #FFFFFF !important;
}
.bg-slate-dark {
    background-color: #0F172A !important;
    color: #FFFFFF;
}
.bg-slate-dark h1, .bg-slate-dark h2, .bg-slate-dark h3, .bg-slate-dark h4, .bg-slate-dark h5, .bg-slate-dark h6, .bg-slate-dark p, .bg-slate-dark span, .bg-slate-dark .block-subtitle, .bg-slate-dark .block-title {
    color: #FFFFFF !important;
}
.text-slate-dark {
    color: #1E293B !important;
}
.text-slate-dark h1, .text-slate-dark h2, .text-slate-dark h3, .text-slate-dark h4, .text-slate-dark h5, .text-slate-dark h6, .text-slate-dark p, .text-slate-dark span, .text-slate-dark .block-subtitle, .text-slate-dark .block-title {
    color: #1E293B !important;
}
.text-white {
    color: #FFFFFF !important;
}
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6, .text-white p, .text-white span, .text-white .block-subtitle, .text-white .block-title {
    color: #FFFFFF !important;
}
.text-left {
    text-align: left !important;
}
.text-center {
    text-align: center !important;
}
.text-right {
    text-align: right !important;
}
.py-small {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}
.py-medium {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}
.py-large {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* =========================================
   DYNAMIC THEME LAYOUT VARIANTS
   ========================================= */

/* Layout: Header Centered (Two-tier) */
body.layout-header-centered .header-container { 
    flex-direction: column; 
    gap: 1.5rem; 
    padding: 1.5rem 2rem;
    position: relative;
}
body.layout-header-centered .site-logo {
    margin: 0 auto;
}
body.layout-header-centered .site-nav ul {
    justify-content: center;
}
body.layout-header-centered .header-actions {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
}

/* Layout: Header Minimal */
body.layout-header-minimal .site-nav { display: none; }
body.layout-header-minimal .header-container { justify-content: space-between; }

/* Layout: Footer Fat */
body.layout-footer-fat .site-footer { 
    padding-top: 6rem; 
    background-color: #0F172A !important; 
    color: #FFFFFF !important;
    border-top: 4px solid var(--primary); 
}
body.layout-footer-fat .footer-container { gap: 5rem; justify-content: flex-start; }
body.layout-footer-fat .footer-desc, body.layout-footer-fat .footer-links a, body.layout-footer-fat .footer-bottom { color: #94A3B8 !important; }
body.layout-footer-fat .footer-links h4 { color: #F8FAFC !important; font-size: 1.1rem; }
body.layout-footer-fat .site-footer .site-logo { color: #FFFFFF !important; }
body.layout-footer-fat .site-footer .site-logo path { fill: #0F172A; } /* Inverse logo text icon */

/* Layout: Footer Minimal */
body.layout-footer-minimal .footer-links { display: none; }
body.layout-footer-minimal .footer-container { justify-content: center; text-align: center; margin-bottom: 1rem; }
body.layout-footer-minimal .footer-info { max-width: 100%; display: flex; flex-direction: column; align-items: center; }

/* Layout: Button Outline */
body.layout-btn-outline .btn-primary { 
    background-color: transparent !important; 
    border: 2px solid var(--primary) !important; 
    color: var(--primary) !important; 
    box-shadow: none;
}
body.layout-btn-outline .btn-primary:hover { 
    background-color: var(--primary) !important; 
    color: white !important; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Layout: Button Ghost */
body.layout-btn-ghost .btn-primary { 
    background-color: transparent !important; 
    border: 2px solid transparent !important; 
    color: var(--primary) !important; 
    box-shadow: none;
}
body.layout-btn-ghost .btn-primary:hover { 
    background-color: var(--primary-light) !important; 
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================= */
@media (max-width: 768px) {
    /* Header & Navigation */
    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        align-items: center;
    }
    .site-nav ul {
        gap: 1.25rem;
        font-size: 0.9rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }
    body.layout-header-centered .header-container {
        gap: 0.75rem;
        padding: 1rem;
    }
    body.layout-header-centered .header-actions {
        position: static;
        margin-top: 0.5rem;
    }

    /* Hero Section */
    .block-hero {
        padding: 5rem 1rem !important;
    }
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 0.75rem;
    }
    .hero-actions .btn {
        width: 100%;
    }

    /* Features Section */
    .block-features {
        padding: 4rem 1rem !important;
    }
    .block-title {
        font-size: 1.75rem !important;
    }
    .block-subtitle {
        margin-bottom: 2rem !important;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    /* Pricing Section */
    .block-pricing {
        padding: 4rem 1rem !important;
    }
    .pricing-card {
        width: 100% !important;
        max-width: 350px;
    }

    /* Contact Form Section */
    .block-contact {
        padding: 4rem 1rem !important;
    }
    .contact-container {
        padding: 1.5rem !important;
    }

    /* Footer */
    .site-footer {
        padding: 3rem 1rem 1.5rem 1rem !important;
    }
    .footer-container {
        flex-direction: column;
        gap: 2rem !important;
        align-items: center;
        text-align: center;
    }
    .footer-info {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links ul {
        padding: 0;
    }
}

/* ── Testimonials Block ── */
.block-testimonials {
    padding: 6rem 2rem;
    background-color: var(--bg-canvas);
    border-bottom: 1px solid var(--border-color);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.block-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
}

.testimonial-quote {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.testimonial-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ── Logo Bar Block ── */
.block-logo-bar {
    padding: 2.5rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.logo-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-bar-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.logo-bar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    align-items: center;
    justify-content: center;
}

.logo-bar-item {
    display: flex;
    align-items: center;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    filter: grayscale(1);
}

.logo-bar-item:hover {
    opacity: 0.85;
}

.logo-bar-item img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.logo-bar-text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .logo-bar-grid {
        gap: 1.5rem 2rem;
    }
}

/* ── Pain Section Block ── */
.block-pain-section {
    padding: 6rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.pain-section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.pain-opener {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.pain-opener-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.pain-opener-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.pain-card {
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-left: 3px solid #E2E8F0;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.pain-card:hover {
    border-left-color: var(--primary);
    box-shadow: 0 4px 16px rgba(1, 117, 122, 0.08);
    transform: translateY(-1px);
}

.pain-card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.pain-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.pain-card-scenario {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.pain-card-impact {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #B45309;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 4px;
    padding: 0.5rem 0.625rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.pain-closing {
    display: flex;
    justify-content: center;
}

.pain-closing-line {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(1, 117, 122, 0.06);
    border: 1px solid rgba(1, 117, 122, 0.2);
    border-radius: 40px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .pain-grid {
        grid-template-columns: 1fr;
    }
    .block-pain-section {
        padding: 4rem 1.25rem;
    }
}

/* =========================================================================
   SIGNATURE LANDING PAGE EFFECTS (BR-CMS-UX-01 — THE LEDGER DESK & HUD)
   ========================================================================= */

/* 1. Top Instant Navigation Progress Bar */
.cms-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--primary);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: width 0.25s ease, opacity 0.2s ease;
}

.cms-nav-progress.is-loading {
    width: 78%;
    opacity: 1;
}

/* 2. Instant Header Theme Toggle (Light / Dark) */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-canvas);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.theme-toggle-btn .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle-btn .icon-moon,
body.layout-dark-mode .theme-toggle-btn .icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle-btn .icon-sun,
body.layout-dark-mode .theme-toggle-btn .icon-sun {
    display: block;
}

/* 3. Architectural Blueprint Grid Backdrop on Hero */
.block-hero {
    position: relative;
    overflow: hidden;
}

.hero-blueprint-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(1, 117, 122, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(1, 117, 122, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
    z-index: 0;
}

html[data-theme="dark"] .hero-blueprint-grid,
body.layout-dark-mode .hero-blueprint-grid {
    background-image:
        linear-gradient(to right, rgba(43, 165, 171, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(43, 165, 171, 0.09) 1px, transparent 1px);
}

.hero-split-container {
    position: relative;
    z-index: 1;
}

/* 4. Hero Badge Pulse & CTA Arrow Micro-motion */
.hero-badge {
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.hero-badge-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-hero-primary {
    gap: 0.5rem;
}

.btn-arrow-icon {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover .btn-arrow-icon {
    transform: translateX(4px);
}

/* 5. Interactive Live ERP Dashboard Mockup */
.interactive-erp-mock {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.18s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.interactive-erp-mock:hover {
    border-color: var(--primary);
    box-shadow: 0 24px 64px rgba(1, 117, 122, 0.14), 0 4px 16px rgba(15, 23, 42, 0.08);
}

.mock-titlebar {
    background: var(--bg-canvas);
    justify-content: space-between;
}

.mock-window-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mock-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 2px 8px;
    border-radius: 4px;
}

html[data-theme="dark"] .mock-live-pill,
body.layout-dark-mode .mock-live-pill {
    color: #34D399;
}

.mock-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

.mock-module-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-canvas);
    border-bottom: 1px solid var(--border-color);
}

.mock-tab-btn {
    appearance: none;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    border-bottom: 2px solid transparent;
    padding: 8px 6px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-tab-btn:last-child {
    border-right: none;
}

.mock-tab-btn:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.mock-tab-btn.active {
    color: var(--primary);
    background: var(--bg-card);
    border-bottom-color: var(--primary);
}

.interactive-erp-mock .mock-body {
    height: auto;
    min-height: 225px;
}

.interactive-erp-mock .mock-sidebar {
    background: var(--bg-canvas);
}

.interactive-erp-mock .mock-stat {
    background: var(--bg-canvas);
}

.interactive-erp-mock .mock-chart {
    background: var(--bg-canvas);
}

.mock-chart-path.draw-line {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: drawChartLine 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawChartLine {
    to { stroke-dashoffset: 0; }
}

.stat-pop {
    animation: statPopAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes statPopAnim {
    0%   { opacity: 0.35; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.mock-vouchers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-voucher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
}

.mock-voucher-code {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.mock-voucher-desc {
    color: var(--text-muted);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-voucher-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mock-voucher-badge.badge-ok {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
}

html[data-theme="dark"] .mock-voucher-badge.badge-ok,
body.layout-dark-mode .mock-voucher-badge.badge-ok {
    color: #34D399;
}

.mock-statusbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-canvas);
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.mock-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(1, 117, 122, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 10px;
    flex-shrink: 0;
}

/* 6. Staggered Scroll Reveal & Mouse-Follow Card Spotlight */
.cms-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cms-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.cms-spotlight-card {
    position: relative;
    overflow: hidden;
}

.cms-spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        340px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
        rgba(1, 117, 122, 0.08),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cms-spotlight-card:hover::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .cms-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .interactive-erp-mock {
        transform: none !important;
    }
    .hero-badge-pulse {
        animation: none !important;
    }
}



/* ── BR-CMS-SONNYTECH-01: content containers padding + Dark Mode fixes ── */
.custom-html-block > .pain-section-container,
.rich-text-content > .pain-section-container {
    padding: 3rem 1.5rem;
}

@media (max-width: 768px) {
    .custom-html-block > .pain-section-container,
    .rich-text-content > .pain-section-container {
        padding: 2rem 1rem;
    }
}

html[data-theme="dark"] .pain-card-impact,
body.layout-dark-mode .pain-card-impact {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FCD34D;
}

html[data-theme="dark"] .alert-success,
body.layout-dark-mode .alert-success {
    background-color: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
}

html[data-theme="dark"] .alert-danger,
body.layout-dark-mode .alert-danger {
    background-color: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}
