:root {
    --bg-body: #F8FAFC;
    --text-main: #0F172A;
    --text-sub: #64748B;
    --primary: #0F4C75;
    --accent-blue: #0EA5E9;
    --accent-orange: #F97316;
    --border: #E2E8F0;
    --card-bg: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- BACKGROUND GRID EFFECT --- */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
    background-size: 24px 24px; /* The "Graph Paper" look */
    opacity: 0.6;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-tag {
    background: var(--text-main); 
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--text-main);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}
.brand-text span { opacity: 0.5; font-weight: 400; }

.nav-link {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text-main); }

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-badge {
    display: inline-block;
    background: #E0F2FE;
    color: #0369A1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #BAE6FD;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0 0 15px 0;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-sub);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- TOOL GRID --- */
.grid-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-sub);
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Hover Physics */
.tool-card:not(.disabled):hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: #CBD5E1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Color Themes for Cards */
.accent-blue .icon-box { background: #E0F2FE; color: #0284C7; }
.accent-orange .icon-box { background: #FFF7ED; color: #EA580C; }
.gray { background: #F1F5F9; color: #94A3B8; }

.tool-card:hover .icon-box { transform: scale(1.1) rotate(-3deg); }

.status-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.success { background: #DCFCE7; color: #166534; }
.warning { background: #FFEDD5; color: #9A3412; }
.neutral { background: #F1F5F9; color: #64748B; }

.tool-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}

.tool-card p {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.accent-blue .card-footer { color: #0284C7; }
.accent-orange .card-footer { color: #EA580C; }

.tool-card:hover .card-footer { opacity: 1; }

/* Disabled State */
.disabled {
    opacity: 0.7;
    background: #F8FAFC;
    cursor: default;
}

/* --- FOOTER --- */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-sub);
    font-size: 0.9rem;
}

@media(max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
}