/* Tokens */
:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: #aab2bd;
  --line: rgba(255,255,255,.12);
  --control-line: rgba(255,255,255,.42);
  --bg: #080b0f;
  --alt: #0d1217;
  --accent: #b3ff3a;
  --accent-hover: #9be02f;
  --accent-soft: #121920;
  --dark: #121920;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 Poppins, system-ui, sans-serif; }
h1, h2, h3 { font-family: Montserrat, system-ui, sans-serif; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 32px; }
h3 { font-size: 19px; margin-bottom: 10px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; padding: 10px 18px; border-radius: 8px; background: var(--accent); color: #080b0f; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.alt { background: var(--alt); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }

/* Header and navigation */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(8,11,15,.94); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: block; padding: 2px 0; }
nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
nav a:not(.btn):hover { color: var(--accent); }
.nav nav a:not(.btn) { padding: 10px 0; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px 10px; background: none; border: 1px solid var(--control-line); border-radius: 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 13px 26px; border-radius: 8px; background: var(--accent); color: #080b0f; font-weight: 600; text-align: center; border: 2px solid var(--accent); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { padding: 7px 16px; }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { color: #080b0f; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero and page heads */
.hero { padding: 88px 0; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.lead { color: var(--muted); font-size: 19px; margin: 22px 0 30px; }
.page-head { padding: 56px 0; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.page-head .lead { margin-bottom: 0; max-width: 760px; }
.crumbs { flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 400; color: var(--muted); margin-bottom: 18px; }
.crumbs a { display: inline-block; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }

.flow { display: flex; flex-direction: column; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px 20px; }
.flow i { width: 2px; height: 26px; background: var(--accent); }
.node { background: var(--alt); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 500; text-align: center; }
.node-main { background: var(--accent); border-color: var(--accent); color: #080b0f; font-weight: 600; padding: 12px 28px; }
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.agents .node { padding: 10px 6px; display: flex; align-items: center; justify-content: center; }

/* Cards and lists */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 26px; background: var(--bg); }
.card p { color: var(--muted); font-size: 16px; }
.card:hover, .card:focus-within { border-color: var(--accent); }
.card h3 a::after, .card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card h3 a:hover, .card-title a:hover { color: var(--accent); }
.card-title { font-size: 19px; margin-bottom: 10px; }
.card .stack { font-size: 14px; color: var(--accent); margin-top: 12px; }
.sample-note { color: var(--muted); margin: -16px 0 28px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 2px 10px; margin-bottom: 14px; }
.step-no { display: block; color: var(--accent); font: 700 28px Montserrat, sans-serif; margin-bottom: 10px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px; font-size: 15px; font-weight: 500; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 20px; border-radius: 10px; }
.faq details p { padding: 0 20px 16px; color: var(--muted); font-size: 16px; }

/* Contact */
.dark { background: var(--dark); color: #fff; }
.dark h2 { margin-bottom: 14px; }
.dark p { color: #c6c9d6; }
.dark .eyebrow { color: var(--accent); }
.contact-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-in a { display: inline-block; padding: 8px 0; color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.contact-list span { display: block; font-size: 13px; color: var(--muted); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 44px; padding: 12px; border-radius: 8px; border: 1px solid var(--control-line); background: var(--bg); color: var(--ink); font: inherit; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.contact-form button { cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.contact-form button:disabled { opacity: .6; }
.form-status { min-height: 1.6em; font-size: 15px; }

/* Long-form content */
.article { padding: 24px 0 72px; }
.prose { max-width: 808px; }
.wrap.prose { margin-left: max(0px, calc((100% - 1120px) / 2)); }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 44px 0 16px; }
.prose > h2:first-child { margin-top: 16px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: #d7dce2; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font: 14px/1.6 Consolas, Menlo, Monaco, monospace; overflow-wrap: anywhere; }
.prose pre { max-width: 100%; overflow-x: auto; margin: 0 0 20px; padding: 16px; background: var(--alt); border: 1px solid var(--line); border-radius: 8px; }
.prose pre code { overflow-wrap: normal; white-space: pre; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 0 0 20px; }
.prose table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--alt); font-weight: 600; }
.prose .chips { padding-left: 0; }
.prose .chips li { margin-bottom: 0; }
.draft-box { border: 1px dashed var(--accent); border-radius: 12px; padding: 24px; margin: 28px 0; }
.prose .draft-box .tag { color: var(--accent); margin-bottom: 0; }
.prose .draft-box h2 { margin-top: 24px; }
.prose .draft-box ul:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--alt); border-top: 1px solid var(--line); padding: 64px 0 24px; color: var(--muted); font-size: 15px; }
.foot-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.foot-cta h2 { margin-bottom: 8px; color: var(--ink); }
.foot-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: 40px; padding: 48px 0; }
.foot-grid > div:first-child > a { display: inline-block; padding: 2px 0; }
.foot-grid h3 { color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.foot-grid p { margin-top: 12px; max-width: 320px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-grid li a { display: inline-block; padding: 4px 0; overflow-wrap: anywhere; }
.foot-grid li a:hover { color: var(--accent); }
.foot-bottom { padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.avail { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--accent); font-size: 14px; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Responsive */
@media (min-width: 861px) {
  #work .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: 1fr 1fr; }
  section, .hero { padding: 56px 0; }
  .contact-in, .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .nav-in { position: relative; }
  nav#nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  nav#nav-links.open { display: flex; }
  nav#nav-links a { display: block; padding: 10px 4px; }
  nav#nav-links a.btn { width: 100%; text-align: center; padding: 10px; margin-top: 6px; }
  .foot-grid ul { gap: 0; }
  .foot-grid li a { padding: 10px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid, .steps, .foot-grid { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0; }
  .site-footer { padding-top: 48px; }
  .foot-cta { padding-bottom: 36px; }
  .foot-grid { gap: 28px; padding: 36px 0; }
  .foot-cta-btns { width: 100%; }
  .foot-cta-btns .btn, .cta .btn { flex: 1 1 auto; }
}

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 6; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #080b0f; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.wa-float:hover { background: #9be02f; }

.subhead { font-size: 22px; margin: 40px 0 20px; }
