/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Homepage-inspired color palette and premium style */
:root {
    --primary-blue: #2563eb;
    --primary-blue-accent: #6366f1;
    --primary-blue-light: #38bdf8;
    --background: #f7f8fa;
    --card-bg: #fff;
    --text-dark: #18181b;
    --text-gray: #6b7280;
    --button-black: #18181b;
    --button-white: #fff;
    --shadow: 0 8px 32px 0 rgba(31, 41, 55, 0.10);
    --border-radius: 2rem;
    --border-radius-sm: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    padding: 0;
}

.container {
    max-width: 700px;
    margin: 3rem auto 2rem auto;
    background: none;
    padding: 0 1rem;
}

.premium-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
    justify-content: center;
}

.tab {
    padding: 0.7rem 1.7rem;
    border: none;
    background: #f3f4f6;
    color: var(--text-gray);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tab.active {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-accent));
    color: #fff;
}
.tab:hover:not(.active) {
    background: #e0e7ef;
    color: var(--primary-blue);
}

.input-section {
    margin-bottom: 1.5rem;
}
textarea, input[type="url"] {
    width: 100%;
    padding: 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    background: #f8fafc;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: border 0.2s;
}
textarea:focus, input[type="url"]:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.generate-btn {
    width: 100%;
    padding: 1.1rem;
    background: var(--button-black);
    color: var(--button-white);
    border: none;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    box-shadow: 0 2px 8px 0 rgba(31, 41, 55, 0.07);
    transition: background 0.2s, color 0.2s;
}
.generate-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}
.generate-btn:disabled {
    background: #d1d5db;
    color: #fff;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 2rem 0 1rem 0;
}
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid #e0e7ef;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results {
    margin-top: 2rem;
}
.result-box {
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 8px 0 rgba(31, 41, 55, 0.07);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    margin-bottom: 1.2rem;
}
.result-box h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.result-box p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1.05rem;
}
.copy-btn {
    padding: 0.5rem 1.2rem;
    background: #fff;
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.copy-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}

.hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem 1rem;
    margin-bottom: 2rem;
    background: linear-gradient(120deg, var(--primary-blue-light) 0%, var(--primary-blue) 60%, var(--primary-blue-accent) 100%);
    color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.hero h1 {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
}
.hero .subtitle {
    font-size: 1.1rem;
    color: #e0e7ef;
    max-width: 600px;
    margin: 0 auto;
}

.features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.feature-card {
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 250px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    transition: transform 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px) scale(1.03);
}
.feature-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.7rem;
}
.feature-card h3 {
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    font-weight: 700;
}
.feature-card p {
    color: var(--text-gray);
    font-size: 0.98rem;
}

.how-to-use {
    margin-bottom: 2.5rem;
}
.how-to-use h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-weight: 800;
}
.instruction-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    padding: 1.2rem 1rem;
    background: #fff;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
}
.step-number {
    background: linear-gradient(120deg, var(--primary-blue), var(--primary-blue-accent));
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.instruction-card h3 {
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    font-weight: 700;
}
.instruction-card p {
    color: var(--text-gray);
    font-size: 0.98rem;
}

.benefits {
    margin-bottom: 2.5rem;
}
.benefits h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-weight: 800;
}
.benefits-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.benefit-card {
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 250px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    transition: transform 0.2s;
}
.benefit-card:hover {
    transform: translateY(-4px) scale(1.03);
}
.benefit-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.7rem;
}
.benefit-card h3 {
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    font-weight: 700;
}
.benefit-card p {
    color: var(--text-gray);
    font-size: 0.98rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: #fff;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: var(--shadow);
}
.notification.error {
    background: #ef4444;
}
.notification.success {
    background: #10b981;
}
.notification.info {
    background: var(--primary-blue);
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

footer {
    text-align: center;
    padding: 2rem 0 0.5rem 0;
    color: var(--text-gray);
    border-top: none;
    margin-top: 2rem;
    font-size: 0.98rem;
}

@media (max-width: 900px) {
    .container {
        max-width: 98vw;
        padding: 0 0.5rem;
    }
    .premium-card {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .hero {
        padding: 1.5rem 0.5rem 1.2rem 0.5rem;
    }
    .features, .benefits-grid {
        flex-direction: column;
        gap: 1rem;
    }
}
@media (max-width: 600px) {
    .container {
        margin: 1rem auto 1rem auto;
    }
    .premium-card, .hero {
        border-radius: 1rem;
    }
    .result-box, .feature-card, .benefit-card, .instruction-card {
        border-radius: 0.7rem;
        padding: 1rem 0.5rem;
    }
    .tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    .tab {
        width: 100%;
        justify-content: center;
    }
}

/* Hero section with founder photo and animated blob */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.hero-blob {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.blob-anim {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #2563eb 60%, #6366f1 100%);
    filter: blur(8px) brightness(1.1);
    z-index: 1;
    animation: blobMove 8s ease-in-out infinite alternate;
}
@keyframes blobMove {
    0% { border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%; }
    50% { border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%; }
    100% { border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%; }
}
.founder-photo {
    position: relative;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 4px 24px 0 rgba(31,41,55,0.10);
    z-index: 2;
    background: #fff;
}
.founder-label {
    text-align: center;
    margin-top: 0.7rem;
    z-index: 3;
    position: relative;
}
.founder-name {
    font-weight: 700;
    color: #18181b;
    font-size: 1.1rem;
}
.founder-role {
    color: #2563eb;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.hero-content {
    flex: 1 1 320px;
    min-width: 220px;
}
@media (max-width: 700px) {
    .hero-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    .hero-blob {
        margin-bottom: 0.5rem;
    }
    .hero-content {
        text-align: center;
    }
}
