:root {
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --text: #1a1a2e;
    --text-muted: #555;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --green: #059669;
    --max-width: 960px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
}

h1, h2, h3, h4 {
    font-family: "Courier New", Courier, monospace;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; color: var(--text); }
h2 { font-size: 1.5rem; color: var(--text); }
h3 { font-size: 1.15rem; color: var(--text); }

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

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

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.brand {
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.brand a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand a:hover { color: var(--accent); text-decoration: none; }

.brand-logo {
    width: 24px;
    height: 24px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
}

nav a:hover { color: var(--accent); text-decoration: none; }

.social-link {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-link:hover { color: var(--accent); }

/* Hero */
.hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    max-width: 700px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.availability-note {
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn:hover { text-decoration: none; }

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

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

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

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

/* Sections */
section { padding: 3rem 0; }

.section-border { border-bottom: 1px solid var(--border); }

/* Service grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    background: var(--bg);
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.card a {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Case studies */
.case-study {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.case-study h3 { color: var(--text); margin-bottom: 0.5rem; }

.case-study .metric {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.25rem;
}

.case-study p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.case-study .label,
.study-label {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.study-metric {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.75rem;
}

/* Proof section */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.proof-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
}

.proof-stat {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.proof-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

/* CTA Banner */
.cta-banner {
    background: var(--bg-alt);
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.cta-banner p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.25rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.about-grid img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.about-grid p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.credentials {
    list-style: none;
    padding: 0;
    margin-top: 0.75rem;
}

.credentials li {
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.credentials li:last-child { border-bottom: none; }

.about-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.25rem;
}

.about-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact */
.contact-panel {
    max-width: 560px;
}

.contact-panel p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.contact-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form {
    margin-top: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    background: var(--bg);
    color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}


/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-sep { color: var(--text-muted); font-size: 0.85rem; }
.footer-note { font-size: 0.85rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .service-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }

    header .wrap {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero { padding: 2.5rem 0 2rem; }
    section { padding: 2rem 0; }
    .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* Page-specific: service detail pages */
.page-hero {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); max-width: 600px; font-size: 1.05rem; }

.content-section h2 { margin-bottom: 1rem; }

.content-section p,
.content-section li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.content-section ul {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.tech-list li {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
    font-family: "Courier New", monospace;
}

/* Blog placeholder */
.blog-placeholder {
    text-align: center;
    padding: 4rem 0;
}

.blog-placeholder p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0.75rem auto;
}

.topic-list {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 1.5rem auto 0;
    text-align: left;
}

.topic-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Blog */
.blog-page .blog-main {
    margin-top: 0;
}

.blog-hero,
.blog-post-hero {
    max-width: 760px;
}

.blog-eyebrow {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.blog-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

.blog-list-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    background: var(--bg);
}

.blog-list-item h2 {
    margin-bottom: 0.5rem;
}

.blog-list-item p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 58ch;
}

.blog-list-meta,
.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta {
    margin-top: 0.75rem;
}

.blog-list-link {
    font-size: 0.95rem;
    font-weight: 600;
}

.blog-empty {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    background: var(--bg-alt);
    max-width: 640px;
}

.blog-empty p {
    color: var(--text-muted);
}

.post-body {
    max-width: 760px;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin-top: 1.5rem;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body pre,
.post-body blockquote {
    margin-bottom: 1rem;
}

.post-body ul,
.post-body ol {
    padding-left: 1.25rem;
}

.post-body li {
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    color: var(--text-muted);
}

.post-body code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
}

.post-body pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

.post-body pre code {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
}

.post-footer {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1rem;
}

.post-footer p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .blog-list-item {
        padding: 1.25rem;
    }
}

/* Featured engagement */
.featured-engagement {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1.25rem;
}

.featured-engagement h3 {
    margin-bottom: 0.5rem;
}

.featured-engagement p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 640px;
}

.featured-engagement-meta {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Terminal code blocks */
.terminal-block {
    background: #0f172a;
    color: #4ade80;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
    border: 1px solid #1e293b;
}

.terminal-block code {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
}

/* Service offer page */
.service-hero {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.service-hero h1 {
    margin-bottom: 0.75rem;
}

.service-meta {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.1rem;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-body h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.service-body h2:first-child {
    margin-top: 0;
}

.service-body p,
.service-body li {
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.service-body ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.service-body strong {
    color: var(--text);
}

.service-cta-block {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-alt);
    text-align: center;
}

.service-cta-block p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Services index */
.services-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 1.25rem;
}

.services-list-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    background: var(--bg);
}

.services-list-item .study-label {
    margin-bottom: 0.5rem;
}

.services-list-item h3 {
    margin-bottom: 0.35rem;
    margin-top: 0;
}

.services-list-item h3 a {
    color: var(--text);
    text-decoration: none;
}

.services-list-item h3 a:hover {
    color: var(--accent);
}

.services-list-blurb {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.services-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9rem;
}

.services-list-price {
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    color: var(--green);
}

.status-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.status-tag--live {
    color: var(--green);
    border-color: var(--green);
}

/* Case study detail */
.case-study-body {
    max-width: 760px;
}

.case-study-body p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.case-study-stub {
    border: 1px dashed var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-family: "Courier New", Courier, monospace;
}

/* Calendly embed */
.calendly-embed {
    margin-top: 2rem;
    min-height: 700px;
}

.calendly-inline-widget {
    min-width: 320px;
    height: 700px;
}

/* Section preview links */
.section-cta-link {
    margin-top: 1rem;
    font-weight: 600;
}
