/* CSS Variables - Black & White Theme */
:root {
    --primary-bg: #000000;
    --card-bg: #111111;
    --accent-gold: #ffffff;
    --accent-secondary: #222222;
    --text-dark: #FFFFFF;
    --text-grey: #888888;
    --border-soft: #333333;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(255, 255, 255, 0.05);
    --font-primary: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    outline: none;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-soft);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    letter-spacing: -0.3px;
}

.logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-grey);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

.btn-primary {
    background-color: white;
    color: black;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline:hover {
    background-color: white;
    color: black;
}

/* Store Buttons (Official Badge Style) */
.store-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.store-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.store-btn .icon svg {
    width: 24px;
    height: auto;
}

.store-btn .text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.store-btn .small {
    font-size: 11px;
    opacity: 0.7;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

.store-btn .big {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.appstore-btn {
    background: #ffffff;
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.appstore-btn:hover {
    transform: scale(1.05);
}

.playstore-btn {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.playstore-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* Coming Soon Modal */
.coming-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 2000;
}

.coming-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.coming-box {
    background: #111;
    padding: 30px 40px;
    border-radius: 18px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.coming-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.coming-box p {
    font-size: 16px;
    opacity: 0.8;
}

/* Layout Fix - Global Container & Feature Section */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.feature-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
    min-height: 100vh;
}

.feature-text {
    max-width: 520px;
}

.feature-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hero Section Specifics */
.hero-section {
    padding-top: 120px;
    padding-bottom: 48px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-grey);
    margin-bottom: 40px;
    max-width: 480px;
}

/* Phone Mockup */
.phone-frame {
    width: 320px;
    height: 690px;
    background: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    position: relative;
    border: 4px solid #333;
    overflow: hidden;
    z-index: 2;
}

.phone-notch {
    width: 120px;
    height: 24px;
    background: #000;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Dashboard Preview */
.dashboard-preview {
    padding: 100px 5%;
    text-align: center;
    border-top: 1px solid var(--border-soft);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.section-header p {
    color: var(--text-grey);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    text-align: left;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: white;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    background: #000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: white;
}

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

/* Scroll Story */
.scroll-story {
    padding: 100px 0;
    background: #050505;
}

.scroll-story .feature-section {
    align-items: start;
}

.story-content {
    padding-top: 20vh;
}

.story-step {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.2;
    transition: opacity 0.5s;
    border-left: 1px solid #333;
    padding-left: 40px;
}

.story-step.active {
    opacity: 1;
    border-left: 2px solid white;
}

.story-step h3 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.story-step p {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 400px;
}

.story-visual {
    height: 100vh;
    position: sticky;
    top: 0;
}

@media (max-width: 1100px) {
    .section-wrapper {
        padding: 0 20px;
    }

    .scroll-story {
        padding: 72px 0;
    }

    .scroll-story .feature-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        min-height: auto;
        text-align: center;
    }

    .story-visual {
        position: sticky;
        top: 84px;
        height: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 6;
        background: linear-gradient(180deg, #050505 85%, rgba(5, 5, 5, 0) 100%);
        padding-bottom: 12px;
        order: 1;
    }

    .sticky-phone {
        margin: 0 auto;
    }

    .story-content {
        padding-top: 0;
        width: 100%;
        max-width: 640px;
        order: 2;
    }

    .story-step {
        min-height: 56vh;
        border-left: none;
        padding-left: 0;
        align-items: center;
        text-align: center;
        opacity: 0.55;
    }

    .story-step.active {
        border-left: none;
    }

    .story-step p {
        max-width: 540px;
    }
}

/* Shop Section */
.shop-section {
    padding: 100px 5%;
    text-align: center;
    background: black;
    overflow: hidden;
    border-top: 1px solid var(--border-soft);
}

.brand-scroller {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    animation: scroll 20s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-card {
    background: #111;
    padding: 20px 40px;
    border-radius: var(--radius-md);
    border: 1px solid #333;
    font-weight: 600;
    color: white;
    font-size: 1.2rem;
    white-space: nowrap;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, #000 0%, #111 100%);
    padding: 120px 5%;
    text-align: center;
    border-top: 1px solid var(--border-soft);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: white;
}

.glow-btn {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    padding: 18px 40px;
}

/* Footer */
footer {
    background: black;
    padding: 40px 5%;
    border-top: 1px solid var(--border-soft);
    position: relative;
    z-index: 20;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.footer-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-grey);
    pointer-events: auto;
    position: relative;
    z-index: 25;
}

.copyright {
    font-size: 0.8rem;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 96px;
        padding-bottom: 24px;
    }

    .section-wrapper {
        padding: 0 20px;
    }

    .feature-section {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        min-height: auto;
    }

    .feature-text {
        max-width: 100%;
        margin: 0 auto;
        order: 1;
    }

    .feature-phone {
        order: 2;
        height: auto;
        position: relative;
    }

    /* Keep scroll-story phone visible and sticky on mobile/tablet */
    .scroll-story .feature-section {
        flex-direction: column;
    }

    .scroll-story .story-visual {
        order: 1;
        position: sticky;
        top: 78px;
        z-index: 6;
    }

    .scroll-story .story-content {
        order: 2;
    }

    .navbar {
        padding: 16px 5%;
    }

    .logo { gap: 8px; font-size: 1rem; }
    .logo span { display: inline; white-space: nowrap; }
    .logo img { width: 30px; height: 30px; }

    .nav-links {
        display: none;
    }

    /* Adapt Hero */
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .store-buttons {
        width: 100%;
        justify-content: center;
        align-items: stretch;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 18px;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 14px;
        border-radius: 14px;
        min-height: 58px;
    }

    .store-btn .big {
        font-size: 1.35rem;
    }

    .store-btn .small {
        font-size: 0.72rem;
    }

    .phone-frame {
        width: min(80vw, 290px);
        height: min(166vw, 570px);
        margin: 6px auto 0;
    }

    .sticky-phone {
        margin-top: 0;
        height: 420px;
    }

    .story-step {
        min-height: 50vh;
        text-align: center;
        align-items: center;
        border-left: none;
        padding-left: 0;
        opacity: 0.5;
    }

    .story-step.active {
        border-left: none;
        opacity: 1;
    }

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

    .section-header p {
        margin-bottom: 28px;
        font-size: 1rem;
    }

    .cta-section {
        padding: 84px 5%;
    }

    .cta-content h2 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .footer-links {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .store-btn .big {
        font-size: 1.1rem;
    }

    .phone-frame {
        width: min(84vw, 270px);
        height: min(176vw, 520px);
    }
}
