:root {
    --purple-lightest: #F1E3FF;
    --purple-light: #D8B4FE;
    --purple-mid-light: #C084FC;
    --purple-accent: #A855F7;
    --purple-primary: #8B5CF6;
    --purple-dark: #6D28D9;
    --purple-deep: #4C1D95;
    --purple-darkest: #1E0B36;

    --bg: #F8F5FF;
    --surface: #FFFFFF;
    --surface-alt: #F3ECFF;
    --border: #E9D8FD;

    --text: #1E0B36;
    --text-muted: #6B5A8E;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    min-width: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

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

.brand-name {
    color: var(--purple-darkest);
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--purple-primary);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--purple-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface-alt);
    color: var(--purple-darkest);
}

.btn-secondary:hover {
    background: var(--purple-lightest);
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    gap: 4rem;
}

.hero-section-content {
    flex: 1;
    min-width: 0;
}

.badge {
    display: inline-block;
    background: var(--purple-lightest);
    color: var(--purple-dark);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section h1 {
    font-size: 4rem;
    color: var(--purple-darkest);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-section-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-section .subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-section-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.main-phone-frame {
    background: var(--surface);
    border: 6px solid var(--purple-lightest);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 24px 60px rgba(76, 29, 149, 0.15);
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: rotate(2deg);
    transition: transform 0.4s ease;
}

.main-phone-frame:hover {
    transform: rotate(0deg) translateY(-10px);
}

.main-phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--purple-darkest);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================================
   APP PREVIEW SECTION
   ========================================================= */

.preview-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--purple-darkest);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.screenshots-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    width: 100%;
    padding: 1rem 0 2rem 0;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    -webkit-overflow-scrolling: touch;
}

.screenshots-grid::before,
.screenshots-grid::after {
    content: "";
    flex: 0 0 0.5rem;
}

.shot-card {
    flex: 0 0 220px;
    width: 220px;
    scroll-snap-align: start;
    text-align: center;
    transition: transform 0.3s ease;
}

.shot-card:hover {
    transform: translateY(-8px);
}

.phone-frame {
    background: var(--surface);
    border: 3px solid var(--purple-lightest);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(76, 29, 149, 0.12);
    overflow: hidden;
    margin-bottom: 0.8rem;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.shot-card span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--purple-darkest);
}

/* Custom scrollbar */
.screenshots-grid::-webkit-scrollbar {
    height: 8px;
}

.screenshots-grid::-webkit-scrollbar-track {
    background: var(--surface-alt);
    border-radius: 10px;
}

.screenshots-grid::-webkit-scrollbar-thumb {
    background: var(--purple-light);
    border-radius: 10px;
}

.screenshots-grid::-webkit-scrollbar-thumb:hover {
    background: var(--purple-primary);
}

/* =========================================================
   FEATURES
   ========================================================= */

.features-section {
    width: 100%;
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.features-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-section-header h2 {
    font-size: 2.5rem;
    color: var(--purple-darkest);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.features-section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-section-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.04);
}

.feature-section-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(76, 29, 149, 0.08);
    border-color: var(--purple-light);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--purple-lightest);
    color: var(--purple-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;
}

.feature-section-item h3 {
    color: var(--purple-darkest);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-section-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================================
   LIGHTBOX MODAL
   ========================================================= */

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--purple-light);
    text-decoration: none;
}

.modal-prev,
.modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.2s ease;
    border-radius: 3px;
    user-select: none;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--purple-lightest);
}

/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 992px) {

    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        margin: 2rem auto;
    }

    .hero-section-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-section p {
        max-width: 100%;
    }

    .hero-section-visual {
        justify-content: center;
        width: 100%;
    }

    .main-phone-frame {
        height: 500px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 768px) {

    /* ---------- Navbar ---------- */

    .navbar {
        width: 100%;
        padding: 0.7rem 0.85rem;
        overflow: hidden;
    }

    .nav-container {
        width: 100%;
        max-width: none;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        min-width: 0;
        flex: 1 1 auto;
    }

    .logo-img {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        object-fit: contain;
    }

    .brand-name {
        font-size: 1.2rem;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .nav-links {
        display: none;
    }

    /*
       Download button:
       - stays compact
       - does not grow to desktop size
       - text stays on one line
    */
    .navbar .btn,
    .navbar .btn-large {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0.65rem 0.9rem;
        font-size: 0.85rem;
        line-height: 1.1;
        gap: 0.4rem;
        white-space: nowrap;
        overflow: hidden;
    }

    .navbar .btn br,
    .navbar .btn-large br {
        display: none !important;
    }

    .navbar .btn span,
    .navbar .btn-large span {
        white-space: nowrap;
    }

    /* ---------- Hero ---------- */

    .hero-section {
        width: 100%;
        padding: 0 1rem;
        margin: 2.5rem auto;
        gap: 2.5rem;
    }

    .badge {
        max-width: 100%;
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-section h1 {
        font-size: 2.4rem;
        line-height: 1.05;
        letter-spacing: -1px;
        overflow-wrap: break-word;
    }

    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-section-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-section-visual {
        width: 100%;
    }

    .main-phone-frame {
        width: min(90vw, 360px);
        height: 500px;
    }

    /* ---------- App Preview ---------- */

    .preview-section {
        padding: 3rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .screenshots-grid {
        gap: 1rem;
    }

    .shot-card {
        flex: 0 0 200px;
        width: 200px;
    }

    .phone-frame {
        height: 400px;
    }

    /* ---------- Features ---------- */

    .features-section {
        margin: 4rem auto;
        padding: 0 1rem;
    }

    .features-section-header {
        margin-bottom: 2.5rem;
    }

    .features-section-header h2 {
        font-size: 2rem;
    }

    .features-section-header p {
        font-size: 1rem;
    }

    .features-section-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-section-item {
        padding: 2rem 1.5rem;
    }

    /* ---------- Footer ---------- */

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media screen and (max-width: 400px) {

    .navbar {
        padding: 0.6rem 0.65rem;
    }

    .nav-container {
        gap: 0.35rem;
    }

    .brand {
        gap: 0.3rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .navbar .btn,
    .navbar .btn-large {
        padding: 0.55rem 0.65rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .hero-section {
        padding: 0 0.75rem;
    }

    .hero-section h1 {
        font-size: 2.1rem;
    }

    .main-phone-frame {
        height: 450px;
    }

    .preview-section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .shot-card {
        flex-basis: 190px;
        width: 190px;
    }

    .phone-frame {
        height: 380px;
    }

    .features-section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media screen and (max-width: 350px) {

    .logo-img {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .navbar .btn,
    .navbar .btn-large {
        padding: 0.5rem 0.55rem;
        font-size: 0.7rem;
    }

    .hero-section h1 {
        font-size: 1.9rem;
    }
}

/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}