/* Titleman — Styles */

:root {
    --primary: #e94560;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #f5f5f5;
    --text: #333;
    --text-light: #666;
    --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); line-height: 1.6; }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 2rem; max-width: 1200px; margin: 0 auto; }
.nav-brand { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%); color: #fff; padding-bottom: 4rem; }
.hero-content { text-align: center; max-width: 700px; margin: 0 auto; padding: 3rem 2rem 0; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
.hero-note { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.8rem; border-radius: var(--radius); font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: #d63a54; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; }

/* Sections */
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--light); max-width: 100%; }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; color: var(--dark); }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.feature { text-align: center; padding: 2rem; }
.feature-icon { width: 60px; height: 60px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 1rem; }
.feature h3 { margin-bottom: 0.5rem; color: var(--dark); }
.feature p { color: var(--text-light); font-size: 0.95rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 2rem; padding: 0 2rem; }
.price-card { background: #fff; border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: relative; border: 2px solid transparent; }
.price-card.featured { border-color: var(--primary); transform: scale(1.03); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 0.2rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.price-tier { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--dark); }
.price-period { color: var(--text-light); margin-bottom: 1.5rem; }
.price-card ul { list-style: none; margin-bottom: 1.5rem; text-align: left; }
.price-card li { padding: 0.4rem 0; color: var(--text-light); font-size: 0.9rem; }
.price-card li::before { content: "\2713 "; color: var(--primary); font-weight: 700; }
.price-card .btn-outline { color: var(--dark); border-color: #ddd; }
.price-card .btn-primary { width: 100%; }

/* Downloads */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.download-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.download-card.disabled { opacity: 0.5; }
.download-card h3 { color: var(--dark); margin-bottom: 0.5rem; }
.download-card p { color: var(--text-light); margin-bottom: 1rem; font-size: 0.95rem; }
.download-card ol { margin: 0 0 1.5rem 1.2rem; color: var(--text-light); font-size: 0.9rem; }
.download-card ol li { margin-bottom: 0.3rem; }
.download-card code { background: var(--light); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85rem; }

/* Form */
.form-wrapper { max-width: 450px; margin: 0 auto; }
.form-wrapper form { display: flex; gap: 0.5rem; }
.form-wrapper input, .form-wrapper select { flex: 1; padding: 0.75rem 1rem; border: 2px solid #ddd; border-radius: var(--radius); font-size: 1rem; }
.form-wrapper input:focus { outline: none; border-color: var(--primary); }
.result { margin-top: 1rem; }
.success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 1rem; border-radius: var(--radius); }
.error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 1rem; border-radius: var(--radius); }

/* FAQ */
.faq-list { max-width: 700px; margin: 2rem auto 0; }
details { background: #fff; border-radius: var(--radius); margin-bottom: 0.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
summary { padding: 1rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--dark); }
summary:hover { color: var(--primary); }
details p { padding: 0 1.5rem 1rem; color: var(--text-light); font-size: 0.95rem; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #fff; border-radius: var(--radius); padding: 2.5rem; max-width: 450px; width: 90%; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 1.5rem; cursor: pointer; color: #999; }
.modal-content h2 { text-align: left; margin-bottom: 1.5rem; }
.modal-content form { display: flex; flex-direction: column; gap: 0.8rem; }
.modal-content input, .modal-content select { padding: 0.75rem 1rem; border: 2px solid #ddd; border-radius: var(--radius); font-size: 1rem; }
.modal-content .btn { text-align: center; }

/* Footer */
.footer { text-align: center; padding: 2rem; color: var(--text-light); font-size: 0.9rem; }
.footer a { color: var(--primary); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .nav-links { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .form-wrapper form { flex-direction: column; }
}
