*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f7f7f8;
    color: #111827;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
}

.main-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.98rem;
}

.main-nav a {
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    border-color: #38bdf8;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* Hero */

.hero {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #f9fafb;
    padding: 3.5rem 0 3rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero h1 {
    font-size: 2.2rem;
    margin: 0 0 0.5rem;
}

.hero p {
    margin: 0.25rem 0;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hero-subnote {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn.primary {
    background-color: #38bdf8;
    color: #0f172a;
}

.btn.primary:hover {
    background-color: #0ea5e9;
}

.btn.secondary {
    background-color: transparent;
    color: #e5e7eb;
    border-color: #6b7280;
}

.btn.secondary:hover {
    border-color: #9ca3af;
    color: #ffffff;
}

/* Sections */

.section {
    padding: 2.5rem 0;
}

.section.alt {
    background-color: #ffffff;
}

.section.highlight {
    background-color: #0f172a;
    color: #f9fafb;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
}

.section-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Cards & Grids */

.grid {
    display: grid;
    gap: 1rem;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.section.alt .card {
    background-color: #f9fafb;
}

.card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border-color: #38bdf8;
}

.link-label {
    margin-top: auto;
    font-size: 0.85rem;
    color: #38bdf8;
}

/* Highlight */

.highlight-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Newsletter Strip */

.newsletter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.newsletter-form input[type="email"] {
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    min-width: 220px;
    font-size: 0.9rem;
}

/* Ad slot */

.ad-slot {
    padding: 1rem 0 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Footer */

.site-footer {
    background-color: #030712;
    color: #9ca3af;
    padding: 1.8rem 0 1.2rem;
    margin-top: 1.5rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-meta {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Page layout for inner pages */

.page-hero {
    padding: 2.2rem 0 1.2rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.page-hero h1 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
}

.page-hero p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.page-content {
    padding: 2rem 0;
}

.page-content h2 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-content p {
    margin: 0 0 0.75rem;
    font-size: 0.94rem;
    color: #374151;
}

.page-content ul {
    padding-left: 1.1rem;
    color: #374151;
    font-size: 0.94rem;
}

/* Responsive */

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 56px;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 0.75rem 1rem;
        box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
        display: none;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 2.4rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }

    .highlight-inner {
        align-items: flex-start;
    }
}
/* Temporarily hide newsletter sections sitewide */
.newsletter-form,
.newsletter-strip {
    display: none !important;
}

