@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg: #050A16;
    --navy: #0A1428;
    --navy-2: #0E1C3A;
    --navy-3: #14264E;
    --white: #F7F5F0;
    --dim: rgba(247, 245, 240, 0.62);
    --dimmer: rgba(247, 245, 240, 0.38);
    --gold: #FFD700;
    --amber: #FFA928;
    --gold-deep: #B8860B;
    --green: #7CE38B;
    --glass: rgba(150, 180, 255, 0.05);
    --glass-2: rgba(150, 180, 255, 0.09);
    --stroke: rgba(170, 200, 255, 0.15);
    --stroke-soft: rgba(170, 200, 255, 0.08);
    --gold-stroke: rgba(255, 215, 0, 0.28);
    --g-blue: #4285F4;
    --g-red: #EA4335;
    --g-yellow: #FBBC05;
    --g-green: #34A853;
    --g-link: #1a0dab;
    --g-text: #202124;
    --g-sub: #4d5156;
    --g-grey: #70757a;
    --g-line: #ebecf0;
    --g-purple: #9B72CB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    background:
        radial-gradient(ellipse 120% 60% at 50% -10%, var(--navy-2), transparent 60%),
        radial-gradient(ellipse 80% 50% at 100% 110%, rgba(20, 38, 78, 0.6), transparent 65%),
        var(--bg);
    background-attachment: fixed;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 17px;
}

::selection {
    background: var(--gold);
    color: #000;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin {
    to {
        --angle: 360deg;
    }
}

@keyframes gradShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.hl {
    background: linear-gradient(100deg, var(--gold), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-fx::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(170, 200, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(170, 200, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black, transparent 82%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.14), transparent 70%);
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
}

.orb-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(41, 98, 255, 0.14), transparent 70%);
    top: 110vh;
    left: -200px;
}

.orb-3 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(155, 114, 203, 0.1), transparent 70%);
    top: 200vh;
    right: -200px;
}

main,
.nav-wrap,
footer {
    position: relative;
    z-index: 1;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    position: relative;
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 0.72rem 1.55rem;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    color: #1a1400;
    background:
        linear-gradient(115deg, #FFE968, var(--gold), var(--amber), var(--gold), #FFE968) padding-box,
        conic-gradient(from var(--angle), #fff, var(--gold), var(--gold-deep), var(--amber), #fff) border-box;
    background-size: 300% 100%, 100% 100%;
    animation: gradShift 3.5s linear infinite alternate, spin 3s linear infinite;
    box-shadow: 0 0 20px -2px rgba(255, 215, 0, 0.45), 0 4px 14px rgba(2, 6, 18, 0.55);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pill i {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.pill:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 0 34px 0 rgba(255, 215, 0, 0.65), 0 6px 18px rgba(2, 6, 18, 0.55);
}

.pill:hover i {
    transform: translateX(4px);
}

.pill:active {
    transform: translateY(1px) scale(0.98);
}

/* Nav */
.nav-wrap {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 4%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    background: rgba(8, 14, 30, 0.6);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--stroke-soft);
    border-radius: 100px;
    padding: 0.65rem 0.7rem 0.65rem 1.4rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    max-width: 980px;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.brand-fallback {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Bricolage Grotesque';
    font-weight: 700;
    color: var(--white);
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 30%;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 800;
    color: #1a1400;
    font-family: 'Bricolage Grotesque';
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-links a {
    color: var(--dim);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    padding: 0.6rem 1.05rem;
    border-radius: 100px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    background: var(--glass);
}

.menu-btn {
    display: none;
    background: var(--glass-2);
    border: 1px solid var(--stroke);
    border-radius: 100px;
    color: var(--white);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Instrument Sans';
}

.mobile-sheet {
    display: none;
    position: fixed;
    top: 78px;
    left: 4%;
    right: 4%;
    z-index: 99;
    background: rgba(10, 18, 38, 0.94);
    backdrop-filter: blur(28px);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 0.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.mobile-sheet.open {
    display: block;
}

.mobile-sheet a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.9rem 1rem;
    border-radius: 14px;
}

.mobile-sheet a:hover {
    background: var(--glass);
}

.mobile-sheet a:last-child {
    color: var(--gold);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Hero + search ---------- */
.blog-hero {
    max-width: 820px;
    margin: 0 auto;
    padding: 10.5rem 5% 0;
    text-align: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'JetBrains Mono';
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.3rem;
}

.kicker i {
    font-size: 0.8rem;
}

.blog-hero h1 {
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: clamp(2.2rem, 5.4vw, 3.8rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.blog-hero .lede {
    color: var(--dim);
    font-size: 1.12rem;
    margin-top: 1.1rem;
}

.blog-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 560px;
    margin: 2rem auto 0;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 100px;
    padding: 0.95rem 1.5rem;
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.12);
    transition: box-shadow 0.25s ease;
}

.blog-search:focus-within {
    box-shadow: 0 4px 16px rgba(32, 33, 36, 0.2);
}

.blog-search::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 100px;
    z-index: -1;
    background: conic-gradient(from var(--angle), var(--g-blue), var(--g-purple), var(--g-red), var(--g-yellow), var(--g-green), var(--g-blue));
    animation: spin 2.6s linear infinite;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-search:focus-within::before {
    opacity: 1;
}

.blog-search .mag {
    font-size: 1rem;
    background: linear-gradient(120deg, var(--g-blue), var(--g-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blog-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Instrument Sans';
    font-size: 1rem;
    color: var(--g-text);
    min-width: 0;
}

.blog-search input::placeholder {
    color: #70757a;
}

/* ---------- Category tabs (SERP filter) ---------- */
.cat-tabs {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 1.8rem auto 0;
    padding: 0 5%;
}

.cat-tab {
    font-family: 'Bricolage Grotesque';
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--stroke);
    border-radius: 100px;
    padding: 0.55rem 1.3rem;
    background: var(--glass);
    color: var(--dim);
    cursor: pointer;
    transition: all 0.18s ease;
}

.cat-tab.active,
.cat-tab:hover {
    background: linear-gradient(115deg, #FFE968, var(--gold), var(--amber), var(--gold), #FFE968);
    background-size: 300% 100%;
    animation: gradShift 3.5s linear infinite alternate;
    color: #1a1400;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
}

/* ---------- Featured post ---------- */
.featured-wrap {
    max-width: 1150px;
    margin: 3rem auto 0;
    padding: 0 5%;
}

.featured {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gold-stroke);
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.85), 0 0 40px -14px rgba(255, 215, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 50px -14px rgba(255, 215, 0, 0.35);
}

.featured-img {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: var(--navy-2);
}

.featured-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured:hover .featured-img img {
    transform: scale(1.04);
}

.feat-flag {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    z-index: 2;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: #1a1400;
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-body {
    padding: 2.4rem 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-cat {
    font-family: 'JetBrains Mono';
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
}

.featured-body h2 {
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0.7rem 0 0.8rem;
    color: var(--white);
}

.featured-body p {
    color: var(--dim);
    font-size: 1.02rem;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'JetBrains Mono';
    font-size: 0.76rem;
    color: var(--dimmer);
}

.post-meta .av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: #1a1400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: 0.6rem;
}

.featured-body .readmore {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-family: 'Bricolage Grotesque';
    font-weight: 700;
    font-size: 0.92rem;
}

.featured:hover .readmore i {
    transform: translateX(4px);
}

.featured-body .readmore i {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

@media (max-width: 820px) {
    .featured {
        grid-template-columns: 1fr;
    }

    .featured-img {
        min-height: 220px;
    }
}

/* ---------- Section head ---------- */
.section {
    max-width: 1150px;
    margin: 5rem auto 0;
    padding: 0 5%;
}

.sec-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.sec-bar h2 {
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.sec-bar h2 i {
    color: var(--gold);
    font-size: 0.8em;
}

.sec-bar .count {
    font-family: 'JetBrains Mono';
    font-size: 0.78rem;
    color: var(--dimmer);
}

/* ---------- Post grid ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

.post {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--glass);
    border: 1px solid var(--stroke-soft);
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
    transform: translateY(-6px);
    border-color: var(--gold-stroke);
    box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.85), 0 0 30px -14px rgba(255, 215, 0, 0.3);
}

.post-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--navy-2);
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post:hover .post-img img {
    transform: scale(1.06);
}

.post-img .chip {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background: rgba(5, 10, 22, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gold-stroke);
    color: var(--gold);
    font-family: 'JetBrains Mono';
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
}

.post-body {
    padding: 1.4rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-body h3 {
    font-family: 'Bricolage Grotesque';
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.32;
    color: var(--white);
    margin-bottom: 0.55rem;
}

.post-body p {
    color: var(--dim);
    font-size: 0.93rem;
    flex: 1;
}

.post-body .post-meta {
    margin-top: 1.1rem;
}

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 3.5rem auto 0;
}

.pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.4rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    color: var(--dim);
    text-decoration: none;
    font-family: 'Bricolage Grotesque';
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.15s ease;
}

.pager a:hover {
    border-color: var(--gold-stroke);
    color: var(--gold);
}

.pager a.on {
    color: #1a1400;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
}

.pager a.arrow {
    color: var(--gold);
}

/* ---------- Newsletter ---------- */
.news-wrap {
    max-width: 1000px;
    margin: 6rem auto 0;
    padding: 0 5%;
}

.news-inner {
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--gold-stroke);
    border-radius: 32px;
    padding: 3.5rem 5%;
    background: linear-gradient(150deg, rgba(255, 215, 0, 0.12), rgba(14, 28, 58, 0.6) 55%, rgba(155, 114, 203, 0.1));
    backdrop-filter: blur(22px);
}

.news-inner::before {
    content: '';
    position: absolute;
    inset: -60px;
    background: conic-gradient(from var(--angle), rgba(255, 215, 0, 0.16), transparent 40%, rgba(66, 133, 244, 0.12), transparent 70%, rgba(255, 215, 0, 0.16));
    animation: spin 12s linear infinite;
    z-index: -1;
}

.news-inner h2 {
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem;
}

.news-inner p {
    color: var(--dim);
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}

.news-form {
    display: flex;
    gap: 0.7rem;
    max-width: 460px;
    margin: 0 auto;
}

.news-form input {
    flex: 1;
    background: #fff;
    border: none;
    border-radius: 100px;
    padding: 0.9rem 1.4rem;
    font-family: 'Instrument Sans';
    font-size: 0.98rem;
    color: var(--g-text);
    outline: none;
    min-width: 0;
}

.news-form .pill {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .news-form {
        flex-direction: column;
    }

    .news-form .pill {
        justify-content: center;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--stroke-soft);
    padding: 3.75rem 5% 2.5rem;
    margin-top: 6rem;
    background: linear-gradient(180deg, transparent, rgba(10, 20, 40, 0.7));
}

.foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.9fr 0.9fr 1fr;
    gap: 2.25rem;
    padding-bottom: 2.5rem;
}

.foot-col h5 {
    font-family: 'JetBrains Mono';
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.foot-col a {
    display: block;
    color: var(--dim);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.foot-col a:hover {
    color: var(--gold);
}

.foot-brand p {
    font-size: 0.9rem;
    color: var(--dim);
    max-width: 270px;
    margin-top: 0.85rem;
}

.foot-brand .brand-logo {
    height: 34px;
}

.foot-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.foot-col .foot-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    color: #fff;
    border: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.foot-col .foot-social a svg {
    display: block;
    margin: 0 auto;
}

.foot-col .foot-social a.s-fb {
    background: #1877F2;
}

.foot-col .foot-social a.s-x {
    background: #16181c;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.foot-col .foot-social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
    color: #fff;
}

.foot-base {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--stroke-soft);
    padding-top: 1.8rem;
    font-size: 0.78rem;
    color: var(--dimmer);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.foot-legal a {
    color: var(--dimmer);
    text-decoration: none;
}

.foot-legal a:hover {
    color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before {
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 940px) {
    .foot-inner {
        grid-template-columns: 1fr 1fr;
    }

    .foot-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .brand-logo {
        height: 28px;
    }
}