/* techworks.ai — the AI products surface of TECHWORKSLAB.
   Deliberately darker and more product-led than techworkslab.com, which
   carries the services positioning. Same company, different room. */

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

:root {
    --ink: #0b1020;
    --ink-soft: #151c33;
    --line: #232c48;
    --paper: #ffffff;
    --paper-dim: #f5f7fb;
    --text: #1a2036;
    --text-dim: #5b6480;
    --text-invert: #eef2ff;
    --text-invert-dim: #a9b4d4;
    --accent: #5b8cff;
    --accent-bright: #7aa2ff;
    --accent-warm: #35d6c3;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(11, 16, 32, .06), 0 8px 24px rgba(11, 16, 32, .08);
    --shadow-lg: 0 24px 48px rgba(11, 16, 32, .14);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

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

/* ---------------------------------------------------------------- header -- */

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 9px;
    text-decoration: none;
    color: var(--text-invert);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
}

.brand .dot {
    color: var(--accent-warm);
}

.nav-links {
    display: flex;
    gap: 26px;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-invert-dim);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    transition: color .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-invert);
}

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-invert);
    margin: 4px 0;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
    background:
        radial-gradient(900px 400px at 15% -10%, rgba(91, 140, 255, .28), transparent 60%),
        radial-gradient(700px 380px at 90% 10%, rgba(53, 214, 195, .16), transparent 60%),
        var(--ink);
    color: var(--text-invert);
    padding: 104px 0 92px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-warm);
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    max-width: 17ch;
    margin-bottom: 20px;
}

.hero-lede {
    font-size: 1.13rem;
    color: var(--text-invert-dim);
    max-width: 58ch;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* --------------------------------------------------------------- buttons -- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .18s ease;
}

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

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

.btn-primary:hover {
    background: var(--accent-bright);
}

.btn-ghost {
    border-color: rgba(238, 242, 255, .28);
    color: var(--text-invert);
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}

/* -------------------------------------------------------------- sections -- */

.section {
    padding: 84px 0;
}

.section.dim {
    background: var(--paper-dim);
}

.section.dark {
    background: var(--ink);
    color: var(--text-invert);
}

.section.dark p {
    color: var(--text-invert-dim);
}

.section-head {
    max-width: 62ch;
    margin-bottom: 44px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-dim);
    font-size: 1.05rem;
}

/* ----------------------------------------------------------------- cards -- */

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

.card {
    background: var(--paper);
    border: 1px solid #e6eaf3;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

a.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card .ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(91, 140, 255, .12);
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-dim);
    font-size: 0.97rem;
}

.card .more {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.section.dark .card {
    background: var(--ink-soft);
    border-color: var(--line);
}

.section.dark .card p {
    color: var(--text-invert-dim);
}

/* ----------------------------------------------------------------- split -- */

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    align-items: start;
}

.prose {
    max-width: 68ch;
}

.prose p {
    color: var(--text-dim);
    margin-bottom: 1.1rem;
}

.prose h3 {
    font-size: 1.25rem;
    margin: 1.8rem 0 .7rem;
    color: var(--text);
}

.section.dark .prose p {
    color: var(--text-invert-dim);
}

.checklist {
    list-style: none;
}

.checklist li {
    display: flex;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid #e6eaf3;
}

.checklist li:last-child {
    border-bottom: 0;
}

.checklist .tick {
    color: var(--accent-warm);
    font-weight: 700;
}

.checklist strong {
    display: block;
}

.checklist span.d {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.section.dark .checklist li {
    border-color: var(--line);
}

.section.dark .checklist span.d {
    color: var(--text-invert-dim);
}

/* ------------------------------------------------------------ page hero --- */

.page-hero {
    background:
        radial-gradient(700px 320px at 20% -20%, rgba(91, 140, 255, .25), transparent 60%),
        var(--ink);
    color: var(--text-invert);
    padding: 76px 0 60px;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-invert-dim);
    max-width: 62ch;
}

.breadcrumb {
    background: var(--paper-dim);
    border-bottom: 1px solid #e6eaf3;
    padding: 13px 0;
    font-size: 0.88rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--text-dim);
}

.breadcrumb [aria-current="page"] {
    color: var(--text-dim);
}

/* ------------------------------------------------------------------ misc -- */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.tags span {
    border: 1px solid #e6eaf3;
    background: var(--paper);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.section.dark .tags span {
    background: var(--ink-soft);
    border-color: var(--line);
    color: var(--text-invert-dim);
}

.cta {
    background: linear-gradient(135deg, var(--accent) 0%, #3f6fe0 100%);
    color: #fff;
    padding: 68px 0;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 10px;
}

.cta p {
    opacity: .92;
    margin-bottom: 26px;
}

.cta .btn-dark:hover {
    background: #000;
}

.empty {
    text-align: center;
    padding: 56px 24px;
    border: 1px dashed #d7dded;
    border-radius: var(--radius);
    background: var(--paper-dim);
}

.empty p {
    color: var(--text-dim);
    max-width: 52ch;
    margin: 0 auto 22px;
}

/* ----------------------------------------------------------------- forms -- */

.form .row {
    margin-bottom: 17px;
}

.form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7dded;
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    background: var(--paper);
    color: var(--text);
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, .18);
}

.form textarea {
    resize: vertical;
}

/* Off-screen rather than display:none: some bots skip hidden fields, and the
   point of the trap is that they fill it in. */
.form .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form .note {
    margin-top: 12px;
    font-size: 0.86rem;
    color: var(--text-dim);
}

.cf-turnstile {
    margin-bottom: 16px;
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
    background: var(--ink);
    color: var(--text-invert-dim);
    padding: 58px 0 26px;
    font-size: 0.94rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 34px;
}

.site-footer h4 {
    color: var(--text-invert);
    font-size: 0.88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 9px;
}

.site-footer a {
    color: var(--text-invert-dim);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text-invert);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 0.87rem;
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 860px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--ink);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 0;
        padding: 12px 24px 20px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 10px 0;
    }

    .nav-toggle {
        display: block;
        order: 3;
    }

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

    .hero {
        padding: 72px 0 64px;
    }

    .section {
        padding: 60px 0;
    }
}

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