/* Base Styles */
:root {
    /* Apple-style Color Palette */
    --primary-color: #007AFF;      /* Apple Blue */
    --secondary-color: #5856D6;    /* Apple Purple */
    --success-color: #34C759;      /* Apple Green */
    --warning-color: #FF9500;      /* Apple Orange */
    --error-color: #FF3B30;        /* Apple Red */
    --gray-100: #F5F5F7;          /* Light Background */
    --gray-200: #E5E5EA;          /* Border Color */
    --gray-300: #D1D1D6;          /* Disabled State */
    --gray-400: #C7C7CC;          /* Separator */
    --gray-500: #8E8E93;          /* Secondary Text */
    --gray-600: #636366;          /* Tertiary Text */
    --gray-700: #48484A;          /* Secondary Background */
    --gray-800: #3A3A3C;          /* Primary Background Dark */
    --gray-900: #1C1C1E;          /* Primary Text Dark */
    --text-color: #000000;        /* Primary Text */
    --bg-color: #FFFFFF;          /* Primary Background */
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

/* Header */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Tutorial Section */
.tutorial {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.tutorial h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.tutorial-card {
    background-color: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
}

.card-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Prompts Section */
.prompts {
    padding: var(--spacing-xl) 0;
    background-color: var(--gray-100);
}

.prompts h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.prompt-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.prompt-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.prompt-card h3 {
    padding: var(--spacing-md);
    margin: 0;
}

.prompt-text {
    padding: 0 var(--spacing-md);
    color: var(--gray-500);
    margin-bottom: var(--spacing-md);
}

.copy-btn {
    margin: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Gallery Section */
.gallery {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.gallery h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-card h3 {
    padding: var(--spacing-md);
    margin: 0;
}

.interaction-buttons {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

.like-btn, .dislike-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.dislike-btn:hover {
    background-color: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
}

.like-btn.active {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.dislike-btn.active {
    background-color: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
}

/* Footer */
.footer {
    background-color: var(--gray-100);
    padding: 64px 0 32px;
    margin-top: 64px;
}

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

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

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

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

.footer-section a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 32px;
    text-align: center;
    color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .nav-list {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .tutorial-grid,
    .prompts-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

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

.tutorial-card,
.prompt-card,
.gallery-card {
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* Focus States */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* Error States */
.error {
    color: var(--warning-color);
    border-color: var(--warning-color);
}

/* Pricing Section */
.pricing {
    padding: var(--spacing-xl) 0;
    background-color: var(--gray-100);
}

.pricing .container {
    max-width: 1200px;
}

.pricing h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
    font-weight: 700;
}

.section-description {
    text-align: center;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.125rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto;
    max-width: 1200px;
}

.pricing-card {
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: 12px;
    right: -32px;
    background: var(--primary-color);
    color: white;
    padding: 8px 40px;
    font-size: 14px;
    transform: rotate(45deg);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.features {
    list-style: none;
    margin: 0 0 var(--spacing-lg);
    padding: 0;
    text-align: left;
}

.features li {
    margin-bottom: 16px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.features i {
    color: var(--success-color);
    margin-right: 12px;
    font-size: 1.125rem;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Pricing Responsive */
@media (max-width: 1068px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 734px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .price {
        font-size: 2.5rem;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

/* Policy Pages */
.policy-page {
    padding: 64px 0;
}

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

.policy-section h2 {
    color: var(--text-color);
    margin-bottom: 24px;
}

.policy-section ul, .policy-section ol {
    margin-bottom: 24px;
}

.policy-section li {
    margin-bottom: 12px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: var(--bg-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    margin: 64px auto;
    position: relative;
} 