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

/* --- Custom Properties / Design System --- */
:root {
    --bg-primary: #08090d;
    --bg-secondary: #0f111a;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass-bg: rgba(15, 17, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(99, 102, 241, 0.15);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Background Glow Effects --- */
.bg-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.glow-1 {
    top: -10%;
    right: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.glow-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
    opacity: 0.2;
}

/* --- Container (Default Mobile: 1.25rem padding) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

/* --- Header (Mobile First: compact padding) --- */
header {
    margin-top: 15px; /* Stand 15px lower from top */
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.nav-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 0;
}

/* --- Language Selector --- */
.lang-selector {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.2rem;
    border-radius: 50px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* --- Hero Section (Mobile First: Single Column & Centered) --- */
.hero {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
    padding: 1rem 0 3rem;
}

/* --- Left Column Content --- */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-tagline::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #a5b4fc;
    border-radius: 50%;
    box-shadow: 0 0 10px #a5b4fc;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    padding: 0 1rem;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa 10%, #a78bfa 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 90%;
    margin: 0 auto;
}

/* --- Features Badges --- */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0.25rem 0;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.feature-badge svg {
    color: var(--accent-indigo);
}

/* --- Download Action Block --- */
.download-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-download.play-store {
    background: #11131e;
    color: #fff;
    border: 1.5px solid var(--glass-border);
}

.btn-download.app-store {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.btn-icon svg {
    width: 24px;
    height: 24px;
    transition: var(--transition-smooth);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.btn-title {
    font-size: 0.95rem;
    font-weight: 700;
}

/* --- Hover Effects --- */
.btn-download.play-store:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px var(--glass-glow);
}

.btn-download.app-store:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.btn-download.app-store .coming-soon-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- QR Code Display Card (Hidden on Mobile) --- */
.qr-container {
    display: none;
}

/* --- Right Column - Device Mockup (Mobile Default: Compact) --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.phone-mockup-wrapper {
    position: relative;
    width: 250px;
    height: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
    animation: floatAnimation 6s ease-in-out infinite;
}

/* Floating animation */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Elegant glow plate behind mockup */
.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 65%);
    filter: blur(25px);
    z-index: -1;
    border-radius: 50%;
}

/* Phone Frame */
.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #090a10;
    border: 10px solid #27272a;
    border-radius: 38px;
    box-shadow: 
        inset 0 0 8px rgba(255, 255, 255, 0.1),
        0 0 0 3px #18181b;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Dynamic Island/Notch */
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #000;
    border-radius: 18px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.notch-camera {
    width: 6px;
    height: 6px;
    background: #101010;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.4);
}

.notch-sensor {
    width: 3px;
    height: 3px;
    background: #1a0033;
    border-radius: 50%;
}

/* Phone screen content */
.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #0b0c13;
    overflow: hidden;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
}

/* Screen overlay glare effect */
.phone-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        55deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
}

/* App Icon Floating Badge (Hidden on Mobile) */
.floating-icon-badge {
    display: none;
}

/* --- Toast Notification System --- */
.toast-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    color: #fca5a5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-icon svg {
    color: #ef4444;
    width: 16px;
    height: 16px;
}

.toast-message {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.toast-msg-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
}

.toast-msg-desc {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: auto;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* --- Footer --- */
footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   MEDIA QUERIES (Mobile-First approach: min-width)
   ========================================================================== */

/* --- Small Devices / Tablets (min-width: 576px) --- */
@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }

    header {
        padding: 1.25rem 0;
    }



    .lang-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .hero {
        padding: 2rem 0 3.5rem;
        gap: 3.5rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .buttons-group {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
    }

    .btn-download {
        width: auto;
    }

    .phone-mockup-wrapper {
        width: 280px;
        height: 560px;
    }

    .mockup-glow {
        width: 340px;
        height: 340px;
    }

    .floating-icon-badge {
        display: flex;
        position: absolute;
        bottom: 30px;
        left: -20px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0.6rem 0.85rem;
        border-radius: 16px;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 8;
        animation: floatIcon 5s ease-in-out infinite;
    }

    .floating-icon-img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .floating-icon-title {
        font-size: 0.8rem;
    }

    .toast-container {
        left: auto;
        right: 2rem;
        bottom: 2rem;
        width: 360px;
    }
}

/* --- Desktop Screens (min-width: 992px) --- */
@media (min-width: 992px) {
    .container {
        padding: 0 2rem;
    }

    header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }



    .hero {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 4rem;
        text-align: left;
        align-items: center;
        min-height: calc(100vh - 160px);
        padding: 2rem 0 4rem;
    }

    .hero-content {
        align-items: flex-start;
    }

    .hero-tagline {
        align-self: flex-start;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: clamp(2.75rem, 4.5vw, 3.75rem);
        line-height: 1.15;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: 520px;
    }

    .features-grid {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .feature-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .buttons-group {
        justify-content: flex-start;
        margin: 0;
        max-width: none;
    }

    .qr-container {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        padding: 1.25rem;
        border-radius: 24px;
        max-width: 440px;
        margin-top: 1rem;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .qr-box {
        background: #ffffff;
        padding: 0.5rem;
        border-radius: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        width: 96px;
        height: 96px;
    }

    .qr-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .qr-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        text-align: left;
    }

    .qr-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .qr-desc {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    .phone-mockup-wrapper {
        width: 320px;
        height: 640px;
        filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.7));
    }

    .mockup-glow {
        width: 380px;
        height: 380px;
        filter: blur(30px);
    }

    .phone-frame {
        border-width: 12px;
        border-radius: 46px;
    }

    .phone-notch {
        top: 12px;
        width: 90px;
        height: 24px;
    }

    .notch-camera {
        width: 8px;
        height: 8px;
    }

    .notch-sensor {
        width: 4px;
        height: 4px;
    }

    .floating-icon-badge {
        left: -40px;
        padding: 0.75rem 1rem;
        border-radius: 20px;
        gap: 0.75rem;
    }

    .floating-icon-img {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .floating-icon-title {
        font-size: 0.85rem;
    }

    footer {
        padding: 3rem 0;
        margin-top: 4rem;
        font-size: 0.85rem;
    }
}

/* App Icon Badge floating keyframes */
@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}
