:root {
    --primary-color: #0d6efd;
    --dark-bg: #121212;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #6c757d;
    --hero-gradient: linear-gradient(135deg, #1e1e2f 0%, #121212 100%);
    --accent-glow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #f8f9fa;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.brand-text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient);
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section h1 {
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tabs Styling */
.navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.8rem 1.2rem !important;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #fff !important;
}

/* Cards */
.tool-card,
.article-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.tool-card:hover,
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-tag {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* Tab Transitions */
.tab-pane {
    padding-top: 20px;
}

/* About Section */
.about-card {
    border-radius: 24px;
    box-shadow: var(--accent-glow);
}

.contact-link {
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Custom Buttons */
.btn-dark {
    background-color: #121212;
}

.rounded-pill {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Mailing List Sign-up */
/* A quiet strip between the content and the dark footer: hairlined off, page-coloured,
   and sized down so it reads as a footer note rather than a call to action. */
.nl-strip {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2rem 0;
}

.nl-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.nl-copy {
    flex: 1 1 22rem;
}

.nl-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.nl-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 34rem;
}

.nl-controls {
    display: flex;
    gap: 0.5rem;
}

.nl-input {
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    background-color: var(--card-bg);
    border: 1px solid #dee2e6;
    border-radius: 50rem;
    padding: 0.5rem 1.1rem;
    width: 15rem;
    min-width: 0;
}

.nl-input::placeholder {
    color: #adb5bd;
}

.nl-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
    border-color: transparent;
}

.nl-button {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background-color: #121212;
    border: 1px solid #121212;
    border-radius: 50rem;
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.nl-button:hover:not(:disabled) {
    background-color: #2c2c2c;
}

.nl-button:disabled {
    opacity: 0.55;
}

.nl-status {
    flex-basis: 100%;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.nl-status:empty {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .nl-controls {
        width: 100%;
    }

    .nl-input {
        width: auto;
        flex: 1 1 auto;
    }
}