/* PromptRank Trust-First Homepage Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* HEADER */
.header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-right: auto;
}

.brand:hover {
    color: #3182ce;
}

.header nav {
    display: flex;
    gap: 20px;
}

.header nav a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header nav a:hover {
    color: #3182ce;
}

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

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 60px 0 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.form-field {
    margin-bottom: 15px;
}

.hero-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    background: rgba(255,255,255,0.95);
}

.hero-form input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.1);
}

.hero-form button {
    width: 100%;
    padding: 18px 25px;
    background: #38a169;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56,161,105,0.3);
    margin-top: 10px;
}

.hero-form button:hover {
    background: #2f855a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56,161,105,0.4);
}

.credits-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.credits-note p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.credits-note a {
    color: #3182ce;
    font-weight: 600;
    text-decoration: none;
}

.credits-note a:hover {
    text-decoration: underline;
}

/* ERROR MESSAGE */
.error-message {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid #ff5252;
    border-radius: 6px;
    color: #ff5252;
    font-size: 14px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* SAMPLE AI MAP SECTION */
.sample-ai-map {
    margin-top: 30px;
    text-align: center;
}

.sample-button {
    background: #3182ce;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.sample-button:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
}

.sample-caption {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* PRICING PREVIEW */
.pricing-preview {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-note {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

.pricing-details {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.pricing-button {
    background: transparent;
    color: #3182ce;
    border: 2px solid #3182ce;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-button:hover {
    background: #3182ce;
    color: white;
}

.ai-map-link {
    margin-top: 25px;
    margin-bottom: 20px;
}

.small-link a {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
    font-size: 14px;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close-modal:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* REMOVED TRUST BAR STYLES */

/* VALUE PROPOSITION */
.value-prop {
    padding: 80px 0;
    text-align: center;
}

.value-prop h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a365d;
}

.value-prop > p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.benefits li {
    padding: 30px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.benefits li:hover {
    border-color: #3182ce;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* BEFORE & AFTER */
.before-after {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.before-after h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a365d;
}

.before-after-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.before-card, .after-card {
    padding: 30px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    text-align: center;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.before-card h3, .after-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.before-card p, .after-card p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* TESTIMONIALS */
.testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1a365d;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

blockquote {
    padding: 30px;
    background: #e6f7ff;
    border-left: 4px solid #3182ce;
    border-radius: 8px;
    font-style: italic;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

blockquote p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #444;
}

blockquote cite {
    font-weight: 600;
    color: #3182ce;
    font-style: normal;
}

/* CTA BLOCK */
.cta-block {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-block h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-block > p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.email-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.email-form input[type="url"],
.email-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.checkbox-label {
    display: block;
    margin-bottom: 25px;
    font-size: 14px;
    opacity: 0.9;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.email-form button {
    padding: 15px 40px;
    background: #38a169;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56,161,105,0.3);
}

.email-form button:hover {
    background: #2f855a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56,161,105,0.4);
}

/* FINAL CTA */
.final-cta {
    background: #1a365d;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    padding: 15px 35px;
    background: #38a169;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56,161,105,0.3);
}

.button:hover {
    background: #2f855a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56,161,105,0.4);
}

/* FOOTER */
footer {
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer nav {
    display: flex;
    gap: 30px;
}

footer nav a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: #3182ce;
}

.badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badges span {
    font-size: 14px;
    color: #38a169;
    font-weight: 500;
}

/* MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: #3182ce;
    width: 0%;
    transition: width 0.3s ease;
}

.results-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.download-button {
    background: #38a169;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: #2f855a;
    transform: translateY(-2px);
}

.small-text {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 20px;
}

.next-steps {
    text-align: left;
    background: #e6f3ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.next-steps h4 {
    margin-bottom: 15px;
    color: #1a365d;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
    color: #555;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .brand {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .before-after-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .before-card, .after-card {
        height: auto;
        padding: 25px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .badges {
        justify-content: center;
    }
}

/* Referral bonus message */
.referral-bonus {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.referral-bonus p {
    margin: 0;
    font-size: 16px;
}

.referral-bonus strong {
    font-weight: 700;
}