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

:root {
    /* App's sky blue color scheme */
    --primary-color: #59A6EB;
    --primary-dark: #4A8AC4;
    --primary-light: #8CC0E0;
    --accent-orange: #F29959;
    --accent-pink: #E673A6;
    --accent-green: #73BF73;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F2F8FC;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(89, 166, 235, 0.15);
    --shadow-hover: 0 15px 40px rgba(89, 166, 235, 0.25);
}

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

/* Header / Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    font-size: 2rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

.cta-button {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(91, 164, 229, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 164, 229, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #59A6EB 0%, #4A8AC4 50%, #3D7AB0 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-mascot {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--white);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
}

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

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

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

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* How It Works */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--white);
}

/* Demo Container */
.demo-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: center;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 0 auto;
}

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

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.phone-home-bar {
    width: 120px;
    height: 5px;
    background: #333;
    border-radius: 3px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Demo Screens */
.demo-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 50px 20px 30px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-screen.active {
    opacity: 1;
    transform: translateX(0);
}

.screen-header {
    margin-bottom: 15px;
}

.demo-mascot {
    width: 80px;
    height: auto;
}

.demo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

/* Occasion Grid */
.occasion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

.occasion-item {
    background: var(--white);
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.occasion-item.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Demo Inputs */
.demo-input {
    width: 100%;
    background: var(--white);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.input-label {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 3px;
}

.input-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-value.typing::after {
    content: '|';
    animation: blink 0.8s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.style-card {
    aspect-ratio: 1;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.style-icon {
    font-size: 1.5rem;
}

.style-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
}

.style-card.active {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
    background: linear-gradient(135deg, #fff 0%, #e8f4fd 100%);
}

.style-card.active .style-name {
    color: var(--primary-color);
}

/* AI Generating */
.ai-generating {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.ai-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Final Card */
.final-card-wrapper {
    width: 100%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.final-card-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Fallback for when image isn't loaded yet */
.final-card {
    width: 100%;
    background: linear-gradient(135deg, #f5e6d3, #e8d5c4);
    border-radius: 12px;
    padding: 25px 15px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-preview {
    text-align: center;
    color: #8B4513;
    position: relative;
    z-index: 1;
}

.card-emoji {
    font-size: 3rem;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-names {
    font-size: 0.8rem;
    opacity: 0.9;
}

.card-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: shimmer 2.5s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Demo Button */
.demo-button {
    background: var(--primary-color);
    color: white;
    padding: 14px 40px;
    border-radius: 25px;
    font-weight: 600;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(89, 166, 235, 0.3);
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.steps-list .step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.steps-list .step.active {
    opacity: 1;
}

.steps-list .step.active .step-number {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(89, 166, 235, 0.4);
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-detail {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.pricing-three-col {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}

.pricing-card.compact {
    opacity: 0.9;
}

.pricing-badge.best-value {
    background: var(--accent-orange);
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 1rem;
}

.pricing-note strong {
    color: var(--text-dark);
}

/* Screenshots */
.screenshots {
    padding: 6rem 2rem;
    background: var(--white);
}

.screenshot-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #59A6EB 0%, #4A8AC4 50%, #3D7AB0 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.3rem 0;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Policy Pages */
.policy-page {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.policy-page h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.policy-page h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.policy-page h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.contact-box {
    background: var(--bg-light);
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    margin-top: 3rem;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-three-col {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .steps-list {
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .steps-list .step {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-mascot {
        width: 150px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .steps-list {
        grid-template-columns: 1fr;
    }
    
    .feature-grid, .pricing-grid, .screenshot-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        width: 260px;
        height: 540px;
    }
}

