/* FinalTech v2 design layer. Loaded last on every public page; legacy CSS forces
   heading/paragraph sizes with !important, so typography here does the same. */

:root {
    --ft-navy: #1b3b62;
    --ft-navy-700: #23518c;
    --ft-navy-900: #163256;
    --ft-navy-950: #112a4a;
    --ft-royal: #1f63b8;
    --ft-royal-300: #6aa6ec;
    --ft-gold: #d6a531;
    --ft-gold-300: #f7cd55;
    --ft-gold-700: #8d6512;
    --ft-gold-soft: rgba(214, 165, 49, 0.15);
    --ft-navy-soft: rgba(31, 99, 184, 0.08);
    --ft-ink: #132a4b;
    --ft-muted: #586a84;
    --ft-bg: #f6f9fd;
    --ft-surface: #ffffff;
    --ft-surface-2: #edf3fb;
    --ft-line: #e0e8f3;
    --ft-accent: var(--ft-royal);
    --ft-radius: 20px;
    --ft-shadow: 0 18px 40px rgba(22, 50, 86, 0.11);
    --ft-shadow-sm: 0 6px 18px rgba(22, 50, 86, 0.07);
    --ft-gold-grad: linear-gradient(135deg, #ffd96b 0%, #f2b42b 100%);
    --ft-blue-grad: linear-gradient(135deg, var(--ft-royal) 0%, var(--ft-navy) 100%);
    --ft-hero-bg:
        radial-gradient(circle at 8% -6%, rgba(255, 207, 92, 0.5), rgba(255, 190, 60, 0.14) 26%, transparent 46%),
        linear-gradient(225deg, #15365f 0%, #1b4a85 50%, #2466b6 100%);
    --ft-on-gold: #2a1c00;
    --ft-blue: var(--ft-navy);
    --ft-blue-soft: var(--ft-navy-soft);
    --ft-wrap: 1200px;
    --ft-header-h: 76px;
    --ft-font: 'Readex Pro', 'Alexandria', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ft-font-head: 'Alexandria', 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --primary-color: var(--ft-navy);
    --secondary-color: var(--ft-gold);
    --background-light: var(--ft-bg);
}

html[dir='ltr'] {
    --ft-hero-bg:
        radial-gradient(circle at 92% -6%, rgba(255, 207, 92, 0.5), rgba(255, 190, 60, 0.14) 26%, transparent 46%),
        linear-gradient(135deg, #15365f 0%, #1b4a85 50%, #2466b6 100%);
}

html[data-theme='dark'] {
    --ft-ink: #eaf0f8;
    --ft-muted: #a8b7cc;
    --ft-bg: #0b1a30;
    --ft-surface: #11243f;
    --ft-surface-2: #183056;
    --ft-line: rgba(148, 170, 205, 0.2);
    --ft-accent: var(--ft-gold-300);
    --ft-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    --ft-shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.25);
    --ft-navy-soft: rgba(143, 176, 222, 0.12);
    --primary-color: #8fb0de;
    --secondary-color: var(--ft-gold-300);
    --background-light: var(--ft-bg);
    --background-pure: var(--ft-surface);
    --card-bg: var(--ft-surface);
}

html[data-theme] body {
    font-family: var(--ft-font);
    background: var(--ft-bg);
    color: var(--ft-ink);
}

html[data-theme] :is(h1, h2, h3, h4, h5),
html[data-theme] :is(.ft-btn, .btn, .ft-kicker, .pro-kicker, .ft-brand-text strong, .ft-nav-list a, .ft-hero-stats strong,
    .ft-step-num, .card-number, .about-highlights strong, .portfolio-proof strong, .visit-proof strong, .mobile-bottom-link) {
    font-family: var(--ft-font-head);
}

.ft-wrap {
    width: min(var(--ft-wrap), calc(100% - 32px));
    margin-inline: auto;
}

/* ---------- Buttons ---------- */
.ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-family: var(--ft-font-head);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ft-btn:hover {
    transform: translateY(-1px);
}

.ft-btn-lg {
    min-height: 54px;
    padding: 0 26px;
    border-radius: 16px;
    font-size: 1rem;
}

.ft-btn-gold {
    color: var(--ft-on-gold) !important;
    background: var(--ft-gold-grad);
    box-shadow: 0 10px 24px rgba(242, 180, 43, 0.35);
}

.ft-btn-gold:hover {
    box-shadow: 0 14px 30px rgba(242, 180, 43, 0.45);
}

.ft-btn-navy {
    color: #fff !important;
    background: var(--ft-blue-grad);
    box-shadow: 0 10px 24px rgba(31, 99, 184, 0.28);
}

.ft-btn-ghost {
    color: var(--ft-ink) !important;
    background: transparent;
    border-color: var(--ft-line);
}

.ft-btn-ghost-light {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.ft-btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ft-btn-soft {
    color: var(--ft-ink) !important;
    background: var(--ft-surface-2);
}

.ft-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ft-navy);
    background: var(--ft-surface);
    border: 1px solid var(--ft-line);
    border-radius: 13px;
    font-family: var(--ft-font-head);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.ft-icon-btn:hover {
    background: var(--ft-surface-2);
}

html[data-theme='dark'] .ft-icon-btn {
    color: var(--ft-ink);
}

.ft-lang-btn {
    width: auto;
    min-width: 40px;
    padding: 0 10px;
}

.ft-when-dark,
html[data-theme='dark'] .ft-when-light {
    display: none;
}

html[data-theme='dark'] .ft-when-dark {
    display: inline-block;
}

/* ---------- Header ---------- */
header.ft-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    background: color-mix(in srgb, var(--ft-surface) 92%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--ft-line);
    box-shadow: none;
}

header.ft-header::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #ffd96b, var(--ft-gold) 30%, var(--ft-royal) 70%, var(--ft-navy));
}

html[dir='ltr'] header.ft-header::before {
    background: linear-gradient(270deg, #ffd96b, var(--ft-gold) 30%, var(--ft-royal) 70%, var(--ft-navy));
}

header.ft-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(22, 50, 86, 0.1);
}

.ft-header-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(var(--ft-wrap), calc(100% - 32px));
    height: var(--ft-header-h);
    margin-inline: auto;
}

.ft-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--ft-ink) !important;
    text-decoration: none;
}

.ft-brand-logo {
    display: block;
    flex-shrink: 0;
    height: 60px;
}

.ft-brand-logo img {
    display: block;
    width: auto;
    height: 100%;
}

html[data-theme='dark'] .ft-brand-logo {
    height: 60px;
    padding: 5px 9px;
    background: #fff;
    border-radius: 14px;
}

.ft-footer .ft-brand-logo {
    height: 76px;
    padding: 7px 12px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.ft-footer .ft-brand-text strong {
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .ft-footer .ft-brand-logo {
        height: 60px;
        padding: 5px 9px;
        border-radius: 14px;
    }

    .ft-footer .ft-brand-text strong {
        font-size: 1.02rem;
    }
}

.ft-brand-text {
    display: grid;
    gap: 2px;
    line-height: 1.25;
}

.ft-brand-text strong {
    color: var(--ft-navy);
    font-size: 1.1rem;
    font-weight: 800;
}

html[data-theme='dark'] .ft-brand-text strong {
    color: var(--ft-ink);
}

.ft-brand-text small {
    color: var(--ft-gold-700);
    font-size: 0.76rem;
    font-weight: 500;
}

html[data-theme='dark'] .ft-brand-text small {
    color: var(--ft-gold-300);
}

.ft-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.ft-nav-head,
.ft-nav-extra,
.ft-nav-backdrop,
.ft-menu-btn {
    display: none;
}

.ft-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft-nav-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft-nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    color: var(--ft-navy) !important;
    border-radius: 12px;
    font-size: 0.9rem !important;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

html[data-theme='dark'] .ft-nav-list a {
    color: var(--ft-ink) !important;
}

.ft-nav-list a i {
    display: none;
}

.ft-nav-list a:hover {
    background: var(--ft-surface-2);
}

html[data-theme] .ft-nav-list a.active {
    color: #fff !important;
    background: var(--ft-blue-grad);
}

.ft-nav-list a.ft-nav-solar {
    color: var(--ft-gold-700) !important;
    background: var(--ft-gold-soft);
}

html[data-theme] .ft-nav-list a.ft-nav-solar.active {
    color: var(--ft-on-gold) !important;
    background: var(--ft-gold-grad);
}

html[data-theme='dark'] .ft-nav-list a.ft-nav-solar {
    color: var(--ft-gold-300) !important;
}

.ft-nav-list a.ft-nav-solar i {
    display: inline-block;
}

.ft-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-inline-start: auto;
}

@media (min-width: 1201px) {
    .ft-nav-drawer-only {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    header.ft-header {
        background: var(--ft-surface);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .ft-menu-btn {
        display: inline-grid;
    }

    .ft-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        inset-inline-end: 0;
        z-index: 2;
        flex-direction: column;
        justify-content: flex-start;
        gap: 12px;
        width: min(86vw, 340px);
        padding: 14px 14px max(14px, env(safe-area-inset-bottom));
        overflow-y: auto;
        background: var(--ft-surface);
        box-shadow: 0 0 44px rgba(8, 24, 48, 0.28);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s;
    }

    html[dir='ltr'] .ft-nav {
        transform: translateX(105%);
    }

    html .ft-nav.is-open {
        transform: none;
        visibility: visible;
    }

    .ft-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--ft-line);
        color: var(--ft-ink);
        font-size: 1rem;
    }

    .ft-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .ft-nav-list a {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        font-size: 0.98rem !important;
    }

    .ft-nav-list a i {
        display: inline-block;
        width: 22px;
        color: var(--ft-accent);
        text-align: center;
    }

    .ft-nav-list a.active i {
        color: inherit;
    }

    .ft-nav-list a.ft-nav-solar i {
        color: inherit;
    }

    .ft-nav-extra {
        display: grid;
        gap: 8px;
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid var(--ft-line);
    }

    .ft-nav-extra .ft-btn {
        width: 100%;
        min-height: 46px;
    }

    .ft-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 2999;
        display: block;
        background: rgba(8, 24, 48, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.ft-nav-open .ft-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.ft-nav-open header.ft-header {
        z-index: 3000;
    }

    body.ft-nav-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    :root {
        --ft-header-h: 64px;
    }

    .ft-header-bar {
        gap: 8px;
        width: calc(100% - 20px);
    }

    .ft-hide-sm {
        display: none !important;
    }

    .ft-brand {
        gap: 8px;
        min-width: 0;
    }

    .ft-brand-logo {
        height: 46px;
    }

    html[data-theme='dark'] header .ft-brand-logo {
        height: 46px;
        padding: 4px 7px;
        border-radius: 11px;
    }

    .ft-brand-text strong {
        font-size: 0.95rem;
    }

    .ft-brand-text small {
        font-size: 0.66rem;
    }

    .ft-header-actions {
        gap: 6px;
    }

    .ft-icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
}

@media (max-width: 380px) {
    .ft-brand-text small {
        display: none;
    }

    .ft-brand-logo {
        height: 42px;
    }
}

/* ---------- Footer ---------- */
footer.ft-footer {
    display: block;
    margin: 0;
    padding: 0 0 22px;
    color: #cfdaeb;
    text-align: start;
    background:
        radial-gradient(circle at 92% 0%, rgba(247, 205, 85, 0.16), transparent 34%),
        linear-gradient(180deg, #183a66, #122c4e);
    border: 0;
}

footer.ft-footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #ffd96b, var(--ft-gold) 30%, var(--ft-royal) 70%, var(--ft-navy));
}

.ft-footer a {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

.ft-footer a.ft-btn {
    font-weight: 800;
}

.ft-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-footer-cta strong {
    display: block;
    color: #fff;
    font-family: var(--ft-font-head);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
}

.ft-footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ft-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
    gap: 32px;
    padding: 36px 0 28px;
}

.ft-footer .ft-brand,
.ft-footer .ft-brand-text strong {
    color: #fff !important;
}

.ft-footer .ft-brand-text small {
    color: var(--ft-gold-300);
}

.ft-footer-brand p {
    max-width: 40ch;
    margin: 14px 0 16px;
    color: #b9c7dc;
    font-size: 0.88rem !important;
    line-height: 1.8 !important;
}

.ft-socials {
    display: flex;
    gap: 8px;
}

.ft-socials a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
}

.ft-socials a:hover {
    color: var(--ft-on-gold);
    background: var(--ft-gold-300);
}

.ft-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
}

.ft-footer-col h3 {
    margin: 0 0 4px;
    color: #fff !important;
    font-size: 0.98rem !important;
    font-weight: 800;
}

.ft-footer-col a:hover {
    color: var(--ft-gold-300);
}

.ft-footer-col i {
    width: 18px;
    color: var(--ft-gold-300);
    text-align: center;
}

.ft-footer-contact > a,
.ft-footer-contact > span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ft-footer-col > a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 30px;
}

.ft-footer-col i {
    flex: 0 0 18px;
}

.ft-footer-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-footer-bottom p {
    margin: 0;
    color: #9db0cc;
    font-size: 0.8rem !important;
    text-align: center;
}

@media (max-width: 960px) {
    .ft-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .ft-footer-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ft-footer-cta-actions .ft-btn {
        flex: 1;
    }

    .ft-footer-cta {
        padding: 22px 0;
    }

    .ft-footer-grid {
        gap: 22px 14px;
        padding: 22px 0 18px;
    }

    .ft-footer-brand,
    .ft-footer-contact {
        grid-column: 1 / -1;
    }

    .ft-footer-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .ft-footer-brand p {
        display: none;
    }

    .ft-footer-col {
        gap: 8px;
        font-size: 0.84rem;
    }
}

/* ---------- Mobile bottom bar & floating helpers ---------- */
@media (max-width: 768px) {
    .mobile-bottom-link.mobile-solar-shortcut {
        min-height: 52px !important;
        color: var(--ft-on-gold) !important;
        background: var(--ft-gold-grad) !important;
        border: 1px solid rgba(242, 180, 43, 0.85) !important;
        border-radius: 17px !important;
        box-shadow: 0 10px 22px rgba(242, 180, 43, 0.38) !important;
        transform: translateY(-3px) !important;
        font-weight: 800 !important;
    }

    .mobile-bottom-link.mobile-solar-shortcut i {
        color: var(--ft-on-gold) !important;
    }

    body.ft-nav-open .mobile-bottom-nav,
    body.ft-nav-open .floating-ai-advisor,
    body.ft-nav-open .scroll-to-top {
        visibility: hidden;
    }
}

/* ---------- Shared section primitives ---------- */
.ft-section {
    padding: 84px 0;
}

.ft-section-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.ft-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    color: var(--ft-gold-700);
    background: var(--ft-gold-soft);
    border-radius: 999px;
    font-size: 0.82rem !important;
    font-weight: 700;
}

.ft-kicker::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--ft-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(214, 165, 49, 0.25);
}

html[data-theme='dark'] .ft-kicker,
.ft-platform .ft-kicker,
.ft-footer .ft-kicker {
    color: var(--ft-gold-300);
    background: rgba(247, 205, 85, 0.14);
}

.ft-h2 {
    margin: 0 0 14px;
    color: var(--ft-navy) !important;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem) !important;
    font-weight: 800;
    line-height: 1.35 !important;
    letter-spacing: 0;
}

html[data-theme='dark'] .ft-h2 {
    color: var(--ft-ink) !important;
}

.ft-lead {
    margin: 0;
    color: var(--ft-muted);
    font-size: clamp(0.95rem, 1.4vw, 1.06rem) !important;
    line-height: 1.85 !important;
}

.ft-center-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* ---------- Home: hero ---------- */
.ft-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: var(--ft-hero-bg);
    border-radius: 0 0 40px 40px;
}

.ft-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../assets/img/v2-hero-solar.webp') center 60% / cover no-repeat;
    opacity: 0.2;
    mix-blend-mode: luminosity;
}

.ft-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -180px;
    inset-inline-end: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg, rgba(255, 214, 102, 0.16) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask: radial-gradient(circle, transparent 30%, #000 31%, transparent 70%);
    mask: radial-gradient(circle, transparent 30%, #000 31%, transparent 70%);
}

.ft-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 52px;
    padding: 88px 0 84px;
}

.ft-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    color: #ffe08a;
    background: rgba(255, 214, 102, 0.14);
    border: 1px solid rgba(255, 214, 102, 0.38);
    border-radius: 999px;
    font-family: var(--ft-font-head);
    font-size: 0.84rem !important;
    font-weight: 600;
}

.ft-hero h1 {
    margin: 18px 0 18px;
    color: #fff !important;
    font-size: clamp(1.9rem, 4.2vw, 3.3rem) !important;
    font-weight: 800;
    line-height: 1.35 !important;
    letter-spacing: 0;
    text-shadow: 0 2px 18px rgba(10, 30, 60, 0.25);
}

.ft-hero h1 em {
    color: var(--ft-gold-300);
    font-style: normal;
}

.ft-hero-lead {
    max-width: 56ch;
    margin: 0;
    color: #e6eefa;
    font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
    line-height: 1.9 !important;
}

.ft-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ft-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 600px;
    margin-top: 36px;
}

.ft-hero-stats div {
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    text-align: center;
}

.ft-hero-stats strong {
    display: block;
    color: var(--ft-gold-300);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.ft-hero-stats span {
    color: #dce6f5;
    font-size: 0.78rem;
}

.ft-live-card {
    padding: 22px;
    color: #132a4b;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 34px 70px rgba(8, 26, 52, 0.4);
}

.ft-live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-family: var(--ft-font-head);
    font-size: 0.95rem;
    font-weight: 700;
}

.ft-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.12);
    border-radius: 999px;
    font-size: 0.74rem;
}

.ft-live-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    animation: ft-pulse 1.6s infinite;
}

.ft-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ft-live-grid div {
    padding: 14px;
    background: #f2f6fc;
    border-radius: 16px;
}

.ft-live-grid i {
    font-size: 1.15rem;
}

.ft-live-grid span {
    display: block;
    margin: 8px 0 2px;
    color: #5b6b82;
    font-size: 0.78rem;
}

.ft-live-grid strong {
    font-family: var(--ft-font-head);
    font-size: 1.4rem;
    font-weight: 800;
}

html[data-theme] .ft-live-grid small {
    color: #5b6b82;
    font-size: 0.75rem;
}

.ft-live-grid small,
.ft-flow-node b {
    direction: ltr;
    unicode-bidi: isolate;
}

.ft-c-pv { color: #e09b00; }
.ft-c-bat { color: #16a34a; }
.ft-c-home { color: #1f63b8; }
.ft-c-grid { color: #9333ea; }

.ft-live-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 13px;
    color: #fff !important;
    background: var(--ft-blue-grad);
    border-radius: 14px;
    font-family: var(--ft-font-head);
    font-size: 0.9rem;
    font-weight: 700;
}

html[dir='ltr'] .ft-live-link i {
    transform: scaleX(-1);
}

@keyframes ft-pulse {
    50% { opacity: 0.35; }
}

@media (max-width: 960px) {
    .ft-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ft-hero-visual {
        display: none;
    }
}

@media (max-width: 640px) {
    .ft-hero {
        border-radius: 0 0 28px 28px;
    }

    .ft-hero::before {
        background-position: center;
    }

    .ft-hero::after {
        top: -150px;
        inset-inline-end: -170px;
        width: 360px;
        height: 360px;
    }

    .ft-hero-inner {
        padding: 36px 0 34px;
        text-align: center;
    }

    .ft-hero h1 {
        margin: 14px 0 12px;
        font-size: 1.6rem !important;
    }

    .ft-hero-lead {
        font-size: 0.95rem !important;
        line-height: 1.85 !important;
    }

    .ft-hero-actions {
        justify-content: center;
        margin-top: 20px;
    }

    .ft-hero-actions .ft-btn {
        flex: 1 1 140px;
    }

    .ft-hero-stats {
        gap: 6px;
        margin-top: 22px;
    }

    .ft-hero-stats div {
        padding: 10px 4px;
        border-radius: 14px;
    }

    .ft-hero-stats strong {
        font-size: 1.2rem;
    }

    .ft-hero-stats span {
        display: block;
        font-size: 0.68rem;
        line-height: 1.35;
    }
}

/* ---------- Home: services ---------- */
.ft-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ft-service {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    overflow: hidden;
    color: var(--ft-ink) !important;
    background: var(--ft-surface);
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius);
    box-shadow: var(--ft-shadow-sm);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ft-service::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--ft-gold-grad);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.ft-service:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 180, 43, 0.5);
    box-shadow: var(--ft-shadow);
}

.ft-service:hover::before,
.ft-service-featured::before {
    opacity: 1;
}

.ft-service-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fff;
    background: var(--ft-blue-grad);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(31, 99, 184, 0.25);
    font-size: 1.3rem;
    transition: background 0.18s ease;
}

.ft-service:hover .ft-service-icon,
.ft-service-featured .ft-service-icon {
    color: var(--ft-on-gold);
    background: var(--ft-gold-grad);
    box-shadow: 0 8px 18px rgba(242, 180, 43, 0.35);
}

.ft-service-featured {
    border-color: rgba(242, 180, 43, 0.55);
    background: linear-gradient(160deg, #fff4d6, var(--ft-surface) 62%);
}

html[data-theme='dark'] .ft-service-featured {
    background: linear-gradient(160deg, rgba(247, 205, 85, 0.14), var(--ft-surface) 62%);
}

.ft-service h3 {
    margin: 4px 0 0;
    color: var(--ft-navy) !important;
    font-size: 1.06rem !important;
    font-weight: 700;
    line-height: 1.45 !important;
}

html[data-theme='dark'] .ft-service h3 {
    color: var(--ft-ink) !important;
}

.ft-service p {
    margin: 0;
    color: var(--ft-muted);
    font-size: 0.88rem !important;
    line-height: 1.75 !important;
}

.ft-service-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--ft-accent);
    font-family: var(--ft-font-head);
    font-size: 0.84rem;
    font-weight: 700;
}

.ft-service-more::after {
    content: '\f060';
    font-family: 'Font Awesome 6 Free';
    font-size: 0.75rem;
    font-weight: 900;
}

html[dir='ltr'] .ft-service-more::after {
    content: '\f061';
}

@media (max-width: 960px) {
    .ft-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ft-section {
        padding: 44px 0;
    }

    .ft-section-head {
        margin-bottom: 22px;
    }

    .ft-h2 {
        font-size: 1.35rem !important;
    }

    .ft-lead {
        font-size: 0.9rem !important;
    }

    .ft-services-grid {
        gap: 8px;
    }

    .ft-service {
        align-items: center;
        gap: 8px;
        padding: 16px 4px 14px;
        border-radius: 16px;
        text-align: center;
    }

    .ft-service p,
    .ft-service-more {
        display: none;
    }

    .ft-service h3 {
        margin: 0;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    .ft-service-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 1.1rem;
    }
}

/* ---------- Home: solar platform ---------- */
.ft-platform {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--ft-hero-bg);
}

.ft-platform-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 56px;
}

.ft-platform .ft-h2 {
    color: #fff !important;
}

.ft-platform .ft-lead {
    color: #dfe8f6;
}

.ft-new-badge {
    display: inline-block;
    margin-inline-end: 8px;
    padding: 3px 10px;
    color: var(--ft-on-gold);
    background: var(--ft-gold-300);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
}

.ft-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 26px 0;
}

.ft-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
}

.ft-feature > i {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--ft-on-gold);
    background: var(--ft-gold-grad);
    border-radius: 13px;
}

.ft-feature strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-family: var(--ft-font-head);
    font-size: 0.96rem;
    font-weight: 700;
}

.ft-feature span {
    color: #d5e0f0;
    font-size: 0.82rem;
    line-height: 1.6;
}

.ft-platform-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ft-platform-note {
    margin: 14px 0 0;
    color: #c4d3e8;
    font-size: 0.82rem !important;
}

.ft-phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

.ft-phone-stage::before {
    content: '';
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(circle, rgba(230, 189, 92, 0.28), transparent 65%);
    filter: blur(20px);
}

.ft-phone {
    position: relative;
    width: 280px;
    padding: 10px;
    background: #050b1c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.ft-phone-screen {
    display: grid;
    gap: 10px;
    padding: 30px 12px 12px;
    color: #0f1b33;
    background: #f2f5fb;
    border-radius: 31px;
    overflow: hidden;
    position: relative;
}

.ft-phone-screen::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    width: 78px;
    height: 18px;
    background: #050b1c;
    border-radius: 999px;
    transform: translateX(-50%);
}

.ft-app-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
}

.ft-app-top .ft-live-dot {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    font-size: 0.66rem;
}

.ft-app-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.ft-app-cards div {
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 27, 51, 0.06);
}

.ft-app-cards span {
    display: block;
    color: #64748b;
    font-size: 0.62rem;
}

.ft-app-cards strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.ft-app-cards small {
    color: #64748b;
    font-size: 0.62rem;
}

.ft-app-flow {
    position: relative;
    height: 170px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 27, 51, 0.06);
}

.ft-app-flow svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ft-app-flow path {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 5 7;
    animation: ft-flow 1.1s linear infinite;
}

.ft-flow-node {
    position: absolute;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 0.95rem;
    transform: translate(-50%, -50%);
}

.ft-flow-node b {
    position: absolute;
    top: 100%;
    margin-top: 2px;
    color: #0f1b33;
    font-size: 0.6rem;
    font-weight: 800;
    white-space: nowrap;
}

.ft-flow-inv {
    width: 46px;
    height: 46px;
    color: #1b3a64;
    background: #eef2fb;
}

.ft-app-node-pv { color: #d99a00; }
.ft-app-node-bat { color: #16a34a; }
.ft-app-node-home { color: #2563eb; }
.ft-app-node-grid { color: #9333ea; }

@keyframes ft-flow {
    to { stroke-dashoffset: -24; }
}

.ft-app-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 4px 2px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
    text-align: center;
}

.ft-app-tabs i:first-child {
    color: #1b3a64;
}

@media (max-width: 960px) {
    .ft-platform-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .ft-platform .ft-section-copy {
        text-align: center;
    }

    .ft-feature-list {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 20px 0;
        text-align: start;
    }

    .ft-feature {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .ft-feature span {
        font-size: 0.74rem;
    }

    .ft-platform-actions .ft-btn {
        flex: 1 1 100%;
    }

    .ft-phone {
        width: 250px;
    }
}

/* ---------- Home: process ---------- */
.ft-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ft-step {
    position: relative;
    padding: 24px 22px;
    background: var(--ft-surface);
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius);
    box-shadow: var(--ft-shadow-sm);
}

.ft-step-num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    color: var(--ft-on-gold);
    background: var(--ft-gold-grad);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(242, 180, 43, 0.3);
    font-size: 1rem;
    font-weight: 800;
}

.ft-step:nth-child(even) .ft-step-num {
    color: #fff;
    background: var(--ft-blue-grad);
    box-shadow: 0 8px 18px rgba(31, 99, 184, 0.25);
}

.ft-step h3 {
    margin: 0 0 6px;
    color: var(--ft-navy) !important;
    font-size: 1.05rem !important;
    font-weight: 700;
}

html[data-theme='dark'] .ft-step h3 {
    color: var(--ft-ink) !important;
}

.ft-step p {
    margin: 0;
    color: var(--ft-muted);
    font-size: 0.86rem !important;
    line-height: 1.7 !important;
}

@media (max-width: 960px) {
    .ft-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ft-steps {
        gap: 8px;
    }

    .ft-step {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .ft-step-num {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
        border-radius: 10px;
        font-size: 0.82rem;
    }

    .ft-step h3 {
        font-size: 0.88rem !important;
    }

    .ft-step p {
        font-size: 0.76rem !important;
        line-height: 1.6 !important;
    }
}

/* ---------- Home: solutions by site ---------- */
.ft-alt {
    background: linear-gradient(180deg, #fffaf0, #fff3d9);
}

html[data-theme='dark'] .ft-alt {
    background: var(--ft-surface-2);
}

.ft-solutions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ft-solution {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    background: var(--ft-surface);
    border: 1px solid rgba(214, 165, 49, 0.22);
    border-radius: var(--ft-radius);
    box-shadow: 0 10px 26px rgba(141, 101, 18, 0.08);
}

html[data-theme='dark'] .ft-solution {
    border-color: var(--ft-line);
    box-shadow: none;
}

.ft-solution > i {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: #fff;
    background: var(--ft-blue-grad);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(31, 99, 184, 0.25);
    font-size: 1.35rem;
}

.ft-solution h3 {
    margin: 4px 0 0;
    color: var(--ft-navy) !important;
    font-size: 1.15rem !important;
    font-weight: 700;
}

html[data-theme='dark'] .ft-solution h3 {
    color: var(--ft-ink) !important;
}

.ft-solution p {
    margin: 0;
    color: var(--ft-muted);
    font-size: 0.88rem !important;
}

.ft-solution ul {
    display: grid;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.ft-solution li {
    display: flex;
    gap: 8px;
    color: var(--ft-ink);
    font-size: 0.86rem !important;
}

.ft-solution li::before {
    content: '\f00c';
    color: var(--ft-gold);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.ft-solution a {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    color: var(--ft-navy) !important;
    background: var(--ft-gold-soft);
    border-radius: 12px;
    font-family: var(--ft-font-head);
    font-size: 0.86rem;
    font-weight: 700;
}

.ft-solution a:hover {
    color: var(--ft-on-gold) !important;
    background: var(--ft-gold-grad);
}

html[data-theme='dark'] .ft-solution a {
    color: var(--ft-gold-300) !important;
}

@media (max-width: 960px) {
    .ft-solutions {
        display: flex;
        gap: 12px;
        margin-inline: -16px;
        padding: 0 16px 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .ft-solutions::-webkit-scrollbar {
        display: none;
    }

    .ft-solution {
        flex: 0 0 min(78vw, 320px);
        scroll-snap-align: center;
        padding: 18px;
    }
}

/* ---------- Home: transactions hub band ---------- */
.ft-portal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 26px 28px;
    background: var(--ft-surface);
    border: 1px solid var(--ft-line);
    border-radius: 22px;
    box-shadow: var(--ft-shadow);
}

.ft-portal-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #fff;
    background: var(--ft-navy);
    border-radius: 16px;
    font-size: 1.4rem;
}

.ft-portal h3 {
    margin: 0 0 4px;
    color: var(--ft-ink) !important;
    font-size: 1.15rem !important;
    font-weight: 800;
}

.ft-portal p {
    margin: 0;
    color: var(--ft-muted);
    font-size: 0.9rem !important;
}

.ft-solar-promo {
    margin-bottom: 24px;
}

.ft-solar-promo .ft-portal-icon {
    color: var(--ft-on-gold);
    background: var(--ft-gold-grad);
}

@media (max-width: 760px) {
    .ft-portal {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }

    .ft-portal-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 1.1rem;
    }

    .ft-portal p {
        font-size: 0.82rem !important;
    }

    .ft-portal .ft-btn {
        grid-column: 1 / -1;
    }
}

/* ---------- Home: final call to action ---------- */
.ft-cta {
    padding: 84px 0;
}

.ft-cta-box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    isolation: isolate;
    padding: 42px;
    color: var(--ft-navy);
    background: linear-gradient(120deg, #ffe084 0%, #f7c443 50%, #eeaa22 100%);
    border-radius: 30px;
    box-shadow: 0 24px 50px rgba(214, 150, 20, 0.28);
}

.ft-cta-box::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -120px;
    inset-inline-start: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.35) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask: radial-gradient(circle, transparent 28%, #000 29%, transparent 70%);
    mask: radial-gradient(circle, transparent 28%, #000 29%, transparent 70%);
}

html[data-theme] .ft-cta-box .ft-h2 {
    color: var(--ft-navy) !important;
}

html[data-theme] .ft-cta-box .ft-lead {
    color: #4a3b12;
}

html[data-theme] .ft-cta-box .ft-kicker {
    color: var(--ft-navy);
    background: rgba(255, 255, 255, 0.5);
}

.ft-cta-box .ft-kicker::before {
    background: var(--ft-navy);
    box-shadow: none;
}

.ft-cta-box .ft-btn-gold {
    color: #fff !important;
    background: var(--ft-blue-grad);
    box-shadow: 0 10px 24px rgba(27, 59, 98, 0.3);
}

.ft-cta-box .ft-btn-ghost-light {
    color: var(--ft-navy) !important;
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(27, 59, 98, 0.25);
}

.ft-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 760px) {
    .ft-cta {
        padding: 44px 0;
    }

    .ft-cta-box {
        grid-template-columns: 1fr;
        padding: 28px 18px;
        border-radius: 24px;
        text-align: center;
    }

    .ft-cta-actions .ft-btn {
        flex: 1 1 140px;
    }
}

/* ---------- Inner pages: legacy components in brand colours ---------- */
html[data-theme] :is(.pro-hero, .services-hero, .about-hero, .contact-hero, .portfolio-header) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: var(--ft-hero-bg) !important;
    border: 0;
    border-radius: 0 0 40px 40px;
}

html[data-theme] :is(.pro-hero, .services-hero, .about-hero, .contact-hero, .portfolio-header)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 0;
    border-radius: 0;
    background: url('../assets/img/v2-hero-solar.webp') center 60% / cover no-repeat;
    opacity: 0.14;
    mix-blend-mode: luminosity;
    pointer-events: none;
}

html[data-theme] :is(.pro-hero, .services-hero, .about-hero, .contact-hero, .portfolio-header)::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -170px;
    bottom: auto;
    left: auto;
    right: auto;
    inset-inline-end: -130px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 214, 102, 0.16) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask: radial-gradient(circle, transparent 30%, #000 31%, transparent 70%);
    mask: radial-gradient(circle, transparent 30%, #000 31%, transparent 70%);
    pointer-events: none;
}

html[data-theme] :is(.pro-hero, .services-hero, .about-hero, .contact-hero, .portfolio-header) :is(h1, h2) {
    color: #fff !important;
    font-weight: 800;
    line-height: 1.35 !important;
    text-shadow: 0 2px 18px rgba(10, 30, 60, 0.25);
}

html[data-theme] :is(.pro-hero, .services-hero, .about-hero, .contact-hero, .portfolio-header) p {
    color: #e6eefa !important;
}

@media (max-width: 640px) {
    html[data-theme] :is(.pro-hero, .services-hero, .about-hero, .contact-hero, .portfolio-header) {
        border-radius: 0 0 28px 28px;
    }

    html[data-theme] :is(.pro-hero, .services-hero, .about-hero, .contact-hero, .portfolio-header)::after {
        top: -140px;
        inset-inline-end: -160px;
        width: 320px;
        height: 320px;
    }
}

html[data-theme] :is(.pro-hero, .services-hero, .about-hero, .contact-hero, .portfolio-header) :is(.pro-kicker, .contact-kicker, .portfolio-kicker) {
    color: #ffe08a;
    background: rgba(255, 214, 102, 0.14);
    border: 1px solid rgba(255, 214, 102, 0.38);
}

main .pro-kicker,
.pro-section .pro-kicker {
    color: var(--ft-gold-700);
    background: var(--ft-gold-soft);
}

html[data-theme='dark'] main .pro-kicker,
html[data-theme='dark'] .pro-section .pro-kicker {
    color: var(--ft-gold-300);
}

html[data-theme] .btn-primary {
    background: var(--ft-blue-grad) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 10px 24px rgba(31, 99, 184, 0.24);
}

html[data-theme] .btn-primary:hover {
    background: linear-gradient(135deg, #2a72c9, var(--ft-navy-700)) !important;
    color: #fff !important;
}

html[data-theme] .pro-hero .btn-primary,
html[data-theme] .services-hero .btn-primary,
html[data-theme='dark'] .btn-primary {
    background: var(--ft-gold-grad) !important;
    color: var(--ft-on-gold) !important;
    box-shadow: 0 10px 24px rgba(242, 180, 43, 0.32);
}

html[data-theme] .pro-hero .btn:not(.btn-primary),
html[data-theme] .services-hero .btn:not(.btn-primary) {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
}

html[data-theme] .pro-hero .btn:not(.btn-primary):hover,
html[data-theme] .services-hero .btn:not(.btn-primary):hover {
    color: var(--ft-gold-300) !important;
    border-color: var(--ft-gold-300) !important;
}

html[data-theme] .btn:not(.btn-primary):not(.lang-toggle-btn):hover {
    color: var(--ft-gold-700);
    border-color: var(--ft-gold);
}

html[data-theme] .about-identity-card {
    background: linear-gradient(150deg, #1b3b62, #1f63b8) !important;
}

html[data-theme] :is(.about-identity-card, .contact-quick-card) img {
    box-sizing: border-box;
    height: auto;
    padding: 10px 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(8, 26, 52, 0.22);
}

html[data-theme] .domain-pill i {
    color: #fff;
    background: var(--ft-blue-grad);
}

html[data-theme] .pro-card-icon {
    color: #fff;
    background: var(--ft-blue-grad);
    box-shadow: 0 8px 18px rgba(31, 99, 184, 0.22);
}

html[data-theme='dark'] .pro-card-icon {
    color: var(--ft-on-gold);
    background: var(--ft-gold-grad);
    box-shadow: none;
}

html[data-theme] :is(.pro-card, .service-index-card, .service-step) {
    box-shadow: var(--ft-shadow-sm);
}

.section-title {
    color: var(--ft-navy) !important;
}

html[data-theme='dark'] .section-title {
    color: var(--ft-ink) !important;
}

.section-title::after {
    background: linear-gradient(90deg, var(--ft-gold), var(--ft-gold-300));
}

button,
input,
select,
textarea {
    font-family: inherit;
}

@media (max-width: 760px) {
    .service-detail-hero .service-visual-card {
        display: none;
    }

    .service-detail-hero .pro-actions .btn {
        flex: 1 1 100%;
    }

    .service-detail-hero .pro-actions .btn:nth-child(n + 3) {
        flex: 1 1 calc(50% - 6px);
        white-space: normal;
        line-height: 1.35;
    }
}

/* ---------- Polish pass: spacing, overlaps, compact phone layouts ---------- */
@media (max-width: 768px) {
    body {
        padding-bottom: 0 !important;
    }

    footer.ft-footer {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

.service-step::before {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 0.9rem;
}

.service-step h3 {
    margin: 2px 0 4px;
}

.service-index-card .card-number {
    inset: 14px auto auto 18px;
    inset-block-start: 14px;
    inset-inline-end: 18px;
    inset-inline-start: auto;
    color: rgba(27, 58, 100, 0.1);
}

html[data-theme='dark'] .service-index-card .card-number {
    color: rgba(255, 255, 255, 0.08);
}

.service-category {
    color: var(--ft-gold-700);
}

.timeline-icon {
    inset: 22px auto auto 26px;
    inset-block-start: 22px;
    inset-inline-end: 26px;
    inset-inline-start: auto;
    z-index: 0;
    opacity: 0.7;
}

.timeline-slide > *:not(.timeline-icon) {
    position: relative;
    z-index: 1;
}

.about-trust-head .section-kicker,
.timeline-heading .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ft-gold-700);
    font-size: 0.82rem;
    font-weight: 800;
}

.about-trust-head .section-kicker::before,
.timeline-heading .section-kicker::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ft-gold);
}

html[data-theme='dark'] .about-trust-head .section-kicker,
html[data-theme='dark'] .timeline-heading .section-kicker {
    color: var(--ft-gold-300);
}

@media (max-width: 760px) {
    /* Hero number boxes: one compact row instead of three tall cards. */
    .about-highlights,
    .portfolio-proof,
    .visit-proof {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .about-highlights div,
    .portfolio-proof div,
    .visit-proof div {
        padding: 12px 8px !important;
        border-radius: 14px !important;
        text-align: center;
    }

    .about-highlights strong,
    .portfolio-proof strong,
    .visit-proof strong {
        font-size: 1.15rem !important;
        margin-bottom: 4px;
    }

    .about-highlights span,
    .portfolio-proof span,
    .visit-proof span {
        display: block;
        font-size: 0.72rem !important;
        line-height: 1.4;
    }

    /* Short card lists: two columns. */
    .domain-showcase,
    .portfolio-quality-strip,
    .visit-process,
    .contact-action-grid,
    .selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .domain-pill {
        padding: 10px !important;
        font-size: 0.8rem !important;
        gap: 8px !important;
    }

    .portfolio-quality-strip article,
    .visit-step,
    .contact-action-grid a {
        padding: 14px 12px !important;
        border-radius: 16px !important;
    }

    .visit-step h3,
    .portfolio-quality-strip span {
        font-size: 0.92rem !important;
    }

    .visit-step p,
    .portfolio-quality-strip small,
    .contact-action-grid small {
        font-size: 0.76rem !important;
        line-height: 1.55;
    }

    .select-card {
        padding: 16px 10px !important;
    }

    .visit-assurance-strip,
    .quote-readiness-strip small,
    .contact-quick-card img {
        display: none !important;
    }

    .quote-readiness-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .quote-readiness-strip article {
        padding: 10px 8px !important;
        text-align: center;
        font-size: 0.78rem;
    }

    /* Filters: one swipeable row. */
    .service-filter-bar,
    .filter-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        overflow-x: auto;
        padding: 6px 2px 10px !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .service-filter-bar::-webkit-scrollbar,
    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .service-filter-bar > span {
        display: none !important;
    }

    .service-filter-bar button,
    .filter-buttons .filter-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-height: 38px;
        padding: 8px 14px !important;
        white-space: nowrap;
    }

    .service-index-card .service-card-actions .btn {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
        min-height: 40px;
        white-space: normal;
        line-height: 1.3;
    }

    .service-index-card .service-card-actions .btn-primary {
        flex-basis: 100%;
    }

    .contact-layout {
        display: flex !important;
        flex-direction: column;
    }

    .contact-layout .contact-form-card {
        order: -1;
    }

    .contact-info-card {
        padding: 16px !important;
    }

    .ft-footer-col > a {
        min-height: 36px;
    }
}

/* ---------- Dark mode: legacy page blocks that hard-code white surfaces ---------- */
html[data-theme='dark'] .about-trust-section {
    background: var(--ft-bg) !important;
}

html[data-theme='dark'] .about-trust-grid article,
html[data-theme='dark'] .service-bundles-panel article,
html[data-theme='dark'] .service-filter-bar,
html[data-theme='dark'] .portfolio-quality-strip article,
html[data-theme='dark'] .quote-readiness-strip article,
html[data-theme='dark'] .visit-form {
    background: var(--ft-surface) !important;
    border-color: var(--ft-line) !important;
    box-shadow: none !important;
}

html[data-theme='dark'] .about-trust-head h2,
html[data-theme='dark'] .about-trust-grid h3,
html[data-theme='dark'] .service-bundles-panel strong,
html[data-theme='dark'] .portfolio-quality-strip span,
html[data-theme='dark'] .visit-form-head h2,
html[data-theme='dark'] .visit-field label {
    color: var(--ft-ink) !important;
}

html[data-theme='dark'] .about-trust-head p,
html[data-theme='dark'] .about-trust-grid p,
html[data-theme='dark'] .service-bundles-panel span,
html[data-theme='dark'] .portfolio-quality-strip small,
html[data-theme='dark'] .quote-readiness-strip small,
html[data-theme='dark'] .visit-form-head p {
    color: var(--ft-muted) !important;
}

html[data-theme='dark'] .service-bundles-panel a,
html[data-theme='dark'] .portfolio-quality-strip strong,
html[data-theme='dark'] .quote-readiness-strip strong {
    color: var(--ft-gold-300) !important;
}

html[data-theme='dark'] .service-filter-bar button:not(.active),
html[data-theme='dark'] .filter-buttons .filter-btn:not(.active),
html[data-theme='dark'] .progress-step:not(.active) {
    color: var(--ft-ink) !important;
    background: var(--ft-surface-2) !important;
    border-color: var(--ft-line) !important;
}

html[data-theme='dark'] .service-filter-bar button.active,
html[data-theme='dark'] .filter-buttons .filter-btn.active,
html[data-theme='dark'] .progress-step.active,
html[data-theme='dark'] .btn-wizard.btn-next,
html[data-theme='dark'] .btn-wizard[type='submit'],
html[data-theme='dark'] .error-page .btn-home {
    color: var(--ft-on-gold) !important;
    background: var(--ft-gold-grad) !important;
    border-color: transparent !important;
}

html[data-theme='dark'] .ft-app-cards small {
    color: #56657c !important;
}

html[data-theme='dark'] .mobile-bottom-link.mobile-solar-shortcut span {
    color: var(--ft-on-gold) !important;
}
