/* ═══════════════════════════════════════════
   DESIGN TOKENS (Matched to index.html)
═══════════════════════════════════════════ */
:root {
    --bg: #F8F7F4;
    --bg2: #FFFFFF;
    --bg3: #F1EFE9;
    --bg4: #E9E6E0;
    --surf: #FFFFFF;
    --bdr: #E4E1DB;
    --bdr2: #CCC8C0;
    --ink: #0D1117;
    --ink2: #2A3141;
    --ink3: #586070;
    --ink4: #939BAC;
    --blue: #1546C0;
    --blue2: #5B8AF5;
    --blue-g: rgba(21, 70, 192, .08);
    --blue-b: rgba(21, 70, 192, .2);
    --purp: #6D28D9;
    --purp2: #A78BFA;
    --s1: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 8px rgba(0, 0, 0, .04);
    --s2: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .04);
    --s3: 0 12px 40px rgba(0, 0, 0, .10), 0 2px 8px rgba(0, 0, 0, .05);
    --r: 12px;
    --t: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    background: rgba(248, 247, 244, .9);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--bdr);
    transition: background .4s, border-color .4s;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink3);
    letter-spacing: .02em;
    transition: color var(--t);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-shrink: 0;
}

.btn-try {
    background: var(--blue);
    color: #fff;
    padding: .5rem 1.3rem;
    border-radius: var(--r);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: all var(--t);
    white-space: nowrap;
}

.btn-try:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--blue) 35%, transparent);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5vw 80px;
    position: relative;
    overflow: hidden;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 40%, rgba(21, 70, 192, .07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 30%, rgba(52, 211, 153, .06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 60% 80%, rgba(167, 139, 250, .06) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--bdr) 1px, transparent 1px), linear-gradient(90deg, var(--bdr) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
    opacity: .5;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--blue-g);
    border: 1px solid var(--blue-b);
    color: var(--blue);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: fadeUp .8s ease both;
}

.badge-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.4);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.025em;
    color: var(--ink);
    margin-bottom: 1.6rem;
    animation: fadeUp .8s .1s ease both;
}

.hero h1 .grad {
    background: linear-gradient(135deg, var(--blue), var(--purp));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

/* ═══════════════════════════════════════════
   UPDATES GRID
═══════════════════════════════════════════ */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.update-card {
    background: var(--bg2);
    border: 1px solid var(--bdr);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--t);
    display: flex;
    flex-direction: column;
}

.update-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-b);
    box-shadow: var(--s3);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-date {
    font-size: 0.8rem;
    color: var(--ink4);
    font-weight: 500;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-summary {
    font-size: 0.92rem;
    color: var(--ink3);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--bdr);
}

.btn-read {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--t);
}

.btn-read:hover {
    gap: 10px;
}

.btn-share {
    background: none;
    border: none;
    color: var(--ink4);
    cursor: pointer;
    transition: color var(--t);
    padding: 4px;
}

.btn-share:hover {
    color: var(--blue);
}

/* ═══════════════════════════════════════════
   CATEGORY BADGES
═══════════════════════════════════════════ */
.badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    display: inline-block;
}

.badge-announcement {
    background: var(--blue-g);
    color: var(--blue);
    border: 1px solid var(--blue-b);
}

.badge-update {
    background: rgba(4, 120, 87, .08);
    color: #047857;
    border: 1px solid rgba(4, 120, 87, .2);
}

.badge-release {
    background: rgba(109, 40, 217, .08);
    color: var(--purp);
    border: 1px solid rgba(109, 40, 217, .2);
}

/* ═══════════════════════════════════════════
   POST DETAIL PAGE
═══════════════════════════════════════════ */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 5vw 80px;
}

.post-thumb {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: var(--s2);
}

.post-header {
    margin-bottom: 40px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--ink2);
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2 {
    font-family: 'Playfair Display', serif;
    margin: 40px 0 16px;
    font-size: 1.6rem;
}

.post-content h3 {
    margin: 32px 0 12px;
    font-size: 1.3rem;
}

.post-content ul,
.post-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--bdr);
}

.share-btn {
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all var(--t);
}

.share-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy {
    background: var(--ink3);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .updates-grid {
        grid-template-columns: 1fr;
    }

    .post-container {
        padding: 100px 20px 40px;
    }

    .share-row {
        flex-direction: column;
    }
}