:root {
    /* Color Palette - Light Mode */
    --primary: #9334DD;
    --primary-dark: #9334DD;
    --primary-darker: #7022B5;
    --primary-light: #D4B3F3;
    --primary-lighter: #C08EF0;
    --primary-medium: #A85DE4;
    --primary-accent: #B366FF;
    --text-dark: #333;
    --text-light: #666;
    --text-white: #fff;
    --background: #f5f5f5;
    --background-light: #f5f5f5;
    --background-lighter: #f8f8f8;
    --background-white: #fff;
    --white: #fff;
    --header-bg: rgba(255, 255, 255, 1);
    --shadow-light: rgba(147, 52, 221, 0.08);
    --shadow-medium: rgba(147, 52, 221, 0.15);
    --shadow-heavy: rgba(147, 52, 221, 0.25);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Color Palette - Dark Mode */
        --text-dark: #f5f5f5;
        --text-light: #b0b0b0;
        --background-light: #1a1a1a;
        --background-lighter: #242424;
        --header-bg: rgba(26, 26, 26, 1);
    }

    /* Dark mode specific overrides */
    .feature-block.light-purple {
        background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
        color: var(--white);
    }

    .nav-links a {
        color: var(--text-dark);
    }

    .device-frame img,

    .social-link:hover .instagram-icon {
        fill: var(--primary-light);
    }

    /* Footer dark mode styles */
    .footer-section h3 {
        color: var(--white) !important;
    }

    .footer-section a,
    .footer-section p {
        color: var(--white);
    }

    .footer-section a:hover {
        color: var(--primary-light);
    }

    .instagram-icon {
        fill: var(--white);
    }
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}







/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 5.5rem 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-item {
    border-radius: 28px;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--shadow-light);
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px var(--shadow-medium);
    border-color: var(--shadow-medium);
}

/* Feature Blocks */
.feature-block {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2rem;
    position: relative;
    cursor: default;
}

.feature-block .content {
    transition: transform 0.3s ease;
}

.feature-block:hover .content {
    transform: translateY(-4px);
}

.feature-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-block:hover::before {
    opacity: 1;
}

.feature-block.dark-purple {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: var(--white);
    position: relative;
}

.feature-block.dark-purple::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-block.dark-purple:hover::after {
    opacity: 1;
}

.feature-block.light-purple {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
    color: var(--primary-darker);
    position: relative;
}

.feature-block.light-purple::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147, 52, 221, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-block.light-purple:hover::after {
    opacity: 1;
}

.feature-block.purple {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.feature-block.small {
    min-height: 360px;
}

.content {
    position: relative;
    z-index: 2;
}

.content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
}



.content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 400;
}

/* Device Frame */
.device-frame {
    margin-top: auto;
    padding-top: 2.5rem;
    position: relative;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.feature-block:hover .device-frame {
    transform: scale(1.1);
}

.device-frame img {
    width: 100%;
    height: 480px;
    border-radius: 24px;
    object-fit: contain;
    object-position: top;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

.device-frame:hover img {
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
}

/* Floating Card */
.floating-card {
    margin-top: auto;
    padding-top: 2.5rem;
    position: relative;
    transform: rotate(-3deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.feature-block:hover .floating-card {
    transform: rotate(0deg) translateY(-12px) scale(1.08);
}

.floating-card img {
    width: 100%;
    height: 480px;
    border-radius: 24px;
    object-fit: contain;
    object-position: top;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

.floating-card:hover img {
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.25));
}

/* User Ratings */
.user-ratings {
    margin-top: 2rem;
}

.user-avatars {
    display: flex;
    margin-bottom: 1rem;
}

.avatar {
    font-size: 2rem;
    margin-right: -0.5rem;
}

/* Feature Card */
.feature-card {
    background: var(--background-lighter);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

@media (prefers-color-scheme: dark) {
    .feature-card {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Stats Display */
.stats-display {
    margin-top: 2rem;
}

.stats-display img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
}

/* Footer */
footer {
    background: var(--background-lighter);
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-section {
    margin-right: 4rem;
}

.footer-section h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

/* Keep support email on one line within paragraph */
.footer-section p { white-space: nowrap; }
.footer-section p a { display: inline; }

.footer-section a:hover {
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 6rem 1.5rem 2rem;
        gap: 2rem;
    }



    .feature-block {
        min-height: 280px;
        padding: 2.5rem;
        padding-bottom: 2rem;
    }

    .device-frame, .floating-card {
        max-width: 220px;
        padding-top: 2rem;
    }

    .device-frame img, .floating-card img {
        height: 420px;
    }

    .footer-content {
        flex-direction: column;
    }

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

    .content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        padding: 4.5rem 1rem 1.5rem;
        gap: 1.5rem;
    }

    .content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .feature-block {
        padding: 2rem;
        padding-bottom: 1.5rem;
        min-height: 260px;
    }

    .device-frame, .floating-card {
        max-width: 200px;
        padding-top: 1.5rem;
    }

    .device-frame img, .floating-card img {
        height: 380px;
    }
}

/* Social Links */
.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-link {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.instagram-icon {
    fill: var(--text-dark);
    transition: fill 0.3s ease;
}

.social-link:hover .instagram-icon {
    fill: var(--primary-dark);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
