@import url("/fonts/fonts.css");

/* ---------- tokens ---------- */
:root {
  --blue: #1863dc;         /* botguru brand */
  --blue-deep: #1247a6;
  --ink: #0e1b33;          /* deep navy */
  --ink-soft: #33415c;
  --paper: #f6f8fc;
  --white: #ffffff;
  --mist: #eaf0fb;         /* pale blue wash */
  --line: #d7e0f0;
  --gold: #f3c44c;         /* single warm accent, used sparingly */
  --ok: #2fa36b;

  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;

  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-md: 1.3rem;
  --t-lg: 1.62rem;
  --t-xl: 2.05rem;
  --t-2xl: clamp(2.3rem, 1.1rem + 4.2vw, 4.2rem);

  --wrap: 1160px;
  --gut: clamp(1rem, 4vw, 2rem);
  --r: 8px;
  --r-lg: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-base)/1.65 var(--body); text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 20; border-radius: var(--r); }
.skip:focus { left: .5rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

h1,h2,h3 { font-family: var(--display); line-height: 1.07; letter-spacing: -.02em; margin: 0; font-weight: 700; }
h2 { font-size: var(--t-xl); font-weight: 800; }
h3 { font-size: var(--t-md); }
p { margin: 0 0 1em; max-width: 62ch; }
.eyebrow { font: 600 var(--t-sm)/1 var(--body); color: var(--blue); display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--blue); }
.lede { font-size: var(--t-md); color: var(--ink-soft); max-width: 48ch; line-height: 1.55; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--t-base)/1 var(--body); padding: .95em 1.5em; border-radius: var(--r); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 800 1.2rem/1 var(--display); letter-spacing: -.03em; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; color: #fff; flex: none; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 1.5rem; font-size: var(--t-sm); font-weight: 500; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav .btn { padding: .6em 1.1em; }
@media (max-width: 780px) { .nav .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--t-2xl); font-weight: 800; max-width: 15ch; margin-bottom: 1.3rem; }
.hero h1 .u { background: linear-gradient(transparent 68%, var(--gold) 68% 92%, transparent 92%); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .wrap > * { min-width: 0; }
.hero .assure { margin-top: 1.1rem; font-size: var(--t-sm); color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.hero .assure svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .pipeline { order: -1; } }

/* The memorable element: a repetitive task run through automation, once. */
.pipeline { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 50px -30px rgba(14,27,51,.4); padding: 1.3rem; }
.pipeline-head { display: flex; align-items: center; justify-content: space-between; font: 600 var(--t-sm)/1 var(--body); color: var(--ink-soft); margin-bottom: 1rem; }
.pipeline-head .tag { display: inline-flex; align-items: center; gap: .4rem; }
.pipeline-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; min-width: 0; }
.stack { display: grid; gap: .5rem; min-width: 0; }
.task { min-width: 0; }
.task { display: flex; align-items: center; gap: .55rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .55rem .7rem; font-size: .8rem; color: var(--ink-soft); opacity: .4; }
.task .i { width: 16px; height: 16px; flex: none; color: var(--ink-soft); }
.task.done { opacity: 1; border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--white)); color: var(--ink); }
.task.done .i { color: var(--ok); }
.engine { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); display: grid; place-items: center; color: #fff; box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--blue) 60%, transparent); position: relative; }
.engine svg { width: 34px; height: 34px; }
.engine .gear2 { position: absolute; }
.pipeline.run .task.out { animation: taskIn .4s ease-out forwards; opacity: 0; }
.pipeline.run .engine svg.spin { animation: spin 2.4s linear infinite; }
.pipeline.run .engine .gear2 { animation: spin 2.4s linear infinite reverse; }
.pipeline.run .bolt { animation: bolt 1.6s ease-in-out 1; }
.pipeline .bolt { position: absolute; inset: 0; border-radius: 18px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 50%, transparent); }
.flow-label { text-align: center; font: 600 .72rem/1.3 var(--body); color: var(--blue); margin-top: .5rem; }
@keyframes taskIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bolt { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb,var(--blue) 45%,transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb,var(--blue) 0%,transparent); } }
@media (prefers-reduced-motion: reduce) { .pipeline.run .task.out, .pipeline.run .engine svg.spin, .pipeline.run .engine .gear2 { animation: none; } .pipeline .task.out { opacity: 1; } }
.replay { background: none; border: 0; color: var(--ink-soft); font: 500 var(--t-sm)/1 var(--body); cursor: pointer; padding: .3rem; }
.replay:hover { color: var(--blue); }

/* ---------- stats band ---------- */
.stats { background: var(--ink); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: clamp(2rem, 4vw, 2.8rem) var(--gut); }
.stat b { display: block; font: 800 clamp(2rem,1.3rem+2.2vw,2.9rem)/1 var(--display); letter-spacing: -.03em; }
.stat b .accent { color: var(--gold); }
.stat span { color: #a9b6d4; font-size: var(--t-sm); }
@media (max-width: 680px) { .stats .wrap { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; } }

/* ---------- sections ---------- */
section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head p { color: var(--ink-soft); margin: .6rem 0 0; }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; }
.svc .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--mist); color: var(--blue); display: grid; place-items: center; margin-bottom: 1rem; }
.svc .ic svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.16rem; margin-bottom: .4rem; }
.svc p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* products / previous work */
.work { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: 600 var(--t-sm)/1 var(--body); padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; background: var(--white); }
.card .cat { font: 600 .72rem/1 var(--body); color: var(--blue); text-transform: none; }
.card h3 { font-size: 1.08rem; line-height: 1.2; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card.hide { display: none; }
.card .link { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--blue); text-decoration: none; }

/* about / values */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }
.values { display: grid; gap: .8rem; }
.value { display: flex; gap: .9rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.value .n { font: 800 var(--t-sm)/1 var(--display); color: var(--blue); flex: none; width: 1.6rem; }
.value b { display: block; }
.value span { color: var(--ink-soft); font-size: .95rem; }
.founder { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.founder img { width: 60px; height: 60px; border-radius: 50%; background: var(--mist); object-fit: cover; object-position: 50% 8%; }
.founder b { display: block; } .founder span { color: var(--ink-soft); font-size: var(--t-sm); }

/* contact / quote */
.contact { background: var(--ink); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
.contact h2 { color: #fff; }
.contact .lede { color: #b9c4dd; }
.contact ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.contact li { display: flex; gap: .7rem; align-items: center; color: #d5deef; font-size: .98rem; }
.contact li svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.quote { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.4rem,3vw,2rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font: 600 var(--t-sm)/1 var(--body); margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; font: 400 var(--t-base)/1.4 var(--body); color: var(--ink); padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; }
.quote .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.quote .note { font-size: var(--t-sm); color: var(--ink-soft); margin: .8rem 0 0; }
.form-msg { padding: .8rem 1rem; border-radius: var(--r); font-size: var(--t-sm); margin-bottom: 1rem; }
.form-msg.ok { background: color-mix(in srgb, var(--ok) 12%, #fff); color: #1c6b45; border: 1px solid color-mix(in srgb,var(--ok) 40%,#fff); }
.form-msg.err { background: #fdecec; color: #b42318; border: 1px solid #f3c0bd; }

/* prose pages */
.prose { padding: clamp(2.5rem,6vw,4.5rem) 0 clamp(3rem,7vw,6rem); }
.prose .wrap { max-width: 46rem; }
.prose h1 { font-size: var(--t-xl); margin-bottom: 1.3rem; }
.prose h2 { font-size: var(--t-md); margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-soft); }

/* footer */
.site-foot { background: var(--ink); color: #9fb0d0; padding: 2.4rem 0; font-size: var(--t-sm); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.site-foot a { color: #cdd8ee; text-decoration: none; }
.site-foot a:hover { color: #fff; }
