
/* Hero Section Styles */
.hero {
    background: linear-gradient(135deg, #1a4fcb 0%, #0891b2 50%, #059669 100%);
    color: #fff;
    padding: 4rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(120, 100, 255, 0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(0, 200, 180, 0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 60% 80%, rgba(99, 179, 237, 0.2) 0%, transparent 50%);
    animation: meshAnim 10s ease-in-out infinite alternate;
}

@keyframes meshAnim {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle 1.5px at 15% 25%, rgba(255,255,255,0.4) 100%, transparent),
                      radial-gradient(circle 1px at 75% 15%, rgba(255,255,255,0.3) 100%, transparent),
                      radial-gradient(circle 2px at 40% 70%, rgba(255,255,255,0.25) 100%, transparent),
                      radial-gradient(circle 1px at 90% 60%, rgba(255,255,255,0.3) 100%, transparent),
                      radial-gradient(circle 1.5px at 60% 40%, rgba(255,255,255,0.2) 100%, transparent);
    animation: particles 6s ease-in-out infinite alternate;
}

@keyframes particles {
    0% { transform: translateY(0); opacity: 0.7; }
    100% { transform: translateY(-10px); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(8px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: fadeInDown 0.7s ease both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin: 0 0 1.1rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #a5f3eb, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    opacity: 0.9;
    margin: 0 0 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.7s ease 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.stat-item {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 14px;
    padding: 0.7rem 1.4rem;
    text-align: center;
    backdrop-filter: blur(12px);
    min-width: 100px;
}

.stat-num { font-size: 1.7rem; font-weight: 900; display: block; line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 0.7rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.3rem; display: block; }

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    letter-spacing: 0.01em;
}

.hero-btn.primary { background: #fff; color: #1a4fcb; box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.hero-btn.secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); backdrop-filter: blur(8px); }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.22); opacity: 0.95; }

/* Search Section Styles */
.search-wrap {
    max-width: 540px;
    margin: -1.8rem auto 2.5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 5;
}

.search-input {
    width: 100%;
    padding: 1rem 1.3rem 1rem 3.2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 40px rgba(37,99,210,0.2), 0 0 0 2px rgba(255,255,255,0.8);
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.25s;
    background: #fff;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

.search-input:focus {
    box-shadow: 0 10px 40px rgba(37,99,210,0.3), 0 0 0 3px rgba(37,99,210,0.18);
}

.search-icon {
    position: absolute;
    left: 1.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

.no-results { text-align: center; color: #94a3b8; font-size: 1rem; padding: 2rem 0; display: none; }

/* Tool Grid Styles */
.tools-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.2rem 2rem;
}

.section-heading {
    text-align: center;
    color: #1e40af;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-heading::before,
.section-heading::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #bfdbfe);
    border-radius: 2px;
}

.section-heading::after { background: linear-gradient(90deg, #bfdbfe, transparent); }

ul.tool-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 600px) { ul.tool-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { ul.tool-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 440px) { ul.tool-list { grid-template-columns: 1fr; } }

ul.tool-list li {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s;
}

ul.tool-list li.visible { opacity: 1; transform: translateY(0) scale(1); }

ul.tool-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding: 1.15rem 0.9rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    font-size: 0.88rem;
    min-height: 68px;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

ul.tool-list li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
}

ul.tool-list li a::after {
    content: '';
    position: absolute;
    bottom: -60%; left: 50%;
    width: 120%; height: 120%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 70%);
    transform: translateX(-50%);
    transition: bottom 0.3s ease;
}

ul.tool-list li a:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 14px 32px rgba(0,0,0,0.28); }
ul.tool-list li a:hover::after { bottom: -20%; }
ul.tool-list li a .icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }

ul.tool-list li:nth-child(6n+1) a { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
ul.tool-list li:nth-child(6n+2) a { background: linear-gradient(135deg, #ec4899, #f97316); }
ul.tool-list li:nth-child(6n+3) a { background: linear-gradient(135deg, #0891b2, #059669); }
ul.tool-list li:nth-child(6n+4) a { background: linear-gradient(135deg, #d97706, #f59e0b); color: #1e293b; }
ul.tool-list li:nth-child(6n+5) a { background: linear-gradient(135deg, #0d9488, #10b981); }
ul.tool-list li:nth-child(6n+6) a { background: linear-gradient(135deg, #e11d48, #6366f1); }

ul.tool-list li.hidden { display: none; }

/* Tool Descriptions Styles */
.tool-descriptions {
    margin: 2.5rem auto;
    padding: 2.2rem 2.4rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 30px rgba(37,99,210,0.07);
    max-width: 960px;
}

.tool-descriptions h2 {
    color: #1e40af;
    margin: 0 0 1.6rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e0e7ff;
}

.tool-desc { margin-bottom: 1.3rem; padding-left: 1rem; border-left: 3px solid #e0e7ff; }
.tool-desc h3 { margin: 0 0 0.35rem; color: #1e293b; font-size: 0.97rem; font-weight: 700; }
.tool-desc p { color: #64748b; font-size: 0.88rem; line-height: 1.7; margin: 0; }

/* Trust Section Styles */
.trust-section {
    max-width: 960px;
    margin: 0 auto 2rem;
    padding: 0 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.trust-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(37,99,210,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.trust-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37,99,210,0.12); }
.trust-card .t-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.trust-card h3 { color: #1e293b; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.trust-card p { color: #64748b; font-size: 0.82rem; line-height: 1.6; margin: 0; }

/* Dark Mode Overrides */
body.dark-mode .search-input {
    background: #1e2a45;
    color: #e2e8f0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 0 2px rgba(255,255,255,0.05);
}

body.dark-mode .tool-descriptions,
body.dark-mode .trust-card { background: #1e2a45; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark-mode .tool-desc h3 { color: #c5d3e8; }
body.dark-mode .tool-desc p { color: #7f9abd; }
body.dark-mode .tool-descriptions h2 { color: #93c5fd; border-color: #1e3a5c; }
body.dark-mode .section-heading { color: #60a5fa; }
body.dark-mode .tool-desc { border-left-color: #1e3a5c; }
body.dark-mode .trust-card h3 { color: #e2e8f0; }
body.dark-mode .trust-card p { color: #7f9abd; }
body.dark-mode .no-results { color: #4b6289; }
