/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1B1B1B;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: #1B3A4B;
    color: #fff;
}

.btn-primary:hover {
    background: #152e3d;
}

.btn-outline {
    background: #fff;
    color: #1B3A4B;
    border: 1px solid #1B3A4B;
}

.btn-outline:hover {
    background: #f0f4f7;
}

.btn-outline-dark {
    background: transparent;
    color: #1B3A4B;
    border: 1px solid #1B3A4B;
}

.btn-outline-dark:hover {
    background: #1B3A4B;
    color: #fff;
}

.btn-outline-dark.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-white {
    background: #fff;
    color: #1B3A4B;
    border: none;
    padding: 14px 28px;
}

.btn-white:hover {
    background: #f0f4f7;
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 24px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #E8EEF2;
    border-radius: 14px;
    padding: 12px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    color: #64748B;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #1B3A4B;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
}

.nav-login:hover {
    color: #1B3A4B;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1B3A4B;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
    padding: 0 24px;
}

.hero .container {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    max-width: 1440px;
    border: 1px solid #E8EEF2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.hero-content {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #1B3A4B;
    margin-bottom: 16px;
}

.hero h1 .highlight {
    color: #1B3A4B;
}

.hero-subtitle {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 420px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-note {
    font-size: 13px;
    color: #38BDF8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-image {
    position: relative;
    overflow: hidden;
    padding: 32px 32px 32px 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ===== Trust Bar ===== */
.trust-bar {
    padding: 40px 24px;
    border-bottom: 1px solid #eee;
}

.trust-items {
    display: flex;
    justify-content: space-between;
    padding: 0 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748B;
}

/* ===== Social Proof ===== */
.social-proof {
    padding: 56px 24px;
}

.social-proof-inner {
    text-align: center;
    max-width: 640px;
}

.stars {
    font-size: 20px;
    color: #1B3A4B;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.social-proof blockquote {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #1B3A4B;
    margin-bottom: 24px;
    font-style: italic;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-author strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.quote-author span {
    font-size: 13px;
    color: #64748B;
}

/* ===== Features Sections ===== */
.features-workflow,
.features-crm {
    padding: 80px 24px 40px;
}

.features-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.features-header-left h2 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #1B3A4B;
    margin-bottom: 16px;
}

.features-header-left p {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
}

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

.features-workflow .features-header-right .feature-mini:first-child {
    grid-column: 2;
}

.feature-mini {
    text-align: center;
}

.feature-mini-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-mini h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1B3A4B;
}

.feature-mini p {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
}

.dashboard-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.dashboard-image img {
    width: 100%;
    display: block;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 80px 24px;
    background: #F8FAFC;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #E8EEF2;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1B3A4B;
    margin-bottom: 16px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #1B3A4B;
    text-align: center;
    margin-bottom: 48px;
}

.how-it-works .section-badge {
    display: block;
    text-align: center;
    margin: 0 auto 16px;
    width: fit-content;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #E8EEF2;
}

.step-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #E0F2FE;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1B3A4B;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1B3A4B;
}

.step-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 20px;
    text-wrap: balance;
}

.step-image {
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    height: 340px;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.step-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.step-card--wide .step-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-card--wide .btn {
    align-self: flex-start;
}

.step-image--side {
    border-radius: 12px;
}

.steps-grid .step-card:first-child p {
    max-width: 340px;
}

/* ===== Comparison ===== */
.comparison {
    padding: 80px 24px;
    background: #F0F5F8;
    text-align: center;
}

.comparison .section-badge {
    display: inline-block;
    margin: 0 auto 16px;
}

.section-subtitle {
    font-size: 15px;
    color: #64748B;
    max-width: 560px;
    margin: -24px auto 72px;
    line-height: 1.6;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: left;
}

.comparison-col-wrapper {
    display: flex;
    flex-direction: column;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    justify-content: center;
    color: #1B3A4B;
}

.comparison-col {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #E8EEF2;
    flex: 1;
}

.comparison-col--with {
    border: 1px solid #38BDF8;
}

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.comparison-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 80px 24px;
}

.section-title-left {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #1B3A4B;
    margin-bottom: 8px;
}

.section-subtitle-left {
    font-size: 15px;
    color: #64748B;
    margin-bottom: 40px;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    background: #fff;
    border: 1px solid #E8EEF2;
    border-radius: 16px;
    padding: 28px;
}

.testimonial-card .stars {
    text-align: left;
    margin-bottom: 12px;
}

.testimonial-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 12px;
    color: #94A3B8;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E1;
    transition: background 0.2s;
    cursor: pointer;
}

.dot.active {
    background: #1B3A4B;
}

.carousel-arrows {
    display: flex;
    gap: 8px;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #E8EEF2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B3A4B;
    transition: all 0.2s;
}

.carousel-arrow:hover {
    background: #F0F5F8;
}

/* ===== FAQ ===== */
.faq {
    padding: 80px 24px;
}

.faq .section-title {
    margin-bottom: 40px;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E8EEF2;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 500;
    color: #1B3A4B;
    text-align: left;
}

.faq-question svg {
    color: #94A3B8;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 20px;
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
}

/* ===== Contact CTA ===== */
.contact-cta {
    padding: 40px 24px 80px;
}

.contact-cta-inner {
    text-align: center;
}

.contact-cta h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1B3A4B;
    margin-bottom: 8px;
}

.contact-cta p {
    font-size: 15px;
    color: #64748B;
    margin-bottom: 24px;
}

/* ===== Final CTA ===== */
.final-cta {
    padding: 0 24px 80px;
}

.final-cta-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 40, 0.7);
}

.final-cta-content {
    position: relative;
    text-align: center;
    padding: 60px 24px;
    max-width: 600px;
}

.final-cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.final-cta-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid #E8EEF2;
    padding: 48px 24px 0;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 22px;
    width: auto;
    display: block;
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.footer-nav a {
    font-size: 14px;
    color: #64748B;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #1B3A4B;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #64748B;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #1B3A4B;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
    color: #94A3B8;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #64748B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal a:hover {
    color: #1B3A4B;
}

/* ===== Waitlist Popup ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.33, 0, 0.67, 1);
}

.popup-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.popup-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    max-width: 440px;
    width: 90%;
    position: relative;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
}

.popup-close:hover {
    color: #1B3A4B;
}

.popup-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1B3A4B;
    margin-bottom: 8px;
}

.popup-card>p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 28px;
    text-wrap: pretty;
}

#waitlistForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#waitlistForm input {
    padding: 14px 16px;
    border: 1px solid #E8EEF2;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

#waitlistForm input:focus {
    border-color: #38BDF8;
}

#waitlistForm .btn {
    margin-top: 4px;
    width: 100%;
    justify-content: center;
}

.popup-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.popup-success p {
    font-size: 16px;
    font-weight: 600;
    color: #1B3A4B;
}

/* ===== Mobile Nav Overlay ===== */
.nav-links.open,
.nav-actions.open {
    display: flex;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 36px;
    }

    .features-header {
        grid-template-columns: 1fr;
    }

    .features-header-left h2,
    .section-title,
    .section-title-left {
        font-size: 32px;
    }

    .testimonial-card {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-links.open {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid #eee;
        z-index: 99;
    }

    .nav-actions.open {
        position: fixed;
        top: calc(60px + 160px);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 0 24px 24px;
        gap: 12px;
        z-index: 99;
    }

    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 0 16px;
    }

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

    .hero-content {
        padding: 32px 24px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-image {
        height: 280px;
        padding: 0 24px 24px;
    }

    .trust-items {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0;
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .features-header-right {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .features-workflow .features-header-right .feature-mini:first-child {
        grid-column: auto;
    }

    .features-header-left h2,
    .section-title,
    .section-title-left {
        font-size: 28px;
    }

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

    .step-card {
        padding: 24px;
    }

    .step-card--wide {
        grid-template-columns: 1fr;
    }

    .step-image {
        height: auto;
        aspect-ratio: 5 / 4;
    }

    .steps-grid .step-card:first-child p {
        max-width: none;
    }

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

    .comparison-col {
        padding: 24px;
    }

    .testimonial-card {
        min-width: calc(100% - 0px);
    }

    .final-cta-content h2 {
        font-size: 28px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .faq-question {
        padding: 20px 24px;
    }

    .faq-answer {
        padding: 0 24px 20px;
    }

    .popup-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-content {
        padding: 28px 20px;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .features-header-right {
        grid-template-columns: 1fr;
    }

    .features-header-left h2,
    .section-title,
    .section-title-left {
        font-size: 24px;
    }

    .final-cta-content h2 {
        font-size: 24px;
    }
}