/* ==========================================================================
   Kichukovi — rebrand homepage styles (self-contained, no Bootstrap needed)
   Brand: amber #ffbd39 · lime #a0f669 · charcoal #232931 · Poppins
   ========================================================================== */

:root {
  --bg:        #14181d;
  --bg-alt:    #171c22;
  --card:      #1b2129;
  --card-2:    #20272f;
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.16);
  --amber:     #ffbd39;
  --amber-2:   #ffa42e;
  --amber-soft:rgba(255, 189, 57, 0.14);
  --amber-ring:rgba(255, 189, 57, 0.22);
  --lime:      #a0f669;
  --ink:       #1a1f26;
  --text:      #eef0f2;
  --text-2:    #b3bac2;
  --muted:     #99a1aa;
  --muted-2:   #6b7480;
  --font:      'Poppins', Arial, sans-serif;
  --display:   'Space Grotesk', 'Poppins', sans-serif;
  --maxw:      1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffcf6e; }

.display { font-family: var(--display); letter-spacing: -0.02em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; padding: 15px 26px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { display: block; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(255,189,57,.6); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--amber); }
.btn-dark { background: var(--ink); color: var(--amber); }
.btn-dark:hover { color: var(--amber); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* Navbar ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--maxw); margin: 0 auto;
}
.nav-outer {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 24, 29, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: 0.16em; color: #fff; }
.brand-mark { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 84% 8%, rgba(255,189,57,0.16), transparent 60%),
    radial-gradient(700px 460px at 6% 96%, rgba(160,246,105,0.08), transparent 60%),
    var(--bg);
  padding: 88px 0 92px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px;
  border: 1px solid var(--amber-ring); border-radius: 999px; margin-bottom: 28px;
  font-size: 13px; color: var(--text-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hero h1 { font-size: 60px; line-height: 1.05; font-weight: 700; margin: 0 0 22px; color: #fff; }
.hero h1 span { color: var(--amber); }
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 520px; margin: 0 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--display); font-size: 30px; font-weight: 700; color: #fff; }
.hero-stats .lbl { font-size: 13px; color: var(--muted-2); margin-top: 2px; }

/* Chatbot demo card */
.chat-shell { position: relative; }
.chat-glow { position: absolute; inset: -22px; background: radial-gradient(circle at 60% 30%, rgba(255,189,57,0.18), transparent 62%); filter: blur(6px); }
.chat {
  position: relative; background: var(--card); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.chat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--amber), var(--amber-2)); display: flex; align-items: center; justify-content: center; }
.chat-name { font-size: 14px; font-weight: 600; color: #fff; }
.chat-status { font-size: 12px; color: var(--lime); display: flex; align-items: center; gap: 6px; }
.chat-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 4px 8px; }
.msg { max-width: 82%; font-size: 14px; line-height: 1.5; padding: 12px 15px; }
.msg-bot { align-self: flex-start; background: var(--card-2); color: #dfe3e8; border-radius: 4px 16px 16px 16px; }
.msg-user { align-self: flex-end; background: var(--amber); color: var(--ink); font-weight: 500; border-radius: 16px 4px 16px 16px; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 8px 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #7a828c; animation: blink 1.4s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-input { display: flex; align-items: center; gap: 10px; margin-top: 10px; background: var(--card-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 15px; }
.chat-input span { flex-grow: 1; font-size: 14px; color: #7f8791; }
.chat-send { width: 30px; height: 30px; border-radius: 8px; background: var(--amber); display: flex; align-items: center; justify-content: center; }

/* Trust bar */
.trust { margin-top: 74px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.trust-items { display: flex; gap: 46px; flex-grow: 1; opacity: 0.75; flex-wrap: wrap; }
.trust-items span { font-size: 15px; font-weight: 600; color: #aeb5bd; }

/* Section heads ---------------------------------------------------------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 12px; }
.head-row h2 { font-size: 42px; font-weight: 700; color: #fff; margin: 0; line-height: 1.1; max-width: 640px; }
.head-note { font-size: 15px; color: var(--muted); max-width: 320px; margin: 0 0 6px; }
.head-center { text-align: center; margin-bottom: 56px; }
.head-center h2 { font-size: 42px; font-weight: 700; color: #fff; margin: 0; }

/* Services --------------------------------------------------------------- */
.tier-label-row { display: flex; align-items: center; gap: 12px; margin: 48px 0 20px; flex-wrap: wrap; }
.tier-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.tier-tag.ai { color: var(--ink); background: var(--amber); }
.tier-tag.foundations { color: var(--text-2); border: 1px solid var(--line-2); }
.tier-note { font-size: 14px; color: var(--muted-2); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.svc {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--amber-ring); border-radius: 18px; padding: 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.svc:hover { transform: translateY(-4px); border-color: var(--amber); }
.svc-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--amber-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.svc h3 { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 10px; }
.svc p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

.svc-min {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; display: flex; align-items: center; gap: 14px;
  transition: transform .18s ease, border-color .18s ease;
}
.svc-min:hover { transform: translateY(-4px); border-color: var(--line-2); }
.svc-min span { font-size: 15px; font-weight: 500; color: #e6e9ec; }

/* Process ---------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px; }
.step-n { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--amber); margin-bottom: 22px; }
.step h3 { font-size: 20px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.step p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }

/* Work ------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: minmax(160px, auto); gap: 20px; }
.work-card {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; min-height: 160px;
  background-size: cover; background-position: center;
}
.work-card.tall { grid-row: span 2; min-height: 340px; }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,29,0.15) 0%, rgba(20,24,29,0.88) 100%); z-index: 0; }
.work-card > * { position: relative; z-index: 1; }
.work-kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.work-card h3 { font-family: var(--display); font-weight: 700; color: #fff; margin: 0; }
.work-card.tall h3 { font-size: 28px; }
.work-card h3.sm { font-size: 20px; font-weight: 600; }

/* Blog ------------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .18s ease, border-color .18s ease; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-4px); border-color: var(--line-2); }
.post-img { height: 190px; background-size: cover; background-position: center; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.post-date { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.post h3 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 0 0 12px; }
.post h3 a { color: #fff; }
.post h3 a:hover { color: var(--amber); }
.post p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Stats ------------------------------------------------------------------ */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--display); font-size: 48px; font-weight: 700; color: var(--amber); line-height: 1; }
.stat .lbl { font-size: 14px; color: var(--text-2); margin-top: 10px; }

/* CTA -------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 26px; padding: 62px 56px;
  background: radial-gradient(600px 300px at 85% 20%, rgba(26,31,38,0.25), transparent 60%), linear-gradient(120deg, var(--amber), var(--amber-2));
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-band h2 { font-family: var(--display); font-size: 38px; font-weight: 700; color: var(--ink); margin: 0 0 12px; max-width: 620px; line-height: 1.1; }
.cta-band p { font-size: 17px; color: #4a3d1a; margin: 0; max-width: 520px; }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.contact-item .ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--amber-soft); display: flex; align-items: center; justify-content: center; }
.contact-item .k { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.contact-item .v { font-size: 15px; color: #fff; margin-top: 2px; }
.contact-item .v a { color: #fff; }
.contact-item .v a:hover { color: var(--amber); }

.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; color: #fff; font-family: var(--font); font-size: 15px; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #7f8791; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); }

/* Footer ----------------------------------------------------------------- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer .brand { display: inline-flex; margin-bottom: 16px; }
.footer p { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 320px; margin: 0; }
.footer h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col li, .footer-col a { font-size: 14px; color: var(--text-2); }
.footer-col a:hover { color: var(--amber); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.footer-social a:hover { border-color: var(--amber); color: var(--amber); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom span { font-size: 13px; color: var(--muted-2); }

/* Reveal animation (progressive enhancement — hidden only when JS is on) -- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  .reveal { transition: none; }
}

/* ==========================================================================
   Subpages (projects, blog article, thank-you)
   ========================================================================== */
.subhero {
  position: relative;
  background:
    radial-gradient(800px 400px at 82% 10%, rgba(255,189,57,0.14), transparent 60%),
    var(--bg);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.subhero h1 { font-family: var(--display); font-size: 48px; font-weight: 700; color: #fff; margin: 0 0 14px; line-height: 1.05; }
.subhero .lead { font-size: 17px; color: var(--text-2); max-width: 620px; margin: 0; }
.breadcrumb-nav { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-2); margin-bottom: 22px; }
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--amber); }
.breadcrumb-nav .sep { color: var(--muted-2); }

/* Projects list ---------------------------------------------------------- */
.project-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.project-row:last-child { border-bottom: 0; }
.project-row .shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.project-row .shot img { width: 100%; display: block; }
.project-row .kick { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.project-row h2 { font-family: var(--display); font-size: 28px; font-weight: 700; margin: 0 0 16px; }
.project-row h2 a { color: #fff; }
.project-row h2 a:hover { color: var(--amber); }
.project-row p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 22px; }
.project-row.rev .shot { order: 2; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--amber); }

/* Article prose ---------------------------------------------------------- */
.article { max-width: 780px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted-2); margin-bottom: 18px; }
.article-meta .tag { color: var(--ink); background: var(--amber); padding: 3px 11px; border-radius: 999px; font-weight: 600; letter-spacing: 0.04em; }
.article h1 { font-family: var(--display); font-size: 40px; font-weight: 700; color: #fff; line-height: 1.12; margin: 0 0 28px; }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--text-2); }
.prose > p { margin: 0 0 22px; }
.prose h2, .prose h3 { font-family: var(--display); color: #fff; margin: 40px 0 14px; line-height: 1.25; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose strong { color: #fff; }
.prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--amber); }
.prose img { width: 100%; border-radius: 16px; border: 1px solid var(--line); margin: 12px 0 28px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.tagcloud a { font-size: 13px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px; }
.tagcloud a:hover { border-color: var(--amber); color: var(--amber); }
.article-cta { margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px; text-align: center; }
.article-cta h3 { font-family: var(--display); font-size: 22px; color: #fff; margin: 0 0 10px; }
.article-cta p { color: var(--muted); margin: 0 0 22px; }

/* Thank you -------------------------------------------------------------- */
.thankyou { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.thankyou .inner { max-width: 560px; padding: 40px 24px; }
.thankyou .check { width: 76px; height: 76px; border-radius: 50%; background: var(--amber-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.thankyou h1 { font-family: var(--display); font-size: 40px; color: #fff; margin: 0 0 16px; }
.thankyou p { font-size: 17px; color: var(--text-2); margin: 0 0 30px; }

@media (max-width: 760px) {
  .subhero h1 { font-size: 34px; }
  .project-row { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .project-row.rev .shot { order: 0; }
  .article h1 { font-size: 30px; }
  .prose { font-size: 16px; }
}

/* ==========================================================================
   Floating AI chat widget
   ========================================================================== */
.kb-chat { position: fixed; right: 22px; bottom: 22px; z-index: 999; font-family: var(--font); }
.kb-launcher {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--amber); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(255,189,57,0.6); transition: transform .18s ease;
  margin-left: auto;
}
.kb-launcher:hover { transform: translateY(-2px) scale(1.03); }
.kb-launcher .kb-ic-close { display: none; }
.kb-open .kb-launcher .kb-ic-chat { display: none; }
.kb-open .kb-launcher .kb-ic-close { display: block; }

.kb-panel {
  position: absolute; right: 0; bottom: 74px; width: 380px; max-width: calc(100vw - 44px);
  height: 540px; max-height: calc(100vh - 120px);
  background: var(--card); border: 1px solid rgba(255,255,255,0.09); border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.75); overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.kb-open .kb-panel { opacity: 1; transform: none; pointer-events: auto; }

.kb-head { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.kb-avatar { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--amber), var(--amber-2)); display: flex; align-items: center; justify-content: center; }
.kb-name { font-size: 14px; font-weight: 600; color: #fff; }
.kb-status { font-size: 12px; color: var(--lime); display: flex; align-items: center; gap: 6px; }
.kb-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

.kb-body { flex-grow: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.kb-msg { max-width: 84%; font-size: 14px; line-height: 1.5; padding: 11px 14px; white-space: pre-wrap; word-wrap: break-word; }
.kb-bot { align-self: flex-start; background: var(--card-2); color: #dfe3e8; border-radius: 4px 15px 15px 15px; }
.kb-user { align-self: flex-end; background: var(--amber); color: var(--ink); font-weight: 500; border-radius: 15px 4px 15px 15px; }
.kb-typing { display: flex; gap: 5px; }
.kb-typing span { width: 7px; height: 7px; border-radius: 50%; background: #7a828c; animation: blink 1.4s infinite both; }
.kb-typing span:nth-child(2) { animation-delay: .2s; }
.kb-typing span:nth-child(3) { animation-delay: .4s; }

.kb-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; margin-top: 2px; }
.kb-chip { font-size: 13px; color: var(--amber); background: transparent; border: 1px solid var(--amber-ring); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.kb-chip:hover { background: var(--amber); color: var(--ink); }

.kb-input { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.kb-input input { flex-grow: 1; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; color: #fff; font-family: var(--font); font-size: 14px; }
.kb-input input::placeholder { color: #7f8791; }
.kb-input input:focus { outline: none; border-color: var(--amber); }
.kb-input button { width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 10px; background: var(--amber); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.kb-input button:hover { background: var(--amber-2); }

@media (max-width: 480px) {
  .kb-chat { right: 16px; bottom: 16px; }
  .kb-panel { height: calc(100vh - 110px); }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .chat-shell { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 48px; }
}
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0; padding: 22px 24px;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
  }
  .nav-links.open .btn { display: none; }
  .hero h1 { font-size: 38px; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .head-row h2, .head-center h2 { font-size: 32px; }
  .grid-3, .grid-4, .blog-grid, .work-grid { grid-template-columns: 1fr; }
  .work-card.tall { grid-row: auto; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 44px 30px; }
  .cta-band h2 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 32px; }
  .stat .num { font-size: 40px; }
}
