@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

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

:root {
    --bg: #eef3ff;
    --bg-2: #e2ebff;
    --panel: rgba(255, 255, 255, 0.78);
    --line: #b7c4df;
    --text: #0e1a34;
    --muted: #3f4d70;
    --brand: #2ecc40;
    --brand-2: #ff7f5f;
    --font-head: "Sora", sans-serif;
    --font-body: "Plus Jakarta Sans", sans-serif;
    --shadow: 0 20px 60px rgba(18, 44, 94, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(
            80rem 35rem at 85% -6%,
            rgba(20, 199, 181, 0.24),
            transparent
        ),
        radial-gradient(
            60rem 30rem at 8% 10%,
            rgba(255, 127, 95, 0.2),
            transparent
        ),
        linear-gradient(180deg, var(--bg), #f6f9ff 100%);
    line-height: 1.7;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: var(--text);
    padding: 10px 14px;
    font-weight: 700;
    z-index: 200;
    text-decoration: none;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(239, 244, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    height: 72px;
}

.nav-logo img {
    width: 210px;
    max-width: 46vw;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--text);
}

.nav-cta {
    background: linear-gradient(130deg, var(--brand), #2ecc406b);
    color: var(--text) !important;
    font-weight: 700;
    border: 1px solid rgba(14, 26, 52, 0.18);
    padding: 8px 14px;
    border-radius: 999px;
}

.nav-cta:hover {
    background: linear-gradient(130deg, #2ecc406b, var(--brand));
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    background: var(--text);
}

main {
    padding: 46px 5% 86px;
}

.blog-hero {
    max-width: 960px;
    margin: 0 auto 34px;
    text-align: left;
    border: 1px solid rgba(14, 26, 52, 0.12);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 30px;
}

.eyebrow {
    display: inline-block;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 5px 10px;
    border: 1px solid rgba(14, 26, 52, 0.16);
    border-radius: 999px;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 4.7rem);
    margin-bottom: 12px;
}

.blog-hero p {
    color: var(--muted);
    max-width: 760px;
}

.editor-note {
    max-width: 960px;
    margin: 0 auto 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(14, 26, 52, 0.14);
    background: rgba(255, 255, 255, 0.74);
}

.editor-note p {
    color: var(--text);
    font-size: 15px;
}

.signal-strip {
    max-width: 960px;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 1px solid rgba(14, 26, 52, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.signal-track {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    padding: 10px 0;
    animation: signalMarquee 26s linear infinite;
}

.signal-track span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(14, 26, 52, 0.12);
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.8);
}

.post-grid {
    max-width: 960px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.teaser {
    border: 1px solid rgba(14, 26, 52, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    padding: 18px;
    display: grid;
    gap: 8px;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease;
}

.teaser:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(18, 44, 94, 0.18);
}

.teaser h2 {
    font-size: clamp(1.35rem, 3vw, 1.95rem);
    margin-bottom: 4px;
}

.teaser p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 6px;
}

.teaser-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.teaser-meta span {
    border: 1px solid rgba(14, 26, 52, 0.14);
    border-radius: 999px;
    padding: 3px 9px;
}

.teaser a,
.inline-cta,
.cta-button {
    color: var(--text);
    background: linear-gradient(130deg, var(--brand), #2ecc406b);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(14, 26, 52, 0.18);
    border-radius: 999px;
    padding: 9px 14px;
    display: inline-block;
    width: fit-content;
}

.post-read {
    margin-left: 8px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.post-read:hover {
    color: var(--text);
}

.posts {
    max-width: 960px;
    margin: 28px auto;
    display: grid;
    gap: 14px;
}

.post {
    border: 1px solid rgba(14, 26, 52, 0.12);
    border-radius: 16px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.74);
}

.post .meta {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.post h2 {
    font-size: clamp(1.45rem, 3.5vw, 2.12rem);
    margin-bottom: 10px;
}

.post p,
.post ul {
    color: var(--muted);
}

.post ul {
    margin: 8px 0 12px 20px;
}

.topic-pipeline,
.bottom-cta {
    max-width: 960px;
    margin: 24px auto 0;
    border: 1px solid rgba(14, 26, 52, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    padding: 24px;
}

.topic-pipeline h2,
.bottom-cta h2 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 3vw, 1.95rem);
}

.topic-pipeline p,
.bottom-cta p {
    color: var(--muted);
    margin-bottom: 12px;
}

.topic-pipeline ol {
    margin-left: 20px;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

footer {
    border-top: 1px solid var(--line);
    padding: 24px 5% 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

footer p {
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--text);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes signalMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .signal-track {
        animation: none;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(239, 244, 255, 0.98);
        border-bottom: 1px solid var(--line);
        transition: max-height 0.22s ease;
    }

    .nav-links.open {
        max-height: 330px;
    }

    .nav-links li {
        width: 100%;
        border-top: 1px solid var(--line);
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 5%;
    }

    .nav-links .nav-cta {
        margin: 10px 5% 14px;
        width: calc(100% - 10%);
        text-align: center;
    }

    .post-read {
        display: inline-block;
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 640px) {
    main {
        padding-top: 28px;
    }

    .blog-hero,
    .teaser,
    .post,
    .topic-pipeline,
    .bottom-cta {
        padding: 18px;
    }
}

/* Footer Styles */
footer {
    background-color: var(--bg);
    border-top: 1px solid rgba(20, 199, 181, 0.12);
    padding: 48px 5% 32px;
    margin-top: 64px;
}

.footer-container {
    width: min(var(--max), 100% - 10%);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-family: Sora, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--brand);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--text);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(20, 199, 181, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    footer {
        padding: 32px 5% 24px;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-section h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .footer-section a {
        font-size: 13px;
    }
}
