/* Base Reset & Variables */
:root {
    --bg-primary: #fdf9f3;
    --bg-secondary: #f5efe6;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --accent: #ff4444;
    --accent-hover: #cc3333;
    --warning: #ff9500;
    --success: #00c853;
    --error: #ff3b30;
    --border: #e0d6c8;
    --shadow: rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1000;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo-img-small {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.cta-btn {
    background: var(--text-primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.5), transparent),
        radial-gradient(ellipse 60% 50% at 20% 60%, rgba(236, 72, 153, 0.5), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(239, 68, 68, 0.4), transparent),
        radial-gradient(ellipse 50% 30% at 90% 20%, rgba(59, 130, 246, 0.3), transparent),
        linear-gradient(180deg, #ffffff 0%, #fdf2f8 50%, #fce7f3 100%);
}

.hero-content {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Typewriter Cursor */
.typewriter-cursor {
    font-weight: 300;
    animation: blink 1s infinite;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.input-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #faf7f2;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 600px;
}

.app-input {
    flex: 1;
    border: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    outline: none;
    color: var(--text-primary);
}

.app-input::placeholder {
    color: #999;
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.generate-btn {
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generate-btn:hover {
    transform: scale(1.05);
    background: #333;
}

.trust-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-badges span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hero Visual */
.hero-visual {
    display: none; /* Hidden for centered hero design */
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: -2s;
}

.card-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: -4s;
}

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

.card-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.card-header.error {
    background: #fff0f0;
    color: var(--error);
}

.card-header.warning {
    background: #fff8e6;
    color: var(--warning);
}

.card-header.success {
    background: #e6fff0;
    color: var(--success);
}

.card-body {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Solutions Section */
.solutions {
    background: var(--bg-secondary);
    padding: 6rem 2rem;
}

.solutions h2, .features h2, .templates h2, .pricing h2, .testimonials h2, .cta-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.solution-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    margin-bottom: 0.75rem;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Templates Section */
.templates {
    background: var(--bg-secondary);
    padding: 6rem 2rem;
}

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

.template-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow);
}

.template-preview {
    height: 180px;
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.template-preview.ecommerce { background: linear-gradient(135deg, #ffe4e1 0%, #ffd1dc 100%); }
.template-preview.portfolio { background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%); }
.template-preview.blog { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); }
.template-preview.saas { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); }
.template-preview.landing { background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); }
.template-preview.social { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); }
.template-preview.ai { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%); }
.template-preview.crypto { background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%); }

.preview-content {
    background: white;
    border-radius: 8px;
    height: 100%;
    padding: 0.5rem;
    opacity: 0.8;
}

.fake-header, .fake-hero, .fake-cta, .fake-post, .fake-product,
.fake-img, .fake-chart, .fake-stats, .fake-wallet, .fake-coins,
.fake-message, .fake-post-item, .fake-hero-text {
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.fake-header { height: 20px; width: 60%; }
.fake-hero { height: 40px; }
.fake-cta { height: 25px; width: 40%; margin: 0 auto; }
.fake-post { height: 50px; }
.fake-products { display: flex; gap: 0.25rem; }
.fake-product { height: 60px; flex: 1; }
.fake-gallery { display: flex; gap: 0.25rem; }
.fake-img { height: 50px; flex: 1; }
.fake-dashboard { display: flex; gap: 0.25rem; height: 100%; }
.fake-chart { flex: 2; height: 100%; }
.fake-stats { flex: 1; height: 100%; }
.fake-hero-text { height: 30px; width: 80%; }
.fake-feed { display: flex; flex-direction: column; gap: 0.25rem; }
.fake-post-item { height: 40px; }
.fake-chat { display: flex; flex-direction: column; gap: 0.25rem; justify-content: flex-end; height: 100%; }
.fake-message { height: 25px; width: 70%; }
.fake-message:nth-child(2) { width: 50%; align-self: flex-end; background: #c5cae9; }
.fake-wallet { height: 40px; margin-bottom: 0.5rem; }
.fake-coins { height: 60px; }

.template-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.broken-badge {
    background: var(--error);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.template-card h4 {
    padding: 1rem 1rem 0.25rem;
}

.template-card p {
    padding: 0 1rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    border: 2px solid var(--border);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow);
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

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

.pricing-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--text-primary);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
}

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

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

.featured-btn:hover {
    background: transparent;
    color: var(--text-primary);
}

/* Testimonials */
.testimonials {
    background: var(--bg-secondary);
    padding: 6rem 2rem;
}

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

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 2.5rem;
}

.testimonial-author strong {
    display: block;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    line-height: 1.2;
}

.gradient-text-blue {
    background: linear-gradient(180deg, #5ba4d4 0%, #3d8bc2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.big-cta {
    display: inline-block;
    background: linear-gradient(180deg, #5ba4d4 0%, #3d8bc2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.big-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 4px 16px rgba(59, 139, 194, 0.3);
}

.cta-disclaimer {
    display: block;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Result Container (AI Response) */
.result-container {
    margin-top: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--shadow);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

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

.result-header {
    background: #1a1a1a;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.result-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.result-body {
    padding: 1.5rem;
}

.project-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.result-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-to-regret {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.time-to-regret span {
    font-weight: 600;
    color: var(--error);
}

.export-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.6rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.export-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Disabled button state */
.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .solutions-grid,
    .features-grid,
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

    .login-btn {
        display: none;
    }

    .cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 0.75rem;
    }

    .solutions-grid,
    .features-grid,
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .result-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
