:root {
    --primary-color: #2563EB;
    --primary-dark: #1D4ED8;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-color: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.05);
    --accent-color: #3B82F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
    --primary-color: #3B82F6;
    --primary-dark: #60A5FA;
    --text-color: #F9FAFB;
    --text-light: #9CA3AF;
    --bg-color: #111827;
    --bg-secondary: #1F2937;
    --card-bg: #1F2937;
    --nav-bg: rgba(17, 24, 39, 0.9);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s, border-color 0.3s;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    animation: subtle-pulse 2s ease-in-out infinite;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(249, 115, 22, 0.6);
    }
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));
    background-image: url('hero-image.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(249, 250, 251, 0.85));
    z-index: 0;
}

[data-theme="dark"] .hero::before {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.85), rgba(31, 41, 55, 0.85));
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

.highlight {
    color: var(--primary-color);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 32rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: subtle-glow 2s ease-in-out infinite;
}

.store-badge.apple {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.store-badge.google {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.store-badge:hover {
    transform: translateY(-3px) scale(1.02);
}

.store-badge.apple:hover {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.6);
}

.store-badge.google:hover {
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.6);
}

.store-badge svg {
    width: 22px;
    height: 22px;
}

@keyframes subtle-glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.1);
    }
}

.small-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Phone Frame */
.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    margin: 0 auto;
    background: #111;
    border-radius: 40px;
    border: 8px solid #111;
    box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 32px;
    /* Match the frame radius roughly */
}

/* Features */
.features {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, background-color 0.3s;
}

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

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.steps {
    list-style: none;
    margin: 2rem 0;
}

.steps li {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.info-box {
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Video Demo */
.video-demo {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

.video-container:hover div[style*="rgba(255, 0, 0"] {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Compatibility */
.compatibility {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.compat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .compat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.compat-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, background-color 0.3s, border-color 0.3s;
}

.compat-card:hover {
    transform: translateY(-5px);
}

.compat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.compat-examples {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.trial-note {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2rem;
}

/* Reviews */
.reviews {
    padding: 6rem 0;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: background-color 0.3s, border-color 0.3s;
}

.stars {
    color: #FBBF24;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: #111;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-brand p {
    color: #888;
    margin: 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.2s;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    color: #888;
    transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
    border-radius: var(--radius-md);
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hide/Show icons based on theme */
[data-theme="dark"] .icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: block;
}

:root:not([data-theme="dark"]) .icon-sun {
    display: none;
}

:root:not([data-theme="dark"]) .icon-moon {
    display: block;
}

/* Mobile Responsive Improvements */
@media (max-width: 767px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 0.5rem;
        position: relative;
    }

    .logo {
        font-size: 1rem;
        flex: 1;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .nav-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        order: 0;
    }

    .nav-actions .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .theme-toggle {
        order: 1;
    }

    /* Hero section mobile improvements */
    .cta-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .store-badge {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .footer-icon {
        width: 40px;
        height: 40px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-links a {
        margin-left: 0;
        font-size: 0.875rem;
    }

    .social-links {
        justify-content: center;
    }

    .copyright {
        font-size: 0.75rem;
        padding-top: 1.5rem;
    }
}