:root {
    --color-bg-start: #0f172a;
    --color-bg-end: #1e293b;
    --color-bg-darker: #0b1120;
    --color-primary: #3b82f6;
    --color-accent: #8b5cf6;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-body: 'Cairo', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

html {
    width: 100%;
    overflow-x: hidden;
    /* Keeps the main scrollbar but prevents horizontal scroll */
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg-start);
    color: var(--color-text);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    /* Ensure body never exceeds viewport */
    overflow-x: hidden !important;
    /* Force override to prevent horizontal scroll */
    min-height: 100vh;
    direction: rtl;
    position: relative;
}

#page {
    width: 100%;
    /* overflow properties removed from wrapper */
    overflow: visible;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* width: 100%; removed to prevent scrollbar shifts, rely on left/right */
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    z-index: -1;
    transition: inherit;
}

.custom-logo {
    height: auto;
    max-height: 48px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

/* Header Layout - Professional */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 2rem;
}

.site-title a {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(to right, #fff, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-decoration: none;
}

/* Desktop Navigation */
.main-navigation {
    display: block;
}

.nav-menu,
#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu li,
.nav-menu .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a,
.nav-menu .menu-item a {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.5rem;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.nav-menu li a:hover,
.nav-menu .menu-item a:hover,
.nav-menu .current-menu-item a {
    color: #fff;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    background: transparent;
}

/* Mobile Hamburger Toggle - Hidden on Desktop */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    /* Ensure it's not squashed */
    flex-shrink: 0;
}

.nav-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .site-header {
        padding: 0.6rem 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .site-branding {
        flex: 1;
        min-width: 0;
        /* Allow text/logo to shrink if needed */
        display: flex;
        align-items: center;
    }

    .site-title {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .custom-logo {
        max-height: 40px;
        max-width: 100%;
        height: auto;
    }

    .custom-logo {
        max-height: 40px;
    }

    .site-title a {
        font-size: 1.3rem;
    }

    /* Hide desktop navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        background: transparent;
        border: none;
        width: 100%;
        max-width: 400px;
        text-align: center;
        padding: 2rem;
        margin: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.4s ease forwards;
    }

    .main-navigation.active .nav-menu li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .main-navigation.active .nav-menu li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .main-navigation.active .nav-menu li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu li a {
        font-size: 1.8rem;
        font-weight: 700;
        padding: 1rem 2rem;
        color: #fff;
        display: block;
        border-radius: 12px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-menu li a:hover {
        background: rgba(59, 130, 246, 0.2);
        transform: translateX(-5px);
    }

    /* Show hamburger */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.05);
        /* Subtle background for visibility area */
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
        padding: 10px;
        z-index: 2000;
        position: relative;
        left: -0%;
    }

    .nav-toggle .bar {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
        margin: 0 auto;
    }

    /* Burger Animation */
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Space for header */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    z-index: -2;
    overflow: hidden;
    /* Prevent blobs from causing horizontal scroll */
}

/* Abstract Animated Blobs */
.hero-background::before,
.hero-background::after {
    content: '';
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-float 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-background::before {
    top: -10%;
    left: -10%;
    background: var(--color-primary);
}

.hero-background::after {
    bottom: -10%;
    right: -10%;
    background: var(--color-accent);
    animation-delay: -5s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 50px) scale(1.1);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }
}

/* Typography */
.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

@media (max-width: 768px) {
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Actions */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Actions */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .hero-actions {
        align-items: center;
        width: 100%;
    }
}

.download-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--color-primary), #2563eb);
    color: #fff;
    padding: 1.25rem 3.5rem;
    /* Larger padding */
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.download-main-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.8);
    filter: brightness(1.1);
}

.download-main-btn:active {
    transform: translateY(0);
}

.btn-icon svg:first-child {
    display: none;
    /* Hide old icon */
}

.rocket-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-main-btn:hover .rocket-icon {
    transform: translateY(3px);
    /* Bounce down effect */
}

/* Availability Section */
.store-availability {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .store-availability {
        align-items: center;
        width: 100%;
    }
}

.availability-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.availability-text::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    /* Green dot for 'Available' */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.store-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Visual Badges (Non-clickable look) */
.store-badge-visual {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    /* Lighter/Subtler background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    min-width: 150px;
    justify-content: center;
    cursor: default;
    /* Arrow cursor, not pointer */
    user-select: none;
}

/* Mobile Layout adjustments */
@media (max-width: 768px) {
    .store-badges {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }

    .store-badge-visual {
        flex: 1;
        min-width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }
}

/* Mobile Mockup */
.hero-visual {
    perspective: 1000px;
}

.floating-animation {
    animation: float-y 6s ease-in-out infinite;
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Mobile Mockup */
.phone-frame {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 9/19.5;
    height: auto;
    /* Allow height to scale based on aspect ratio */
    background: #000;
    border-radius: clamp(30px, 8vw, 40px);
    padding: clamp(8px, 2vw, 12px);
    /* Responsive bezel */
    position: relative;
    margin: 0 auto;
    box-shadow:
        0 0 0 2px #334155,
        0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.phone-notch {
    position: absolute;
    top: clamp(8px, 2vw, 12px);
    height: clamp(20px, 5vw, 30px);
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1e293b;
    border-radius: clamp(24px, 7vw, 32px);
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #475569;
    font-weight: 600;
}

/* New Sections Common Styles */
.section-padding {
    padding: 5rem 0;
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* Install Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    text-align: right;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.step-card:hover::before {
    opacity: 1;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    z-index: 1;
}

.step-number {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}

.step-subtitle {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    margin: -0.5rem 0 2rem 0;
    padding-right: calc(48px + 1.25rem);
    /* Align with title text under number */
    opacity: 0.9;
    z-index: 1;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    flex-grow: 1;
    z-index: 1;
}

.step-list li {
    position: relative;
    padding-right: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

.step-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 1rem;
    border: 1px solid transparent;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.feature-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.feature-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    /* Hide default arrow */
    position: relative;
    padding-right: 2.5rem;
    /* Space for icon if needed */
}

/* Custom arrow indicator */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-primary);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Misc Content */
.content-area {
    padding: 4rem 1.5rem;
}

.site-footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;

    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Google Play Custom Button */
.playstore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    background-color: #000;
    padding: 0.8rem 1.5rem;
    /* Increased padding */
    text-align: center;
    color: #fff;
    outline: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 190px;
    /* Increased width */
    align-self: center;
    margin-top: auto;
    position: relative;
    /* Ensure z-index works */
    z-index: 10;
    /* clickable above card overlay */
    direction: ltr;
    /* Force LTR for correct icon/text layout */
    text-align: left;
}

.playstore-button:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.playstore-button .icon {
    height: 2rem;
    /* Increased icon */
    width: 2rem;
    flex-shrink: 0;
}

.playstore-button .texts {
    margin-left: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.playstore-button .text-1 {
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    /* Increased font */
    line-height: 1;
    opacity: 0.8;
}

.playstore-button .text-2 {
    font-weight: 600;
    font-size: 1.1rem;
    /* Increased font */
}

/* App Store Custom Button */
.appstore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    /* Increased padding */
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: #000;
    border-radius: 9999px;
    /* Match Play Store pill shape */
    gap: 12px;
    /* Increased gap */
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #fff;
    min-width: 190px;
    /* Increased width */
    margin-top: auto;
    position: relative;
    /* Ensure z-index works */
    z-index: 10;
    /* clickable above card overlay */
    direction: ltr;
    /* Force LTR for correct icon/text layout */
    text-align: left;
}

.appstore-button svg {
    width: 32px;
    /* Increased icon */
    /* Match icon size roughly */
    height: 32px;
    flex-shrink: 0;
}

.appstore-button svg path {
    fill: white;
    transition: all 0.3s;
}

.appstore-button .button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    line-height: 1;
}

.appstore-button .top-text {
    font-size: 0.75rem;
    /* Increased font */
    font-weight: 600;
    margin-bottom: 0.15rem;
    opacity: 0.8;
}

.appstore-button .bottom-text {
    font-size: 1.1rem;
    /* Increased font */
    font-weight: 600;
}

.appstore-button:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.appstore-button:hover .button-text {
    color: black;
}

.appstore-button:hover svg path {
    fill: black;
}

/* Container for side-by-side buttons */
.store-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

/* Hero Logo Image */
.hero-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    /* Adjust as needed */
    margin-bottom: 1.5rem;
    display: block;
}

@media (max-width: 768px) {
    .hero-logo-img {
        margin: 0 auto 1.5rem auto;
        max-height: 100px;
    }
}

/* Main Animated Download Button */
.animated-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid;
    border-color: transparent;
    font-size: 16px;
    background-color: inherit;
    border-radius: 100px;
    font-weight: 600;
    color: greenyellow;
    box-shadow: 0 0 0 2px greenyellow;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    /* Ensure link behaves like button */
    min-width: 200px;
    /* Ensure decent width */
    justify-content: center;
}

.animated-button svg {
    position: absolute;
    width: 24px;
    fill: greenyellow;
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
    right: 16px;
}

/* RTL adjustment: since standard CSS is LTR based but site is RTL */
/* In RTL, left becomes right visually. Ideally, flip arrows or positions if needed. */
/* Keeping original logic but ensuring it works in RTL context */
.animated-button .arr-2 {
    left: -25%;
}

.animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: greenyellow;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: 12px;
}

.animated-button:hover .arr-1 {
    right: -25%;
}

.animated-button:hover .arr-2 {
    left: 16px;
}

.animated-button:hover .text {
    transform: translateX(12px);
}

.animated-button:hover svg {
    fill: #212121;
}

.animated-button:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px greenyellow;
}

.animated-button:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}

/* Footer Widgets Area */
.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.footer-widget .widget-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-right: 5px;
    /* Subtle nudge effect */
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        /* Stack visually on mobile */
        gap: 2rem;
        text-align: center;
    }

    .footer-links a:hover {
        padding-right: 0;
        /* No nudge on mobile center align */
    }
}

/* Professional Phone & Interactive Visuals */
.phone-wrapper {
    position: relative;
    width: 300px;
    /* Base width */
    margin: 0 auto;
    perspective: 1000px;
    z-index: 5;
}

.phone-frame-pro {
    position: relative;
    width: 100%;
    aspect-ratio: 9/19.5;
    background: #000;
    border-radius: 48px;
    padding: 12px;
    box-shadow:
        0 0 0 4px #334155,
        /* Outer Bezel Base */
        0 0 0 5px #1e293b,
        /* Dark edge */
        0 20px 40px -10px rgba(0, 0, 0, 0.6);
    /* Deep Shadow */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    cursor: pointer;
    overflow: hidden;
    /* rounded content */
}

/* Metallic Edge Gradient */
.phone-edge {
    position: absolute;
    inset: 0;
    border-radius: 48px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 10;
}

/* Dynamic Island */
.phone-dynamic-island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
    transition: width 0.3s ease;
}

/* Screen */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #1e293b;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Reflection/Gloss */
.phone-gloss {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 40%, transparent 100%);
    border-radius: 48px;
    pointer-events: none;
    z-index: 15;
}

/* Interactive States */
.phone-wrapper:hover .phone-frame-pro {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

.phone-wrapper:active .phone-frame-pro {
    transform: scale(0.96) translateY(0);
}

.phone-wrapper:hover .phone-dynamic-island {
    width: 110px;
    /* Subtle expansion on hover */
}

/* Floating Icons */
.float-element {
    position: absolute;
    width: 56px;
    height: 56px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 30;
    animation: floating-y 4s ease-in-out infinite;
}

.float-element svg {
    width: 28px;
    height: 28px;
}

.float-movie {
    top: 15%;
    left: -40px;
    color: #fbbf24;
    /* Amber */
    animation-delay: 0s;
}

.float-play {
    top: 50%;
    right: -30px;
    color: #f43f5e;
    /* Rose */
    animation-delay: 1.5s;
    width: 48px;
    height: 48px;
}

.float-tv {
    bottom: 20%;
    left: -20px;
    color: #3b82f6;
    /* Blue */
    animation-delay: 2.5s;
}

/* Keyframes for floating */
@keyframes floating-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    /* Restore Phone Styles */
    .phone-wrapper {
        width: 260px;
    }

    .float-element {
        width: 44px;
        height: 44px;
    }

    .float-element svg {
        width: 22px;
        height: 22px;
    }

    .float-movie {
        left: -20px;
    }

    .float-play {
        right: -15px;
    }

    .float-tv {
        left: -10px;
    }

    /* Grid & Spacing */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-section {
        padding-top: 110px;
        /* Separates title from fixed header */
        min-height: auto;
        padding-bottom: 4rem;
    }

    .download-main-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 320px;
    }

    .container {
        padding: 0 1.25rem;
    }
}

/* Footer Fixes */
.site-footer {
    padding: 3rem 0 0 0;
    margin: 0 0 0 0;
}

.site-footer .container {
    padding-bottom: 0;
    margin-bottom: 0;
}

.site-info {
    margin: 2rem 0 0 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p,
.site-info p {
    margin: 0;
    padding: 0;
}

.footer-widgets {
    margin-bottom: 0;
    padding-bottom: 0;
}