* {
    box-sizing: border-box;
}

:root {
    --navy: #071a3a;
    --navy-2: #0b2855;
    --blue: #087cff;
    --cyan: #00c8ff;
    --text: #14213d;
    --muted: #68758b;
    --light: #f4f8fc;
    --border: #e2e9f2;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 92px;
    height: 64px;
    object-fit: contain;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

nav a:hover {
    color: var(--blue);
}

.nav-login {
    padding: 10px 16px;
    border: 1px solid #cfd9e6;
    border-radius: 8px;
}

.nav-demo {
    padding: 11px 18px;
    background: var(--blue);
    color: white !important;
    border-radius: 8px;
}

.mobile-menu {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

/* HERO */

.hero {
    overflow: hidden;
    padding: 92px 0 100px;
    background:
        radial-gradient(circle at 88% 18%, rgba(0,200,255,.13), transparent 27%),
        radial-gradient(circle at 75% 75%, rgba(8,124,255,.10), transparent 30%),
        linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 70px;
    align-items: center;
}

.eyebrow,
.section-heading > span,
.demo-box > div > span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    margin: 18px 0 24px;
    font-size: clamp(48px, 5.5vw, 76px);
    line-height: .98;
    letter-spacing: -3px;
    color: var(--navy);
}

.hero h1 span {
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-copy > p {
    max-width: 600px;
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 9px;
    font-weight: 700;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), #0068dd);
    color: white;
    box-shadow: 0 10px 25px rgba(8,124,255,.22);
}

.btn-secondary {
    background: white;
    border: 1px solid #d5dfeb;
    color: var(--navy);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    color: #627087;
    font-size: 13px;
}

/* PRODUCT PREVIEW */

.product-preview {
    position: relative;
    padding: 30px 20px 30px 0;
}

.preview-window {
    overflow: hidden;
    background: white;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    box-shadow: 0 35px 70px rgba(17,47,87,.18);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.preview-top {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-bottom: 1px solid #e8eef5;
}

.preview-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d7e0eb;
}

.preview-top strong {
    margin-left: auto;
    color: var(--navy);
    font-size: 11px;
}

.preview-body {
    display: flex;
    min-height: 390px;
}

.preview-sidebar {
    width: 65px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
}

.preview-sidebar b {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    border-radius: 8px;
}

.preview-sidebar i {
    width: 20px;
    height: 5px;
    border-radius: 5px;
    background: rgba(255,255,255,.3);
}

.preview-main {
    flex: 1;
    padding: 25px;
    background: #f6f9fc;
}

.preview-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-heading small {
    color: #8491a5;
}

.preview-heading h3 {
    margin: 5px 0 0;
    color: var(--navy);
}

.preview-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #e4efff;
    color: var(--blue);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin: 25px 0;
}

.stat-grid > div {
    padding: 18px 14px;
    background: white;
    border: 1px solid #e4ebf3;
    border-radius: 11px;
}

.stat-grid small {
    display: block;
    color: #8a96a8;
    font-size: 10px;
    margin-bottom: 7px;
}

.stat-grid strong {
    color: var(--navy);
    font-size: 17px;
}

.preview-chart {
    height: 190px;
    padding: 18px;
    background: white;
    border: 1px solid #e4ebf3;
    border-radius: 12px;
}

.chart-title {
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.bars {
    height: 125px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-top: 20px;
}

.bars i {
    flex: 1;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
    border-radius: 5px 5px 2px 2px;
    opacity: .85;
}

.phone-preview {
    position: absolute;
    right: -18px;
    bottom: -8px;
    width: 155px;
    min-height: 300px;
    padding: 20px 14px;
    background: white;
    border: 5px solid var(--navy);
    border-radius: 27px;
    box-shadow: 0 22px 45px rgba(12,40,78,.25);
}

.phone-speaker {
    width: 38px;
    height: 4px;
    margin: -10px auto 15px;
    background: #cbd5e2;
    border-radius: 10px;
}

.phone-preview > strong {
    display: block;
    color: var(--blue);
    font-size: 12px;
    margin-bottom: 25px;
}

.phone-preview small {
    color: #8895a7;
    font-size: 9px;
}

.phone-preview h3 {
    margin: 4px 0 17px;
    color: var(--navy);
}

.phone-card {
    height: 43px;
    margin-bottom: 9px;
    background: #f0f5fb;
    border-radius: 7px;
}

.phone-button {
    margin-top: 16px;
    padding: 10px;
    text-align: center;
    background: var(--blue);
    color: white;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
}

/* TRUST */

.trust-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: white;
}

.trust-items {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #78869a;
    font-size: 13px;
    font-weight: 700;
}

/* SECTIONS */

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2 {
    margin: 12px 0;
    color: var(--navy);
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -1.5px;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    transition: .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(24,54,91,.09);
    border-color: #cbdcf0;
}

.feature-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 11px;
    background: #eaf4ff;
    color: var(--blue);
    font-size: 21px;
    font-weight: 800;
}

.feature-card h3 {
    color: var(--navy);
    margin: 0 0 10px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

/* INDUSTRIES */

.industries {
    background: var(--light);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.industry-grid > div {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(145deg, #0b2a59, #071a3a);
    color: white;
}

.industry-grid strong {
    font-size: 20px;
    margin-bottom: 7px;
}

.industry-grid small {
    color: #aebed2;
    line-height: 1.5;
}

/* INTELLIGENCE */

.intelligence {
    padding: 105px 0;
    background:
        radial-gradient(circle at 80% 40%, rgba(0,200,255,.14), transparent 28%),
        var(--navy);
    color: white;
}

.intelligence-grid {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 90px;
    align-items: center;
}

.light-label {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.intelligence h2 {
    margin: 13px 0 20px;
    font-size: clamp(38px, 4vw, 54px);
    letter-spacing: -2px;
}

.intelligence p {
    color: #b7c7dc;
    line-height: 1.8;
}

.intelligence-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    color: #dce7f4;
    font-size: 14px;
}

.intelligence-card {
    padding: 35px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    box-shadow: 0 30px 60px rgba(0,0,0,.18);
}

.ai-badge {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 900;
    font-size: 22px;
}

.intelligence-card > p {
    margin-bottom: 5px;
    font-size: 12px;
}

.intelligence-card h3 {
    margin-top: 0;
    font-size: 28px;
}

.ai-message,
.ai-response {
    max-width: 85%;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.ai-message {
    margin: 30px 0 12px auto;
    background: var(--blue);
}

.ai-response {
    background: rgba(255,255,255,.1);
    color: #dce7f4;
}

/* DEMO */

.demo-section {
    padding: 20px 0;
}

.demo-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 32px;
    border-radius: 22px;
    background: linear-gradient(135deg, #087cff, #005dc7);
    color: white;
}

.demo-box > div > span {
    color: #bfe9ff;
}

.demo-box h2 {
    max-width: 650px;
    margin: 10px 0;
    font-size: clamp(30px, 4vw, 44px);
}

.demo-box p {
    margin-bottom: 0;
    color: #dcecff;
}

.demo-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-white {
    background: white;
    color: var(--blue);
}

.btn-outline-white {
    border: 1px solid rgba(255,255,255,.55);
    color: white;
}

/* FOOTER */

footer {
    padding: 28px 0 14px;
    background: #041329;
    color: #aab9cc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3,1fr);
    gap: 24px;
}

.footer-brand img {
    width: 105px;
    height: 75px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 5px;
}

.footer-grid strong {
    display: block;
    margin-bottom: 10px;
    color: white;
}

.footer-grid a {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-grid p {
    max-width: 250px;
    font-size: 13px;
    line-height: 1.7;
}

.copyright {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.09);
    font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .mobile-menu {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        padding: 22px;
        background: white;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 12px;
    }

    .hero {
        padding-top: 65px;
    }

    .hero-grid,
    .intelligence-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 50px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-points {
        justify-content: center;
    }

    .product-preview {
        max-width: 680px;
        width: 100%;
        margin: auto;
    }

    .feature-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .industry-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .demo-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .brand img {
        width: 78px;
        height: 57px;
    }

    .hero {
        padding: 55px 0 70px;
    }

    .hero h1 {
        font-size: 47px;
        letter-spacing: -2px;
    }

    .hero-copy > p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-points {
        flex-direction: column;
        gap: 8px;
    }

    .product-preview {
        padding: 0 5px;
    }

    .preview-body {
        min-height: 310px;
    }

    .preview-sidebar {
        width: 48px;
    }

    .preview-main {
        padding: 15px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid > div:nth-child(2),
    .stat-grid > div:nth-child(3) {
        display: none;
    }

    .phone-preview {
        width: 125px;
        min-height: 245px;
        right: -4px;
        bottom: -25px;
    }

    .trust-items {
        overflow-x: auto;
        justify-content: flex-start;
        white-space: nowrap;
    }

    .section {
        padding: 75px 0;
    }

    .feature-grid,
    .industry-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .intelligence {
        padding: 75px 0;
    }

    .intelligence-grid {
        gap: 45px;
    }

    .demo-box {
        padding: 35px 25px;
    }

    .demo-actions {
        width: 100%;
        flex-direction: column;
    }
}

/* FOUNDER */

.founder-section {
    padding: 105px 0;
    background: #ffffff;
}

.founder-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1050px;
}

.founder-photo-wrap {
    position: relative;
}

.founder-photo {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
    border-radius: 22px;
    box-shadow: 0 25px 55px rgba(7, 26, 58, .16);
}

.founder-photo-accent {
    position: absolute;
    z-index: 1;
    width: 85%;
    height: 85%;
    right: -22px;
    bottom: -22px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.founder-label {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.founder-content h2 {
    margin: 12px 0 5px;
    color: var(--navy);
    font-size: clamp(36px, 4vw, 52px);
    letter-spacing: -1.5px;
}

.founder-content h3 {
    margin: 0 0 25px;
    color: var(--blue);
    font-size: 18px;
}

.founder-content > p {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.founder-signature {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.founder-signature strong,
.founder-signature span {
    display: block;
}

.founder-signature strong {
    color: var(--navy);
    margin-bottom: 4px;
}

.founder-signature span {
    color: var(--muted);
    font-size: 13px;
}

.founded-by {
    color: #d6e3f3 !important;
    font-size: 12px !important;
}

/* New horizontal WIZTK POS logo */
.brand img {
    width: 145px;
    height: 68px;
    object-fit: contain;
}

.footer-brand img {
    width: 155px;
    height: 105px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .founder-grid {
        grid-template-columns: 330px 1fr;
        gap: 45px;
    }

    .founder-photo {
        height: 420px;
    }
}

@media (max-width: 700px) {
    .founder-section {
        padding: 75px 0;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .founder-photo-wrap {
        max-width: 360px;
        margin: auto;
    }

    .founder-photo {
        height: 440px;
    }

    .founder-content {
        text-align: center;
    }

    .brand img {
        width: 120px;
        height: 60px;
    }
}

/* Founder biography refinement */

.founder-grid {
    grid-template-columns: 390px 1fr;
    gap: 70px;
    align-items: start;
}

.founder-content > p {
    max-width: 650px;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.75;
}

.founder-content > p strong {
    color: var(--navy);
}

.founder-quote {
    margin: 26px 0 0;
    padding: 18px 22px;
    border-left: 4px solid var(--blue);
    background: #f4f8fc;
    color: var(--navy);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    border-radius: 0 10px 10px 0;
}

@media (max-width: 900px) {
    .founder-grid {
        grid-template-columns: 320px 1fr;
        gap: 40px;
    }
}

@media (max-width: 700px) {
    .founder-grid {
        grid-template-columns: 1fr;
    }
}

/* Compact homepage spacing */

.section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.industries {
    padding-top: 65px;
    padding-bottom: 70px;
}

.intelligence {
    padding-top: 75px;
    padding-bottom: 75px;
}

.founder-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.demo-section {
    padding-top: 16px;
    padding-bottom: 20px;
}

.section-heading {
    margin-bottom: 38px;
}

.founder-grid {
    align-items: center;
}

@media (max-width: 700px) {
    .section,
    .industries,
    .intelligence,
    .founder-section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .demo-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* Tighten Features section after capability strip */
#features {
    padding-top: 42px;
}

#features .section-heading {
    margin-bottom: 30px;
}

@media (max-width: 700px) {
    #features {
        padding-top: 38px;
    }
}

/* Compact BCS Intelligence section */
#intelligence {
    padding-top: 50px;
    padding-bottom: 50px;
}

#intelligence h2 {
    margin-top: 12px;
    margin-bottom: 20px;
}

#intelligence p {
    margin-top: 0;
    margin-bottom: 18px;
}

#intelligence .intelligence-grid {
    gap: 55px;
    align-items: center;
}

/* Bring Founder closer to Intelligence */
#founder {
    padding-top: 45px;
}

@media (max-width: 700px) {
    #intelligence {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    #founder {
        padding-top: 40px;
    }
}

/* Smaller founder portrait */
.founder-grid {
    grid-template-columns: 280px 1fr !important;
    gap: 55px !important;
}

.founder-photo-wrap {
    width: 270px;
    max-width: 100%;
}

.founder-photo {
    width: 270px;
    height: 340px;
    object-fit: cover;
    object-position: center top;
}

.founder-photo-accent {
    right: -14px;
    bottom: -14px;
}

@media (max-width: 700px) {
    .founder-grid {
        grid-template-columns: 1fr !important;
    }

    .founder-photo-wrap {
        width: 230px;
        margin: 0 auto;
    }

    .founder-photo {
        width: 230px;
        height: 290px;
    }
}

/* Compact Founder to CTA transition */
#founder {
    padding-bottom: 30px !important;
}

#demo {
    padding-top: 20px !important;
    padding-bottom: 35px !important;
}

#demo .container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#demo .demo-box {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
    min-height: 0 !important;
}

#demo h2 {
    margin-top: 8px;
    margin-bottom: 12px;
}

@media (max-width: 700px) {
    #founder {
        padding-bottom: 25px !important;
    }

    #demo {
        padding-top: 15px !important;
        padding-bottom: 25px !important;
    }
}

/* Professional blue navigation buttons */
#mainNav a:not(.btn) {
    background: #087cff;
    color: #ffffff !important;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

#mainNav a:not(.btn):hover {
    background: #0059c9;
}

/* Three WIZTK products */
.wiztk-products {
    padding: 42px 0 !important;
    background: #f4f8ff;
}

.wiztk-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.wiztk-product-card {
    background: white;
    border: 1px solid #dce7f6;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 40, 100, 0.06);
}

.wiztk-product-card h3 {
    color: #102c54;
    font-size: 22px;
    margin: 0;
}

.wiztk-product-card strong {
    color: #087cff;
}

.wiztk-product-card a {
    color: #087cff;
    font-weight: 700;
    margin-top: auto;
    padding-top: 12px;
    text-decoration: none;
}

.wiztk-product-status {
    align-self: flex-start;
    background: #eaf2ff;
    color: #075ac0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.wiztk-products-note {
    text-align: center;
    margin-top: 20px;
    color: #52657c;
}

@media (max-width: 800px) {
    .wiztk-product-grid {
        grid-template-columns: 1fr;
    }
}

/* Founder photo and signature layout */
#founder .founder-grid {
    grid-template-columns: 240px minmax(0, 1fr) !important;
    align-items: start;
    gap: 32px;
}

#founder .founder-photo-wrap {
    width: 240px;
    max-width: 100%;
}

#founder .founder-photo {
    width: 220px !important;
    height: 275px !important;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

#founder .founder-photo-wrap .founder-quote {
    margin: 20px 0 12px;
    padding: 0 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    font-weight: 600;
}

#founder .founder-photo-wrap .founder-signature {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

@media (max-width: 800px) {
    #founder .founder-grid {
        grid-template-columns: 1fr !important;
    }

    #founder .founder-photo-wrap {
        width: 240px;
        margin: 0 auto;
    }
}

/* Founder layout correction */
#founder .founder-photo-wrap .founder-photo-accent {
    display: none !important;
}

#founder .founder-photo-wrap {
    position: relative;
    overflow: visible;
}

#founder .founder-photo-wrap .founder-quote,
#founder .founder-photo-wrap .founder-signature {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

#founder .founder-photo-wrap .founder-quote {
    margin: 18px 0 12px !important;
    padding: 0 0 0 12px !important;
    color: #102c54;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

#founder .founder-photo-wrap .founder-signature {
    margin-top: 12px !important;
    padding: 0;
    color: #102c54;
}

#founder .founder-photo-wrap .founder-signature span {
    color: #52657c;
}

/* Compact industry cards on mobile */
@media (max-width: 700px) {
    #industries .industry-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    #industries .industry-grid > div {
        min-height: 125px !important;
        height: auto !important;
        padding: 18px 14px !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    #industries .industry-grid strong {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    #industries .industry-grid small {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}

/* Reduce excessive space around industry cards */
#industries {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
}

#industries .section-heading {
    margin-bottom: 20px !important;
}

#industries .industry-grid {
    margin-top: 0 !important;
}

@media (max-width: 700px) {
    #industries {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }
}

/* Centre text inside industry cards */
#industries .industry-grid > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
}

#industries .industry-grid strong,
#industries .industry-grid small {
    text-align: center !important;
}


/* WIZTK four-product showcase 20261008 */
.wiztk-products {
    padding: 72px 0 !important;
}

.wiztk-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 32px auto 0;
}

.wiztk-product-card {
    padding: 32px;
    border-radius: 18px;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wiztk-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 40, 100, 0.12);
}

.wiztk-product-card h3 {
    font-size: 25px;
}

.wiztk-product-card p {
    line-height: 1.75;
}

.wiztk-product-card a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .wiztk-product-grid {
        grid-template-columns: 1fr;
    }

    .wiztk-product-card {
        padding: 24px;
    }
}

/* WIZTK actual hotel dashboard hero */
.wiztk-hero-image-frame {
    background: #ffffff;
    border: 1px solid #dce7f6;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 22px 55px rgba(10, 40, 90, .15);
    overflow: hidden;
}

.wiztk-hero-image-label {
    display: block;
    color: #087cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 5px 5px 12px;
}

.wiztk-hero-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.wiztk-hero-image-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 5px 4px;
    color: #102c54;
}

.wiztk-hero-image-footer span {
    color: #52657c;
    font-size: 12px;
}

/* WIZTK PROFESSIONAL MARKETING HERO V1 */
.wiztk-marketing-hero{background:linear-gradient(160deg,#071b39 0%,#102d55 60%,#153e75 100%);color:#fff;padding:65px 0 90px}
.wiztk-marketing-intro{text-align:center;max-width:850px;margin:0 auto 48px}
.wiztk-marketing-label{color:#71c9ff;font-size:12px;font-weight:800;letter-spacing:3px}
.wiztk-marketing-intro h1{font-size:clamp(42px,5.5vw,76px);line-height:1.08;letter-spacing:-2px;margin:20px 0}
.wiztk-marketing-intro h1 span{color:#61c8ff}
.wiztk-marketing-intro p{color:#c9d9ef;font-size:19px;line-height:1.7;margin:0 auto 26px;max-width:700px}
.wiztk-marketing-demo{display:inline-block;background:#1684ff;color:#fff;text-decoration:none;padding:15px 25px;border-radius:10px;font-weight:800}
.wiztk-marketing-products{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.wiztk-marketing-panel{background:#fff;color:#102344;border-radius:22px;padding:30px;overflow:hidden;box-shadow:0 25px 55px #0003;transition:transform .3s,box-shadow .3s}
.wiztk-marketing-panel:hover{transform:translateY(-7px);box-shadow:0 35px 65px #0005}
.wiztk-panel-label{color:#087cff;font-size:11px;font-weight:800;letter-spacing:1.5px}
.wiztk-panel-content h2{font-size:clamp(24px,2.4vw,34px);margin:12px 0}
.wiztk-panel-content p{color:#52647d;font-size:16px;line-height:1.6;min-height:52px}
.wiztk-panel-content a{display:inline-block;color:#087cff;font-weight:800;text-decoration:none;margin:8px 0 25px}
.wiztk-hotel-visual,.wiztk-retail-visual{background:#f2f7ff;border:1px solid #dce6f5;border-radius:15px;padding:20px;min-height:255px}
.wiztk-visual-top{display:flex;justify-content:space-between;gap:8px;font-size:11px;font-weight:800;color:#52647d;letter-spacing:1px;margin-bottom:20px}
.wiztk-live-dot{color:#13935c}
.wiztk-room-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.wiztk-room-grid div{background:#e6f8ef;border:1px solid #a4dabc;color:#126341;border-radius:9px;padding:16px 10px;font-weight:800;text-align:center}
.wiztk-room-grid div.occupied{background:#fff0ed;border-color:#f1bbb1;color:#a43e32}
.wiztk-room-grid small{display:block;font-size:10px;margin-top:5px}
.wiztk-sale-line,.wiztk-sale-total{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #dce6f5}
.wiztk-sale-total{font-size:20px;font-weight:800;color:#102344}
.wiztk-checkout-button{background:#087cff;color:#fff;text-align:center;padding:12px;border-radius:8px;font-weight:800;margin-top:14px}
.wiztk-demo-note{display:block;font-size:10px;color:#74849a;margin-top:14px;text-align:center}
@media(max-width:800px){.wiztk-marketing-products{grid-template-columns:1fr}.wiztk-marketing-hero{padding:45px 0 65px}.wiztk-marketing-panel{padding:22px}.wiztk-marketing-intro h1{letter-spacing:-1px}}
@media(prefers-reduced-motion:reduce){.wiztk-marketing-panel{transition:none}.wiztk-marketing-panel:hover{transform:none}}


/* WIZTK APPROVED PHOTOGRAPHIC HOMEPAGE */
.wiztk-photo-home {
  background: linear-gradient(135deg,#082e68 0%,#0756a7 100%);
  padding: 65px 0 75px;
}
.wiztk-photo-home .wiztk-marketing-intro {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 40px;
}
.wiztk-photo-home .wiztk-marketing-intro h1 {
  color: #fff;
  line-height: 1.15;
}
.wiztk-photo-home .wiztk-marketing-intro p {
  color: #e3efff;
}
.wiztk-photo-products {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 25px;
}
.wiztk-photo-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,20,55,.22);
  transition: transform .25s ease,box-shadow .25s ease;
}
.wiztk-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,20,55,.3);
}
.wiztk-photo-image {
  height: 285px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.wiztk-photo-image.hotel-photo {
  background-image: url('/static/site/images/hotel-photo.jpg');
}
.wiztk-photo-image.retail-photo {
  background-image: url('/static/site/images/retail-photo.jpg');
}
.wiztk-photo-content {
  padding: 28px 30px 34px;
}
.wiztk-photo-label {
  color: #1267bb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.wiztk-photo-content h2 {
  color: #102b51;
  font-size: clamp(23px,2.5vw,31px);
  margin: 12px 0;
}
.wiztk-photo-content p {
  color: #53657a;
  line-height: 1.7;
  margin-bottom: 20px;
}
.wiztk-photo-content a {
  color: #075bb5;
  font-weight: 800;
  text-decoration: none;
}
@media(max-width:760px) {
  .wiztk-photo-products {grid-template-columns:1fr;}
  .wiztk-photo-image {height:230px;}
  .wiztk-photo-home {padding:45px 0 55px;}
}

/* WIZTK illustrated product cards */
.wiztk-illustrated-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.wiztk-illustrated-grid .wiztk-product-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 45, 85, .12);
  transition: transform .25s ease;
}

.wiztk-illustrated-grid .wiztk-product-card:hover {
  transform: translateY(-5px);
}

.wiztk-product-picture {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .wiztk-illustrated-grid {
    grid-template-columns: 1fr;
  }

  .wiztk-product-picture {
    height: 220px;
  }
}

/* Approved WIZTK homepage hero images */
.wiztk-photo-products .wiztk-photo-image.hotel-photo {
  background: url('/static/site/images/hotel-system.webp') center / cover no-repeat !important;
}

.wiztk-photo-products .wiztk-photo-image.retail-photo {
  background: url('/static/site/images/retail-cashier.webp') center / cover no-repeat !important;
}

/* WIZTK hotel dashboard presentation fix */
.hotel-showcase {
  background: #f3f7fd;
  padding: 75px 0;
}

.hotel-showcase-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px !important;
  align-items: stretch;
}

.hotel-showcase-card {
  display: block;
  min-width: 0;
  padding: 28px !important;
  background: #fff !important;
  border: 1px solid #dce7f5;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(12, 47, 95, .08);
  overflow: hidden;
}

.hotel-showcase-heading {
  margin-bottom: 22px;
}

.hotel-showcase-heading span {
  display: block;
  color: #0875e9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.hotel-showcase-heading h3 {
  font-size: 24px;
  line-height: 1.3;
  color: #102b50;
  margin: 0 0 12px;
}

.hotel-showcase-card p {
  line-height: 1.7;
  margin-bottom: 18px;
}

.hotel-showcase-card table {
  width: 100%;
  border-collapse: collapse;
}

.hotel-showcase-card th,
.hotel-showcase-card td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5edf6;
}

.hotel-door-card {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .hotel-showcase-grid {
    grid-template-columns: 1fr;
  }

  .hotel-door-card {
    grid-column: auto;
  }

  .hotel-showcase-card {
    padding: 20px !important;
  }
}

/* WIZTK unified blue homepage */
:root {
  --wiztk-blue: #073c83;
  --wiztk-bright: #1683ff;
}

/* Consistent blue sections */
.section:not(.wiztk-marketing-hero),
.hotel-showcase {
  background: linear-gradient(135deg, #07346f, #07519e) !important;
  color: #fff;
  padding-top: 65px;
  padding-bottom: 65px;
}

/* Readable headings */
.section:not(.wiztk-marketing-hero) .section-heading h2,
.hotel-showcase h2 {
  color: #fff !important;
}

.section:not(.wiztk-marketing-hero) .section-heading p {
  color: #dceaff !important;
}

/* Consistent white cards */
.hotel-showcase-card,
.wiztk-product-card,
.feature-card,
.industry-card {
  background: #fff !important;
  color: #17345a !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(0, 15, 50, .15);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hotel-showcase-card:hover,
.wiztk-product-card:hover,
.feature-card:hover,
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(0, 15, 50, .25);
}

/* Keep card headings readable */
.hotel-showcase-card h3,
.wiztk-product-card h3,
.feature-card h3,
.industry-card h3 {
  color: #102b50 !important;
}

/* Smaller navigation on desktop */
header nav a {
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .hotel-showcase-card,
  .wiztk-product-card,
  .feature-card,
  .industry-card {
    transition: none;
  }
}

/* WIZTK compact homepage spacing */
.section:not(.wiztk-marketing-hero),
.hotel-showcase {
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}

.section-heading {
  margin-bottom: 22px !important;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.18 !important;
  margin-bottom: 12px !important;
}

.section-heading p {
  margin-bottom: 0 !important;
}

.hotel-showcase-grid,
.wiztk-product-grid,
.feature-grid,
.industry-grid {
  gap: 16px !important;
}

.hotel-showcase-card,
.wiztk-product-card,
.feature-card,
.industry-card {
  padding: 22px !important;
}

.hotel-showcase-heading {
  margin-bottom: 12px !important;
}

.hotel-showcase-card p,
.feature-card p,
.industry-card p {
  margin-bottom: 10px !important;
}

@media (max-width: 760px) {
  .section:not(.wiztk-marketing-hero),
  .hotel-showcase {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
}

/* WIZTK compact desktop layout */
@media (min-width: 900px) {
  .section:not(.wiztk-marketing-hero),
  .hotel-showcase {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }

  .section .container,
  .hotel-showcase .container {
    max-width: 1050px !important;
  }

  .section-heading {
    margin-bottom: 16px !important;
  }

  .section-heading h2 {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  .section-heading p {
    font-size: 15px !important;
  }

  .hotel-showcase-grid,
  .feature-grid,
  .industry-grid {
    gap: 12px !important;
  }

  .hotel-showcase-card,
  .feature-card,
  .industry-card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .hotel-showcase-card h3,
  .feature-card h3,
  .industry-card h3 {
    font-size: 18px !important;
  }
}

/* Compact WIZTK homepage hero */
.wiztk-marketing-hero {
  padding-top: 25px !important;
  padding-bottom: 25px !important;
}

.wiztk-marketing-hero h1 {
  font-size: clamp(36px, 4.5vw, 58px) !important;
  line-height: 1.08 !important;
  margin-top: 8px !important;
  margin-bottom: 14px !important;
}

.wiztk-marketing-hero p {
  margin-top: 8px !important;
  margin-bottom: 14px !important;
}

.wiztk-marketing-hero .wiztk-photo-products {
  margin-top: 20px !important;
  gap: 16px !important;
}

@media (max-width: 760px) {
  .wiztk-marketing-hero {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .wiztk-marketing-hero h1 {
    font-size: 34px !important;
  }
}

/* Compact first-page product cards */
.wiztk-marketing-hero.wiztk-photo-home {
  padding-bottom: 8px !important;
}

.wiztk-photo-products {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.wiztk-photo-products .wiztk-photo-image {
  height: 190px !important;
  min-height: 0 !important;
}

.wiztk-photo-products .wiztk-photo-card {
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

.wiztk-photo-products .wiztk-photo-content {
  padding: 16px 20px !important;
}

.wiztk-photo-products h2,
.wiztk-photo-products h3 {
  margin: 6px 0 !important;
  font-size: 24px !important;
}

.wiztk-photo-products p {
  margin: 8px 0 !important;
}

@media (max-width: 760px) {
  .wiztk-photo-products .wiztk-photo-image {
    height: 175px !important;
  }
}

/* Professional hotel dashboard preview */
.wiztk-dashboard-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.wiztk-dashboard-card {
  background:#fff;
  color:#142e50;
  border-radius:16px;
  padding:22px;
  box-shadow:0 12px 28px rgba(0,20,55,.15);
  min-width:0;
}
.wiztk-dashboard-card-top {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
.wiztk-dashboard-card h3 {
  margin:0;
  font-size:20px;
  color:#142e50;
}
.wiztk-card-icon {
  display:inline-grid;
  place-items:center;
  flex-shrink:0;
  width:42px;
  height:42px;
  background:#e8f2ff;
  color:#087dff;
  border-radius:12px;
  font-size:24px;
}
.wiztk-stat-row {
  display:flex;
  gap:10px;
  margin-bottom:16px;
}
.wiztk-stat-row > div {
  flex:1;
  background:#eef5ff;
  border-radius:10px;
  padding:12px;
  text-align:center;
}
.wiztk-stat-row strong {
  display:block;
  color:#0756ae;
  font-size:25px;
}
.wiztk-stat-row small {
  display:block;
  color:#62758e;
  font-size:12px;
}
.wiztk-data-row {
  display:grid;
  grid-template-columns:50px 1fr auto;
  align-items:center;
  gap:10px;
  border-bottom:1px solid #e9eff7;
  padding:10px 2px;
  font-size:13px;
}
.wiztk-data-row:last-child {border-bottom:0}
.wiztk-data-row em {
  font-size:12px;
  font-style:normal;
  color:#60728a;
}
.wiztk-data-row .wiztk-available {color:#168354}
.wiztk-data-row .wiztk-occupied {color:#c27b10}
.wiztk-table-head {
  background:#f3f7fc;
  border-radius:8px;
  font-weight:700;
}
.wiztk-door-mini {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 22px;
}
.wiztk-door-mini h3 {margin:3px 0 5px}
.wiztk-door-mini p {margin:0;color:#61748c}
.wiztk-coming-soon {
  color:#087dff;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
}
.wiztk-demo-disclaimer {
  color:#d4e5ff;
  text-align:center;
  font-size:12px;
  margin:12px 0 0;
}
@media(max-width:760px) {
  .wiztk-dashboard-grid {grid-template-columns:1fr}
  .wiztk-door-mini {grid-column:auto}
  .wiztk-dashboard-card {padding:16px}
}

/* Balanced spacing for the first display */
.wiztk-marketing-hero.wiztk-photo-home {
  padding-bottom: 30px !important;
}

.wiztk-photo-products .wiztk-photo-image {
  height: 225px !important;
}

.wiztk-photo-products .wiztk-photo-content {
  padding: 22px 24px !important;
}

.wiztk-photo-products {
  margin-bottom: 12px !important;
}


/* Reduce gap between Industries and BCS Intelligence */
#industries {
  padding-bottom: 8px !important;
}

#intelligence {
  padding-top: 12px !important;
}

#industries .industry-grid {
  margin-bottom: 0 !important;
}


/* Prominent AI product showcase */
.wiztk-ai-products{background:linear-gradient(135deg,#071b3d,#0754a5)!important;padding:54px 0!important}
.wiztk-ai-heading{text-align:center;margin-bottom:28px}
.wiztk-ai-heading span{color:#64c8ff;font-weight:800;letter-spacing:2px}
.wiztk-ai-heading h2{color:white!important;font-size:clamp(30px,3.5vw,48px)!important;margin:12px 0}
.wiztk-ai-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.wiztk-ai-card{background:white!important;color:#17345a!important;border-radius:20px;padding:32px;box-shadow:0 14px 32px #00172d40}
.wiztk-ai-card h3{font-size:clamp(28px,3vw,40px)!important;font-weight:900!important;color:#073c80!important;line-height:1.15;margin:12px 0}
.wiztk-ai-card h4{font-size:21px;font-weight:800;color:#163259;margin:12px 0}
.wiztk-ai-card p{color:#4c6180;line-height:1.65}
.wiztk-ai-status{color:#087bff;font-weight:800;letter-spacing:1.5px}
.wiztk-ai-icon{font-size:36px;color:#087bff}
.wiztk-ai-card a{display:inline-block;background:#087bff;color:white!important;border-radius:10px;padding:13px 20px;margin-top:14px;font-weight:800;text-decoration:none}
@media(max-width:700px){.wiztk-ai-grid{grid-template-columns:1fr}}





/* Final WIZTK homepage spacing correction */
#industries {
    padding-top: 12px !important;
    padding-bottom: 16px !important;
}

#demo {
    padding-top: 12px !important;
    padding-bottom: 20px !important;
    margin-top: 0 !important;
}

#demo .demo-box {
    padding: 32px !important;
}

@media (max-width: 700px) {
    #demo .demo-box {
        padding: 24px !important;
    }
}

/* Compact WIZTK footer */
footer {
    padding: 16px 0 10px !important;
}

.footer-grid {
    gap: 18px !important;
    align-items: start;
}

.footer-grid strong {
    margin-bottom: 6px !important;
}

.footer-grid a {
    margin-bottom: 5px !important;
}

.footer-grid p {
    margin: 5px 0 !important;
    line-height: 1.4 !important;
}

.footer-brand img {
    width: 115px !important;
    height: 78px !important;
}

.copyright {
    margin-top: 10px !important;
    padding-top: 8px !important;
}

/* Tighten Hotel Operations section */
@media (min-width: 900px) {
  #hotel-showcase {
    padding-top: 8px !important;
    padding-bottom: 12px !important;
  }

  #hotel-showcase .section-heading {
    margin-bottom: 12px !important;
  }

  #hotel-showcase .section-heading h2 {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
  }

  #hotel-showcase .section-heading p {
    margin: 0 !important;
  }
}

/* Compact mobile navigation */
@media (max-width: 900px) {
  #mainNav.open {
    padding: 10px 16px !important;
    gap: 5px !important;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0, 20, 50, 0.15);
  }

  #mainNav a {
    padding: 9px 14px !important;
    min-height: 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    border-radius: 8px !important;
  }
}

/* Narrow mobile dropdown beneath hamburger icon */
@media (max-width: 900px) {
  #mainNav.open {
    position: absolute !important;
    top: 78px !important;
    left: auto !important;
    right: 16px !important;
    width: min(240px, calc(100vw - 32px)) !important;
    padding: 10px !important;
    gap: 5px !important;
    border-radius: 12px !important;
    background: white !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18) !important;
    z-index: 1000 !important;
  }

  #mainNav.open a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    margin: 0 !important;
  }
}

/* Final compact mobile dropdown */
@media (max-width: 900px) {
  #mainNav.open {
    width: min(200px, calc(100vw - 32px)) !important;
    padding: 7px !important;
    gap: 3px !important;
  }

  #mainNav.open a {
    padding: 7px 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
}

/* Mobile menu: blue backgrounds fit the text */
@media (max-width: 900px) {
  #mainNav.open {
    width: max-content !important;
    max-width: calc(100vw - 32px) !important;
    align-items: flex-start !important;
  }

  #mainNav.open a {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    align-self: flex-start !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }
}
