/* BlazorBluePrint Marketing Site Styles */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --dark: #1a1a2e;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --white: #ffffff;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--gray-800); overflow-x: hidden; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Navigation */
.nav { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.nav .container { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.nav-brand { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 25px; align-items: center; list-style: none; }
.nav-links a { color: var(--gray-800); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-sm { padding: 8px 20px; background: var(--primary); color: white; border-radius: 6px; font-weight: 600; border: none; cursor: pointer; font-size: 0.95rem; font-family: inherit; }
.nav-links .btn-sm:hover { background: var(--primary-dark); color: white; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; padding: 100px 0; text-align: center; }
.hero h1 { font-size: 3.2rem; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 1.25rem; opacity: 0.9; max-width: 650px; margin: 0 auto 35px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 15px 30px; border-radius: 8px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; font-size: 1rem; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); color: var(--primary); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section h2 { text-align: center; font-size: 2.2rem; margin-bottom: 15px; }
.section .subtitle { text-align: center; color: var(--gray-600); margin-bottom: 50px; font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.2s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.feature-card h3 { margin-bottom: 10px; color: var(--primary); font-size: 1.2rem; }
.feature-card p { color: var(--gray-600); }
.feature-icon { font-size: 2rem; margin-bottom: 15px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; }
.pricing-card { background: white; border-radius: 16px; padding: 40px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); text-align: center; position: relative; }
.pricing-card.featured { border: 3px solid var(--primary); transform: scale(1.03); }
.pricing-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 5px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.pricing-card .price { font-size: 3rem; font-weight: 800; color: var(--primary); margin: 20px 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--gray-600); }
.pricing-card ul { list-style: none; text-align: left; margin: 25px 0; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }
.pricing-card ul li::before { content: "\2713"; color: var(--primary); font-weight: bold; margin-right: 10px; }
.pricing-card ul li.excluded { opacity: 0.4; }
.pricing-card ul li.excluded::before { content: "\2717"; color: var(--gray-600); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 1px 5px rgba(0,0,0,0.06); overflow: hidden; }
.faq-question { padding: 20px 25px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question:hover { color: var(--primary); }
.faq-question::after { content: "+"; font-size: 1.5rem; color: var(--primary); }
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer { padding: 0 25px 20px; color: var(--gray-600); display: none; }
.faq-item.open .faq-answer { display: block; }

/* Legal Pages */
.legal { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; margin-bottom: 10px; }
.legal .updated { color: var(--gray-600); margin-bottom: 30px; }
.legal h2 { font-size: 1.5rem; margin: 30px 0 10px; color: var(--gray-800); }
.legal p, .legal li { color: var(--gray-600); margin-bottom: 15px; }
.legal ul, .legal ol { padding-left: 25px; margin-bottom: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 900px; margin: 0 auto; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info p { color: var(--gray-600); margin-bottom: 15px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--gray-200); border-radius: 8px; margin-bottom: 15px; font-family: inherit; font-size: 1rem; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }

/* Footer */
footer { background: var(--dark); color: white; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { margin-bottom: 15px; font-size: 1.1rem; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: white; }
.footer-brand { font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 10px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* Utility Classes */
.hidden { display: none !important; }

/* Demo Modal */
.demo-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.demo-modal.hidden { display: none; }
.demo-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.demo-modal-content { position: relative; background: white; border-radius: 16px; padding: 40px; max-width: 480px; width: 100%; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); animation: modalSlideIn 0.3s ease; }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.demo-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-600); padding: 5px; line-height: 1; }
.demo-modal-close:hover { color: var(--gray-800); }
.demo-modal-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--gray-800); }
.demo-modal-content .subtitle { color: var(--gray-600); margin-bottom: 25px; }

/* Demo Form */
.demo-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--gray-800); }
.demo-form input[type="text"] { width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200); border-radius: 8px; font-size: 1rem; margin-bottom: 20px; transition: border-color 0.2s; }
.demo-form input[type="text"]:focus { outline: none; border-color: var(--primary); }
.demo-form input[type="text"]::placeholder { color: var(--gray-600); }
.demo-form .btn { width: 100%; padding: 14px; font-size: 1rem; }
.demo-form .hint { font-size: 0.85rem; color: var(--gray-600); margin-top: -15px; margin-bottom: 20px; }

/* Demo Loading */
.demo-loading { text-align: center; padding: 30px 0; }
.demo-spinner { width: 48px; height: 48px; border: 4px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-loading p { color: var(--gray-600); font-size: 1.1rem; }

/* Demo Result */
.demo-result { text-align: center; }
.demo-result .success-icon { font-size: 3rem; margin-bottom: 15px; }
.demo-result h4 { font-size: 1.4rem; color: var(--primary); margin-bottom: 20px; }
.demo-credentials { background: var(--gray-50); border-radius: 10px; padding: 20px; margin: 20px 0; text-align: left; }
.demo-credentials .credential-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.demo-credentials .credential-row:last-child { border-bottom: none; }
.demo-credentials .credential-label { font-weight: 600; color: var(--gray-800); font-size: 0.9rem; }
.demo-credentials .credential-value { font-family: monospace; background: white; padding: 6px 10px; border-radius: 4px; font-size: 0.9rem; color: var(--gray-800); cursor: pointer; transition: background 0.2s; max-width: 60%; word-break: break-all; }
.demo-credentials .credential-value:hover { background: var(--gray-100); }
.demo-credentials .credential-url { display: block; margin-top: 5px; font-size: 0.85rem; color: var(--primary); word-break: break-all; }
.demo-result .expires-note { font-size: 0.85rem; color: var(--gray-600); margin-top: 15px; }
.demo-result .btn { margin-top: 20px; }

/* Demo Error */
.demo-error { background: #fee2e2; color: #991b1b; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .demo-modal-content { padding: 25px; }
    .demo-credentials .credential-row { flex-direction: column; align-items: flex-start; gap: 5px; }
    .demo-credentials .credential-value { max-width: 100%; }
}
