:root {
    --p: #d1320d;
    --pd: #005786;
    --d: #0b2634;
    --tm: #222;
    --tb: #555;
    --bg: #f8f9fa;
    --w: #fff;
    --bb: #f5f7f9;
    --bt: #d1320d;
    --tg: #00a651;
    --tbl: #0078d4;
    --tgr: #e7ebef
}

html {
    scroll-behavior: smooth
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--tm);
    background: var(--w);
    line-height: 1.6
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--d)
}

.text-primary {
    color: var(--p)
}

.d-none {
    display: none
}

.navbar {
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 50
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--d)
}

.navbar-brand i {
    color: var(--p);
    font-size: 1.6rem
}

.btn-nav {
    padding: .7rem 1.5rem;
    background: var(--w);
    color: var(--d);
    border: 1px solid var(--tgr);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: .2s;
    display: flex;
    align-items: center;
    gap: 8px
}

.btn-nav:hover {
    border-color: var(--p);
    color: var(--p)
}

.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: var(--w);
    min-height: 85vh;
    display: flex;
    align-items: center
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    color: var(--p);
    font-weight: 600;
    font-size: .9rem;
    background: rgba(209, 50, 13, .08);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(209, 50, 13, .15)
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--tm);
    letter-spacing: -1px
}

.hero-content p {
    font-size: 1rem;
    color: var(--tb);
    margin-bottom: 2.5rem;
    max-width: 500px
}

.btn-hero-pill {
    padding: 1rem 2.8rem;
    background: var(--p);
    color: var(--w);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    transition: .3s;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(209, 50, 13, .3)
}

.btn-hero-pill:hover {
    background: #b02a0b;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(209, 50, 13, .4)
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, #d1320d26 0, #fff0 100%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 550px;
    display: grid;
    place-items: center
}

.interactive-card {
    grid-area: 1/1;
    background: var(--w);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .1);
    border: 1px solid var(--tgr);
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
    transform-origin: center bottom
}

.card-dashboard {
    z-index: 10;
    transform: rotate(-3deg) translateY(0);
    transition: transform 1.2s cubic-bezier(.34, 1.56, .64, 1), opacity 1s ease, filter 1s ease, z-index 0s .6s
}

.card-memories {
    z-index: 5;
    background: #fff8f6;
    transform: rotate(5deg) translate(25px, -20px) scale(.95);
    opacity: .9;
    border-color: #ffdacc;
    transition: transform 1.2s cubic-bezier(.34, 1.56, .64, 1), opacity 1s ease, box-shadow 1s ease, z-index 0s .6s
}

.card-stack.swapped .card-dashboard {
    z-index: 5;
    transform: rotate(-8deg) translate(-30px, 10px) scale(.92);
    opacity: .8;
    filter: blur(1px);
    transition: transform 1.2s cubic-bezier(.34, 1.56, .64, 1), opacity 1s ease, filter 1s ease, z-index 0s
}

.card-stack.swapped .card-memories {
    z-index: 10;
    transform: rotate(2deg) translateY(-10px) scale(1);
    opacity: 1;
    box-shadow: 0 50px 90px -20px rgba(209, 50, 13, .15);
    transition: transform 1.2s cubic-bezier(.34, 1.56, .64, 1), opacity 1s ease, box-shadow 1s ease, z-index 0s
}

.memory-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem
}

.memory-icon {
    width: 48px;
    height: 48px;
    background: #ffe4de;
    color: var(--p);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem
}

.memory-title {
    font-size: 1.1rem;
    margin: 0
}

.memory-date {
    font-size: .8rem;
    color: var(--tb);
    margin: 0
}

.memory-quote {
    font-size: .9rem;
    color: var(--d)
}

.memory-link {
    margin-top: 1rem;
    font-size: .8rem;
    color: var(--p);
    font-weight: 600
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.5rem
}

.photo-placeholder {
    background: #fee;
    height: 80px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--p);
    font-size: .8rem;
    border: 1px dashed #fab
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem
}

.dashboard-title {
    font-size: 1.2rem;
    color: var(--d);
    margin-bottom: .2rem
}

.dashboard-member {
    font-size: .9rem;
    color: var(--tb)
}

.badge-status {
    background: rgba(0, 166, 81, .1);
    color: var(--tg);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .5px
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    color: var(--tb);
    margin-bottom: .5rem
}

.progress-current {
    color: var(--p);
    font-weight: 600
}

.progress-track {
    height: 8px;
    background: var(--tgr);
    border-radius: 4px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 70%;
    border-radius: 4px;
    background: linear-gradient(to right, var(--tg) 0%, var(--tg) 40%, var(--tbl) 40%, var(--tbl) 100%)
}

.file-box-red {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background: var(--w);
    border-radius: 16px;
    border: 1px solid var(--tgr);
    margin-top: 2.5rem
}

.file-icon-red {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 2px solid #ffe4de;
    background: #fff8f6;
    border-radius: 12px;
    color: var(--p);
    font-size: 1.5rem
}

.file-info-red {
    flex: 1
}

.file-name-red {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--d);
    margin-bottom: 4px
}

.file-meta-red {
    font-size: .85rem;
    color: var(--tb)
}

.file-download-icon {
    color: #9ca3af;
    font-size: 1.3rem
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 38, 52, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible
}

.modal-content {
    background: var(--w);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .15);
    border: 1px solid var(--tgr);
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: scale(.9);
    transition: transform .3s ease
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--tb);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    line-height: 1
}

.modal-close:hover {
    color: var(--d);
    transform: rotate(90deg)
}

.modal-title {
    font-size: 1.8rem;
    color: var(--d)
}

.modal-subtitle {
    color: var(--tb);
    margin-bottom: 2rem;
    font-size: .95rem
}

.inp-group {
    margin-bottom: 1.5rem
}

.inp-label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--d);
    margin-bottom: .6rem
}

.inp-wrapper {
    position: relative
}

.inp-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af
}

.inp-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--tgr);
    border-radius: 10px;
    background: var(--w);
    font-size: 1rem;
    transition: .2s;
    color: var(--tm);
    font-family: 'Inter', sans-serif
}

.inp-wrapper input:focus {
    border-color: var(--p);
    outline: none;
    background: #fffbfb
}

.btn-login-full {
    width: 100%;
    padding: 1.1rem;
    background: var(--p);
    color: var(--w);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: .2s;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px
}

.btn-login-full:hover {
    background: #b02a0b;
    transform: translateY(-2px)
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.8rem;
    font-size: .9rem;
    color: var(--tb)
}

.login-links-center {
    justify-content: center
}

.login-links a {
    color: var(--tbl);
    text-decoration: none;
    font-weight: 500
}

.benefit-list {
    list-style: none;
    padding: 0
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--d);
    font-weight: 500
}

.benefit-list li i {
    color: var(--tg);
    font-size: 1.2rem
}

.section-features {
    padding: 6rem 0;
    background: var(--w)
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem
}

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    background: var(--w);
    border: 1px solid var(--tgr);
    transition: .3s
}

.feature-card:hover {
    border-color: var(--p);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05)
}

.feature-desc {
    color: var(--tb);
    font-size: .95rem
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(209, 50, 13, .08);
    color: var(--p);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    margin-bottom: 1.5rem
}

.section-split {
    padding: 6rem 0;
    background: var(--w)
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start
}

.process-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--d)
}

.process-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem
}

.step-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--p);
    color: var(--w);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    margin-top: 4px
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
    font-weight: 700
}

.step-content p {
    font-size: .95rem;
    color: var(--tb);
    line-height: 1.6
}

.faq-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--d)
}

.faq-scroll-box {
    max-height: 400px;
    padding-right: 10px
}

.faq-scroll-box::-webkit-scrollbar {
    width: 6px
}

.faq-scroll-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px
}

.faq-scroll-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px
}

.faq-item {
    background: var(--w);
    border: 1px solid var(--tgr);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden
}

.faq-item summary {
    padding: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    color: var(--d);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.faq-item summary::-webkit-details-marker {
    display: none
}

.faq-item summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: .8rem;
    transition: .3s
}

.faq-item[open] summary::after {
    transform: rotate(180deg)
}

.faq-content {
    padding: 1rem 1.2rem 1.2rem 1.2rem;
    color: var(--tb);
    font-size: .9rem;
    line-height: 1.6;
    border-top: 1px solid var(--tgr)
}

.section-outro {
    padding: 6rem 0 6rem;
    text-align: center;
    background: var(--p);
    color: var(--w)
}

.section-outro h2 {
    font-size: 2.2rem;
    color: var(--w);
    margin-bottom: 1.5rem
}

.section-outro p {
    color: rgba(255, 255, 255, .9);
    max-width: 650px;
    margin: 0 auto;
    font-size: .95rem;
    line-height: 1.6
}

footer {
    background: var(--d);
    padding: 1.5rem 0;
    font-size: .85rem;
    color: #94a3b8
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: .2s
}

.footer-links a:hover {
    color: var(--w)
}

@media (max-width:900px) {

    .hero-grid,
    .split-grid {
        grid-template-columns: 1fr;
        gap: 3rem
    }

    .hero {
        text-align: center;
        padding-top: 7rem;
        padding-bottom: 4rem
    }

    .hero-content h1 {
        font-size: 2.5rem
    }

    .hero-content p {
        font-size: .95rem
    }

    .hero-actions {
        justify-content: center
    }

    .hero-visual {
        display: flex;
        margin-top: 3rem
    }

    .hero-visual::before {
        width: 120%;
        height: 120%
    }

    .card-stack {
        max-width: 100%
    }

    .interactive-card {
        padding: 1.8rem
    }

    .memory-title {
        font-size: 1rem
    }

    .memory-date {
        font-size: .75rem
    }

    .dashboard-title {
        font-size: 1.1rem
    }

    .dashboard-member {
        font-size: .85rem
    }

    .file-box-red {
        padding: 1rem;
        gap: 1rem
    }

    .file-icon-red {
        width: 40px;
        height: 40px;
        font-size: 1.2rem
    }

    .file-name-red {
        font-size: .95rem
    }

    .file-download-icon {
        font-size: 1.1rem
    }

    .container {
        padding: 0 1.5rem
    }

    .navbar {
        padding: 1rem 0
    }

    .navbar-brand {
        font-size: 1.2rem
    }

    .btn-nav {
        padding: .6rem 1.2rem;
        font-size: .85rem
    }

    .section-features,
    .section-split,
    .section-outro {
        padding: 4rem 0
    }

    /* .features-grid{grid-template-columns:1fr;gap:1.5rem} */
    .split-grid {
        gap: 3rem
    }

    .modal-content {
        padding: 2rem;
        width: 95%
    }

    .modal-title {
        font-size: 1.5rem
    }

    .modal-subtitle {
        font-size: .9rem
    }

    .btn-hero-pill {
        padding: .9rem 2rem;
        font-size: 1rem
    }
}