:root {
    /* Colors */
    --primary: #2dd4bf;
    --primary-dark: #14b8a6;
    --accent: #ef4444;
    --accent-dark: #dc2626;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-light: #252542;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --gold: #fbbf24;
    --gradient-1: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
    --gradient-2: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   LANDING PAGE
   ======================================== */

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: -2;
}

.bg-circles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 20%;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--gold);
    bottom: -50px;
    right: 20%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.landing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .landing-content {
        flex-direction: row;
        padding: var(--space-3xl);
    }
}

/* Phone Mockup */
.app-showcase {
    flex-shrink: 0;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 32px;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Landing Info */
.landing-info {
    max-width: 500px;
    text-align: center;
}

@media (min-width: 768px) {
    .landing-info {
        text-align: left;
    }
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-card-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.app-badge span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.landing-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
    margin-top: var(--space-sm);
}

.landing-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.features-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.features-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-primary);
    font-weight: 500;
}

@media (min-width: 768px) {
    .features-list li {
        justify-content: flex-start;
    }
}

.features-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--gradient-1);
    color: var(--bg-dark);
    font-size: 1.125rem;
    font-weight: 700;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md), 0 0 30px rgba(45, 212, 191, 0.4);
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(45, 212, 191, 0.5);
}

.download-btn:active {
    transform: translateY(0) scale(0.98);
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

.download-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .download-note {
        justify-content: flex-start;
    }
}

.download-note svg {
    width: 18px;
    height: 18px;
}

/* Trust Section */
.trust-section {
    padding: var(--space-xl);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
}

.badge-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stars {
    color: var(--gold);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* ========================================
   APP STORE PAGE
   ======================================== */

.app-page {
    min-height: 100vh;
    background: #f5f5f7;
    color: #1d1d1f;
}

.app-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--space-md) var(--space-xl);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: #007aff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl);
}

/* App Info Section */
.app-info {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    align-items: flex-start;
}

.app-icon-large {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.app-meta {
    flex: 1;
}

.app-title-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: var(--space-xs);
}

.app-subtitle {
    color: #86868b;
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #007aff;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.install-btn:hover {
    background: #0066d6;
}

.install-btn:active {
    transform: scale(0.95);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-2xl);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #86868b;
}

.stat-label {
    font-size: 0.75rem;
    color: #86868b;
    text-transform: uppercase;
}

.stat-sub {
    font-size: 0.6875rem;
    color: #86868b;
}

/* Screenshots */
.screenshots-section {
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: var(--space-lg);
}

.screenshots-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.screenshot-item img {
    height: 400px;
    width: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Description */
.description-section {
    margin-bottom: var(--space-2xl);
}

.description-text {
    color: #1d1d1f;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.description-text p {
    margin-bottom: var(--space-md);
}

.description-text ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.description-text li {
    margin-bottom: var(--space-sm);
}

/* iOS Install Modal */
.ios-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ios-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ios-modal {
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.ios-modal-overlay.active .ios-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d1d1f;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e5ea;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #86868b;
}

.install-steps {
    list-style: none;
}

.install-step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.install-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: var(--space-xs);
}

.step-content p {
    font-size: 0.875rem;
    color: #86868b;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: #f5f5f7;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
}

.step-icon svg {
    width: 20px;
    height: 20px;
    color: #007aff;
}

/* Info sections */
.info-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: var(--space-md);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: #1d1d1f;
}

.info-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 640px) {
    .app-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .app-icon-large {
        width: 100px;
        height: 100px;
    }
    
    .stats-row {
        gap: var(--space-md);
    }
    
    .screenshot-item img {
        height: 300px;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .landing-title {
        font-size: 2.25rem;
    }
    
    .title-accent {
        font-size: 1.25rem;
    }
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
