@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #3B82F6;
    --purple: #7C3AED;
    --dark: #111827;
    --mint: #06B6D4;
    --indigo: #4F46E5;
    --rose: #F43F5E;
    --amber: #D97706;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --header-h: 64px;
    --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

::selection { background: rgba(59,130,246,0.15); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.hero.home-hero,
.hero.blog-hero {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
}

.articles {
    padding: 48px 0 80px;
}

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

.card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .3s, transform .2s;
}

.card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
    transform: translateY(-4px);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.card-thumb-icon {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    margin: auto;
}

.card-body {
    padding: 20px 22px 24px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--gray-500);
}

.tag.card-tag {
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    background: rgba(212, 168, 67, .12);
    padding: 3px 10px;
    border-radius: 50px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.45;
    margin-bottom: 8px;
}

.card:hover .card-title {
    color: var(--blue);
}

.card-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-500);
    padding: 48px 0;
}

.newsletter {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(135deg, #1a2332 0%, #2a3a4e 100%);
    color: var(--white);
}

.newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: var(--white);
}

.newsletter-desc {
    font-size: 16px;
    color: rgba(255,255,255,.72);
    margin-bottom: 32px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border: 1.5px solid var(--gray-300);
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: var(--white);
}

.newsletter-input:focus {
    border-color: #d4a843;
}

.newsletter-input::placeholder {
    color: #9CA3AF;
}

.newsletter-btn {
    background: #d4a843;
    color: #1a2332;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #c4973a;
}

.legal {
    padding: 60px 0 100px;
}

.legal-badge {
    font-size: 13px;
    font-weight: 600;
    color: #d4a843;
    margin-bottom: 16px;
    display: block;
}

.legal-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.legal-date {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 56px;
}

.legal-content {
    max-width: 720px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 48px 0 16px;
    letter-spacing: -0.3px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: 16px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
    list-style: disc;
}

.legal-content li {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: 6px;
}

@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .newsletter-form {
        flex-direction: column;
    }
}

a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    height: var(--header-h);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    white-space: nowrap;
}

.logo-light { font-weight: 400; color: var(--gray-400); }
.logo-bold { font-weight: 800; color: var(--gray-900); }

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

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
}

.nav a:hover { color: var(--gray-900); }

.btn-search {
    background: var(--blue);
    color: var(--white);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.btn-search:hover { background: #2563EB; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 2px;
    transition: .3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.hero {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-500);
    margin-bottom: 48px;
    line-height: 1.7;
}

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

.hero-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
}

.hero-feature-icon.blue { background: rgba(59,130,246,.1); }
.hero-feature-icon.purple { background: rgba(124,58,237,.1); }
.hero-feature-icon.mint { background: rgba(6,182,212,.1); }

.hero-feature h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.hero-feature p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

.hero-right {
    background: var(--gray-50);
    border-radius: 24px;
    padding: 40px 24px 32px;
}

.pill-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pill-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill-row:nth-child(even) { padding-left: 28px; }

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
    cursor: default;
}

.pill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.pill-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.pill-tag.lg { padding: 14px 28px; font-size: 16px; }
.pill-tag.sm { padding: 8px 16px; font-size: 12px; }
.pill-tag.sm .pill-icon { width: 22px; height: 22px; font-size: 11px; }

.pill-tag.purple { background: var(--purple); }
.pill-tag.blue { background: var(--blue); }
.pill-tag.dark { background: var(--gray-800); }
.pill-tag.mint { background: var(--mint); }
.pill-tag.indigo { background: var(--indigo); }
.pill-tag.rose { background: var(--rose); }
.pill-tag.amber { background: var(--amber); }

.hero-right-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.hero-right-footer a {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-500);
    transition: color .2s;
}

.hero-right-footer a:hover { color: var(--blue); }

.section { padding: 80px 24px; }

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section.gray { background: var(--gray-50); }

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 16px;
    color: var(--gray-500);
    margin-top: 12px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px;
    transition: box-shadow .3s, transform .2s;
}

.service-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.service-icon.blue { background: rgba(59,130,246,.1); }
.service-icon.purple { background: rgba(124,58,237,.1); }
.service-icon.mint { background: rgba(6,182,212,.1); }
.service-icon.rose { background: rgba(244,63,94,.1); }
.service-icon.amber { background: rgba(217,119,6,.1); }
.service-icon.indigo { background: rgba(79,70,229,.1); }

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

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

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .3s, transform .2s;
}

.blog-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
    transform: translateY(-4px);
}

.blog-card-thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-figure {
    margin: 0 0 28px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.post-figure img {
    width: 100%;
    display: block;
}

.post-figure figcaption {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--gray-500);
    background: var(--gray-50);
}

.grad-1 { background: linear-gradient(135deg, #3B82F6, #7C3AED); }
.grad-2 { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.grad-3 { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.grad-4 { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.grad-5 { background: linear-gradient(135deg, #F43F5E, #F59E0B); }
.grad-6 { background: linear-gradient(135deg, #1F2937, #3B82F6); }
.grad-7 { background: linear-gradient(135deg, #059669, #06B6D4); }
.grad-8 { background: linear-gradient(135deg, #7C3AED, #3B82F6); }
.grad-9 { background: linear-gradient(135deg, #D97706, #F43F5E); }

.blog-card-body { padding: 24px; }

.blog-card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    background: rgba(59,130,246,.08);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.blog-card-tag.purple { color: var(--purple); background: rgba(124,58,237,.08); }
.blog-card-tag.mint { color: var(--mint); background: rgba(6,182,212,.08); }
.blog-card-tag.rose { color: var(--rose); background: rgba(244,63,94,.08); }
.blog-card-tag.amber { color: var(--amber); background: rgba(217,119,6,.08); }

.blog-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    font-size: 13px;
    color: var(--gray-400);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
}

.stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
}

.cta-section {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #3730A3 100%);
    padding: 100px 24px;
    text-align: center;
}

.cta-section .section-inner { max-width: 680px; }

.cta-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 16px;
    color: rgba(255,255,255,.65);
    margin-bottom: 36px;
    line-height: 1.7;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--gray-900);
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 24px 32px;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

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

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo .logo-light { color: var(--gray-500); }
.footer-brand .logo .logo-bold { color: var(--white); }

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-400);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 10px;
    transition: color .2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

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

.footer-links a { color: var(--gray-400); transition: color .2s; }
.footer-links a:hover { color: var(--white); }

.page-header {
    background: var(--gray-50);
    padding: 64px 24px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 16px;
    color: var(--gray-500);
    margin-top: 8px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 28px;
    margin-bottom: 12px;
}

.page-content p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 14px;
}

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

.page-content li {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 6px;
}

.blog-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    cursor: pointer;
    transition: all .2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--blue);
    color: var(--white);
}

.blog-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

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

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        border-bottom: 1px solid var(--gray-200);
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,.06);
        z-index: 99;
    }

    .nav.active { display: flex; }

    .nav a { font-size: 16px; padding: 4px 0; }

    .hero {
        grid-template-columns: 1fr;
        padding: 48px 24px 60px;
        min-height: auto;
        gap: 40px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-feature { display: flex; gap: 14px; align-items: flex-start; }
    .hero-feature-icon { margin-bottom: 0; flex-shrink: 0; }

    .pill-row:nth-child(even) { padding-left: 0; }

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

    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    .blog-grid,
    .blog-page-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links { justify-content: center; flex-wrap: wrap; }

    .cta-section { padding: 64px 24px; }
}
