/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Colors - Dash app color scheme */
    --primary: #007AFF;
    --primary-dark: #0051D5;
    --primary-light: #47a0ff;
    --secondary: #AF52DE;
    --accent: #5856D6;

    /* Status Colors */
    --success: #34C759;
    --warning: #FF9500;
    --error: #FF3B30;

    /* Neutrals */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #9CA3AF;
    --background: #F9FAFB;
    --background-secondary: #F3F4F6;
    --white: #FFFFFF;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.12);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
    --gradient-secondary: linear-gradient(135deg, #AF52DE 0%, #5856D6 100%);
    --gradient-dark: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.15) 0%, transparent 50%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-glass);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: var(--spacing-sm) 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.cta-button {
    background: var(--text-primary);
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: black;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Background Blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.hero::before {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%);
    animation: blob-float 20s infinite alternate;
}

.hero::after {
    bottom: 0;
    left: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    animation: blob-float 15s infinite alternate-reverse;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #111827 0%, #4B5563 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.button {
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
}

.button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.button.secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.button.secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

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

.hero-screenshot {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    /* border-radius: 40px; */
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.hero-screenshot:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
    background: white;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--spacing-2xl);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-lg);
    background: var(--background);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Premium Section */
.premium {
    padding: var(--spacing-2xl) 0;
    background: #111827;
    color: white;
    position: relative;
    overflow: hidden;
}

.premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(88, 86, 214, 0.15), transparent 40%);
}

.premium-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.premium-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #000;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(253, 185, 49, 0.3);
}

.premium-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.premium-subtitle {
    font-size: 1.25rem;
    color: #9CA3AF;
    margin-bottom: var(--spacing-xl);
}

.premium-features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.premium-feature {
    display: flex;
    gap: var(--spacing-md);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.premium-feature:hover {
    background: rgba(255, 255, 255, 0.1);
}

.check-icon {
    flex-shrink: 0;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    padding: 4px;
    width: 32px;
    height: 32px;
}

.premium-feature h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.premium-feature p {
    color: #9CA3AF;
    font-size: 0.95rem;
}

.premium-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(88, 86, 214, 0.2), transparent 50%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.card-price .period {
    font-size: 1.25rem;
    color: #9CA3AF;
    font-weight: 500;
}

.card-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #D1D5DB;
    font-size: 1.1rem;
}

/* How It Works */
.how-it-works {
    padding: var(--spacing-2xl) 0;
    background: var(--background);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

/* UK Section */
.uk-section {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.uk-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.uk-feature {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--background);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

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

.uk-feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

/* Screenshots */
.screenshots {
    padding: var(--spacing-2xl) 0;
    background: var(--background);
    overflow: hidden;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.screenshot-img {
    max-width: 300px;
    width: 100%;
    /* border-radius: 40px; */
    /* box-shadow: var(--shadow-xl); */
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-img {
    transform: scale(1.02);
}

/* Download */
.download {
    padding: var(--spacing-2xl) 0;
    background: white;
    text-align: center;
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.download-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.download-buttons {
    margin-top: var(--spacing-md);
}

.app-store-badge {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

/* Support Page Styles */
.support-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.faq-section {
    padding: var(--spacing-xl) 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-section {
    padding: var(--spacing-2xl) 0;
    background: var(--background);
    text-align: center;
}

.contact-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.contact-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Privacy Page Styles */
.privacy-section {
    padding: var(--spacing-xl) 0 var(--spacing-2xl);
    background: white;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    color: var(--text-primary);
}

.privacy-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.privacy-content ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
    color: var(--text-secondary);
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-column h4 {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.stagger-1 {
    transition-delay: 0.1s;
}

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

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

.stagger-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image-container {
        order: 2;
        margin-top: var(--spacing-xl);
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .premium-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .nav-links {
        display: none;
    }
}