:root {
    --primary: #4f8cff;
    --primary-2: #6f5cff;
    --accent: #14b8a6;
    --warning: #f59e0b;
    --success: #27e98d;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --transition: 0.25s ease;
    --logo-panel-bg: rgba(8, 11, 18, 0.84);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

[data-bs-theme="dark"] {
    --body-bg: #080b12;
    --body-text: #f8fbff;
    --soft-bg: rgba(255, 255, 255, 0.035);
    --panel-bg: rgba(255, 255, 255, 0.065);
    --panel-solid: #101522;
    --line: rgba(255, 255, 255, 0.12);
    --muted-text: #aab3c5;
    --heading-text: #ffffff;
    --nav-bg: rgba(8, 11, 18, 0.84);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-border: rgba(255, 255, 255, 0.14);
    --input-text: #ffffff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.22);
    --hero-glow-1: rgba(79, 140, 255, 0.18);
    --hero-glow-2: rgba(20, 184, 166, 0.12);
}

[data-bs-theme="light"] {
    --body-bg: #f7f9fc;
    --body-text: #101522;
    --soft-bg: rgba(79, 140, 255, 0.07);
    --panel-bg: rgba(255, 255, 255, 0.065);
    --panel-solid: #ffffff;
    --line: rgba(16, 21, 34, 0.12);
    --muted-text: #5d6678;
    --heading-text: #101522;
    --nav-bg: rgba(8, 11, 18, 0.84);
    --input-bg: #ffffff;
    --input-border: rgba(16, 21, 34, 0.14);
    --input-text: #101522;
    --shadow: 0 24px 70px rgba(37, 56, 88, 0.12);
    --shadow-soft: 0 18px 45px rgba(37, 56, 88, 0.10);
    --hero-glow-1: rgba(79, 140, 255, 0.15);
    --hero-glow-2: rgba(20, 184, 166, 0.11);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--body-text);
    background:
        radial-gradient(circle at top left, var(--hero-glow-1), transparent 34rem),
        radial-gradient(circle at top right, var(--hero-glow-2), transparent 30rem),
        var(--body-bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
}

a {
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.navbar-brand {
    color: var(--heading-text) !important;
}

.text-secondary,
.text-body-secondary,
.text-muted-custom {
    color: var(--muted-text) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-soft,
.soft-section {
    background: var(--soft-bg);
}

.section-padding,
.section-pad {
    padding: 6rem 0;
}

.section-title {
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.1rem;
}

.section-intro {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.copy-narrow {
    max-width: 760px;
}

.copy-wide {
    max-width: 820px;
}

.z-1 {
    z-index: 1;
}

.fw-black {
    font-weight: 900;
}

.glass-nav,
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.navbar .container {
    min-height: 64px;
}

.navbar-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-link {
    color: var(--muted-text) !important;
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary) !important;
}

.navbar-toggler {
    border-color: var(--line);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-bg);
    color: var(--heading-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 140, 255, 0.55);
}

.btn-primary,
.card-cta {
    background: linear-gradient(135deg, var(--accent), var(--primary), var(--primary-2));
    border: none;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(79, 140, 255, 0.28);
    font-weight: 800;
}

.btn-primary:hover,
.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(79, 140, 255, 0.36);
    color: #fff !important;
}

.btn-outline-custom,
.btn-outline-primary,
.btn-outline-secondary,
.btn-soft {
    color: var(--heading-text);
    border: 1px solid var(--line);
    background: var(--panel-bg);
    font-weight: 700;
}

.btn-outline-custom:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-soft:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-brand {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    border: none;
    color: #111827 !important;
    font-weight: 800;
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(79, 140, 255, 0.25);
    background: rgba(79, 140, 255, 0.12);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-base,
.hero-card,
.profile-card,
.service-card,
.solution-card,
.system-card,
.project-card,
.process-step,
.contact-info-card,
.contact-form-card,
.mini-stat,
.metric-card,
.feature-card,
.feature-list-card,
.workflow-card,
.content-card,
.gallery-card,
.usecase-card,
.use-case-card,
.comparison-card,
.addon-card,
.problem-card,
.benefit-card,
.use-card,
.process-card,
.stat-card,
.browser-card,
.glass-card,
.floating-card,
.cta-panel,
.before-after {
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

/* Home */
.hero-section {
    min-height: 92vh;
    padding-top: 7rem;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::after,
.showcase-hero::after,
.hero::after {
    content: "";
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -14rem;
    bottom: -16rem;
    border-radius: 50%;
    background: rgba(79, 140, 255, 0.12);
    filter: blur(10px);
    pointer-events: none;
}

.hero-section .container,
.showcase-hero .container,
.hero .container {
    position: relative;
    z-index: 1;
}

.hero-card {
    padding: 2.25rem;
}

.hero-card li {
    margin-bottom: 0.8rem;
    color: var(--muted-text);
}

.status-dot {
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 24px rgba(39, 233, 141, 0.9);
}

.profile-card,
.contact-info-card,
.contact-form-card {
    padding: 2.6rem;
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a92dd, #00d9ff);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.logo-panel {
    background: var(--logo-panel-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-panel img {
    height: 32px;
    width: auto;
}

.mini-stat,
.service-card,
.solution-card,
.process-step,
.metric-card,
.feature-card,
.feature-list-card,
.workflow-card,
.content-card,
.gallery-card,
.usecase-card,
.use-case-card,
.comparison-card,
.addon-card,
.problem-card,
.benefit-card,
.use-card,
.process-card,
.stat-card {
    height: 100%;
    padding: 1.55rem;
}

.service-card,
.solution-card,
.system-card,
.project-card,
.metric-card,
.screenshot-card,
.gallery-card,
.usecase-card,
.use-case-card,
.comparison-card,
.addon-card,
.problem-card,
.benefit-card,
.use-card,
.process-card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover,
.solution-card:hover,
.system-card:hover,
.project-card:hover,
.metric-card:hover,
.screenshot-card:hover,
.gallery-card:hover,
.usecase-card:hover,
.use-case-card:hover,
.comparison-card:hover,
.addon-card:hover,
.problem-card:hover,
.benefit-card:hover,
.use-card:hover,
.process-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 140, 255, 0.48);
    box-shadow: var(--shadow);
}

.service-icon,
.icon,
.icon-bubble,
.icon-pill,
.industry-icon,
.contact-detail-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(79, 140, 255, 0.13);
    border: 1px solid rgba(79, 140, 255, 0.25);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.service-icon,
.icon,
.icon-pill {
    margin-bottom: 1.2rem;
}

.system-card,
.project-card,
.showcase-card {
    display: block;
    overflow: hidden;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.system-card-media,
.showcase-card-image,
.project-image {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #111827;
}

.system-card-media img,
.showcase-card-image img,
.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transform: scale(1.01);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.system-card-media::after,
.showcase-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.06), rgba(8, 11, 18, 0.58));
}

.system-card:hover .system-card-media img,
.showcase-card:hover .showcase-card-image img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.project-content,
.system-card-body {
    padding: 1.65rem;
}

.tech-list {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
}

.tech-list span,
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    padding: 0.48rem 0.8rem;
    background: rgba(79, 140, 255, 0.13);
    border: 1px solid rgba(79, 140, 255, 0.25);
    border-radius: 999px;
    color: var(--heading-text);
    font-weight: 700;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.15rem;
    padding: 0.68rem 1.05rem;
    border-radius: 999px;
    text-decoration: none;
}

.process-step {
    position: relative;
}

.process-step > span,
.process-number,
.number {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 1rem;
    background: rgba(79, 140, 255, 0.14);
    border: 1px solid rgba(79, 140, 255, 0.25);
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-section,
.cta-box,
.cta-panel {
    position: relative;
    overflow: hidden;
}

.cta-section {
    padding: 5.5rem 0;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.13), rgba(20, 184, 166, 0.08));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-box,
.cta-panel {
    padding: 2.5rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.cta-box h1,
.cta-box h2,
.cta-box h3,
.cta-box p,
.cta-box .lead {
    color: #fff !important;
}

.cta-box::after,
.cta-panel::after {
    content: "";
    position: absolute;
    width: 22rem;
    height: 22rem;
    right: -8rem;
    top: -10rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}

.contact-detail:last-child {
    border-bottom: 0;
}

.contact-detail strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--heading-text);
}

.contact-detail a,
.contact-detail span {
    color: var(--muted-text);
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--primary);
}

.form-label {
    color: var(--heading-text);
    font-weight: 700;
}

.form-control,
.form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    border-radius: 14px;
}

.form-control::placeholder {
    color: var(--muted-text);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: rgba(79, 140, 255, 0.65);
    box-shadow: 0 0 0 0.25rem rgba(79, 140, 255, 0.15);
}

.footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
}

/* Showcase pages */
.showcase-hero,
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 6.5rem;
    position: relative;
    overflow: hidden;
}

.hero-title,
.showcase-hero h1 {
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-copy {
    color: var(--muted-text);
    font-size: 1.08rem;
    max-width: 44rem;
}

.hero-screen-wrap,
.screenshot-stack,
.hero-preview {
    transform: perspective(1000px) rotateY(-7deg) rotateX(3deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.hero-screen-wrap:hover,
.screenshot-stack:hover,
.hero-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-6px);
}

.hero-screen,
.stack-img-main,
.hero-preview img,
.screenshot-frame,
.screenshot-card img,
.gallery-card img,
.screenshot-img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.hero-screen,
.stack-img-main,
.hero-preview img {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.screenshot-stack {
    position: relative;
}

.stack-img-floating {
    position: absolute;
    width: 48%;
    right: -1.2rem;
    bottom: -1.2rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.feature-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
    border-bottom: 0;
}

.feature-list-card ul,
.advantage-list,
.check-list,
.x-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.feature-list-card li,
.advantage-item,
.check-list li,
.x-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.feature-list-card li:last-child,
.advantage-item:last-child,
.check-list li:last-child,
.x-list li:last-child {
    margin-bottom: 0;
}

.check-list i,
.advantage-item i {
    color: var(--success);
}

.x-list i {
    color: #ef4444;
}

.gallery-card,
.screenshot-card {
    overflow: hidden;
    padding: 0;
}

.gallery-card img,
.screenshot-card img,
.screenshot-img {
    aspect-ratio: 16 / 9;
}

.gallery-caption,
.gallery-body,
.screenshot-label {
    padding: 1rem 1.15rem 1.2rem;
}

.screenshot-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
}

.screenshot-label::after {
    content: "View";
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary);
    border: 1px solid rgba(79, 140, 255, 0.25);
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
}

.screenshot-card {
    cursor: pointer;
}

.modal-content {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    color: var(--body-text);
}

.modal-img {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid var(--line);
}

.browser-card {
    overflow: hidden;
}

.browser-bar {
    height: 44px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1rem;
    background: rgba(148, 163, 184, 0.10);
}

.browser-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.42);
}

.browser-url {
    margin-left: 0.5rem;
    min-width: 0;
    color: var(--muted-text);
    font-size: 0.82rem;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    padding: 0.32rem 0.75rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-shot .screenshot-img {
    aspect-ratio: 16 / 8.2;
}

.floating-card {
    padding: 1rem;
}

.floating-card-small {
    max-width: 260px;
}

.dark-band {
    background: #0f172a;
    color: #fff;
}

.dark-band h1,
.dark-band h2,
.dark-band h3,
.dark-band h4,
.dark-band p,
.dark-band .text-muted-custom {
    color: #fff !important;
}

.before-after {
    overflow: hidden;
}

.before-after .ba-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}

.before-after .ba-row:last-child {
    border-bottom: none;
}

.before-after .ba-header,
.before-after .ba-cell {
    padding: 1rem 1.25rem;
}

.before-after .ba-header:first-child,
.before-after .ba-cell:first-child {
    border-right: 1px solid var(--line);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.sticky-tabs {
    position: sticky;
    top: 72px;
    z-index: 5;
    background: var(--body-bg);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0;
}

@media (max-width: 991.98px) {
    .section-padding,
    .section-pad {
        padding: 4.5rem 0;
    }

    .hero-section,
    .showcase-hero,
    .hero {
        min-height: auto;
        padding: 7.5rem 0 4.5rem;
    }

    .theme-toggle {
        margin-top: 1rem;
    }

    .hero-screen-wrap,
    .screenshot-stack,
    .hero-preview {
        transform: none;
    }

    .stack-img-floating {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section,
    .showcase-hero,
    .hero {
        text-align: center;
    }

    .display-4,
    .display-5,
    .display-6,
    .hero-title {
        font-size: 2.35rem;
    }

    .profile-card,
    .contact-info-card,
    .contact-form-card,
    .cta-box,
    .cta-panel {
        padding: 1.65rem;
    }

    .system-card-media,
    .showcase-card-image,
    .project-image {
        height: 205px;
    }

    .before-after .ba-row {
        grid-template-columns: 1fr;
    }

    .before-after .ba-header:first-child,
    .before-after .ba-cell:first-child {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
}

/* WordPress responsive refinements */
html {
    overflow-x: hidden;
}

body.admin-bar .fixed-top {
    top: 32px;
}

img {
    height: auto;
}

.navbar {
    --bs-navbar-padding-y: 0.35rem;
}

.navbar .container {
    min-height: 60px;
}

.navbar-brand img {
    height: clamp(28px, 2.1vw, 34px);
}

.navbar-toggler-icon {
    filter: invert(1) opacity(0.9);
}

.hero-section,
.showcase-hero,
.hero {
    min-height: auto;
    padding: clamp(6rem, 9vh, 7.5rem) 0 clamp(3.5rem, 7vh, 5rem);
}

.hero-section {
    min-height: min(820px, 86vh);
}

.hero-section .display-4 {
    font-size: clamp(2.45rem, 4.3vw, 4.55rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-title,
.showcase-hero h1 {
    font-size: clamp(2.25rem, 3.65vw, 4.15rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.hero-copy,
.showcase-hero .lead,
.hero .lead,
.hero-section .lead {
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    line-height: 1.6;
}

.showcase-hero .row,
.hero .row,
.hero-section .row {
    row-gap: 2.25rem;
}

.hero-screen-wrap,
.hero-preview,
.browser-card.hero-shot {
    max-width: 720px;
    margin-inline: auto;
}

.hero-screen,
.hero-preview img,
.browser-card.hero-shot .screenshot-img {
    object-fit: contain;
    background: #0b1220;
}

.mini-stat,
.stat-card {
    min-height: auto;
}

.btn-lg {
    font-weight: 800;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (min-width: 992px) and (max-height: 820px) {
    .hero-section,
    .showcase-hero,
    .hero {
        padding-top: 5.5rem;
        padding-bottom: 3rem;
    }

    .hero-section {
        min-height: 720px;
    }

    .hero-section .display-4,
    .hero-title,
    .showcase-hero h1 {
        font-size: clamp(2.3rem, 3.35vw, 3.75rem);
        line-height: 1.02;
    }

    .showcase-hero .lead,
    .hero .lead,
    .hero-section .lead,
    .hero-copy {
        font-size: 1rem;
        line-height: 1.55;
    }

    .mini-stat,
    .stat-card {
        padding: 1rem 1.15rem;
    }

    .hero-screen-wrap,
    .hero-preview,
    .browser-card.hero-shot {
        max-width: 650px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section .display-4,
    .hero-title,
    .showcase-hero h1 {
        font-size: clamp(2.45rem, 4vw, 3.55rem);
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: rgba(8, 11, 18, 0.96);
        box-shadow: var(--shadow-soft);
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .navbar-nav .nav-link,
    .navbar-nav .btn,
    .theme-toggle {
        width: 100%;
    }

    .theme-toggle {
        margin-left: 0 !important;
    }

    .hero-section,
    .showcase-hero,
    .hero {
        padding-top: 6.25rem;
        padding-bottom: 3.5rem;
        text-align: left;
    }

    .showcase-hero .d-flex,
    .hero .d-flex,
    .hero-section .d-flex {
        justify-content: flex-start;
    }

    .hero-screen-wrap,
    .screenshot-stack,
    .hero-preview,
    .browser-card.hero-shot {
        transform: none !important;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .section-padding,
    .section-pad {
        padding: 3.6rem 0;
    }

    .hero-section .display-4,
    .display-5,
    .display-6,
    .hero-title,
    .showcase-hero h1,
    .section-title {
        font-size: clamp(2.05rem, 10vw, 2.55rem) !important;
        line-height: 1.04;
    }

    .lead,
    .hero-copy,
    .showcase-hero .lead {
        font-size: 1rem;
    }

    .btn-lg {
        --bs-btn-padding-y: 0.75rem;
        --bs-btn-padding-x: 1rem;
        --bs-btn-font-size: 1rem;
    }

    .mini-stat,
    .stat-card,
    .feature-card,
    .content-card,
    .metric-card,
    .usecase-card,
    .use-case-card,
    .benefit-card,
    .process-card,
    .addon-card {
        padding: 1.15rem;
    }

    .screenshot-label::after {
        display: none;
    }

    .sticky-tabs {
        top: 60px;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 782px) {
    body.admin-bar .fixed-top {
        top: 46px;
    }
}

/* Final responsive polish v1.0.2
   This block intentionally sits at the end so it overrides older static-page rules. */
:root {
    --nav-real-height: 64px;
}

html,
body {
    width: 100%;
    max-width: 100%;
}

main,
header,
section {
    max-width: 100%;
}

/* Let the design breathe on large screens, but keep it fluid when browser zoom changes. */
.container {
    width: min(100% - 2rem, 1240px);
    max-width: 1240px;
    padding-left: 0;
    padding-right: 0;
}

.navbar .container {
    width: min(100% - 2rem, 1240px);
    max-width: 1240px;
}

.navbar,
.glass-nav {
    min-height: var(--nav-real-height);
}

.navbar .container {
    min-height: var(--nav-real-height);
}

.navbar-brand img {
    height: clamp(28px, 2vw, 34px);
}

/* Main hero handling: no fixed 92vh lock. The hero now reflows when the viewport/zoom changes. */
.hero-section,
.showcase-hero,
.hero,
.page-business-websites main > .section-pad:first-child {
    min-height: 0 !important;
    padding-top: calc(var(--nav-real-height) + clamp(1.25rem, 3.6vh, 2.6rem)) !important;
    padding-bottom: clamp(2.5rem, 5vh, 4.25rem) !important;
    display: block !important;
    overflow: hidden;
}

.hero-section .row,
.showcase-hero .row,
.hero .row,
.page-business-websites main > .section-pad:first-child .row {
    align-items: center !important;
}

.hero-section .display-4,
.hero-title,
.showcase-hero h1 {
    font-size: clamp(2.4rem, 4.1vw, 4.75rem) !important;
    line-height: 0.99 !important;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.showcase-hero h1 {
    font-size: clamp(2.25rem, 3.75vw, 4.15rem) !important;
}

.hero-copy,
.showcase-hero .lead,
.hero .lead,
.hero-section .lead {
    max-width: 46rem;
    font-size: clamp(1rem, 1.15vw, 1.15rem) !important;
    line-height: 1.58;
}

.hero-screen-wrap,
.hero-preview,
.browser-card.hero-shot,
.screenshot-stack {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
}

.hero-screen,
.hero-preview img,
.browser-card.hero-shot .screenshot-img,
.stack-img-main {
    width: 100%;
    height: auto !important;
    max-height: min(48vh, 420px);
    object-fit: contain !important;
    object-position: center top;
}

.hero-card {
    max-width: 520px;
    margin-inline: auto;
}

/* Cards must not force the hero below the fold on normal laptops. */
.mini-stat,
.stat-card {
    padding: clamp(0.95rem, 1.25vw, 1.35rem) !important;
}

.mini-stat strong,
.stat-card .fw-black {
    overflow-wrap: anywhere;
}

/* Desktop and laptop: keep two-column layout, but reduce height pressure. */
@media (min-width: 1200px) {
    .hero-section .row,
    .showcase-hero .row,
    .hero .row,
    .page-business-websites main > .section-pad:first-child .row {
        min-height: clamp(450px, calc(100svh - 10rem), 650px);
    }
}

/* Important for browser zoom and smaller laptop widths: stack before the layout becomes cramped. */
@media (max-width: 1199.98px) {
    .hero-section .row > [class*="col-lg"],
    .showcase-hero .row > [class*="col-lg"],
    .hero .row > [class*="col-lg"],
    .page-business-websites main > .section-pad:first-child .row > [class*="col-lg"] {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .hero-section,
    .showcase-hero,
    .hero,
    .page-business-websites main > .section-pad:first-child {
        padding-top: calc(var(--nav-real-height) + 1.5rem) !important;
        padding-bottom: 3.25rem !important;
    }

    .hero-section .display-4,
    .hero-title,
    .showcase-hero h1 {
        font-size: clamp(2.25rem, 6.2vw, 3.65rem) !important;
        line-height: 1.02 !important;
    }

    .hero-screen-wrap,
    .hero-preview,
    .browser-card.hero-shot,
    .screenshot-stack,
    .hero-card {
        max-width: 820px;
        margin-left: 0;
        margin-right: auto;
        transform: none !important;
    }

    .hero-screen,
    .hero-preview img,
    .browser-card.hero-shot .screenshot-img,
    .stack-img-main {
        max-height: none;
    }
}

/* Short laptop screens like 1366 x 768. */
@media (min-width: 1200px) and (max-height: 820px) {
    .hero-section,
    .showcase-hero,
    .hero,
    .page-business-websites main > .section-pad:first-child {
        padding-top: calc(var(--nav-real-height) + 1rem) !important;
        padding-bottom: 2rem !important;
    }

    .hero-section .row,
    .showcase-hero .row,
    .hero .row,
    .page-business-websites main > .section-pad:first-child .row {
        min-height: 0;
    }

    .hero-section .display-4,
    .hero-title,
    .showcase-hero h1 {
        font-size: clamp(2.25rem, 3.5vw, 3.45rem) !important;
        line-height: 1.03 !important;
    }

    .hero-copy,
    .showcase-hero .lead,
    .hero .lead,
    .hero-section .lead {
        font-size: 0.98rem !important;
        line-height: 1.55;
    }

    .hero-screen-wrap,
    .hero-preview,
    .browser-card.hero-shot,
    .screenshot-stack {
        max-width: 590px;
    }

    .hero-screen,
    .hero-preview img,
    .browser-card.hero-shot .screenshot-img,
    .stack-img-main {
        max-height: 340px;
    }

    .hero-section .mb-4,
    .showcase-hero .mb-4,
    .hero .mb-4 {
        margin-bottom: 1.1rem !important;
    }
}

/* Tablet/mobile: single-column, readable, no horizontal scroll. */
@media (max-width: 991.98px) {
    .container,
    .navbar .container {
        width: min(100% - 1.5rem, 100%);
    }

    .navbar-collapse {
        max-height: calc(100svh - var(--nav-real-height) - 1.5rem);
        overflow-y: auto;
    }

    .hero-section,
    .showcase-hero,
    .hero,
    .page-business-websites main > .section-pad:first-child {
        text-align: left !important;
        padding-top: calc(var(--nav-real-height) + 1.25rem) !important;
        padding-bottom: 3rem !important;
    }

    .hero-section .display-4,
    .hero-title,
    .showcase-hero h1,
    .section-title,
    .display-5,
    .display-6 {
        font-size: clamp(2.15rem, 8.8vw, 3.25rem) !important;
        line-height: 1.04 !important;
    }

    .hero-section .d-flex,
    .showcase-hero .d-flex,
    .hero .d-flex {
        justify-content: flex-start !important;
    }

    .hero-screen-wrap,
    .hero-preview,
    .browser-card.hero-shot,
    .screenshot-stack,
    .hero-card {
        max-width: 100%;
        margin-inline: 0;
        transform: none !important;
    }

    .section-padding,
    .section-pad,
    .py-5 {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .container,
    .navbar .container {
        width: min(100% - 1.15rem, 100%);
    }

    .hero-section .display-4,
    .hero-title,
    .showcase-hero h1,
    .section-title,
    .display-5,
    .display-6 {
        font-size: clamp(2rem, 11vw, 2.7rem) !important;
    }

    .hero-section .btn,
    .showcase-hero .btn,
    .hero .btn,
    .page-business-websites main > .section-pad:first-child .btn {
        width: 100%;
        justify-content: center;
    }

    .mini-stat,
    .stat-card {
        min-height: auto;
    }

    .feature-pill,
    .eyebrow,
    .section-kicker {
        white-space: normal;
    }
}
