:root {
    --background-color: #ffffff;
    --container-bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --text-color-muted: #6e6e73;
    --border-color: #d2d2d7;
    --accent-color: #0066cc;
    --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-family-sans); 
    color: var(--text-color); 
    background-color: var(--background-color); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
h1, h2, h3 { font-family: var(--font-family-sans); color: var(--text-color); }
.hero-section {
    text-align: center;
    padding: 6rem 1rem 5rem 1rem;
}
.hero-title {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-color-muted);
    max-width: 550px;
    margin: 0 auto 3rem auto;
}
.search-bar {
    display: flex;
    max-width: 750px;
    margin: 0 auto;
    border-radius: 12px;
    background-color: var(--container-bg-color);
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
}
.search-bar:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}
.search-bar__input {
    flex-grow: 1;
    background: transparent;
    color: var(--text-color);
    border: none;
    padding: 1.2rem 1.75rem; 
    font-size: 1.2rem; 
    border-radius: 12px 0 0 12px;
    -webkit-appearance: none;
}
.search-bar__input::placeholder { color: var(--text-color-muted); }
.search-bar__input:focus { outline: none; }
.search-bar__button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0 11px 11px 0;
    transition: background-color 0.2s ease;
}
.search-bar__button:hover { background-color: #0056b3; }
.main-content { padding-top: 3rem; padding-bottom: 4rem; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    font-weight: 600;
}
.tools-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.tool-card {
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}
.tool-card__name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rank-badge {
    background-color: var(--container-bg-color);
    color: var(--text-color-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    flex-shrink: 0;
}
.tool-card__description {
    font-size: 1rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
    color: var(--text-color);
    line-height: 1.6;
}
.tool-card__tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.6rem; 
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}
.tag {
    background-color: #ebebeb;
    color: #555;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}
.loading-indicator { text-align: center; padding: 3rem; font-size: 1.1rem; color: var(--text-color-muted); }
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1d1d1f;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease-out;
}
.floating-btn:hover { transform: scale(1.05); }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); z-index: 1000; justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal-content { background-color: #f5f5f7; padding: 2rem 2.5rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); width: 90%; max-width: 600px; position: relative; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #aaa; cursor: pointer; line-height: 1; transition: color 0.2s; }
.close-btn:hover { color: #333; }
.feedback-form { max-width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; }
.form-group-inline { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form-input, .form-textarea { width: 100%; padding: 0.75rem 1rem; background-color: #fff; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; color: var(--text-color); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15); }
.form-textarea { min-height: 150px; resize: vertical; }
.form-submit-button { background-color: var(--accent-color); color: white; font-weight: 500; border: none; padding: 0.85rem 1.5rem; font-size: 1rem; cursor: pointer; border-radius: 8px; }
.form-submit-button:hover { background-color: #0056b3; }
.form-submit-button:disabled { background-color: #ccc; cursor: not-allowed; }
.form-status-message { text-align: center; margin-top: 1rem; font-weight: 500; min-height: 1.2em; }
.footer { background-color: var(--container-bg-color); text-align: center; padding: 3rem 0; font-size: 0.85rem; color: var(--text-color-muted); margin-top: 4rem; }

@media (max-width: 768px) {
    .hero-section { padding: 4rem 1rem 3rem 1rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .search-bar { max-width: 100%; }
    .search-bar__input { font-size: 1rem; padding: 1rem 1.25rem; }
    .search-bar__button { padding: 0 1.5rem; font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .tools-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .floating-btn { padding: 0.8rem 1rem; font-size: 0.9rem; bottom: 20px; right: 20px; }
    .modal-content { padding: 1.5rem; }
}
@media (min-width: 600px) { .form-group-inline { grid-template-columns: 1fr 1fr; } }
