/* ===========================
   CSS Variables
   =========================== */
:root {
    --primary-color: #FE5F53;
    --primary-dark: #FE5F53;
    --secondary-color: #FE5F53;
    --accent-color: #FE5F53;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-gradient: linear-gradient(135deg, #FFC3BE 0%, #FE5F53 100%);
    --border-color: #d2d2d7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn-secondary {
    background: transparent;
    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: 18px;
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

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

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    perspective: 1000px;
}

.phone-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9/19.5;
    background: linear-gradient(145deg, #2c3e50, #1a1a1a);
    border-radius: 48px;
    padding: 14px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s ease;
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Remove old preview styles */
.app-preview {
    display: none;
}

.preview-content {
    display: none;
}

.preview-header {
    display: none;
}

.preview-chart {
    display: none;
}

.preview-chart::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(255, 45, 85, 0.2), transparent);
}

.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===========================
   Features Section
   =========================== */
.features {
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

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

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

/* ===========================
   About Section
   =========================== */
.about {
    background: var(--bg-secondary);
}

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

.about-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.gradient-card {
    background: var(--bg-gradient);
    border-radius: 24px;
    padding: 48px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.card-content h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.card-content p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===========================
   CTA Section
   =========================== */
.cta {
    background: var(--bg-gradient);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

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

.cta .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 32px;
}

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

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

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-disclaimer {
    margin-top: 12px;
    font-size: 12px;
}

/* ===========================
   Privacy & Terms Pages
   =========================== */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

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

.legal-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.legal-content .last-updated {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 14px;
}

.legal-content h2 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: disc;
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ===========================
   Support Page
   =========================== */
.support-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.contact-section {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.contact-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.contact-email {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 36px;
    }

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .btn {
        width: 100%;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-title {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-content h1 {
        font-size: 32px;
    }

    .legal-content h2 {
        font-size: 24px;
    }

    .gradient-card {
        padding: 32px;
    }

    .card-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .phone-mockup {
        max-width: 240px;
    }
    
    .phone-frame {
        transform: rotateY(0deg) rotateX(0deg);
    }

    .contact-section {
        padding: 32px 24px;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===========================
   Utilities
   =========================== */
.text-center {
    text-align: center;
}

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

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