:root {
    --primary: #ff6b00;
    --primary-hover: #e66000;
    --secondary: #1a1a1a;
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border: #dfe6e9;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --r-lg: 12px;
    --r-md: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--secondary);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fff7f2 0%, #fff 100%);
    padding: 100px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--secondary);
}

.hero h1 span {
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), #ff9100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.trust-icons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
}

/* Tool Grid */
.tool-section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--secondary);
    font-weight: 700;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.tool-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--r-md);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-card:hover {
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary);
}

.tool-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--secondary);
}

.tool-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Search bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 30px;
    font-size: 1.1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
    background: #fff;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.2);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Tool Page Specifics */
.tool-header {
    text-align: center;
    padding: 40px 0;
}

.tool-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.tool-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
}

.calc-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.calc-btn:hover {
    background: var(--primary-hover);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #fafafa;
    margin-top: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Category Header Enhancement */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-top: 40px;
}

.category-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .nav-links { display: none; }
    .nav-links.active { 
        display: flex; 
        flex-direction: column; 
        position: absolute; 
        top: 64px; 
        left: 0; 
        width: 100%; 
        background: #fff; 
        padding: 20px; 
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .nav-links.active a { margin: 10px 0; }
    .mobile-toggle { display: block; cursor: pointer; font-size: 1.5rem; }
    .category-header { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* Footer */
footer {
    background: var(--secondary);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #bbb; text-decoration: none; font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.usp-list li { color: #bbb; font-size: 0.85rem; margin-bottom: 8px; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}
