/* 
     * Core Variables & Reset 
     */
:root {
    --color-primary: #F43F5E;
    /* Vibrant Coral / Rose */
    --color-primary-hover: #E11D48;
    --color-accent: #FEF08A;
    /* Soft Yellow for dashed borders, like Digico */
    --color-background: #F9F9FB;
    --color-text-dark: #0F172A;
    --color-text-light: #64748B;
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;

    --font-family: 'Plus Jakarta Sans', sans-serif;
    --border-radius-pill: 50px;
    --border-radius-card: 24px;

    --spacing-section: 120px;
    --spacing-element: 24px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* 
     * Typography 
     */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    text-align: center;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
}

p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin-bottom: 24px;
}

/* 
     * Layout & Utility classes 
     */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    /* Increased base horizontal padding */
}

.section {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

/* 
     * Buttons (Digico Pill Style)
     */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text-dark);
    color: var(--color-text-dark);
}

.btn-outline:hover {
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

/* 
     * Store Badges 
     */
.store-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

.store-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 100%;
}

.store-badge:hover {
    transform: translateY(-2px);
    background-color: #000000;
    color: var(--color-white);
}

.store-badge svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    flex-shrink: 0;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.store-badge-text span:first-child {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    opacity: 0.8;
}

.store-badge-text span:last-child {
    font-size: 1.1rem;
    font-weight: 700;
}

/* 
     * Navigation 
     */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(249, 249, 251, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo Dot (Digico inspired) */
.nav-brand::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    border-radius: 50% 12px 12px 12px;
}

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

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* 
     * Hero Section 
     */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

/* Digico Dashed Background Wrapper */
.image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-card);
    z-index: 1;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 20px;
    right: -20px;
    bottom: 20px;
    background-color: var(--color-accent);
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-card);
    z-index: -1;
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.image-wrapper:hover::before {
    transform: rotate(0deg);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-card);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4/3;
}

/* 
     * Apps Showcase (Grid Layout) 
     */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
}

.app-card {
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.app-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--color-accent);
    color: var(--color-text-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-icon-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--color-background);
}

.app-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain so Logos fit nicely */
}

.app-card p {
    font-size: 1rem;
    margin-bottom: 32px;
    flex-grow: 1;
    /* Pushes buttons to bottom */
}

/* 
     * About / Z-Pattern Section
     */
.about-section {
    background-color: var(--color-white);
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.z-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.z-row.reverse {
    direction: rtl;
}

.z-row.reverse>* {
    direction: ltr;
}

.z-content p {
    margin-bottom: 0;
}

/* 
     * Footer / CTA 
     */
.footer-cta {
    text-align: center;
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

.footer-cta h2 {
    margin-bottom: 16px;
}

.footer-cta p {
    max-width: 600px;
    margin: 0 auto 40px;
}

.footer-bottom {
    text-align: center;
    padding: 40px 24px;
    /* Added horizontal padding to prevent touch edge on mobile */
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.8;
}

/* 
     * Scroll Animations
     */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition delays for grid items */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* 
     * Responsive Design 
     */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
        gap: 40px;
    }

    .hero-content {
        margin: 60px auto 60px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .apps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .z-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .z-row.reverse {
        direction: ltr;
    }

    .image-wrapper {
        width: calc(100% - 60px);
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 160px !important;
    }

    .container {
        padding: 0 24px;
        /* Slightly reduced for very small screens, but larger than previous defaults if needed */
    }

    .image-wrapper::before {
        top: -12px;
        left: 12px;
        right: -12px;
        bottom: 12px;
        transform: rotate(2deg);
    }

    .nav-links {
        display: none;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--color-border);
    }

    .menu-toggle {
        display: block;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    :root {
        --spacing-section: 80px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Increase vertical padding specifically for Support and Copyright on mobile */
    .footer-cta {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .footer-bottom {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}