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

/* Global Styles */
:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --danger-color: #EF4444;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --max-width: 1200px;
}

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

html {
    scroll-padding-top: 100px; /* Offset for sticky navbar */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: white;
}

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

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.hero-actions .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-icon-img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.feature:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

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

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

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.pricing-calculator {
    background: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.calculator-input {
    text-align: center;
    margin-bottom: 2rem;
}

.member-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.member-selector button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
}

.member-selector input {
    width: 60px;
    text-align: center;
    font-size: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px;
}

.price-display {
    text-align: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.price-breakdown {
    text-align: center;
    color: var(--text-secondary);
}

.savings {
    color: var(--secondary-color);
    font-weight: 600;
}

.pricing-features {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--light-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

/* Download Section */
.download-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    position: relative;
}

.download-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.download-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.download-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin: 0 auto 3rem;
    max-width: 600px;
    line-height: 1.6;
}

.app-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0 auto 3rem;
    flex-wrap: wrap;
}

.app-buttons img {
    height: 50px;
    width: auto;
    display: block;
    max-width: 180px;
}

.app-store-btn, .google-play-btn {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.app-store-btn:hover, .google-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.app-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.app-features span {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

/* Mailing List Section */
.mailing-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mailing-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.mailing-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.mailing-content {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.mailing-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mailing-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1F2937;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.5px;
}

.mailing-subtitle {
    color: #6B7280;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 480px;
}

.email-form {
    margin: 0 auto 1.5rem;
    max-width: 520px;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.email-form input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
    height: 52px;
}

.email-form input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.email-form button {
    width: 100%;
    padding: 16px 28px;
    white-space: nowrap;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-text {
    display: inline-block;
}

.button-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.email-form button:hover {
    background: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}

.email-form button:hover .button-arrow {
    transform: translateX(3px);
}

.mailing-benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    font-size: 0.9rem;
}

.benefit-item svg {
    flex-shrink: 0;
}

/* Mailing List Success Message */
.mailing-success {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    animation: scaleIn 0.5s ease;
}

.mailing-success h3 {
    font-size: 1.75rem;
    color: #065F46;
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-main {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-main strong {
    color: #10B981;
    font-weight: 600;
}

.success-detail {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.success-note {
    font-size: 0.95rem;
    color: #059669;
    background: #D1FAE5;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
}

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

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .mailing-content {
        padding: 2.5rem 1.5rem;
    }

    .mailing-section h2 {
        font-size: 1.75rem;
    }

    .mailing-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .form-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .email-form input,
    .email-form button {
        width: 100%;
        max-width: none;
    }

    .mailing-benefits {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        max-width: 250px;
        margin: 0 auto;
    }

    .email-form input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .app-features {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .app-features span {
        font-size: 0.95rem;
    }

    .download-section h2 {
        font-size: 1.75rem;
    }

    .download-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .mailing-success {
        padding: 1.5rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .mailing-success h3 {
        font-size: 1.5rem;
    }

    .success-main {
        font-size: 1rem;
    }

    .success-detail {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .success-note {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 2;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
}

/* Additional Mobile Fixes */
@media (max-width: 480px) {
    .download-section {
        padding: 3rem 0;
    }

    .mailing-section {
        padding: 3rem 0;
    }

    .mailing-content {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .mailing-section h2 {
        font-size: 1.5rem;
    }

    .mailing-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .app-buttons img {
        height: 48px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Git version display */
.git-version {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 0.75rem;
    color: #9CA3AF;
    font-family: 'Courier New', monospace;
}

.git-version a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.git-version a:hover {
    color: #6B7280;
}

.footer-bottom {
    position: relative;
    padding: 1rem 0;
    border-top: 1px solid #444;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}