/* ---------- Base ---------- */
:root {
    --blue: #0078d4;
    --blue-dark: #106ebe;
    --blue-darker: #005a9e;
    --blue-bg: #f3f9fd;
    --ink: #201f1e;
    --ink-2: #323130;
    --ink-3: #605e5c;
    --ink-4: #8a8886;
    --line: #edebe9;
    --line-2: #e1dfdd;
    --bg: #ffffff;
    --bg-soft: #faf9f8;
    --shadow-sm: 0 1.6px 3.6px rgba(0, 0, 0, 0.05), 0 0.3px 0.9px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6.4px 14.4px rgba(0, 0, 0, 0.08), 0 1.2px 3.6px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 25.6px 57.6px rgba(0, 0, 0, 0.12), 0 4.8px 14.4px rgba(0, 0, 0, 0.08);
    --radius: 6px;
    --radius-lg: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", "Segoe UI Web", -apple-system, BlinkMacSystemFont,
        "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0 0 .5em 0;
    line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

p { margin: 0 0 1em 0; color: var(--ink-2); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--blue);
    margin: 0 0 .65rem 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    text-decoration: none;
    line-height: 1;
}
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }
.btn-primary:active { background: var(--blue-darker); }
.btn-ghost {
    background: transparent;
    color: var(--ink-2);
    border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    font-size: 1rem;
}
.brand:hover { text-decoration: none; }

.brand-mark {
    display: inline-grid;
    grid-template-columns: 10px 10px;
    grid-template-rows: 10px 10px;
    gap: 2px;
    width: 22px; height: 22px;
}
.brand-mark .sq { display: block; }
.brand-mark .sq-1 { background: #f25022; }
.brand-mark .sq-2 { background: #7fba00; }
.brand-mark .sq-3 { background: #00a4ef; }
.brand-mark .sq-4 { background: #ffb900; }
.brand-name { letter-spacing: -0.01em; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 8px;
}
.site-nav a {
    color: var(--ink-2);
    font-size: .95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(0, 120, 212, 0.12), transparent 60%),
        radial-gradient(900px 400px at 0% 0%, rgba(0, 164, 239, 0.08), transparent 55%),
        var(--bg);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
    padding: 88px 24px 96px;
}
.hero-copy h1 { margin-top: 4px; }
.lede {
    font-size: 1.125rem;
    color: var(--ink-3);
    max-width: 56ch;
}
.hero-actions {
    display: flex; gap: 12px;
    margin: 28px 0 36px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 36px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
    font-size: 1.5rem;
    color: var(--ink);
    font-weight: 700;
}
.hero-stats span {
    font-size: .85rem;
    color: var(--ink-3);
}

/* hero "code window" */
.hero-card {
    perspective: 1200px;
}
.window {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(-1.2deg);
    border: 1px solid #2d2d2d;
}
.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #2d2d2d;
    border-bottom: 1px solid #1e1e1e;
}
.window-bar .dot {
    width: 12px; height: 12px; border-radius: 50%;
    display: inline-block;
}
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.window-title {
    color: #cfcfcf;
    font-size: .8rem;
    margin-left: 10px;
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}
.code {
    margin: 0;
    padding: 22px 24px;
    color: #d4d4d4;
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: .9rem;
    line-height: 1.55;
    overflow-x: auto;
}
.c-kw { color: #569cd6; }
.c-ns { color: #4ec9b0; }
.c-ty { color: #4ec9b0; }

/* ---------- Sections ---------- */
.section {
    padding: 88px 0;
}
.section-services { background: var(--bg); }
.section-blog { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-about { background: var(--bg); }

.section-head {
    max-width: 720px;
    margin: 0 0 44px;
}
.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}
.section-sub {
    font-size: 1.05rem;
    color: var(--ink-3);
}

.link-arrow {
    color: var(--blue);
    font-weight: 600;
    white-space: nowrap;
}

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

/* ---------- Service cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--line-2);
}
.card h3 { margin-top: 4px; margin-bottom: 8px; }
.card p { color: var(--ink-3); font-size: .96rem; flex: 1; }
.card-link {
    color: var(--blue);
    font-weight: 600;
    font-size: .92rem;
    margin-top: 14px;
    align-self: flex-start;
}

.card-icon {
    width: 44px; height: 44px;
    border-radius: 8px;
    margin-bottom: 18px;
    background: var(--blue-bg);
    position: relative;
}
.card-icon::before,
.card-icon::after {
    content: "";
    position: absolute;
    background: var(--blue);
}
/* Courses: stacked book lines */
.icon-courses::before { left: 11px; right: 11px; top: 12px; height: 3px; border-radius: 2px; }
.icon-courses::after  { left: 11px; right: 18px; top: 21px; height: 3px; border-radius: 2px; box-shadow: 0 9px 0 var(--blue); }
/* Coach: head + shoulders */
.icon-coach::before { left: 16px; top: 9px; width: 12px; height: 12px; border-radius: 50%; }
.icon-coach::after  { left: 9px; right: 9px; bottom: 9px; height: 12px; border-radius: 12px 12px 0 0; }
/* Blog: lines */
.icon-blog::before { left: 11px; right: 11px; top: 13px; height: 3px; box-shadow: 0 7px 0 var(--blue), 0 14px 0 var(--blue); border-radius: 2px; }
.icon-blog::after  { display: none; }
/* Tutorials: play triangle */
.icon-tut::before {
    left: 16px; top: 12px;
    width: 0; height: 0;
    background: transparent;
    border-left: 14px solid var(--blue);
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}
.icon-tut::after { display: none; }

/* ---------- Blog cards ---------- */
.blog-grid { gap: 28px; }
.post {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
}
.post:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.post-feature { grid-column: span 2; flex-direction: row; }
.post-feature .post-thumb { flex: 0 0 46%; min-height: 280px; }
.post-feature .post-body { padding: 32px; }

.post-thumb {
    height: 170px;
    position: relative;
    background: linear-gradient(135deg, #0078d4, #00a4ef);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.thumb-tag {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 10px;
    border-radius: 999px;
}
/* Per-topic gradient swatches */
.thumb-windows { background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); }
.thumb-iis     { background: linear-gradient(135deg, #5c2d91 0%, #0078d4 100%); }
.thumb-vs      { background: linear-gradient(135deg, #68217a 0%, #b04ad6 100%); }
.thumb-ps      { background: linear-gradient(135deg, #012456 0%, #0078d4 100%); }
.thumb-net     { background: linear-gradient(135deg, #512bd4 0%, #8a63ff 100%); }
.thumb-wpf     { background: linear-gradient(135deg, #00a4ef 0%, #0078d4 100%); }
.thumb-azure   { background: linear-gradient(135deg, #0078d4 0%, #50e6ff 100%); }
.thumb-sql     { background: linear-gradient(135deg, #a4262c 0%, #d83b01 100%); }

.post-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-body h3 {
    font-size: 1.18rem;
    margin: 6px 0 8px;
    line-height: 1.3;
}
.post-meta {
    color: var(--ink-4);
    font-size: .82rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.post-body p { color: var(--ink-3); font-size: .95rem; flex: 1; }
.post-body code {
    background: var(--blue-bg);
    color: var(--blue-darker);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .85em;
}

/* ---------- About ---------- */
.about-inner {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 56px;
    align-items: start;
}
.checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}
.checklist li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--ink-2);
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--blue);
}
.checklist li::after {
    content: "";
    position: absolute;
    left: 5px; top: 9px;
    width: 8px; height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}
.about-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.about-card h3 { margin-top: 0; }

/* ---------- CTA ---------- */
.section-cta {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: #fff;
    text-align: center;
}
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 56ch; margin-inline: auto; }
.cta-actions {
    display: flex; gap: 12px; justify-content: center; margin-top: 28px;
    flex-wrap: wrap;
}
.section-cta .btn-primary {
    background: #fff;
    color: var(--blue-darker);
}
.section-cta .btn-primary:hover { background: #f3f3f3; }
.section-cta .btn-ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.section-cta .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- Footer ---------- */
.site-footer {
    background: #faf9f8;
    border-top: 1px solid var(--line);
    padding: 56px 0 24px;
    color: var(--ink-3);
    font-size: .92rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    padding-bottom: 32px;
}
.footer-note { max-width: 38ch; margin-top: 12px; color: var(--ink-3); }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--ink-2); }
.footer-cols a:hover { color: var(--blue); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    font-size: .82rem;
    color: var(--ink-4);
}
.footer-bottom p { margin: 0; }

/* ---------- Article pages ---------- */
.article { background: var(--bg); }

.article-hero {
    color: #fff;
    padding: 56px 0 64px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}
.article-hero .container { max-width: 880px; }
.article-hero .thumb-tag {
    display: inline-block;
    margin-bottom: 18px;
}
.article-hero h1 {
    color: #fff;
    margin: 6px 0 14px;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    max-width: 22ch;
}
.article-meta {
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
    margin: 0;
}
.article-back {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 28px;
    text-decoration: none;
}
.article-back:hover { color: #fff; text-decoration: none; }

/* Per-topic article hero gradients */
.hero-windows { background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); }
.hero-iis     { background: linear-gradient(135deg, #5c2d91 0%, #0078d4 100%); }
.hero-vs      { background: linear-gradient(135deg, #68217a 0%, #b04ad6 100%); }
.hero-ps      { background: linear-gradient(135deg, #012456 0%, #0078d4 100%); }
.hero-net     { background: linear-gradient(135deg, #512bd4 0%, #8a63ff 100%); }
.hero-wpf     { background: linear-gradient(135deg, #00a4ef 0%, #0078d4 100%); }
.hero-azure   { background: linear-gradient(135deg, #0078d4 0%, #50e6ff 100%); }
.hero-sql     { background: linear-gradient(135deg, #a4262c 0%, #d83b01 100%); }

.article-body {
    max-width: 760px;
    padding-top: 56px;
    padding-bottom: 56px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-2);
}
.article-body > p:first-of-type {
    font-size: 1.18rem;
    color: var(--ink-2);
    line-height: 1.6;
}
.article-body h2 {
    font-size: 1.5rem;
    margin-top: 2.2em;
    margin-bottom: .6em;
    padding-top: .2em;
}
.article-body h3 {
    font-size: 1.15rem;
    margin-top: 1.8em;
    margin-bottom: .4em;
}
.article-body p,
.article-body ul,
.article-body ol { margin: 0 0 1.1em 0; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: .35em; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-body pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: .9rem;
    line-height: 1.55;
    margin: 1.4em 0 1.6em;
    box-shadow: var(--shadow-sm);
}
.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}
.article-body code {
    background: var(--blue-bg);
    color: var(--blue-darker);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .9em;
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}

.article-body blockquote {
    margin: 1.4em 0;
    padding: 14px 22px;
    border-left: 4px solid var(--blue);
    background: var(--blue-bg);
    color: var(--ink-2);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.callout {
    margin: 1.6em 0;
    padding: 18px 22px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
}
.callout strong { color: var(--ink); }

.article-body hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2.4em 0;
}

.article-related {
    border-top: 1px solid var(--line);
    padding: 56px 24px 80px;
    max-width: 1180px;
    margin: 0 auto;
}
.article-related h3 {
    font-size: 1.3rem;
    margin: 0 0 24px;
}

/* code token colors used in article snippets */
.tok-kw { color: #569cd6; }
.tok-ty { color: #4ec9b0; }
.tok-st { color: #ce9178; }
.tok-cm { color: #6a9955; font-style: italic; }
.tok-fn { color: #dcdcaa; }
.tok-nu { color: #b5cea8; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .post-feature { grid-column: span 2; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px; }
    .about-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
    .site-nav { display: none; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .post-feature { grid-column: span 1; flex-direction: column; }
    .post-feature .post-thumb { min-height: 170px; flex: none; }
    .post-feature .post-body { padding: 22px; }
    .section { padding: 64px 0; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .article-hero { padding: 40px 0 48px; }
    .article-body { padding-top: 40px; padding-bottom: 40px; font-size: 1rem; }
    .article-related { padding: 40px 24px 56px; }
}
