/* thisys.ai — Thisys Technologies services site. Tokens first; light by default, dark via the OS setting. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-band: #0f172a;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6475;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-ink: #3730a3;
  --brand-2: #0891b2;
  --on-brand: #ffffff;
  --band-ink: #e2e8f0;
  --band-muted: #a5b4cb;
  --card: #ffffff;
  --tbc-bg: #fef3c7;
  --tbc-ink: #78350f;
  --ok: #047857;
  --err: #b91c1c;
  --grad: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #111831;
    --bg-band: #060a16;
    --ink: #e7ecf6;
    --ink-2: #c3cbe0;
    --muted: #94a0ba;
    --line: #26304a;
    --brand: #818cf8;
    --brand-ink: #a5b4fc;
    --brand-2: #22d3ee;
    --on-brand: #0b1020;
    --card: #121a33;
    --tbc-bg: #4a3410;
    --tbc-ink: #fde68a;
    --ok: #34d399;
    --err: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
mark.tbc { background: var(--tbc-bg); color: var(--tbc-ink); padding: 0 .3em; border-radius: 4px; font-size: .92em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand-sub { font-weight: 500; color: var(--muted); }
.nav-toggle { display: none; font: inherit; font-size: .95rem; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--bg-soft); }
.site-nav a.nav-cta { background: var(--brand); color: var(--on-brand); font-weight: 600; margin-left: 6px; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current="page"] { background: var(--brand-ink); color: var(--on-brand); }
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .js .site-nav.open { display: block; }
  html:not(.js) .header-row { flex-wrap: wrap; padding-bottom: 8px; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* Sections */
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight-top { padding-top: 24px; }
.align-start { align-items: start; }
.section.band { background: var(--bg-band); color: var(--band-ink); }
.section.band .muted, .section.band .lede { color: var(--band-muted); }
.section.band a { color: #a5b4fc; }
@media (min-width: 720px) { .section { padding: 88px 0; } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-ink); margin-bottom: 12px; }
.section.band .eyebrow { color: #67e8f9; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46rem; }
.narrow { max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 36px; }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; background: var(--grad); opacity: .14; filter: blur(80px); border-radius: 50%; pointer-events: none; }
@media (min-width: 720px) { .hero { padding: 112px 0 88px; } }
.hero h1 { max-width: 18em; }
.hero .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero { padding: 56px 0 24px; }
@media (min-width: 720px) { .page-hero { padding: 80px 0 32px; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-ink); color: var(--on-brand); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }
.section.band .btn-ghost { background: transparent; color: var(--band-ink); border-color: #475472; }
.section.band .btn-ghost:hover { border-color: #a5b4fc; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-open { border: 1.5px dashed color-mix(in srgb, var(--muted) 60%, transparent); box-shadow: none; background: transparent; }
.card .tag { font-size: .8rem; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .06em; }
.section.band .card { background: #121a33; border-color: #26304a; box-shadow: none; }

/* Stats */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 3px solid; border-image: var(--grad) 1; padding: 4px 0 4px 16px; }
.stat b { display: block; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
.stat span { font-size: .9rem; color: var(--muted); }
.section.band .stat span { color: var(--band-muted); }
.footnote { font-size: .85rem; color: var(--muted); margin-top: 20px; }
.section.band .footnote { color: var(--band-muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps > li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin-bottom: .3em; }
.steps p:last-child { margin-bottom: 0; }
.step-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.step-meta b { color: var(--ink-2); font-weight: 600; }

/* Tables */
.table-wrap { margin-bottom: 1.25em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }

/* Prose */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.callout { border-left: 4px solid var(--brand); background: var(--bg-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.check { list-style: none; padding: 0; }
.check li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); }
.check li::after { content: ""; position: absolute; left: 6px; top: calc(.35em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--card); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* CTA band */
.cta { text-align: left; }
.cta .actions { margin-top: 20px; }

/* Form */
.form { display: grid; gap: 18px; max-width: 40rem; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid #8a94a8; border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--brand-2); outline-offset: 1px; border-color: var(--brand); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.form-status.err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.form-status:empty { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg-soft); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-head { font-weight: 700; margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--brand-ink); text-decoration: underline; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header, .site-footer, .actions, .nav-toggle { display: none; } body { font-size: 12pt; } }
