@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --font-outfit: 'Outfit', sans-serif;

    /* Colors from globals.css */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f2f4f7;
    --color-gray-200: #e4e7ec;
    --color-gray-300: #d0d5dd;
    --color-gray-400: #98a2b3;
    --color-gray-500: #667085;
    --color-gray-600: #475467;
    --color-gray-700: #344054;
    --color-gray-800: #1d2939;
    --color-gray-900: #101828;

    --color-brand-50: #fee7e5;
    --color-brand-100: #fbd5d1;
    --color-brand-200: #f6b0a8;
    --color-brand-500: #d64634;
    --color-brand-600: #c13d2f;
    --color-brand-700: #a73326;
    --color-brand-900: #732018;

    --color-blue-600: #2563eb;
    --color-purple-600: #9333ea;
}

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

body {
    font-family: var(--font-outfit);
    background-color: var(--color-white);
    color: var(--color-gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilities equivalent */
.min-h-screen {
    min-height: 100vh;
}

.w-full {
    width: 100%;
}

.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

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

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.grid {
    display: grid;
}

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

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .sm\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .sm\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }

    .md\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:pt-32 {
        padding-top: 8rem;
    }

    .lg\:pb-28 {
        padding-bottom: 7rem;
    }
}

/* Header */
header {
    position: sticky;
    top: 10px;
    z-index: 50;
    border-bottom: 1px solid var(--color-gray-100);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
}

:root {
    /* header safe offset used to keep hero content below sticky header on mobile */
    --header-offset: 64px;
}

.header-inner {
    height: 4rem;
}

.logo {
    height: 4rem;
    width: auto;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-link:hover {
    color: var(--color-gray-900);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
    padding: 1.5rem 1.5rem;
    font-size: 0.875rem;
    height: 3.5rem;
}

.btn-primary {
    background-color: var(--color-brand-600);
    color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background-color: var(--color-brand-700);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-lg {
    height: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1.125rem;
}

.btn-outline {
    background-color: var(--color-white);
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.btn-outline:hover {
    background-color: var(--color-gray-50);
}

.btn-outline-brand {
    background-color: var(--color-brand-50);
    color: var(--color-brand-600);
    border: 1px solid var(--color-brand-200);
}

.btn-outline-brand:hover {
    background-color: var(--color-brand-100);
}

/* Animations */
.lottie-container {
    position: absolute;
    height: 600px;
    width: 400px;
    overflow: hidden;
    right: 100px;
    top: 100px;
    z-index: 0;
}

/* Responsive tweaks */
/* Mobile header */
.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    color: var(--color-gray-700);
}

.nav-links {
    gap: 1rem;
}

@media (max-width: 768px) {

    /* Header adjustments */
    .header-inner {
        height: 3.5rem;
    }

    .logo {
        height: 3rem;
    }

    .nav-links {
        display: none;
    }

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

    /* Hero scaling */
    h1 {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
        max-width: 100%;
    }

    .btn {
        padding: 0.75rem 1rem;
        height: auto;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Features grid stacking */
    .grid {
        grid-template-columns: 1fr;
    }

    /* Lottie: show inline under the hero on small devices */
    .lottie-container {
        display: block;
        position: relative;
        width: 100%;
        height: 260px;
        right: auto;
        top: auto;
        margin: 1rem 0 0;
        z-index: 0;
    }

    /* Keep hero content below the sticky header */
    .hero-section { padding-top: calc(var(--header-offset) + 1rem); }

    /* Pricing: horizontal overlapped scroller */
    #pricing .grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE 10+ */
    }

    /* Hide webkit scrollbar */
    #pricing .grid::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    #pricing .pricing-card {
        min-width: 82%;
        flex: 0 0 auto;
        scroll-snap-align: center;
        margin-left: -1.5rem;
        /* create slight overlap */
        transition: transform 0.18s ease, box-shadow 0.18s ease;
        z-index: 1;
    }

    #pricing .pricing-card:first-child {
        margin-left: 0;
    }

    /* Add padding so the first and last card can center nicely */
    #pricing .grid {
        padding-left: 1rem;
        padding-right: 2rem;
    }

    /* Slightly reduce border contrast on overlapping cards for nicer look */
    #pricing .pricing-card {
        border-color: rgba(16, 24, 40, 0.06);
    }

    /* Slight lift on the centered card when touched/hovered */
    #pricing .pricing-card:active,
    #pricing .pricing-card:focus-within,
    #pricing .pricing-card:hover {
        transform: translateY(-6px);
        z-index: 3;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .lottie-container {
        right: 40px;
        top: 120px;
        transform: scale(0.9);
    }
}

@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-links {
        display: flex;
    }
}

/* Hero */
.hero-badge {
    border-radius: 9999px;
    background-color: var(--color-brand-50);
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-brand-600);
    border: 1px solid rgba(193, 61, 47, 0.2);
}

h1 {
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--color-gray-900);
}

.text-brand-600 {
    color: var(--color-brand-600);
}

.hero-text {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 42rem;
}

#features{
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Crect stroke='%23ffffff' stroke-width='0.6' width='1' height='1' id='s'/%3E%3Cpattern id='a' width='3' height='3' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cuse fill='%23fcfcfc' href='%23s' y='2'/%3E%3Cuse fill='%23fcfcfc' href='%23s' x='1' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s' x='2' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='2'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='1' y='1'/%3E%3C/pattern%3E%3Cpattern id='b' width='7' height='11' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' y='5' /%3E%3Cuse href='%23s' x='1' y='10'/%3E%3Cuse href='%23s' x='2' y='1'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='8'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='5' y='2'/%3E%3Cuse href='%23s' x='5' y='6'/%3E%3Cuse href='%23s' x='6' y='9'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='h' width='5' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s' y='5'/%3E%3Cuse href='%23s' y='8'/%3E%3Cuse href='%23s' x='1' y='1'/%3E%3Cuse href='%23s' x='1' y='9'/%3E%3Cuse href='%23s' x='1' y='12'/%3E%3Cuse href='%23s' x='2'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='2'/%3E%3Cuse href='%23s' x='3' y='6'/%3E%3Cuse href='%23s' x='3' y='11'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='4' y='10'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='c' width='17' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23f2f2f2'%3E%3Cuse href='%23s' y='11'/%3E%3Cuse href='%23s' x='2' y='9'/%3E%3Cuse href='%23s' x='5' y='12'/%3E%3Cuse href='%23s' x='9' y='4'/%3E%3Cuse href='%23s' x='12' y='1'/%3E%3Cuse href='%23s' x='16' y='6'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='d' width='19' height='17' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23ffffff'%3E%3Cuse href='%23s' y='9'/%3E%3Cuse href='%23s' x='16' y='5'/%3E%3Cuse href='%23s' x='14' y='2'/%3E%3Cuse href='%23s' x='11' y='11'/%3E%3Cuse href='%23s' x='6' y='14'/%3E%3C/g%3E%3Cg fill='%23efefef'%3E%3Cuse href='%23s' x='3' y='13'/%3E%3Cuse href='%23s' x='9' y='7'/%3E%3Cuse href='%23s' x='13' y='10'/%3E%3Cuse href='%23s' x='15' y='4'/%3E%3Cuse href='%23s' x='18' y='1'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='e' width='47' height='53' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23C13D2F'%3E%3Cuse href='%23s' x='2' y='5'/%3E%3Cuse href='%23s' x='16' y='38'/%3E%3Cuse href='%23s' x='46' y='42'/%3E%3Cuse href='%23s' x='29' y='20'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='f' width='59' height='71' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23C13D2F'%3E%3Cuse href='%23s' x='33' y='13'/%3E%3Cuse href='%23s' x='27' y='54'/%3E%3Cuse href='%23s' x='55' y='55'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='g' width='139' height='97' patternUnits='userSpaceOnUse' patternTransform='scale(50) translate(-980 -735)'%3E%3Cg fill='%23C13D2F'%3E%3Cuse href='%23s' x='11' y='8'/%3E%3Cuse href='%23s' x='51' y='13'/%3E%3Cuse href='%23s' x='17' y='73'/%3E%3Cuse href='%23s' x='99' y='57'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23b)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23h)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23c)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23d)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23e)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23f)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23g)' width='100%25' height='100%25'/%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;    
}
/* Features */
.feature-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-gray-100);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.icon-wrapper {
    display: inline-flex;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background-color: var(--color-gray-50);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--color-gray-600);
    line-height: 1.625;
}

/* Pricing */
.pricing-card {
    position: relative;
    border-radius: 1rem;
    padding: 2rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
}

.pricing-card.popular {
    border: 1px solid var(--color-brand-500);
    box-shadow: 0 0 0 2px var(--color-brand-500);
}

.popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 9999px;
    background-color: var(--color-brand-500);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
}

@media (max-width: 768px) {
    .feature-card {
        padding: 1rem;
    }

    .pricing-card {
        padding: 1rem;
    }

    .pricing-card .btn,
    .pricing-card .btn-primary,
    .pricing-card .btn-outline-brand {
        width: 100%;
        display: inline-flex;
        justify-content: center;
    }

    .feature-desc {
        font-size: 0.95rem;
    }

    footer {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    footer .max-w-7xl {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}

.price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.price-period {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-600);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    align-items: center;
    margin-bottom: 0.75rem;
}

.checkmark {
    color: var(--color-brand-600);
}

/* CTA */
.cta-section {
    background-color: var(--color-brand-600);
    color: var(--color-white);
}

.cta-text {
    color: var(--color-brand-100);
    font-size: 1.125rem;
}

/* Footer */
footer {
    background-color: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.footer-link {
    color: var(--color-gray-500);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--color-gray-900);
}

.bg-gray-50 {
    background-color: var(--color-gray-50);
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-brand-600);
}

.modal-message {
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

.modal-link {
    color: var(--color-brand-600);
    text-decoration: underline;
}