:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #eef2ff;
    --primary: #1e1b4b;
    --primary-light: #312e81;
    --accent: #f59e0b;
    --text: #111827;
    --muted: #64748b;
    --border: #e5e7eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
}

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

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

.main-nav {
    display: flex;
    gap: 18px;
    font-weight: 600;
    color: #334155;
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.nav-cta,
.btn.primary {
    background: var(--primary);
    color: white;
}

.btn.secondary {
    background: white;
    border-color: var(--border);
    color: var(--primary);
}

.site-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.hero {
    min-height: 420px;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 28px;
    align-items: stretch;
    margin-top: 20px;
}

.hero-content,
.hero-panel,
.featured-card,
.post-card,
.category-card,
.project-card,
.related-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-content {
    padding: 54px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff, #eef2ff);
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    font-size: 0.78rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1;
    margin: 18px 0;
    color: var(--primary);
}

.hero p {
    font-size: 1.08rem;
    color: #475569;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-panel {
    padding: 28px;
}

.hero-panel h2 {
    margin-top: 0;
    color: var(--primary);
}

.quick-links {
    display: grid;
    gap: 12px;
}

.quick-links a {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-weight: 800;
}

.quick-links a:hover {
    background: var(--surface-soft);
}

.section {
    margin-top: 54px;
}

.section.soft {
    background: #eef2ff;
    margin-left: -20px;
    margin-right: -20px;
    padding: 46px 20px;
    border-radius: 32px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading span {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: 2rem;
    color: var(--primary);
}

.featured-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
}

.featured-card img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    background: #e2e8f0;
}

.featured-card > div {
    padding: 34px;
}

.category-pill {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.post-grid,
.category-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.post-card {
    overflow: hidden;
}

.post-cover {
    display: block;
    height: 180px;
    background: #e2e8f0;
}

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

.post-body {
    padding: 22px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: capitalize;
}

.post-card h3 {
    margin: 10px 0;
    color: var(--primary);
}

.post-card p {
    color: #475569;
}

.read-more {
    font-weight: 800;
    color: var(--primary-light);
}

.category-card,
.project-card {
    padding: 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover,
.project-card:hover,
.post-card:hover {
    transform: translateY(-3px);
}

.category-card h3,
.project-card h3 {
    margin-top: 0;
    color: var(--primary);
}

.category-card p,
.project-card p {
    color: #475569;
}

.project-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #eef2ff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.project-card.large {
    min-height: 230px;
}

.section-action {
    text-align: center;
    margin-top: 30px;
}

.page-title {
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px;
    box-shadow: var(--shadow);
}

.page-title h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    margin: 0;
    color: var(--primary);
}

.page-title p {
    color: #475569;
    font-size: 1.08rem;
}

.article-page {
    max-width: 860px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    padding: 46px 0 28px;
}

.article-header h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.05;
    color: var(--primary);
    margin: 18px 0;
}

.article-header p {
    font-size: 1.1rem;
    color: #475569;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    color: var(--muted);
}

.article-cover {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 28px;
    background: #e2e8f0;
    box-shadow: var(--shadow);
}

.article-content {
    background: white;
    margin-top: 28px;
    padding: 38px;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.article-content p {
    font-size: 1.05rem;
}

.article-content h2 {
    color: var(--primary);
    margin-top: 34px;
}

.related-box {
    margin-top: 28px;
    padding: 26px;
}

.related-box a {
    display: block;
    padding: 12px 0;
    color: var(--primary-light);
    font-weight: 800;
}

.site-footer {
    background: var(--primary);
    color: white;
    margin-top: 60px;
    padding: 46px 20px 20px;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-grid a {
    display: block;
    color: #e0e7ff;
    margin: 8px 0;
}

.footer-grid p {
    color: #c7d2fe;
}

.footer-bottom {
    max-width: 1180px;
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.18);
    color: #c7d2fe;
    font-size: 0.92rem;
}

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

    .post-grid,
    .category-grid,
    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 620px) {
    .hero-content,
    .page-title {
        padding: 30px;
    }

    .post-grid,
    .category-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .nav-cta {
        width: 100%;
    }
}

/* v1B legal/ad readiness additions */
.footer-grid-wide {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.92;
}

.legal-page {
    max-width: 920px;
    margin: 0 auto;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 38px;
    margin-top: 28px;
}

.legal-card h2 {
    color: var(--primary);
    margin-top: 34px;
}

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

.legal-card ul {
    padding-left: 22px;
}

.legal-card li {
    margin: 8px 0;
}

.notice-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 24px;
}

.contact-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}

.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    max-width: 980px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 5px 0 0;
    color: #475569;
}

.cookie-banner a {
    color: var(--primary-light);
    font-weight: 800;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn.small {
    padding: 9px 13px;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .footer-grid-wide,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        margin-left: 0;
    }
}


/* Payment gateway verification and legal polish */
.muted { color: var(--muted); }
.price-line {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    margin: 10px 0 18px;
}
.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.pricing-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    background: #f8fafc;
}
.pricing-card.featured-plan {
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    border-color: #c7d2fe;
    box-shadow: var(--shadow);
}
.legal-card a,
.article-content a {
    color: var(--primary-light);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-bottom-wide {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom-wide a {
    color: #fff;
    font-weight: 700;
}
@media (max-width: 900px) {
    .pricing-table {
        grid-template-columns: 1fr;
    }
}
