* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
body { background: #f8fafc; color: #0f172a; line-height: 1.6; }
a { color: #3b82f6; text-decoration: none; }
a:hover { text-decoration: underline; }

header { background: linear-gradient(135deg, #0f172a, #1e293b); color: white; padding: 1rem 2rem 4rem; }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.5rem; font-weight: 800; color: white !important; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a { color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: white; }

.hero { text-align: center; max-width: 800px; margin: 3rem auto 0; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; color: #94a3b8; margin-bottom: 2rem; }
.search-bar { display: flex; justify-content: center; gap: 0.5rem; }
.search-bar input { padding: 0.8rem 1.5rem; width: 60%; border: none; border-radius: 8px; font-size: 1rem; outline: none; }
.search-bar button { padding: 0.8rem 2rem; background: #3b82f6; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
.search-bar button:hover { background: #2563eb; }

.tools-section { max-width: 1200px; margin: -2rem auto 2rem; padding: 0 2rem; }
.tools-section h2 { font-size: 1.8rem; margin-bottom: 2rem; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.tool-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.tool-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.tool-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.tool-card p { color: #475569; font-size: 0.95rem; margin-bottom: 1rem; flex-grow: 1; }
.tag { display: inline-block; background: #dbeafe; color: #1e40af; font-size: 0.75rem; padding: 0.2rem 0.8rem; border-radius: 20px; margin-bottom: 1rem; align-self: flex-start; }
.btn { display: inline-block; background: #0f172a; color: white; padding: 0.6rem 1.2rem; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 0.9rem; text-align: center; }
.btn:hover { background: #1e293b; text-decoration: none; }

.page-container { max-width: 800px; margin: 3rem auto; padding: 2rem; background: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.page-container h2 { margin-bottom: 1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; }
.submit-btn { background: #3b82f6; color: white; padding: 0.8rem 2rem; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; font-size: 1rem; }
.submit-btn:hover { background: #2563eb; }
.premium-box { background: #fef9c3; padding: 1.5rem; border-radius: 8px; border-left: 4px solid #eab308; margin-top: 2rem; }

footer { text-align: center; padding: 2rem; color: #64748b; border-top: 1px solid #e2e8f0; margin-top: 4rem; font-size: 0.9rem; }

@media (max-width: 640px) {
    nav ul { gap: 0.8rem; }
    nav ul li a { font-size: 0.8rem; }
    .hero h1 { font-size: 2rem; }
    .search-bar input { width: 70%; }
}