/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    font-weight: 400;
}

/* Modern Color System */
:root {
    /* Primary Colors */
    --primary-forest: #0F4C3A;
    --primary-forest-light: #1A6B4F;
    --primary-forest-dark: #0A3528;
    
    /* Accent Colors */
    --accent-coral: #FF6B4A;
    --accent-coral-light: #FF8A6E;
    --accent-coral-dark: #E5593F;
    
    /* Neutral Colors */
    --neutral-cream: #FFF8F3;
    --neutral-cream-dark: #F5F0E8;
    --neutral-gray: #64748B;
    --neutral-gray-light: #94A3B8;
    --neutral-gray-dark: #475569;
    --neutral-charcoal: #1E293B;
    
    /* Semantic Colors */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --background-primary: #FFFFFF;
    --background-secondary: #FFF8F3;
    --background-tertiary: #F8FAFC;
    
    /* Shadows & Effects */
    --shadow-soft: 0 4px 20px rgba(15, 76, 58, 0.08);
    --shadow-medium: 0 8px 30px rgba(15, 76, 58, 0.12);
    --shadow-strong: 0 12px 40px rgba(15, 76, 58, 0.16);
    --border-light: rgba(15, 76, 58, 0.1);
    --border-medium: rgba(15, 76, 58, 0.2);
    
    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --radius-xlarge: 24px;
    --radius-full: 50px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Apple-inspired Typography System */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 0.8rem;
    letter-spacing: -0.015em;
}

h1 {
    font-size: clamp(48px, 5.5vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.125;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1rem;
    font-size: 19px;
    line-height: 1.47;
    color: var(--text-secondary);
}

.text-large {
    font-size: 21px;
    line-height: 1.38;
}

.text-small {
    font-size: 15px;
    line-height: 1.47;
}

/* iOS-style Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: var(--radius-large);
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-align: center;
    min-height: 44px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-forest);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--primary-forest-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-coral);
    border: 2px solid var(--accent-coral);
}

.btn-secondary:hover {
    background: var(--accent-coral);
    color: white;
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 19px;
    font-weight: 600;
    border-radius: var(--radius-xlarge);
    min-height: 56px;
}

/* iOS-style Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
    height: 52px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
}

.logo-text {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 17px;
    transition: opacity 0.2s ease;
    position: relative;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.cta-button {
    background: var(--primary-forest);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    opacity: 1;
    transition: all 0.3s ease;
}

.nav-link.cta-button:hover {
    background: var(--primary-forest-dark);
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-small);
}

.mobile-menu-toggle:hover {
    background: var(--ios-gray-light);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.2s ease;
}

/* Clean iOS-style Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-title {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.05;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-forest) 0%, var(--accent-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.38;
    max-width: 90%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    padding: 0;
    background: none;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.125;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.47;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    max-width: 320px;
}

.phone-mockup img {
    border-radius: var(--radius-xlarge);
    box-shadow: var(--shadow-medium);
    max-width: 100%;
    height: auto;
}

/* Clean Features Section */
.features {
    padding: 100px 0;
    background: var(--background-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-description {
    font-size: 21px;
    color: var(--text-secondary);
    line-height: 1.38;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px;
    background: var(--background-primary);
    border-radius: var(--radius-xlarge);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.feature-title {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.125;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.47;
    font-size: 17px;
}

/* Minimal Pricing Section */
.pricing-preview {
    padding: 100px 0;
    background: var(--background-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--background-primary);
    padding: 32px;
    border-radius: var(--radius-xlarge);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    text-align: left;
    position: relative;
    transition: all 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.pricing-card.featured {
    border-color: var(--ios-blue);
    border-width: 2px;
}

.pricing-card.premium {
    background: var(--ios-blue);
    color: white;
    border: none;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 32px;
    background: var(--ios-blue);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-medium);
    font-size: 13px;
    font-weight: 500;
}

.pricing-title {
    font-size: 21px;
    margin-bottom: 8px;
    font-weight: 600;
}

.pricing-amount {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pricing-card.premium .pricing-amount {
    color: white;
}

.pricing-amount span {
    font-size: 19px;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-card.premium .pricing-amount span {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-share {
    background: rgba(0, 122, 255, 0.1);
    color: var(--ios-blue);
    padding: 8px 12px;
    border-radius: var(--radius-medium);
    font-weight: 500;
    margin-bottom: 24px;
    display: inline-block;
    font-size: 15px;
}

.pricing-card.premium .pricing-share {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pricing-features {
    list-style: none;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.47;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34C759;
    font-weight: 500;
    font-size: 16px;
}

.pricing-card.premium .pricing-features li {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card.premium .pricing-features li::before {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-cta {
    text-align: center;
    margin-top: 24px;
}

/* Elegant Download Section */
.download {
    padding: 120px 0;
    background: var(--background-secondary);
    text-align: center;
}

.download-content {
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

.download-title {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.download-description {
    font-size: 21px;
    color: var(--text-secondary);
    line-height: 1.38;
    margin-bottom: 48px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    margin-bottom: 24px;
}

.app-store-button {
    display: inline-block;
    transition: all 0.2s ease;
    border-radius: var(--radius-medium);
    overflow: hidden;
}

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

.app-store-button img {
    display: block;
    height: 60px;
    width: auto;
}

.download-note {
    color: var(--text-secondary);
    font-size: 15px;
}

.download-visual {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.app-preview {
    max-width: 400px;
}

.app-preview img {
    border-radius: var(--radius-xlarge);
    box-shadow: var(--shadow-medium);
    max-width: 100%;
    height: auto;
}

/* Clean Footer */
.footer {
    background: var(--text-primary);
    color: #f5f5f7;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: white;
    font-weight: 600;
    font-size: 21px;
}

.footer-description {
    color: #a1a1a6;
    line-height: 1.47;
    margin-bottom: 24px;
    font-size: 17px;
    max-width: 90%;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #424245;
    border-radius: var(--radius-medium);
    color: #a1a1a6;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--ios-blue);
    color: white;
}

.footer-title {
    color: white;
    font-size: 17px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #a1a1a6;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-size: 17px;
    line-height: 1.47;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #424245;
}

.footer-copyright {
    color: #a1a1a6;
    font-size: 15px;
}

.footer-badges {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* iOS-style Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        border-width: 1px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero {
        padding: 60px 0 40px;
        min-height: 60vh;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .stat {
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features,
    .pricing-preview,
    .download {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px;
        text-align: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero-title {
        font-size: 40px;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-description,
    .section-description,
    .download-description {
        font-size: 19px;
    }
    
    .feature-card,
    .pricing-card {
        padding: 20px;
    }
    
    .pricing-amount {
        font-size: 40px;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* iOS-style Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 3px solid var(--ios-blue);
    outline-offset: 2px;
    border-radius: var(--radius-small);
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: rgba(0, 122, 255, 0.2);
    color: var(--text-primary);
}

/* Subtle iOS-style Animations */
.hero-content,
.feature-card,
.pricing-card {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for better UX */
* {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-visual,
    .download-visual {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .hero,
    .features,
    .pricing-preview,
    .download {
        padding: 20px 0;
    }
    
    .btn {
        border: 1px solid black;
    }
}