:root {
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-soft: #ccfbf1;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1200px;
    --container-narrow: 760px;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 .6em;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

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

.brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #14b8a6 100%);
    display: grid; place-items: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.brand-mark svg {
    width: 20px; height: 20px;
}

.brand-text {
    display: flex; flex-direction: column;
    line-height: 1.1;
}

.brand-slogan {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14.5px;
    transition: background .15s, color .15s;
}

.nav a:hover {
    background: var(--surface);
    color: var(--accent);
}

.nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-cta {
    background: var(--text);
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 9999px !important;
}

.nav-cta:hover {
    background: var(--accent) !important;
    color: #fff !important;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    width: 40px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 880px) {
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        padding: 12px 16px; }
    .nav.open { display: flex; }
    .nav a { padding: 12px 14px; }
    .menu-toggle { display: grid; place-items: center; }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 88px 0 56px;
    background: radial-gradient(ellipse at top, var(--surface) 0%, transparent 60%),
                linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(13, 148, 136, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.06) 0%, transparent 35%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    max-width: 760px;
    margin: 0 auto 20px;
}

.hero h1 .accent {
    background: linear-gradient(120deg, var(--accent) 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

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

.btn-primary {
    background: var(--text);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    color: #fff;
}

.btn-ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============ SECTIONS ============ */
.section {
    padding: 72px 0;
}

.section-tight {
    padding: 48px 0;
}

.section-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
}

.section-head .lead {
    color: var(--text-muted);
    margin-top: 6px;
    max-width: 540px;
}

.section-head-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-weight: 500; font-size: 14.5px;
}

/* ============ CATEGORY CHIPS ============ */
.chip-row {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    margin-top: 36px;
}

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all .15s ease;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.chip svg {
    width: 16px; height: 16px;
    color: var(--accent);
}

/* ============ POSTS GRID ============ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.post-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.post-thumb {
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}

.post-thumb svg,
.post-thumb img {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.featured-thumb img {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.article-hero {
    margin: 0;
    background: var(--surface);
}

.article-hero figure {
    margin: 0;
    max-width: var(--container);
    margin-left: auto; margin-right: auto;
    padding: 0 24px 32px;
}

.article-hero img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    display: block;
}

.article-hero figcaption {
    color: var(--text-soft);
    font-size: 13px;
    text-align: center;
    padding-top: 12px;
    font-style: italic;
}

.post-body {
    padding: 22px;
    display: flex; flex-direction: column; gap: 12px;
    flex: 1;
}

.post-meta {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.post-cat {
    display: inline-flex;
    background: var(--accent-soft);
    color: var(--accent-hover);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.post-cat:hover { color: var(--accent-hover); }

.post-card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.post-card h3 a {
    color: var(--text);
}

.post-card h3 a:hover { color: var(--accent); }

.post-excerpt {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
}

.post-readmore {
    margin-top: auto;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex; align-items: center; gap: 4px;
}

/* ============ FEATURED POST ============ */
.featured-post {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.featured-post .featured-thumb {
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
}

.featured-post .featured-body {
    padding: 40px 36px;
}

.featured-post h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}

.featured-post h2 a {
    color: var(--text);
}

@media (max-width: 800px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    .featured-post .featured-body {
        padding: 28px 24px;
    }
}

/* ============ STATS STRIP ============ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
}

.stat .num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat .label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-top: 6px;
}

/* ============ ARTICLE ============ */
.article-header {
    padding: 64px 0 24px;
    background: linear-gradient(180deg, var(--surface) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
}

.article-meta-top {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.article-meta-top a { color: var(--accent); }

.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 800px;
    margin-bottom: 14px;
}

.article-lead-paragraph {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 720px;
}

.article-body {
    padding: 48px 0 72px;
}

.article-body .container-narrow > p,
.article-body .container-narrow > ul,
.article-body .container-narrow > ol,
.article-body .container-narrow > blockquote {
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-body h2 {
    margin-top: 2.2em;
    padding-top: 0.5em;
}

.article-body h3 {
    margin-top: 1.8em;
}

.article-body ul, .article-body ol {
    padding-left: 1.2em;
    margin: 0 0 1.2em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    background: var(--surface);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
    font-style: italic;
}

.callout {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--accent-soft);
    border: 1px solid #99f6e4;
    border-radius: var(--radius);
    display: flex; gap: 16px;
}

.callout svg {
    flex-shrink: 0;
    color: var(--accent-hover);
}

.callout h4 {
    margin: 0 0 6px;
    color: var(--accent-hover);
    font-size: 1rem;
}

.callout p { margin: 0; color: #134e4a; font-size: 14.5px; line-height: 1.6;}

/* ============ TOC / Related ============ */
.related-posts {
    background: var(--surface);
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

/* ============ ABOUT / CONTACT ============ */
.page-header {
    padding: 80px 0 48px;
    background: linear-gradient(180deg, var(--surface) 0%, #ffffff 100%);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 14px;
}

.page-header .lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .15s, transform .15s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    display: grid; place-items: center;
    margin-bottom: 16px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem;}
.feature-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.6;}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
}

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px;}
}

.contact-info {
    display: flex; flex-direction: column; gap: 20px;
}

.contact-item {
    display: flex; gap: 14px; align-items: flex-start;
}

.contact-item .ico {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    display: grid; place-items: center;
    flex-shrink: 0;
}

.contact-item h4 { margin: 0 0 4px; font-size: 1rem;}
.contact-item p, .contact-item a { margin: 0; color: var(--text-muted); font-size: 14.5px;}
.contact-item a:hover { color: var(--accent); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex; flex-direction: column; gap: 16px;
}

.form-field { display: flex; flex-direction: column; gap: 6px;}
.form-field label { font-size: 14px; font-weight: 600; color: var(--text);}
.form-field input, .form-field textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.form-field textarea { min-height: 130px; resize: vertical;}

/* ============ FAQ ============ */
.faq-list {
    display: flex; flex-direction: column; gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 20px 24px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none;}

.faq-item summary::after {
    content: '+';
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    margin-top: 16px;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============ NEWSLETTER ============ */
.newsletter {
    background: linear-gradient(135deg, var(--text) 0%, #1e293b 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute; top: -40%; right: -10%;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter h2 { color: #fff; position: relative;}
.newsletter p { color: rgba(255, 255, 255, 0.7); max-width: 480px; margin: 0 auto 24px; position: relative;}

.newsletter form {
    display: flex; gap: 8px; max-width: 460px; margin: 0 auto;
    position: relative;
}

.newsletter input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit; font-size: 15px;
}

.newsletter input::placeholder { color: rgba(255, 255, 255, 0.5);}
.newsletter input:focus {
    outline: none; border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.newsletter button {
    padding: 12px 22px;
    border-radius: 9999px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit; font-size: 15px;
}

.newsletter button:hover { background: var(--accent-hover);}

@media (max-width: 600px) {
    .newsletter { padding: 40px 24px;}
    .newsletter form { flex-direction: column;}
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 56px 0 24px;
    margin-top: 80px;
}

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

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

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr;}
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 320px;
    margin-top: 14px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 14.5px;
}

.footer-col a:hover { color: var(--accent);}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-soft);
    font-size: 13.5px;
    flex-wrap: wrap; gap: 12px;
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
    display: flex; gap: 8px; align-items: center;
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 16px;
}

.breadcrumbs a { color: var(--text-muted);}
.breadcrumbs a:hover { color: var(--accent);}
.breadcrumbs .sep { color: var(--text-soft);}

/* ============ THUMBS PLACEHOLDER (SVG) ============ */
.thumb-grad {
    width: 100%; height: 100%;
    display: block;
}

/* utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px;}
.mt-48 { margin-top: 48px;}
