:root {
    --night: #0f2742;
    --deep: #1c4f78;
    --blue: #1f86d6;
    --blue-dark: #145e9d;
    --mint: #39bdb0;
    --ice: #e7f3ff;
    --cloud: #f6efe5;
    --paper: #fffaf3;
    --text: #10263d;
    --text-muted: #4d6277;
    --line: rgba(16, 38, 61, 0.12);
    --card: rgba(255, 255, 255, 0.82);
    --shadow-soft: 0 24px 60px rgba(12, 29, 50, 0.16);
    --shadow-card: 0 16px 34px rgba(16, 40, 64, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f9f3eb 0%, var(--cloud) 100%);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02em;
}

p, ul, ol {
    margin-top: 0;
}

a {
    color: inherit;
}

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

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(255, 250, 243, 0.84);
    border-bottom: 1px solid rgba(16, 38, 61, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--deep);
    font-weight: 700;
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: rgba(16, 38, 61, 0.84);
    font-weight: 500;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
    background:
        radial-gradient(circle at 15% 20%, rgba(57, 189, 176, 0.13) 0%, transparent 36%),
        radial-gradient(circle at 85% 18%, rgba(31, 134, 214, 0.12) 0%, transparent 40%),
        linear-gradient(140deg, #fff8ef 0%, #f6efe5 58%, #f2eadf 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 32px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(31, 134, 214, 0.1);
    color: var(--deep);
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid rgba(31, 134, 214, 0.18);
    text-decoration: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    margin: 18px 0 18px;
}

.hero p {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.hero-card,
.card,
.sidebar-card,
.cta-panel,
.article-shell {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.hero-card {
    padding: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-stat {
    padding: 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(16, 38, 61, 0.08);
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--deep);
}

.section {
    padding: 48px 0 72px;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 10px;
}

.section-head p {
    max-width: 720px;
    color: var(--text-muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(57, 189, 176, 0.14);
    color: var(--deep);
    font-size: 0.86rem;
    font-weight: 600;
}

.post-card h3 {
    font-size: 1.34rem;
}

.post-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-link {
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.article-shell {
    padding: 34px;
}

.article-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31, 134, 214, 0.08);
    color: var(--deep);
    font-size: 0.88rem;
    font-weight: 600;
}

.lead {
    font-size: 1.14rem;
    color: var(--text-muted);
}

.prose h2,
.prose h3 {
    margin-top: 38px;
    margin-bottom: 14px;
}

.prose h2 {
    font-size: 1.85rem;
}

.prose h3 {
    font-size: 1.32rem;
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.prose li + li {
    margin-top: 8px;
}

.prose a {
    color: var(--blue-dark);
}

.callout {
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: rgba(31, 134, 214, 0.08);
    border: 1px solid rgba(31, 134, 214, 0.14);
    margin: 24px 0;
}

.sidebar-card {
    position: sticky;
    top: 98px;
    padding: 22px;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.sidebar-card p,
.sidebar-card li {
    color: var(--text-muted);
}

.sidebar-card ul {
    margin: 0;
    padding-left: 20px;
}

.cta-panel {
    padding: 28px;
    margin-top: 36px;
    background:
        radial-gradient(circle at 85% 10%, rgba(57, 189, 176, 0.18) 0%, transparent 32%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(246, 239, 229, 0.96));
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    box-shadow: 0 16px 36px rgba(20, 94, 157, 0.28);
}

.btn-secondary {
    color: var(--deep);
    background: rgba(31, 134, 214, 0.08);
    border: 1px solid rgba(31, 134, 214, 0.18);
}

.read-next {
    margin-top: 28px;
}

.read-next ul {
    margin: 0;
    padding-left: 20px;
}

footer {
    padding: 34px 0 44px;
    border-top: 1px solid rgba(16, 38, 61, 0.08);
}

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

.footer-grid h4 {
    margin-bottom: 10px;
}

.footer-grid p,
.footer-grid a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

@media (max-width: 1024px) {
    .hero-grid,
    .article-layout,
    .card-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 32px, 1160px);
    }

    .nav-inner {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding: 64px 0 56px;
    }

    .article-shell,
    .hero-card,
    .sidebar-card,
    .cta-panel,
    .post-card {
        padding: 22px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}
