/* ================================
   HabitTracker Website Styles
   ================================ */

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

:root {
    --primary-color: #007AFF;
    --primary-dark: #0051D5;
    --primary-light: #4DA2FF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    --text-primary: #000000;
    --text-secondary: #6E6E73;
    --text-tertiary: #8E8E93;
    --background: #FFFFFF;
    --background-secondary: #F5F5F7;
    --background-tertiary: #E5E5EA;
    --border-color: #D1D1D6;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   Navigation
   ================================ */

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.app-icon {
    font-size: 32px;
}

.app-name {
    font-weight: 700;
}

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

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

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

/* ================================
   Buttons
   ================================ */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

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

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

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 14px;
}

.apple-icon {
    font-size: 24px;
}

/* ================================
   Hero Section
   ================================ */

.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.hero-content h1 {
    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.5;
}

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

.hero-features {
    display: flex;
    gap: 32px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-secondary);
}

.feature-icon {
    font-size: 24px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    max-width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 60px var(--shadow-strong);
}

/* ================================
   Features Section
   ================================ */

.features {
    padding: 100px 0;
    background-color: var(--background);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

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

.feature-card {
    background-color: var(--background-secondary);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

/* ================================
   Screenshots Section
   ================================ */

.screenshots {
    padding: 100px 0;
    background-color: var(--background-secondary);
}

.screenshot-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

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

.screenshot-item img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 16px;
}

.screenshot-caption {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ================================
   How It Works Section
   ================================ */

.how-it-works {
    padding: 100px 0;
    background-color: var(--background);
}

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

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* ================================
   Testimonials Section
   ================================ */

.testimonials {
    padding: 100px 0;
    background-color: var(--background-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background-color: var(--background);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
}

.stars {
    color: var(--warning-color);
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
}

/* ================================
   Download Section
   ================================ */

.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.download-content p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

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

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

.download-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.8;
}

/* ================================
   Footer
   ================================ */

.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

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

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

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ================================
   Support Page Styles
   ================================ */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

.last-updated {
    font-size: 14px;
    opacity: 0.8;
}

.support-content {
    padding: 80px 0;
}

.support-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.faq-section {
    background-color: var(--background-secondary);
    padding: 40px;
    border-radius: 20px;
}

.faq-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.faq-item {
    margin-bottom: 32px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p,
.faq-item ul,
.faq-item ol {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item ul,
.faq-item ol {
    margin-left: 24px;
    margin-top: 12px;
}

.faq-item li {
    margin-bottom: 8px;
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

.contact-support {
    padding: 80px 0;
    background-color: var(--background-secondary);
    text-align: center;
}

.contact-support h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.response-time {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ================================
   Privacy Page Styles
   ================================ */

.privacy-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 48px;
}

.privacy-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.privacy-section h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.privacy-section ul {
    margin-left: 24px;
    margin-top: 12px;
    margin-bottom: 16px;
}

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

.privacy-highlight {
    background-color: var(--background-secondary);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin: 24px 0;
}

.privacy-highlight strong {
    color: var(--text-primary);
}

.privacy-summary {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    color: white;
    padding: 32px;
    border-radius: 16px;
    margin-top: 24px;
}

.privacy-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.privacy-summary ul {
    list-style: none;
    margin-left: 0;
}

.privacy-summary li {
    font-size: 16px;
    margin-bottom: 12px;
    color: white;
}

.privacy-summary p {
    margin-top: 20px;
    font-size: 16px;
    color: white;
}

.contact-info {
    background-color: var(--background-secondary);
    padding: 20px;
    border-radius: 12px;
    margin: 16px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .nav-links {
        gap: 16px;
    }

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

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

    .page-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 32px;
    }

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

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .nav-links {
        display: none;
    }

    .navbar .container {
        justify-content: center;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }

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

    .download-content h2 {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 16px;
    }
}

/* ================================
   Animations
   ================================ */

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

.hero-content,
.hero-image {
    animation: fadeInUp 0.8s ease-out;
}

/* ================================
   Utility Classes
   ================================ */

.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; }
