:root { 
    --bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card: rgba(255, 255, 255, 0.95);
    --card-dark: rgba(255, 255, 255, 0.1);
    --text: #2d3748;
    --text-light: #4a5568;
    --muted: #718096;
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    --border: rgba(255, 255, 255, 0.2);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.15);
}

* { 
    box-sizing: border-box; 
}

body { 
    margin: 0; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkles 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkles {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

header { 
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 { 
    font-size: 24px; 
    margin: 0; 
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a { 
    color: rgba(255, 255, 255, 0.9);
    margin-left: 24px; 
    text-decoration: none; 
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
}

nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

main { 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 0 24px; 
}

/* Hero Section */
.hero { 
    text-align: center; 
    padding: 60px 0;
    position: relative;
}

.nav-logo {
    height: 32px;
    width: 32px;
    border-radius: 6px;
    margin-left: 10px;
    vertical-align: middle;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-logo:hover {
    opacity: 0.8;
}

.hero h2 { 
    font-size: 48px; 
    margin-bottom: 35px; 
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 20px;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero .pricing { 
    margin: 50px 0 60px 0;
    transform: perspective(1000px) rotateX(5deg);
}

.hero .pricing .muted {
    margin-top: 25px;
    margin-bottom: 35px;
}

.hero .pricing:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    transition: all 0.4s ease;
}

/* Buttons */
button, .primary { 
    background: var(--secondary);
    color: white; 
    border: none; 
    padding: 18px 36px; 
    border-radius: 50px; 
    font-weight: 700; 
    cursor: pointer; 
    text-decoration: none; 
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
    position: relative;
    overflow: hidden;
}

button::before, .primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s;
}

button:hover::before, .primary:hover::before {
    left: 100%;
}

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

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ghost { 
    background: rgba(255, 255, 255, 0.1);
    color: white; 
    padding: 12px 24px; 
    border-radius: 30px; 
    text-decoration: none; 
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Feature Cards */
.features { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    margin-top: 60px; 
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.features div { 
    background: var(--card);
    padding: 30px; 
    border-radius: 20px; 
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.features div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    border-radius: 20px 20px 0 0;
}

.features div:nth-child(2)::before {
    background: var(--secondary);
}

.features div:nth-child(3)::before {
    background: var(--success);
}

.features div:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.features h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.features p {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* Main App Card */
.card { 
    background: var(--card);
    padding: 40px; 
    border-radius: 24px; 
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary);
}

/* Credits Display */
.credits { 
    margin-bottom: 30px; 
    padding: 20px 30px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 20px;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
    position: relative;
    overflow: hidden;
}

.credits::before {
    content: '✨';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    animation: sparkle 2s ease-in-out infinite alternate;
}

.credits::after {
    content: '🎯';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    animation: sparkle 2s ease-in-out infinite alternate-reverse;
}

@keyframes sparkle {
    from { transform: translateY(-50%) scale(1); }
    to { transform: translateY(-50%) scale(1.1); }
}

.credits strong {
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Form Elements */
label { 
    display: block; 
    margin: 25px 0 10px; 
    color: var(--text); 
    font-weight: 600;
    font-size: 16px;
}

input, textarea { 
    width: 100%; 
    background: rgba(255, 255, 255, 0.9);
    color: var(--text); 
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px; 
    padding: 16px 20px; 
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

/* Results Section */
.result { 
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    animation: slideIn 0.5s ease-out;
}

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

.result h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
}

.result h3::before {
    content: '🚀';
    margin-right: 10px;
    font-size: 28px;
}

.result pre { 
    white-space: pre-wrap; 
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 25px; 
    border-radius: 16px; 
    margin: 20px 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

#copyBtn {
    background: var(--success);
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

#copyBtn:hover {
    box-shadow: 0 12px 35px rgba(78, 205, 196, 0.5);
}

/* Utility Classes */
.muted { 
    color: var(--muted); 
    font-size: 14px; 
    margin: 12px 0 0 0;
}

.muted a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.muted a:hover {
    color: #764ba2;
}

/* Footer */
footer { 
    text-align: center; 
    padding: 50px 0; 
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 300;
}

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-logo {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .features div {
        padding: 25px;
    }
    
    .card {
        padding: 24px;
    }
    
    main {
        padding: 0 16px;
    }
    
    button, .primary {
        padding: 16px 28px;
        font-size: 15px;
    }
}

/* Success animations */
@keyframes success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: success 0.5s ease-in-out;
}