:root {
    /* Colors derived from the hw.png logo */
    --primary: #00bfa5;      /* The bright teal/mint from the logo border */
    --secondary: #1a237e;    /* The deep navy blue from the logo circle */
    --highlight: #7ef8c0;    /* The light green from the lightbulb */
    --dark: #121212;
    --light: #ffffff;
    --gray: #f4f4f4;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* Layout Containers */
.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Header & Logo Section */
header { 
    padding: 1rem 0; 
    background: var(--light); 
    border-bottom: 1px solid #eee; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.logo { 
    display: flex; 
    align-items: center; 
}

.logo-link { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    gap: 12px; 
}
/* Logo and Brand Name Alignment */
.logo-link { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    gap: 12px; /* Space between logo and text */
}

.header-logo { 
    height: 50px; 
    width: auto; 
    display: block;
}

.brand-name { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--secondary); /* Navy Blue from logo */
    letter-spacing: -0.5px;
}

.brand-name span { 
    color: var(--primary); /* Teal from logo */
}

/* Navigation List */
.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    align-items: center; 
}

/* Navigation Links */
nav ul { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    align-items: center; 
}

nav a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 500; 
    font-size: 0.95rem; 
    transition: color 0.3s ease;
}

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

.btn-small { 
    background: var(--primary); 
    color: white !important; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: 600;
}

.btn-small:hover { 
    background: var(--secondary); 
}

/* Hero Section */
.hero { 
    padding: 80px 0; 
    text-align: center; 
    background: linear-gradient(135deg, var(--secondary) 0%, #0d1245 100%);
    color: var(--light);
}

.hero h1 { 
    font-size: clamp(2.2rem, 5vw, 3.8rem); 
    margin-bottom: 1.2rem; 
    line-height: 1.1; 
    font-weight: 700;
}

.highlight { 
    color: var(--highlight); 
}

.hero p { 
    font-size: 1.15rem; 
    margin-bottom: 2.5rem; 
    opacity: 0.9; 
    max-width: 650px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* Search Box Styling */
.search-box { 
    display: flex; 
    flex-direction: column; 
    max-width: 650px; 
    margin: 0 auto; 
    gap: 12px; 
    padding: 0 20px;
}

.search-box input { 
    flex: 1; 
    padding: 18px 25px; 
    border-radius: 10px; 
    border: none; 
    font-size: 1.1rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-box button { 
    padding: 18px 35px; 
    background: var(--primary); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 1.1rem;
    transition: all 0.3s ease; 
}

.search-box button:hover { 
    background: var(--highlight); 
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Features Grid */
.features { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
    padding: 80px 5%; 
}

.card { 
    padding: 3rem; 
    background: var(--gray); 
    border-radius: 15px; 
    transition: all 0.3s ease; 
    text-align: left;
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    background: var(--light);
}

.card h3 { 
    margin-bottom: 1rem; 
    color: var(--secondary); 
    font-size: 1.4rem;
}

/* Footer Section */
footer { 
    text-align: center; 
    padding: 4rem 0; 
    background: #fafafa; 
    font-size: 0.95rem; 
    color: #555; 
    border-top: 1px solid #eee; 
}
/* Card Link Styling */
.card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Tool List Styling */
.tool-list {
    list-style: none;
    margin-top: 15px;
    text-align: left;
}

.tool-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.tool-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.tool-list a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.tool-list a:hover {
    color: var(--primary);
}

.active-card {
    border: 1px solid rgba(0, 191, 165, 0.3);
    background: #fff;
}

/* --- Media Queries --- */

/* Tablet & Desktop Layouts */
@media (min-width: 768px) {
    .search-box { 
        flex-direction: row; 
    }
    .hero { 
        padding: 140px 0; 
    }
    .brand-name { 
        font-size: 1.8rem; 
    }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    nav {
        padding: 0.5rem 0;
    }
    .nav-links { 
        gap: 1rem; 
    }
    /* Hide specific links to keep mobile header clean */
    .nav-links li:not(:last-child) { 
        display: none; 
    } 
    .hero h1 { 
        padding: 0 15px; 
    }
    .header-logo {
        height: 40px;
    }
    .brand-name {
        font-size: 1.3rem;
    }
}