@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Outfit:wght@500;700&display=swap');

:root {
    --bg-color: #050512;
    --card-bg: rgba(20, 20, 35, 0.7);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #06b6d4;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.12) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.stagger-1 { animation: fadeInUp 0.8s ease out both; animation-delay: 0.1s; }
.stagger-2 { animation: fadeInUp 0.8s ease out both; animation-delay: 0.2s; }
.stagger-3 { animation: fadeInUp 0.8s ease out both; animation-delay: 0.3s; }
.stagger-4 { animation: fadeInUp 0.8s ease out both; animation-delay: 0.4s; }

/* Apply animations to sections */
.hero, .generator-card, .reviews-section, .faq-section, .blog-preview {
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero { animation-delay: 0.1s; }
.generator-card { animation-delay: 0.2s; }
.reviews-section { animation-delay: 0.3s; }
.faq-section { animation-delay: 0.4s; }
.blog-preview { animation-delay: 0.5s; }

/* Steps Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px var(--primary-glow);
    flex-shrink: 0;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}

@media (max-width: 850px) {
    .steps-container { grid-template-columns: 1fr; gap: 1rem; }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 99px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.hero-badge:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    color: var(--text-dim);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Generator Card */
.generator-card {
    padding: 3rem;
    margin-bottom: 5rem;
    transition: var(--transition);
}

.generator-card:hover {
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    border-color: rgba(99, 102, 241, 0.3);
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-label {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-field {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: rgba(0, 0, 0, 0.4);
}

.toggle-group {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-container:hover {
    filter: brightness(1.2);
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    position: relative;
    transition: var(--transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 4px;
    left: 4px;
    transition: var(--transition);
}

input[type="checkbox"]:checked + .toggle-switch {
    background: var(--primary);
}

input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(24px);
}

.btn {
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #fff;
    width: 100%;
    box-shadow: 0 10px 15px -3px var(--primary-glow);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.results-area {
    margin-top: 3rem;
}

#result {
    width: 100%;
    height: auto;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    resize: vertical;
    transition: var(--transition);
}

#result:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 8rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.rating-overall {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
}

.stars {
    color: #fbbf24;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

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

.review-card {
    padding: 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.review-card p {
    font-style: italic;
    color: var(--text-main);
}

.user {
    display: flex;
    flex-direction: column;
}

.user strong {
    color: #fff;
    font-size: 1rem;
}

.user span {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* FAQ Refinement */
.faq-section {
    margin-bottom: 8rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary);
}

.plus-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.plus-icon::before, .plus-icon::after {
    content: '';
    position: absolute;
    background: var(--text-dim);
    transition: var(--transition);
}

.plus-icon::before { width: 100%; height: 2px; top: 9px; }
.plus-icon::after { height: 100%; width: 2px; left: 9px; }

.faq-item.active .plus-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item.active .faq-question { color: var(--primary); }

.faq-answer {
    max-height: 0;
    padding: 0 2rem;
    color: var(--text-dim);
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 2rem;
}

/* Blog Preview */
.blog-preview {
    margin-bottom: 8rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary);
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2rem;
}

/* Footer Simplification */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.footer-content {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background: var(--primary);
    color: #fff;
    padding: 1.25rem 2.5rem;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 1000;
    transform: translateY(200%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.toast.show { transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .input-grid, .action-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .generator-card { padding: 2rem; }
    .hero { padding: 4rem 0 2rem; }
}
