* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #071126;
    --surface: #0f1c38;
    --surface-soft: #132447;
    --text: #eaf2ff;
    --muted: #9db0d4;
    --line: rgba(255, 255, 255, 0.12);
    --primary: #2d7cff;
    --primary-strong: #1463ea;
    --primary-soft: rgba(45, 124, 255, 0.2);
    --shadow: 0 20px 40px rgba(2, 7, 20, 0.35);
}

html[data-theme="light"] {
    --bg: #f3f7ff;
    --surface: #ffffff;
    --surface-soft: #f7f9ff;
    --text: #14223f;
    --muted: #5b6e8f;
    --line: rgba(20, 34, 63, 0.12);
    --primary: #1f6bff;
    --primary-strong: #1257d4;
    --primary-soft: rgba(31, 107, 255, 0.12);
    --shadow: 0 16px 34px rgba(20, 34, 63, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(50, 110, 255, 0.18), transparent 40%),
        radial-gradient(circle at 88% 95%, rgba(50, 110, 255, 0.1), transparent 38%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

/* Navbar overrides: padding + hover to match home.css behavior */
.hdr .hdr__link {
    padding: 7px 9px;
}
.hdr .hdr__link:hover { color: var(--nb-primary) !important; background: rgba(29,78,216,.09) !important; }
[data-theme="dark"] .hdr .hdr__link:hover { color: #fff !important; background: rgba(255,255,255,.10) !important; }


section {
    position: relative;
    padding: 160px 0;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid var(--line);
    background: var(--primary-soft);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
}

h1,
h2,
h3,
h4 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.16;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 72px;
}

.section-subtitle {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.65;
}

.hero {
    padding-top: 100px;
    padding-bottom: 110px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 52px;
    align-items: center;
}

.hero-content h1 {
    margin-top: 16px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.05;
}

.hero-content p {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 620px;
    font-size: 1.04rem;
}

.btn-group {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-4px) scale(1.04);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    color: white;
    background: linear-gradient(120deg, var(--primary), var(--primary-strong));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 45%, transparent);
}

.btn-primary:hover {
    box-shadow: 0 22px 48px color-mix(in srgb, var(--primary) 68%, transparent),
                0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
    filter: brightness(1.12);
}

.btn-outline {
    color: var(--text);
    border-color: var(--line);
    background: var(--surface);
    transition: transform 0.22s ease, box-shadow 0.25s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.btn-outline:hover {
    background: var(--surface-soft);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
    box-shadow: 0 12px 28px rgba(2, 7, 20, 0.28);
}

.hero-media {
    position: relative;
}

.hero-image-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.hero-image-shell img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-image-shell img:hover {
    transform: scale(1.015);
}

.modules-section,
.contact-section {
    background: color-mix(in srgb, var(--surface) 42%, transparent);
}

.pricing-section {
    background: color-mix(in srgb, var(--surface-soft) 32%, transparent);
}

.tour-section {
    background: transparent;
}

.modules-section::before,
.modules-section::after,
.contact-section::before,
.pricing-section::after,
.tour-section::before,
.tour-section::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 34%, var(--line)) 38%, color-mix(in srgb, var(--primary) 34%, var(--line)) 62%, transparent);
    pointer-events: none;
    filter: blur(0.4px);
}

.modules-section::before,
.contact-section::before,
.tour-section::before { top: 0; }
.modules-section::after,
.pricing-section::after,
.tour-section::after { bottom: 0; }

.pricing-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--primary) 10%, transparent) 0%, transparent 68%);
    pointer-events: none;
}

.modules-swiper-shell {
    position: relative;
}

.swiper {
    position: relative;
    overflow: hidden;
    padding-bottom: 38px;
}

.modules-swiper-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--line));
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 24px rgba(2, 7, 20, 0.28);
    transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.modules-swiper-prev {
    left: -58px;
}

.modules-swiper-next {
    right: -58px;
}

.modules-swiper-nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
    box-shadow: 0 16px 30px rgba(2, 7, 20, 0.34);
}

.modules-swiper-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.modules-swiper-nav.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.swiper-slide {
    display: flex;
    height: auto;
}

.module-card {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: auto auto minmax(84px, auto) minmax(62px, auto) auto;
    align-content: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    will-change: transform;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s ease, border-color 0.24s ease;
}

.module-card:hover {
    transform: translateY(-10px);
    border-color: color-mix(in srgb, var(--primary) 52%, var(--line));
    box-shadow: 0 28px 52px rgba(2, 7, 20, 0.5), 0 0 0 1px color-mix(in srgb, var(--primary) 14%, transparent);
}

.module-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.module-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    min-height: 58px;
}

.module-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 84px;
}

.module-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 62px;
}

.module-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.module-features i {
    color: var(--primary);
}

.demo-img-placeholder {
    margin-top: auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.module-preview-fallback {
    position: relative;
    margin-top: auto;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 88%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding: 22px;
}

.module-preview-fallback::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    pointer-events: none;
}

.module-preview-fallback i,
.module-preview-fallback strong,
.module-preview-fallback span {
    position: relative;
    z-index: 1;
}

.module-preview-fallback i {
    font-size: 1.8rem;
    color: var(--primary);
}

.module-preview-fallback strong {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.module-preview-fallback span {
    color: var(--muted);
    font-size: 0.9rem;
}

.module-preview-admin {
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.18), transparent 32%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 88%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
}

.demo-img-placeholder img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
    cursor: pointer;
}

.module-shot-dashboard,
.module-shot-stock,
.module-shot-os,
.module-shot-crm,
.module-shot-finance,
.module-shot-quotes,
.module-shot-suppliers,
.module-shot-purchases,
.module-shot-sales,
.module-shot-admin {
    border-radius: 0;
}

.demo-img-placeholder img:hover {
    transform: scale(1.04);
}

.swiper-pagination-bullet {
    background: color-mix(in srgb, var(--muted) 55%, transparent);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

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

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
    will-change: transform;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s ease, border-color 0.24s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
    box-shadow: 0 28px 52px rgba(2, 7, 20, 0.46), 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent);
}

.pricing-popular {
    border-color: color-mix(in srgb, var(--primary) 54%, var(--line));
    box-shadow: 0 24px 46px color-mix(in srgb, var(--primary) 28%, transparent);
}

.pricing-best {
    border-color: rgba(16, 185, 129, 0.45);
}

.plan-badge {
    align-self: flex-start;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
}

.pricing-best .plan-badge {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.pricing-card h3 {
    font-size: 1.35rem;
}

.pricing-price {
    font-family: 'Inter', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-price span {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    margin-left: 4px;
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 8px;
}

.pricing-list li {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.pricing-list li:last-child { margin-bottom: 8px; }

.pricing-list i {
    color: var(--primary);
}

.pricing-card .btn {
    margin-top: auto;
}

.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.showcase-text h3 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin: 14px 0 12px;
}

.showcase-text p {
    color: var(--muted);
    line-height: 1.7;
}

.tour-features {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tour-feature {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.tour-feature:hover {
    transform: translateX(3px);
    color: var(--text);
}

.tour-feature i {
    color: var(--primary);
}

.showcase-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.context-shot-tour {
    height: 420px;
    object-fit: cover;
    object-position: 58% 52%;
}

.showcase-img img:hover {
    transform: scale(1.02);
}

.btn-tour {
    margin-top: 20px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.contact-info h2 {
    margin: 14px 0 12px;
}

.contact-info p {
    color: var(--muted);
    line-height: 1.7;
}

.contact-details {
    margin: 22px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-detail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
}

.contact-detail i {
    color: var(--primary);
    width: 24px;
}

.whatsapp-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    background: linear-gradient(120deg, #25d366, #12a06b);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

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

.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.btn-block {
    width: 100%;
    justify-content: center;
}


.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(4, 9, 18, 0.86);
    backdrop-filter: blur(6px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.modal-content-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: min(92vw, 980px);
    max-height: 84vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#modalCaption {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    color: white;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 8px 12px;
    border-radius: 10px;
}

.reveal {
    opacity: 0;
    transform: translateY(52px);
    transition: opacity 0.88s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.88s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-grid,
    .showcase,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .hero {
        padding-top: 90px;
    }
}

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

    .context-shot-tour {
        height: auto;
        object-fit: contain;
    }
    .modules-swiper-nav {
        width: 38px;
        height: 38px;
    }

    .modules-swiper-prev {
        left: -18px;
    }

    .modules-swiper-next {
        right: -18px;
    }
}

@media (max-width: 680px) {
    section {
        padding: 100px 0;
    }

    .hero {
        padding-top: 86px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .showcase {
        padding: 22px;
    }

    .contact-form {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
